結果
| 問題 | 
                            No.1795 AtCoder Heuristic Rating coloring
                             | 
                    
| コンテスト | |
| ユーザー | 
                             Wizist
                         | 
                    
| 提出日時 | 2021-12-24 03:32:17 | 
| 言語 | PyPy3  (7.3.15)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 280 ms / 2,000 ms | 
| コード長 | 215 bytes | 
| コンパイル時間 | 312 ms | 
| コンパイル使用メモリ | 82,432 KB | 
| 実行使用メモリ | 96,452 KB | 
| 最終ジャッジ日時 | 2024-09-20 03:18:40 | 
| 合計ジャッジ時間 | 9,419 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge1 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 4 | 
| other | AC * 54 | 
ソースコード
n, m = map(int, input().split())
d = {}
for _ in range(n):
	x, y = input().split()
	d[x] = int(y)
for _ in range(m):
	x, y = input().split()
	d[x] = int(y)
for k in sorted(d.keys()):
	print("{} {}".format(k, d[k]))
            
            
            
        
            
Wizist