結果
| 問題 | No.279 木の数え上げ |
| コンテスト | |
| ユーザー |
nobigomu
|
| 提出日時 | 2018-03-18 01:40:38 |
| 言語 | Lua (LuaJit 2.1.1774638290) |
| 結果 |
AC
|
| 実行時間 | 82 ms / 2,000 ms |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 128 ms |
| コンパイル使用メモリ | 6,272 KB |
| 実行使用メモリ | 6,432 KB |
| 最終ジャッジ日時 | 2026-05-30 00:44:25 |
| 合計ジャッジ時間 | 2,531 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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