結果

問題 No.279 木の数え上げ
ユーザー Liny52551272Liny52551272
提出日時 2019-11-15 15:30:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 188 ms / 2,000 ms
コード長 175 bytes
コンパイル時間 92 ms
コンパイル使用メモリ 11,824 KB
実行使用メモリ 11,812 KB
最終ジャッジ日時 2023-10-25 03:30:25
合計ジャッジ時間 3,505 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 26 ms
9,880 KB
testcase_01 AC 27 ms
9,876 KB
testcase_02 AC 28 ms
9,880 KB
testcase_03 AC 27 ms
9,876 KB
testcase_04 AC 28 ms
9,876 KB
testcase_05 AC 27 ms
9,880 KB
testcase_06 AC 28 ms
9,876 KB
testcase_07 AC 28 ms
9,876 KB
testcase_08 AC 29 ms
9,880 KB
testcase_09 AC 27 ms
9,876 KB
testcase_10 AC 182 ms
11,608 KB
testcase_11 AC 60 ms
10,252 KB
testcase_12 AC 127 ms
11,120 KB
testcase_13 AC 44 ms
10,024 KB
testcase_14 AC 175 ms
11,812 KB
testcase_15 AC 148 ms
11,568 KB
testcase_16 AC 155 ms
11,328 KB
testcase_17 AC 165 ms
11,696 KB
testcase_18 AC 98 ms
10,796 KB
testcase_19 AC 163 ms
11,656 KB
testcase_20 AC 188 ms
11,776 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = input().strip()

T = 0
R = 0
E = 0

for i in S:
  if i == 't':
    T += 1
  elif i == 'r':
    R += 1
  elif i == 'e':
    E += 1

print(min(T, R, E // 2))
0