結果
| 問題 | 
                            No.279 木の数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             nobigomu
                         | 
                    
| 提出日時 | 2018-03-25 13:31:46 | 
| 言語 | Lua  (LuaJit 2.1.1734355927)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 63 ms / 2,000 ms | 
| コード長 | 236 bytes | 
| コンパイル時間 | 34 ms | 
| コンパイル使用メモリ | 5,120 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-06-25 05:48:47 | 
| 合計ジャッジ時間 | 1,899 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 21 | 
ソースコード
print((function (s,t,r,e)
	for c in s:gmatch(".") do
		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