結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,372 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 165 ms
20,316 KB
testcase_04 AC 176 ms
21,088 KB
testcase_05 AC 178 ms
20,936 KB
testcase_06 AC 178 ms
20,968 KB
testcase_07 AC 180 ms
21,176 KB
testcase_08 AC 175 ms
20,884 KB
testcase_09 AC 176 ms
20,752 KB
testcase_10 AC 175 ms
20,508 KB
testcase_11 AC 176 ms
20,648 KB
testcase_12 AC 178 ms
20,364 KB
testcase_13 AC 175 ms
20,360 KB
testcase_14 AC 174 ms
20,420 KB
testcase_15 AC 174 ms
19,972 KB
testcase_16 AC 175 ms
19,940 KB
testcase_17 AC 175 ms
19,844 KB
testcase_18 AC 167 ms
19,628 KB
testcase_19 AC 170 ms
19,376 KB
testcase_20 AC 168 ms
19,260 KB
testcase_21 AC 170 ms
19,124 KB
testcase_22 AC 165 ms
18,972 KB
testcase_23 AC 167 ms
18,924 KB
testcase_24 AC 168 ms
18,680 KB
testcase_25 AC 165 ms
18,684 KB
testcase_26 AC 161 ms
18,396 KB
testcase_27 AC 158 ms
17,972 KB
testcase_28 AC 160 ms
17,904 KB
testcase_29 AC 161 ms
17,760 KB
testcase_30 AC 160 ms
17,844 KB
testcase_31 AC 159 ms
17,844 KB
testcase_32 AC 159 ms
17,592 KB
testcase_33 AC 155 ms
17,576 KB
testcase_34 AC 155 ms
17,140 KB
testcase_35 AC 156 ms
16,824 KB
testcase_36 AC 156 ms
16,716 KB
testcase_37 AC 153 ms
16,924 KB
testcase_38 AC 155 ms
16,648 KB
testcase_39 AC 152 ms
16,524 KB
testcase_40 AC 154 ms
16,580 KB
testcase_41 AC 2 ms
4,356 KB
testcase_42 AC 2 ms
4,348 KB
testcase_43 AC 2 ms
4,352 KB
testcase_44 AC 15 ms
4,372 KB
testcase_45 AC 13 ms
4,352 KB
testcase_46 AC 14 ms
4,372 KB
testcase_47 AC 142 ms
15,332 KB
testcase_48 AC 143 ms
17,192 KB
testcase_49 AC 144 ms
18,868 KB
testcase_50 AC 140 ms
22,848 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() ~ " " ~ cui@input() ~ " "
	do j :: 0
	for i(0, n - 1)
		var val: int :: 0
		while(s[j] <> ' ')
			do val :: val * 10 + s[j] $ int - 48
			do j :+ 1
		end while
		do j :+ 1
		do mp.add(val, mp.get(val, &) + 1)
	end for
	
	for i(0, m - 1)
		var val: int :: 0
		while(s[j] <> ' ')
			do val :: val * 10 + s[j] $ int - 48
			do j :+ 1
		end while
		do j :+ 1
		do cui@print("\{mp.get(val, &)} ")
	end for
end func
0