結果
| 問題 |
No.1795 AtCoder Heuristic Rating coloring
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-12-24 10:05:29 |
| 言語 | D (dmd 2.109.1) |
| 結果 |
AC
|
| 実行時間 | 175 ms / 2,000 ms |
| コード長 | 327 bytes |
| コンパイル時間 | 3,269 ms |
| コンパイル使用メモリ | 262,228 KB |
| 実行使用メモリ | 20,252 KB |
| 最終ジャッジ日時 | 2024-06-22 13:52:44 |
| 合計ジャッジ時間 | 9,960 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 54 |
ソースコード
import std;
void main(){
auto input = readln.chomp.split(" ");
auto N = input[0].to!int;
auto M = input[1].to!int;
int[string] r;
for(auto n = 0; n < N+M; n++){
input = readln.chomp.split(" ");
auto s = input[0];
auto a = input[1].to!int;
r[s] = a;
}
foreach(k; r.keys.sort){
writefln("%s %d", k, r[k]);
}
}