結果

問題 No.3016 unordered_mapなるたけ落とすマン
ユーザー 826814741_6826814741_6
提出日時 2019-01-01 22:48:12
言語 Lua
(LuaJit 2.1.1696795921)
結果
AC  
実行時間 100 ms / 1,000 ms
コード長 313 bytes
コンパイル時間 276 ms
コンパイル使用メモリ 5,248 KB
実行使用メモリ 7,564 KB
最終ジャッジ日時 2024-04-26 02:13:54
合計ジャッジ時間 8,021 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 AC 2 ms
5,376 KB
testcase_03 AC 100 ms
7,436 KB
testcase_04 AC 93 ms
7,436 KB
testcase_05 AC 95 ms
7,440 KB
testcase_06 AC 93 ms
7,564 KB
testcase_07 AC 95 ms
7,436 KB
testcase_08 AC 93 ms
7,436 KB
testcase_09 AC 90 ms
7,436 KB
testcase_10 AC 87 ms
7,564 KB
testcase_11 AC 91 ms
7,348 KB
testcase_12 AC 87 ms
7,432 KB
testcase_13 AC 86 ms
7,564 KB
testcase_14 AC 85 ms
7,436 KB
testcase_15 AC 86 ms
7,560 KB
testcase_16 AC 85 ms
7,432 KB
testcase_17 AC 82 ms
7,432 KB
testcase_18 AC 81 ms
7,436 KB
testcase_19 AC 79 ms
7,432 KB
testcase_20 AC 79 ms
7,564 KB
testcase_21 AC 81 ms
7,436 KB
testcase_22 AC 79 ms
7,436 KB
testcase_23 AC 83 ms
7,440 KB
testcase_24 AC 81 ms
7,560 KB
testcase_25 AC 76 ms
7,432 KB
testcase_26 AC 79 ms
7,432 KB
testcase_27 AC 78 ms
7,432 KB
testcase_28 AC 77 ms
7,436 KB
testcase_29 AC 78 ms
7,432 KB
testcase_30 AC 77 ms
7,328 KB
testcase_31 AC 78 ms
7,432 KB
testcase_32 AC 79 ms
7,436 KB
testcase_33 AC 78 ms
7,432 KB
testcase_34 AC 77 ms
7,432 KB
testcase_35 AC 75 ms
7,440 KB
testcase_36 AC 78 ms
7,436 KB
testcase_37 AC 76 ms
7,432 KB
testcase_38 AC 76 ms
7,436 KB
testcase_39 AC 77 ms
7,432 KB
testcase_40 AC 76 ms
7,436 KB
testcase_41 AC 1 ms
5,376 KB
testcase_42 AC 1 ms
5,376 KB
testcase_43 AC 1 ms
5,376 KB
testcase_44 AC 7 ms
5,376 KB
testcase_45 AC 7 ms
5,376 KB
testcase_46 AC 7 ms
5,376 KB
testcase_47 AC 53 ms
5,376 KB
testcase_48 AC 58 ms
5,376 KB
testcase_49 AC 56 ms
5,376 KB
testcase_50 AC 68 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

(function (f, g, fh)
	local n,m,h = fh:read("*n"),fh:read("*n"),{}
	for _=1,n do f(h,fh:read("*n")) end
	for _=1,m-1 do io.write(g(h,fh:read("*n"))," ") end io.write(g(h,fh:read("*n")),"\n")
end)(function (h, k)
	h[k] = h[k]~=nil and h[k]+1 or 1
end, function (h, k)
	return h[k]~=nil and h[k] or 0
end, io.stdin)
0