結果

問題 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  
実行時間 196 ms / 2,000 ms
+ 48µs
コード長 327 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 1,808 ms
コンパイル使用メモリ 242,560 KB
実行使用メモリ 20,352 KB
最終ジャッジ日時 2026-07-27 03:58:29
合計ジャッジ時間 9,471 ms
ジャッジサーバーID
(参考情報)
judge3_0 / judge1_0
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
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