結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-12-24 00:07:23 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 333 ms / 2,000 ms |
| コード長 | 276 bytes |
| コンパイル時間 | 273 ms |
| コンパイル使用メモリ | 82,732 KB |
| 実行使用メモリ | 96,776 KB |
| 最終ジャッジ日時 | 2024-09-20 03:14:55 |
| 合計ジャッジ時間 | 10,634 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
from collections import defaultdict
N,M=map(int,input().split())
Rate=defaultdict(int)
for _ in range(N):
S,A=input().split(); A=int(A)
Rate[S]=A
for _ in range(M):
T,B=input().split(); B=int(B)
Rate[T]=B
for U in sorted(Rate.keys()):
print(U,Rate[U])
Kazun