結果
| 問題 | 
                            No.279 木の数え上げ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             fV9TwBhUoa9S3eV
                         | 
                    
| 提出日時 | 2019-09-18 10:55:30 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                TLE
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 503 bytes | 
| コンパイル時間 | 103 ms | 
| コンパイル使用メモリ | 12,672 KB | 
| 実行使用メモリ | 20,296 KB | 
| 最終ジャッジ日時 | 2024-07-07 21:28:35 | 
| 合計ジャッジ時間 | 4,381 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge5 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 10 TLE * 1 -- * 10 | 
ソースコード
# No.279 木の数え上げ
s = input()
trees = 0
while True:
    if 't' in s:
        s = s.replace('t', '', 1)
        if 'r' in s:
            s = s.replace('r', '', 1)
            if 'e' in s:
                s = s.replace('e', '', 1)
                if 'e' in s:
                    s = s.replace('e', '', 1)
                    trees += 1
                else:
                    break
            else:
                break
        else:
            break
    else:
        break
print(trees)
            
            
            
        
            
fV9TwBhUoa9S3eV