Submission #74601016


Source Code Expand

N,A = map(int, input().split())
T = list(map(int, input().split()))

total = 0

for i in range(N):
  if total < T[i]:
    total = T[i] + A
    print(total)
  else:
    total += A
    print(total)

Submission Info

Submission Time
Task C - Ticket Counter
User umezakis
Language Python (PyPy 3.11-v7.3.20)
Score 200
Code Size 206 Byte
Status AC
Exec Time 52 ms
Memory 80120 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 24
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, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 01_random_10.txt, 01_random_11.txt, 01_random_12.txt, 01_random_13.txt, 01_random_14.txt, 01_random_15.txt, 02_handmade_00.txt, 02_handmade_01.txt, 02_handmade_02.txt, 02_handmade_03.txt, 02_handmade_04.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 52 ms 79672 KiB
00_sample_01.txt AC 52 ms 79604 KiB
00_sample_02.txt AC 52 ms 79948 KiB
01_random_00.txt AC 52 ms 79912 KiB
01_random_01.txt AC 52 ms 80004 KiB
01_random_02.txt AC 52 ms 79864 KiB
01_random_03.txt AC 52 ms 80004 KiB
01_random_04.txt AC 52 ms 79616 KiB
01_random_05.txt AC 52 ms 80004 KiB
01_random_06.txt AC 51 ms 79784 KiB
01_random_07.txt AC 52 ms 80012 KiB
01_random_08.txt AC 52 ms 79732 KiB
01_random_09.txt AC 52 ms 80120 KiB
01_random_10.txt AC 52 ms 79752 KiB
01_random_11.txt AC 51 ms 79976 KiB
01_random_12.txt AC 52 ms 79848 KiB
01_random_13.txt AC 52 ms 79848 KiB
01_random_14.txt AC 52 ms 79940 KiB
01_random_15.txt AC 52 ms 79864 KiB
02_handmade_00.txt AC 52 ms 79868 KiB
02_handmade_01.txt AC 52 ms 79900 KiB
02_handmade_02.txt AC 52 ms 79800 KiB
02_handmade_03.txt AC 52 ms 79744 KiB
02_handmade_04.txt AC 52 ms 80004 KiB