結果
| 問題 | No.1795 AtCoder Heuristic Rating coloring | 
| コンテスト | |
| ユーザー |  H20 | 
| 提出日時 | 2021-12-24 00:05:46 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 417 ms / 2,000 ms | 
| コード長 | 254 bytes | 
| コンパイル時間 | 139 ms | 
| コンパイル使用メモリ | 81,836 KB | 
| 実行使用メモリ | 110,768 KB | 
| 最終ジャッジ日時 | 2024-09-20 03:15:23 | 
| 合計ジャッジ時間 | 11,169 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge2 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 54 | 
ソースコード
import collections
D = collections.defaultdict()
N,M = map(int, input().split())
for _ in range(N+M):
    s,a = input().split()
    D[s] = int(a)
L = []
for k,v in D.items():
    L.append([k,v])
L = sorted(L, key=lambda x: x[0])
for l in L:
    print(*l)
            
            
            
        