結果

問題 No.279 木の数え上げ
ユーザー yaoshimaxyaoshimax
提出日時 2016-05-13 12:44:02
言語 Python2
(2.7.18)
結果
AC  
実行時間 159 ms / 2,000 ms
コード長 172 bytes
コンパイル時間 74 ms
コンパイル使用メモリ 6,568 KB
実行使用メモリ 6,912 KB
最終ジャッジ日時 2023-08-04 18:19:34
合計ジャッジ時間 2,454 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 10 ms
5,996 KB
testcase_01 AC 11 ms
5,884 KB
testcase_02 AC 11 ms
5,920 KB
testcase_03 AC 11 ms
6,052 KB
testcase_04 AC 11 ms
5,856 KB
testcase_05 AC 11 ms
5,904 KB
testcase_06 AC 10 ms
5,828 KB
testcase_07 AC 11 ms
5,880 KB
testcase_08 AC 11 ms
5,940 KB
testcase_09 AC 11 ms
5,856 KB
testcase_10 AC 144 ms
6,636 KB
testcase_11 AC 41 ms
6,232 KB
testcase_12 AC 104 ms
6,608 KB
testcase_13 AC 28 ms
6,104 KB
testcase_14 AC 159 ms
6,912 KB
testcase_15 AC 132 ms
6,796 KB
testcase_16 AC 121 ms
6,812 KB
testcase_17 AC 147 ms
6,824 KB
testcase_18 AC 79 ms
6,464 KB
testcase_19 AC 140 ms
6,824 KB
testcase_20 AC 156 ms
6,872 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=raw_input()
tcnt,rcnt,ecnt=0,0,0
for s in S:
    if s=='t':
        tcnt+=1
    if s=='r':
        rcnt+=1
    if s=='e':
        ecnt+=1
print min( tcnt, rcnt, ecnt/2 )
0