結果
| 問題 |
No.2153 何コーダーが何人?
|
| コンテスト | |
| ユーザー |
y_ats03
|
| 提出日時 | 2023-03-03 16:37:02 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 99 ms / 2,000 ms |
| コード長 | 430 bytes |
| コンパイル時間 | 323 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 10,880 KB |
| 最終ジャッジ日時 | 2024-09-17 22:03:21 |
| 合計ジャッジ時間 | 2,690 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 19 |
ソースコード
n = int(input())
list = [0, 0, 0, 0, 0, 0, 0, 0]
list1 = []
list2 = []
size = 0
for _ in range(n):
s, cc = input().split()
c = int(cc)
fin = 0
for i in range(size):
if s == list1[i]:
list[list2[i]] -= 1
list2[i] = c
fin = 1
if fin == 0:
list1 = list1 + [s]
list2 = list2 + [c]
size += 1
list[c] += 1
for i in range(8):
print(list[i])
y_ats03