結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
harurun
|
| 提出日時 | 2021-11-14 18:22:49 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 306 bytes |
| コンパイル時間 | 412 ms |
| コンパイル使用メモリ | 12,416 KB |
| 実行使用メモリ | 30,944 KB |
| 最終ジャッジ日時 | 2024-09-18 19:07:14 |
| 合計ジャッジ時間 | 10,701 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 WA * 3 |
| other | WA * 54 |
ソースコード
from collections import Counter
def main():
N,M=map(int,input().split())
d=Counter()
for i in range(N):
S,A=input().split()
d[S]=int(A)
for i in range(M):
T,B=input().split()
d[T]=max(d[T],int(B))
ans=list(d.items())
for user,rate in ans:
print(user,rate)
return
main()
harurun