結果

問題 No.279 木の数え上げ
ユーザー akitsugu777akitsugu777
提出日時 2019-09-27 16:42:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 41 ms / 2,000 ms
コード長 163 bytes
コンパイル時間 86 ms
コンパイル使用メモリ 11,728 KB
実行使用メモリ 11,856 KB
最終ジャッジ日時 2023-10-24 16:43:28
合計ジャッジ時間 2,048 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
9,928 KB
testcase_01 AC 26 ms
9,928 KB
testcase_02 AC 26 ms
9,928 KB
testcase_03 AC 26 ms
9,928 KB
testcase_04 AC 26 ms
9,928 KB
testcase_05 AC 26 ms
9,928 KB
testcase_06 AC 26 ms
9,928 KB
testcase_07 AC 26 ms
9,928 KB
testcase_08 AC 26 ms
9,928 KB
testcase_09 AC 26 ms
9,928 KB
testcase_10 AC 39 ms
11,648 KB
testcase_11 AC 29 ms
10,296 KB
testcase_12 AC 39 ms
11,164 KB
testcase_13 AC 27 ms
10,064 KB
testcase_14 AC 41 ms
11,856 KB
testcase_15 AC 38 ms
11,616 KB
testcase_16 AC 37 ms
11,372 KB
testcase_17 AC 41 ms
11,740 KB
testcase_18 AC 33 ms
10,840 KB
testcase_19 AC 39 ms
11,700 KB
testcase_20 AC 41 ms
11,820 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input()

t = S.count('t')
r = S.count('r')
e = S.count('e')

cnt = 0
while t > 0 and r > 0 and e > 1:
    cnt += 1
    t -= 1
    r -= 1
    e -= 2

print(cnt)
0