結果

問題 No.1795 AtCoder Heuristic Rating coloring
ユーザー 👑 tatt61880tatt61880
提出日時 2023-03-04 09:51:57
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 410 ms / 2,000 ms
コード長 377 bytes
コンパイル時間 4,047 ms
コンパイル使用メモリ 146,152 KB
実行使用メモリ 20,036 KB
最終ジャッジ日時 2023-10-18 04:12:17
合計ジャッジ時間 16,006 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 2 ms
4,348 KB
testcase_04 AC 7 ms
4,440 KB
testcase_05 AC 7 ms
4,440 KB
testcase_06 AC 6 ms
4,480 KB
testcase_07 AC 8 ms
4,496 KB
testcase_08 AC 8 ms
4,508 KB
testcase_09 AC 9 ms
4,568 KB
testcase_10 AC 9 ms
4,556 KB
testcase_11 AC 9 ms
4,524 KB
testcase_12 AC 2 ms
4,348 KB
testcase_13 AC 2 ms
4,348 KB
testcase_14 AC 2 ms
4,348 KB
testcase_15 AC 2 ms
4,348 KB
testcase_16 AC 2 ms
4,348 KB
testcase_17 AC 2 ms
4,348 KB
testcase_18 AC 2 ms
4,348 KB
testcase_19 AC 2 ms
4,348 KB
testcase_20 AC 2 ms
4,348 KB
testcase_21 AC 2 ms
4,348 KB
testcase_22 AC 2 ms
4,348 KB
testcase_23 AC 2 ms
4,348 KB
testcase_24 AC 2 ms
4,348 KB
testcase_25 AC 2 ms
4,348 KB
testcase_26 AC 2 ms
4,348 KB
testcase_27 AC 2 ms
4,348 KB
testcase_28 AC 2 ms
4,348 KB
testcase_29 AC 2 ms
4,348 KB
testcase_30 AC 2 ms
4,348 KB
testcase_31 AC 2 ms
4,348 KB
testcase_32 AC 146 ms
9,544 KB
testcase_33 AC 99 ms
8,504 KB
testcase_34 AC 228 ms
11,564 KB
testcase_35 AC 195 ms
10,648 KB
testcase_36 AC 230 ms
12,164 KB
testcase_37 AC 117 ms
8,844 KB
testcase_38 AC 112 ms
9,112 KB
testcase_39 AC 263 ms
12,168 KB
testcase_40 AC 161 ms
10,104 KB
testcase_41 AC 231 ms
11,636 KB
testcase_42 AC 136 ms
9,604 KB
testcase_43 AC 150 ms
10,356 KB
testcase_44 AC 205 ms
11,696 KB
testcase_45 AC 141 ms
9,632 KB
testcase_46 AC 262 ms
12,648 KB
testcase_47 AC 58 ms
6,740 KB
testcase_48 AC 138 ms
9,984 KB
testcase_49 AC 281 ms
12,812 KB
testcase_50 AC 131 ms
8,948 KB
testcase_51 AC 114 ms
8,652 KB
testcase_52 AC 321 ms
14,512 KB
testcase_53 AC 322 ms
14,476 KB
testcase_54 AC 410 ms
20,036 KB
testcase_55 AC 408 ms
20,036 KB
testcase_56 AC 407 ms
20,036 KB
testcase_57 AC 407 ms
20,036 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var m: int :: cui@inputInt()
	
	var dic: dict<[]char, int> :: #dict<[]char, int>
	for(1, m + n)
		var s: []char :: cui@inputStr()
		var a: int :: cui@inputInt()
		do dic.add(s, a)
	end for
	
	do dic.forEach(f, null)
	
	func f(key: []char, val: int, _: kuin@Class): bool
		do cui@print("\{key} \{val}\n")
		ret true
	end func
end func
0