Submission #33492321


Source Code Expand

from bisect import bisect_left as bisect
 
N, *S = open(0)
St = {}
for s in S:
  s = s[:-1]
  if s in St:
    St[s] += 1
    print(f'{s}({St[s]})')
  else:
    St[s] = 0
    print(s)

Submission Info

Submission Time
Task C - NewFolder(1)
User arakaki_tokyo
Language PyPy3 (7.3.0)
Score 300
Code Size 193 Byte
Status AC
Exec Time 251 ms
Memory 143064 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 300 / 300
Status
AC × 2
AC × 16
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, sample_01.txt, sample_02.txt
Case Name Status Exec Time Memory
hand_01.txt AC 144 ms 61640 KiB
random_01.txt AC 251 ms 142992 KiB
random_02.txt AC 243 ms 143064 KiB
random_03.txt AC 197 ms 97460 KiB
random_04.txt AC 196 ms 97528 KiB
random_05.txt AC 201 ms 97460 KiB
random_06.txt AC 190 ms 97392 KiB
random_07.txt AC 106 ms 80600 KiB
random_08.txt AC 164 ms 89644 KiB
random_09.txt AC 131 ms 87400 KiB
random_10.txt AC 62 ms 68576 KiB
random_11.txt AC 119 ms 84364 KiB
random_12.txt AC 160 ms 88764 KiB
random_13.txt AC 80 ms 76280 KiB
sample_01.txt AC 46 ms 61824 KiB
sample_02.txt AC 52 ms 61916 KiB