提出 #69663556


ソースコード 拡げる

N = int(input())

ans = 0
for i in range(1, N+1):
    ans += (-1) ** i * i ** 3

print(ans)

提出情報

提出日時
問題 A - Sigma Cubes
ユーザ takagi3
言語 Python (PyPy 3.10-v7.3.12)
得点 100
コード長 99 Byte
結果 AC
実行時間 56 ms
メモリ 76688 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 55 ms 76616 KiB
00_sample_01.txt AC 55 ms 76548 KiB
00_sample_02.txt AC 56 ms 76596 KiB
01_random_00.txt AC 55 ms 76548 KiB
01_random_01.txt AC 55 ms 76544 KiB
01_random_02.txt AC 55 ms 76576 KiB
01_random_03.txt AC 55 ms 76476 KiB
01_random_04.txt AC 55 ms 76684 KiB
01_random_05.txt AC 56 ms 76688 KiB
01_random_06.txt AC 56 ms 76668 KiB