結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-18 10:49:22
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 184 ms / 1,000 ms
コード長 662 bytes
コンパイル時間 3,041 ms
コンパイル使用メモリ 161,984 KB
実行使用メモリ 19,028 KB
最終ジャッジ日時 2023-10-14 16:13:02
合計ジャッジ時間 13,741 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 169 ms
18,536 KB
testcase_04 AC 183 ms
18,924 KB
testcase_05 AC 182 ms
18,900 KB
testcase_06 AC 184 ms
18,676 KB
testcase_07 AC 184 ms
19,028 KB
testcase_08 AC 183 ms
18,900 KB
testcase_09 AC 182 ms
18,808 KB
testcase_10 AC 182 ms
18,852 KB
testcase_11 AC 184 ms
18,544 KB
testcase_12 AC 182 ms
18,712 KB
testcase_13 AC 181 ms
18,740 KB
testcase_14 AC 179 ms
18,604 KB
testcase_15 AC 179 ms
18,508 KB
testcase_16 AC 180 ms
18,604 KB
testcase_17 AC 177 ms
18,596 KB
testcase_18 AC 171 ms
14,476 KB
testcase_19 AC 174 ms
14,428 KB
testcase_20 AC 171 ms
14,164 KB
testcase_21 AC 171 ms
14,240 KB
testcase_22 AC 170 ms
14,280 KB
testcase_23 AC 167 ms
14,332 KB
testcase_24 AC 168 ms
14,104 KB
testcase_25 AC 167 ms
14,272 KB
testcase_26 AC 165 ms
14,112 KB
testcase_27 AC 165 ms
14,060 KB
testcase_28 AC 164 ms
14,100 KB
testcase_29 AC 164 ms
14,204 KB
testcase_30 AC 163 ms
14,164 KB
testcase_31 AC 162 ms
14,156 KB
testcase_32 AC 162 ms
14,040 KB
testcase_33 AC 160 ms
14,056 KB
testcase_34 AC 160 ms
14,048 KB
testcase_35 AC 156 ms
13,932 KB
testcase_36 AC 159 ms
13,988 KB
testcase_37 AC 156 ms
13,780 KB
testcase_38 AC 158 ms
13,808 KB
testcase_39 AC 158 ms
14,020 KB
testcase_40 AC 157 ms
13,784 KB
testcase_41 AC 2 ms
4,348 KB
testcase_42 AC 2 ms
4,348 KB
testcase_43 AC 2 ms
4,348 KB
testcase_44 AC 14 ms
4,376 KB
testcase_45 AC 13 ms
4,372 KB
testcase_46 AC 14 ms
4,376 KB
testcase_47 AC 145 ms
14,504 KB
testcase_48 AC 152 ms
12,284 KB
testcase_49 AC 149 ms
11,332 KB
testcase_50 AC 141 ms
14,492 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var ss: [][]char :: cui@input().split(" ")
	var n: int :: ss[0].toInt(&)
	var m: int :: ss[1].toInt(&)
	var mp: dict<int, int> :: #dict<int, int>
	
	var s: []char
	var j: int
	
	do s :: cui@input() ~ " "
	do j :: 0
	for i(0, n - 1)
		var val: int :: 0
		while(s[j] <> ' ')
			do val :* 10
			do val :+ s[j] $ int - '0' $ int
			do j :+ 1
		end while
		do j :+ 1
		do mp.add(val, mp.get(val, &) + 1)
	end for
	
	do s :: cui@input() ~ " "
	do j :: 0
	for i(0, m - 1)
		var val: int :: 0
		while(s[j] <> ' ')
			do val :* 10
			do val :+ s[j] $ int - '0' $ int
			do j :+ 1
		end while
		do j :+ 1
		do cui@print("\{mp.get(val, &)} ")
	end for
end func
0