結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 👑 tatt61880tatt61880
提出日時 2021-03-28 19:03:55
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 287 ms / 1,000 ms
コード長 332 bytes
コンパイル時間 2,562 ms
コンパイル使用メモリ 149,976 KB
実行使用メモリ 8,636 KB
最終ジャッジ日時 2023-10-14 18:09:22
合計ジャッジ時間 16,780 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,356 KB
testcase_02 AC 2 ms
4,356 KB
testcase_03 AC 258 ms
8,412 KB
testcase_04 AC 282 ms
8,388 KB
testcase_05 AC 276 ms
8,480 KB
testcase_06 AC 277 ms
8,556 KB
testcase_07 AC 281 ms
8,396 KB
testcase_08 AC 277 ms
8,600 KB
testcase_09 AC 276 ms
8,412 KB
testcase_10 AC 287 ms
8,484 KB
testcase_11 AC 279 ms
8,556 KB
testcase_12 AC 273 ms
8,568 KB
testcase_13 AC 282 ms
8,560 KB
testcase_14 AC 274 ms
8,452 KB
testcase_15 AC 270 ms
8,620 KB
testcase_16 AC 279 ms
8,336 KB
testcase_17 AC 281 ms
8,548 KB
testcase_18 AC 269 ms
8,556 KB
testcase_19 AC 274 ms
8,332 KB
testcase_20 AC 272 ms
8,548 KB
testcase_21 AC 269 ms
8,560 KB
testcase_22 AC 266 ms
8,396 KB
testcase_23 AC 269 ms
8,400 KB
testcase_24 AC 273 ms
8,448 KB
testcase_25 AC 267 ms
8,512 KB
testcase_26 AC 263 ms
8,612 KB
testcase_27 AC 268 ms
8,480 KB
testcase_28 AC 262 ms
8,552 KB
testcase_29 AC 258 ms
8,636 KB
testcase_30 AC 258 ms
8,540 KB
testcase_31 AC 259 ms
8,476 KB
testcase_32 AC 254 ms
8,512 KB
testcase_33 AC 255 ms
8,548 KB
testcase_34 AC 254 ms
8,380 KB
testcase_35 AC 239 ms
8,540 KB
testcase_36 AC 243 ms
8,424 KB
testcase_37 AC 244 ms
8,528 KB
testcase_38 AC 241 ms
8,500 KB
testcase_39 AC 247 ms
8,560 KB
testcase_40 AC 241 ms
8,328 KB
testcase_41 AC 2 ms
4,348 KB
testcase_42 AC 2 ms
4,348 KB
testcase_43 AC 2 ms
4,352 KB
testcase_44 AC 22 ms
4,348 KB
testcase_45 AC 21 ms
4,352 KB
testcase_46 AC 20 ms
4,352 KB
testcase_47 AC 218 ms
4,924 KB
testcase_48 AC 220 ms
5,932 KB
testcase_49 AC 226 ms
5,576 KB
testcase_50 AC 237 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

func main()
	var n: int :: cui@inputInt()
	var m: int :: cui@inputInt()
	var map: dict<int, int> :: #dict<int, int>
	for(1, n)
		var val: int :: cui@inputInt()
		do map.add(val, map.get(val, &) + 1)
	end for
	for i(1, m)
		var val: int :: cui@inputInt()
		do cui@print("\{map.get(val, &)}" ~ (i = m ?("\n", " ")))
	end for
end func
0