結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-18 10:38:22
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 309 ms / 1,000 ms
コード長 431 bytes
コンパイル時間 4,012 ms
コンパイル使用メモリ 160,536 KB
実行使用メモリ 35,048 KB
最終ジャッジ日時 2023-10-14 16:11:51
合計ジャッジ時間 20,979 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 2 ms
4,352 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 277 ms
34,040 KB
testcase_04 AC 304 ms
35,048 KB
testcase_05 AC 307 ms
34,280 KB
testcase_06 AC 298 ms
34,228 KB
testcase_07 AC 302 ms
34,432 KB
testcase_08 AC 297 ms
34,120 KB
testcase_09 AC 300 ms
34,112 KB
testcase_10 AC 301 ms
34,080 KB
testcase_11 AC 297 ms
34,304 KB
testcase_12 AC 291 ms
34,280 KB
testcase_13 AC 292 ms
34,048 KB
testcase_14 AC 293 ms
34,004 KB
testcase_15 AC 296 ms
34,140 KB
testcase_16 AC 296 ms
34,120 KB
testcase_17 AC 297 ms
33,968 KB
testcase_18 AC 300 ms
33,996 KB
testcase_19 AC 294 ms
33,988 KB
testcase_20 AC 295 ms
33,832 KB
testcase_21 AC 287 ms
33,884 KB
testcase_22 AC 295 ms
33,788 KB
testcase_23 AC 302 ms
33,852 KB
testcase_24 AC 295 ms
34,008 KB
testcase_25 AC 290 ms
33,700 KB
testcase_26 AC 289 ms
33,756 KB
testcase_27 AC 281 ms
33,624 KB
testcase_28 AC 282 ms
33,716 KB
testcase_29 AC 292 ms
33,824 KB
testcase_30 AC 309 ms
33,580 KB
testcase_31 AC 274 ms
33,548 KB
testcase_32 AC 283 ms
33,692 KB
testcase_33 AC 287 ms
33,604 KB
testcase_34 AC 269 ms
33,712 KB
testcase_35 AC 276 ms
33,488 KB
testcase_36 AC 277 ms
33,360 KB
testcase_37 AC 267 ms
33,380 KB
testcase_38 AC 255 ms
33,388 KB
testcase_39 AC 263 ms
33,300 KB
testcase_40 AC 267 ms
33,308 KB
testcase_41 AC 2 ms
4,348 KB
testcase_42 AC 1 ms
4,352 KB
testcase_43 AC 2 ms
4,348 KB
testcase_44 AC 22 ms
6,020 KB
testcase_45 AC 20 ms
5,996 KB
testcase_46 AC 20 ms
5,940 KB
testcase_47 AC 237 ms
25,884 KB
testcase_48 AC 243 ms
27,220 KB
testcase_49 AC 234 ms
27,288 KB
testcase_50 AC 256 ms
33,216 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>
	
	do ss :: cui@input().split(" ")
	for i(0, n - 1)
		var val: int :: ss[i].toInt(&)
		do mp.add(val, mp.get(val, &) + 1)
	end for
	do ss :: cui@input().split(" ")
	for i(0, m - 1)
		do cui@print("\{mp.get(ss[i].toInt(&), &)}" ~ (i = m - 1 ?("\n", " ")))
	end for
end func
0