結果

問題 No.2153 何コーダーが何人?
ユーザー 👑 timitimi
提出日時 2022-12-09 21:51:02
言語 PyPy3
(7.3.13)
結果
AC  
実行時間 81 ms / 2,000 ms
コード長 171 bytes
コンパイル時間 359 ms
コンパイル使用メモリ 87,156 KB
実行使用メモリ 75,596 KB
最終ジャッジ日時 2023-08-04 23:22:59
合計ジャッジ時間 2,812 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 71 ms
71,324 KB
testcase_01 AC 80 ms
75,584 KB
testcase_02 AC 75 ms
71,204 KB
testcase_03 AC 80 ms
75,236 KB
testcase_04 AC 79 ms
71,416 KB
testcase_05 AC 73 ms
71,320 KB
testcase_06 AC 81 ms
75,356 KB
testcase_07 AC 77 ms
71,316 KB
testcase_08 AC 75 ms
71,388 KB
testcase_09 AC 81 ms
75,532 KB
testcase_10 AC 75 ms
71,292 KB
testcase_11 AC 81 ms
75,596 KB
testcase_12 AC 73 ms
71,208 KB
testcase_13 AC 76 ms
71,288 KB
testcase_14 AC 74 ms
71,248 KB
testcase_15 AC 74 ms
71,296 KB
testcase_16 AC 80 ms
75,592 KB
testcase_17 AC 77 ms
75,092 KB
testcase_18 AC 77 ms
75,528 KB
testcase_19 AC 68 ms
71,216 KB
testcase_20 AC 68 ms
71,320 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

N=int(input())
D={}
for i in range(N):
  x,y=input().split()
  y=int(y)
  if x not in D:
    D[x]=0
  D[x]=y
ans=[0]*8
for d in D:
  ans[D[d]]+=1

for i in ans:
  print(i)
0