結果
| 問題 | No.1795 AtCoder Heuristic Rating coloring | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2022-03-12 00:40:03 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 537 ms / 2,000 ms | 
| コード長 | 221 bytes | 
| コンパイル時間 | 1,645 ms | 
| コンパイル使用メモリ | 81,536 KB | 
| 実行使用メモリ | 97,208 KB | 
| 最終ジャッジ日時 | 2024-09-16 04:54:48 | 
| 合計ジャッジ時間 | 13,816 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 54 | 
ソースコード
N,M = map(int,input().split())
from collections import defaultdict
d = defaultdict(int)
for _ in range(N+M):
    S,t = input().split()
    d[S] = int(t)
l = list(d.items())
#print(l)
l.sort()
for S,i in l:
    print(S,i)
            
            
            
        