Submission #24915558


Source Code Expand

_,_,_,*r=map(int,open(0).read().split())
A={a:i for i,a in enumerate(sorted({*r[::2]}),1)}
B={b:i for i,b in enumerate(sorted({*r[1::2]}),1)}
for a,b in zip(r[::2],r[1::2]):
  print(A[a],B[b])

Submission Info

Submission Time
Task C - Reorder Cards
User Pandruant
Language PyPy3 (7.3.0)
Score 300
Code Size 192 Byte
Status AC
Exec Time 267 ms
Memory 150572 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 19
Set Name Test Cases
Sample sample_01.txt, sample_02.txt
All hand_01.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_08.txt, random_09.txt, random_10.txt, random_11.txt, random_12.txt, random_13.txt, random_14.txt, random_15.txt, random_16.txt, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 61 ms 61672 KiB
random_01.txt AC 51 ms 61660 KiB
random_02.txt AC 49 ms 61660 KiB
random_03.txt AC 250 ms 150572 KiB
random_04.txt AC 234 ms 131116 KiB
random_05.txt AC 267 ms 146384 KiB
random_06.txt AC 212 ms 130640 KiB
random_07.txt AC 213 ms 130792 KiB
random_08.txt AC 222 ms 130740 KiB
random_09.txt AC 211 ms 130748 KiB
random_10.txt AC 96 ms 82788 KiB
random_11.txt AC 63 ms 70892 KiB
random_12.txt AC 76 ms 74032 KiB
random_13.txt AC 82 ms 76496 KiB
random_14.txt AC 73 ms 73988 KiB
random_15.txt AC 79 ms 73920 KiB
random_16.txt AC 48 ms 62144 KiB
sample_01.txt AC 49 ms 61640 KiB
sample_02.txt AC 49 ms 61844 KiB