結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-18 01:40:38 |
| 言語 | Lua (LuaJit 2.1.1734355927) |
| 結果 |
AC
|
| 実行時間 | 92 ms / 2,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 268 ms |
| コンパイル使用メモリ | 6,948 KB |
| 実行使用メモリ | 6,348 KB |
| 最終ジャッジ日時 | 2024-12-24 04:55:11 |
| 合計ジャッジ時間 | 1,757 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
print((function (s,t,r,e)
s:gsub(".", function (c)
if c == "t" then t = t + 1
elseif c == "r" then r = r + 1
elseif c == "e" then e = e + 1
end
end)
e = bit.rshift(e, 1)
return math.min(t,r,e)
end)(io.stdin:read("*l"),0,0,0))
nobigomu