結果
| 問題 | No.1795 AtCoder Heuristic Rating coloring |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2021-12-24 00:41:58 |
| 言語 | Python3 (3.14.7 + numpy 2.5.2 + scipy 1.18.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 285 ms / 2,000 ms |
| + 731µs | |
| コード長 | 256 bytes |
| 記録 | |
| コンパイル時間 | 287 ms |
| コンパイル使用メモリ | 21,456 KB |
| 実行使用メモリ | 28,656 KB |
| 最終ジャッジ日時 | 2026-08-31 12:58:56 |
| 合計ジャッジ時間 | 14,444 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
import sys
input = sys.stdin.readline
N,M=map(int,input().split())
D=dict()
for i in range(N):
S,A=input().split()
A=int(A)
D[S]=A
for i in range(M):
S,A=input().split()
A=int(A)
D[S]=A
L=sorted(D)
for x in L:
print(x,D[x])
titia