結果
問題 |
No.279 木の数え上げ
|
ユーザー |
|
提出日時 | 2016-08-02 09:40:09 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 487 ms / 2,000 ms |
コード長 | 297 bytes |
コンパイル時間 | 318 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 13,312 KB |
最終ジャッジ日時 | 2024-11-06 23:35:38 |
合計ジャッジ時間 | 5,491 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
n=input() list=[] t="t" tc=0 r="r" rc=0 e="e" ec=0 for i in range(len(n)): if n[i]==t: tc=tc+1 elif n[i]==r: rc=rc+1 elif n[i]==e: ec=ec+1 i=i+1 list.append(tc) list.append(rc) list.append(ec/2) a=min(list) if a>=1: print(int(a)) else: print(0)