結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 👑 tatt61880tatt61880
提出日時 2020-04-18 10:34:37
言語 Kuin
(KuinC++ v.2021.9.17)
結果
AC  
実行時間 301 ms / 1,000 ms
コード長 432 bytes
コンパイル時間 2,471 ms
コンパイル使用メモリ 160,912 KB
実行使用メモリ 35,176 KB
最終ジャッジ日時 2023-10-14 16:12:17
合計ジャッジ時間 17,156 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,352 KB
testcase_01 AC 1 ms
4,348 KB
testcase_02 AC 2 ms
4,352 KB
testcase_03 AC 257 ms
34,076 KB
testcase_04 AC 296 ms
35,176 KB
testcase_05 AC 298 ms
34,304 KB
testcase_06 AC 292 ms
34,360 KB
testcase_07 AC 284 ms
34,260 KB
testcase_08 AC 290 ms
34,248 KB
testcase_09 AC 285 ms
34,108 KB
testcase_10 AC 291 ms
34,216 KB
testcase_11 AC 299 ms
34,156 KB
testcase_12 AC 285 ms
33,996 KB
testcase_13 AC 289 ms
34,088 KB
testcase_14 AC 294 ms
33,992 KB
testcase_15 AC 280 ms
34,052 KB
testcase_16 AC 282 ms
34,120 KB
testcase_17 AC 301 ms
33,928 KB
testcase_18 AC 280 ms
33,976 KB
testcase_19 AC 277 ms
33,988 KB
testcase_20 AC 276 ms
33,844 KB
testcase_21 AC 286 ms
33,888 KB
testcase_22 AC 281 ms
33,952 KB
testcase_23 AC 290 ms
33,928 KB
testcase_24 AC 281 ms
33,952 KB
testcase_25 AC 281 ms
33,808 KB
testcase_26 AC 291 ms
33,676 KB
testcase_27 AC 287 ms
33,704 KB
testcase_28 AC 280 ms
33,564 KB
testcase_29 AC 272 ms
33,572 KB
testcase_30 AC 279 ms
33,556 KB
testcase_31 AC 271 ms
33,656 KB
testcase_32 AC 279 ms
33,508 KB
testcase_33 AC 265 ms
33,656 KB
testcase_34 AC 266 ms
33,428 KB
testcase_35 AC 266 ms
33,380 KB
testcase_36 AC 266 ms
33,552 KB
testcase_37 AC 268 ms
33,380 KB
testcase_38 AC 256 ms
33,516 KB
testcase_39 AC 254 ms
33,312 KB
testcase_40 AC 267 ms
33,388 KB
testcase_41 AC 2 ms
4,352 KB
testcase_42 AC 2 ms
4,348 KB
testcase_43 AC 2 ms
4,352 KB
testcase_44 AC 22 ms
6,020 KB
testcase_45 AC 19 ms
5,776 KB
testcase_46 AC 20 ms
5,972 KB
testcase_47 AC 224 ms
25,576 KB
testcase_48 AC 233 ms
27,144 KB
testcase_49 AC 226 ms
27,264 KB
testcase_50 AC 269 ms
33,196 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