提出 #69643460


ソースコード 拡げる

N = int(input())
Ans = 0

for i in range(1,N+1):
    Ans += (-1)**i * i**3
print(Ans)

提出情報

提出日時
問題 A - Sigma Cubes
ユーザ NNN_125128
言語 Python (PyPy 3.10-v7.3.12)
得点 100
コード長 90 Byte
結果 AC
実行時間 56 ms
メモリ 76756 KiB

ジャッジ結果

セット名 Sample All
得点 / 配点 0 / 0 100 / 100
結果
AC × 3
AC × 10
セット名 テストケース
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt
ケース名 結果 実行時間 メモリ
00_sample_00.txt AC 56 ms 76176 KiB
00_sample_01.txt AC 55 ms 76460 KiB
00_sample_02.txt AC 55 ms 76596 KiB
01_random_00.txt AC 56 ms 76304 KiB
01_random_01.txt AC 55 ms 76756 KiB
01_random_02.txt AC 56 ms 76460 KiB
01_random_03.txt AC 56 ms 76280 KiB
01_random_04.txt AC 56 ms 76492 KiB
01_random_05.txt AC 56 ms 76436 KiB
01_random_06.txt AC 56 ms 76448 KiB