結果
| 問題 | No.1795 AtCoder Heuristic Rating coloring |
| コンテスト | |
| ユーザー |
👑 Kazun
|
| 提出日時 | 2021-12-24 00:07:23 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 264 ms / 2,000 ms |
| + 571µs | |
| コード長 | 276 bytes |
| 記録 | |
| コンパイル時間 | 213 ms |
| コンパイル使用メモリ | 96,076 KB |
| 実行使用メモリ | 106,452 KB |
| 最終ジャッジ日時 | 2026-08-31 12:57:10 |
| 合計ジャッジ時間 | 13,225 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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