結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-21 18:35:13 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 15 ms / 5,000 ms |
| コード長 | 252 bytes |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 6,944 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-26 08:26:06 |
| 合計ジャッジ時間 | 1,092 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
io.stdin:read("*l")
print((function (s, l, h)
local t,m,r = {},0,0
for i=l,h do t[i] = 0 end
s:gsub("%d", function (e) e=tonumber(e) t[e] = t[e] + 1 end)
for i=l,h do if m <= t[i] then m,r = t[i],i end end
return r
end)(io.stdin:read("*l"), 1, 6))
nobigomu