結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー laneguelanegue
提出日時 2021-12-24 10:05:29
言語 D
(dmd 2.107.1)
結果
AC  
実行時間 239 ms / 2,000 ms
コード長 327 bytes
コンパイル時間 4,461 ms
コンパイル使用メモリ 255,744 KB
実行使用メモリ 23,068 KB
最終ジャッジ日時 2023-09-04 15:30:59
合計ジャッジ時間 15,070 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,380 KB
testcase_01 AC 1 ms
4,376 KB
testcase_02 AC 1 ms
4,376 KB
testcase_03 AC 2 ms
4,380 KB
testcase_04 AC 6 ms
4,424 KB
testcase_05 AC 6 ms
4,384 KB
testcase_06 AC 6 ms
4,504 KB
testcase_07 AC 6 ms
4,464 KB
testcase_08 AC 6 ms
4,456 KB
testcase_09 AC 7 ms
4,580 KB
testcase_10 AC 7 ms
4,656 KB
testcase_11 AC 7 ms
4,504 KB
testcase_12 AC 2 ms
4,376 KB
testcase_13 AC 2 ms
4,380 KB
testcase_14 AC 2 ms
4,376 KB
testcase_15 AC 1 ms
4,376 KB
testcase_16 AC 2 ms
4,384 KB
testcase_17 AC 2 ms
4,376 KB
testcase_18 AC 2 ms
4,376 KB
testcase_19 AC 2 ms
4,384 KB
testcase_20 AC 2 ms
4,380 KB
testcase_21 AC 2 ms
4,376 KB
testcase_22 AC 2 ms
4,380 KB
testcase_23 AC 2 ms
4,376 KB
testcase_24 AC 2 ms
4,388 KB
testcase_25 AC 1 ms
4,380 KB
testcase_26 AC 2 ms
4,384 KB
testcase_27 AC 2 ms
4,380 KB
testcase_28 AC 1 ms
4,380 KB
testcase_29 AC 2 ms
4,380 KB
testcase_30 AC 2 ms
4,376 KB
testcase_31 AC 2 ms
4,380 KB
testcase_32 AC 101 ms
14,820 KB
testcase_33 AC 69 ms
12,992 KB
testcase_34 AC 150 ms
15,628 KB
testcase_35 AC 128 ms
15,612 KB
testcase_36 AC 148 ms
15,812 KB
testcase_37 AC 79 ms
14,492 KB
testcase_38 AC 78 ms
13,728 KB
testcase_39 AC 161 ms
15,824 KB
testcase_40 AC 106 ms
15,768 KB
testcase_41 AC 153 ms
15,568 KB
testcase_42 AC 98 ms
14,816 KB
testcase_43 AC 106 ms
16,012 KB
testcase_44 AC 133 ms
15,616 KB
testcase_45 AC 101 ms
14,812 KB
testcase_46 AC 171 ms
15,748 KB
testcase_47 AC 42 ms
8,564 KB
testcase_48 AC 93 ms
15,268 KB
testcase_49 AC 176 ms
15,820 KB
testcase_50 AC 95 ms
15,872 KB
testcase_51 AC 79 ms
13,768 KB
testcase_52 AC 187 ms
17,464 KB
testcase_53 AC 190 ms
19,200 KB
testcase_54 AC 239 ms
20,444 KB
testcase_55 AC 229 ms
23,068 KB
testcase_56 AC 230 ms
22,672 KB
testcase_57 AC 230 ms
20,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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]);
	}
}
0