結果

問題 No.1795 AtCoder Heuristic Rating coloring
コンテスト
ユーザー lanegue
提出日時 2021-12-24 10:05:29
言語 D
(dmd 2.112.0)
コンパイル:
dmd -fPIE -m64 -w -wi -O -release -inline -I/opt/dmd/src/druntime/import/ -I/opt/dmd/src/phobos -L-L/opt/dmd/linux/lib64/ -fPIC _filename_
実行:
./Main
結果
AC  
実行時間 271 ms / 2,000 ms
コード長 327 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 3,285 ms
コンパイル使用メモリ 245,488 KB
実行使用メモリ 25,276 KB
最終ジャッジ日時 2026-03-06 19:09:29
合計ジャッジ時間 10,778 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 54
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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