結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
rlangevin
|
| 提出日時 | 2025-01-05 00:18:06 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 323 ms / 2,000 ms |
| コード長 | 302 bytes |
| コンパイル時間 | 1,170 ms |
| コンパイル使用メモリ | 82,736 KB |
| 実行使用メモリ | 98,912 KB |
| 最終ジャッジ日時 | 2025-01-05 00:18:21 |
| 合計ジャッジ時間 | 12,359 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
import sys
input = sys.stdin.readline
from collections import *
N, M = map(int, input().split())
D = defaultdict(int)
for i in range(N):
s, a = input().split()
D[s] = int(a)
for i in range(M):
t, b = input().split()
D[t] = int(b)
for k in sorted(D.keys()):
print(k, D[k])
rlangevin