Submission #69549708


Source Code Expand

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

Submission Info

Submission Time
Task A - Sigma Cubes
User sounansya
Language Python (PyPy 3.10-v7.3.12)
Score 100
Code Size 73 Byte
Status AC
Exec Time 59 ms
Memory 76572 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 100 / 100
Status
AC × 3
AC × 10
Set Name Test Cases
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
Case Name Status Exec Time Memory
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