結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 👑 tatt61880tatt61880
提出日時 2021-03-28 19:01:04
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 263 ms / 1,000 ms
コード長 392 bytes
コンパイル時間 3,596 ms
コンパイル使用メモリ 163,336 KB
実行使用メモリ 8,620 KB
最終ジャッジ日時 2023-10-14 18:09:05
合計ジャッジ時間 15,840 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 245 ms
8,552 KB
testcase_04 AC 261 ms
8,460 KB
testcase_05 AC 253 ms
8,620 KB
testcase_06 AC 249 ms
8,424 KB
testcase_07 AC 253 ms
8,468 KB
testcase_08 AC 248 ms
8,436 KB
testcase_09 AC 252 ms
8,436 KB
testcase_10 AC 247 ms
8,420 KB
testcase_11 AC 252 ms
8,604 KB
testcase_12 AC 263 ms
8,488 KB
testcase_13 AC 253 ms
8,568 KB
testcase_14 AC 244 ms
8,440 KB
testcase_15 AC 253 ms
8,564 KB
testcase_16 AC 249 ms
8,576 KB
testcase_17 AC 257 ms
8,572 KB
testcase_18 AC 256 ms
8,456 KB
testcase_19 AC 250 ms
8,404 KB
testcase_20 AC 253 ms
8,556 KB
testcase_21 AC 241 ms
8,392 KB
testcase_22 AC 245 ms
8,568 KB
testcase_23 AC 242 ms
8,464 KB
testcase_24 AC 244 ms
8,380 KB
testcase_25 AC 249 ms
8,568 KB
testcase_26 AC 236 ms
8,492 KB
testcase_27 AC 242 ms
8,396 KB
testcase_28 AC 240 ms
8,412 KB
testcase_29 AC 236 ms
8,560 KB
testcase_30 AC 226 ms
8,432 KB
testcase_31 AC 226 ms
8,564 KB
testcase_32 AC 234 ms
8,404 KB
testcase_33 AC 239 ms
8,476 KB
testcase_34 AC 235 ms
8,536 KB
testcase_35 AC 225 ms
8,440 KB
testcase_36 AC 232 ms
8,388 KB
testcase_37 AC 234 ms
8,436 KB
testcase_38 AC 229 ms
8,376 KB
testcase_39 AC 224 ms
8,512 KB
testcase_40 AC 227 ms
8,484 KB
testcase_41 AC 2 ms
4,348 KB
testcase_42 AC 2 ms
4,348 KB
testcase_43 AC 4 ms
4,352 KB
testcase_44 AC 28 ms
4,348 KB
testcase_45 AC 19 ms
4,352 KB
testcase_46 AC 18 ms
4,352 KB
testcase_47 AC 203 ms
5,208 KB
testcase_48 AC 198 ms
5,800 KB
testcase_49 AC 207 ms
5,368 KB
testcase_50 AC 225 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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