Submission #75766509


Source Code Expand

Q=int(input());
card=[0]*100
for i in range(Q):
  qr=input().split()
  if qr[0]=="1":
    card.append(qr[1])
  else:
    ans=card.pop()
    print(ans)

Submission Info

Submission Time
Task C - Card Pile
User sasakiharuto
Language Python (CPython 3.13.7)
Score 200
Code Size 158 Byte
Status AC
Exec Time 11 ms
Memory 9240 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 2
AC × 23
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt
All 00_sample_00.txt, 00_sample_01.txt, 01_handmade_00.txt, 01_handmade_01.txt, 01_handmade_02.txt, 01_handmade_03.txt, 01_handmade_04.txt, 01_handmade_05.txt, 02_random_00.txt, 02_random_01.txt, 02_random_02.txt, 02_random_03.txt, 02_random_04.txt, 02_random_05.txt, 02_random_06.txt, 02_random_07.txt, 02_random_08.txt, 02_random_09.txt, 02_random_10.txt, 02_random_11.txt, 02_random_12.txt, 02_random_13.txt, 02_random_14.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 11 ms 9084 KiB
00_sample_01.txt AC 11 ms 9116 KiB
01_handmade_00.txt AC 11 ms 9172 KiB
01_handmade_01.txt AC 11 ms 9056 KiB
01_handmade_02.txt AC 11 ms 9076 KiB
01_handmade_03.txt AC 11 ms 9172 KiB
01_handmade_04.txt AC 11 ms 9084 KiB
01_handmade_05.txt AC 11 ms 9064 KiB
02_random_00.txt AC 11 ms 9064 KiB
02_random_01.txt AC 11 ms 9064 KiB
02_random_02.txt AC 11 ms 9164 KiB
02_random_03.txt AC 11 ms 9240 KiB
02_random_04.txt AC 11 ms 9200 KiB
02_random_05.txt AC 11 ms 9112 KiB
02_random_06.txt AC 11 ms 9056 KiB
02_random_07.txt AC 11 ms 9240 KiB
02_random_08.txt AC 11 ms 9200 KiB
02_random_09.txt AC 11 ms 9168 KiB
02_random_10.txt AC 11 ms 9164 KiB
02_random_11.txt AC 11 ms 9200 KiB
02_random_12.txt AC 11 ms 9200 KiB
02_random_13.txt AC 11 ms 9240 KiB
02_random_14.txt AC 11 ms 9200 KiB