結果

問題 No.279 木の数え上げ
ユーザー あかりきあかりき
提出日時 2021-05-24 06:26:28
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 172 bytes
コンパイル時間 210 ms
コンパイル使用メモリ 82,492 KB
実行使用メモリ 106,820 KB
最終ジャッジ日時 2024-04-20 16:29:51
合計ジャッジ時間 2,748 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 44 ms
51,968 KB
testcase_01 AC 44 ms
51,584 KB
testcase_02 AC 43 ms
52,224 KB
testcase_03 AC 43 ms
51,840 KB
testcase_04 AC 44 ms
51,712 KB
testcase_05 AC 43 ms
51,968 KB
testcase_06 AC 45 ms
52,352 KB
testcase_07 AC 43 ms
51,840 KB
testcase_08 AC 43 ms
52,096 KB
testcase_09 AC 43 ms
51,840 KB
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

s=list(input())
ct=[0]*4
for i in range(len(s)):
  if s[i]=='t':
    ct[0]+=1
  elif s[i]=='r':
    ct[1]+=1
  elif s[i]=='e':
    ct[2]+=1
print(min(ct[0],ct[1],ct[2]//2))
0