提出 #69549708


ソースコード 拡げる

N = int(input())
print(((-1) ** N * (4 * N**3 + 6 * N**2 - 1) + 1) // 8)

提出情報

提出日時
問題 A - Sigma Cubes
ユーザ sounansya
言語 Python (PyPy 3.10-v7.3.12)
得点 100
コード長 73 Byte
結果 AC
実行時間 59 ms
メモリ 76572 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 57 ms 76524 KiB
00_sample_01.txt AC 58 ms 76376 KiB
00_sample_02.txt AC 58 ms 76400 KiB
01_random_00.txt AC 57 ms 76240 KiB
01_random_01.txt AC 59 ms 76436 KiB
01_random_02.txt AC 57 ms 76572 KiB
01_random_03.txt AC 57 ms 76564 KiB
01_random_04.txt AC 58 ms 76440 KiB
01_random_05.txt AC 56 ms 76360 KiB
01_random_06.txt AC 58 ms 76468 KiB