結果

問題 No.279 木の数え上げ
ユーザー gahougahou
提出日時 2016-11-16 18:22:42
言語 Python2
(2.7.18)
結果
AC  
実行時間 650 ms / 2,000 ms
コード長 157 bytes
コンパイル時間 62 ms
コンパイル使用メモリ 6,704 KB
実行使用メモリ 7,028 KB
最終ジャッジ日時 2023-08-17 07:31:29
合計ジャッジ時間 6,670 ms
ジャッジサーバーID
(参考情報)
judge14 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
5,852 KB
testcase_01 AC 11 ms
5,944 KB
testcase_02 AC 11 ms
5,996 KB
testcase_03 AC 11 ms
5,972 KB
testcase_04 AC 11 ms
5,972 KB
testcase_05 AC 11 ms
5,888 KB
testcase_06 AC 11 ms
5,944 KB
testcase_07 AC 11 ms
5,940 KB
testcase_08 AC 11 ms
5,892 KB
testcase_09 AC 10 ms
6,108 KB
testcase_10 AC 605 ms
6,808 KB
testcase_11 AC 139 ms
6,220 KB
testcase_12 AC 412 ms
6,612 KB
testcase_13 AC 83 ms
5,968 KB
testcase_14 AC 650 ms
7,028 KB
testcase_15 AC 540 ms
6,716 KB
testcase_16 AC 489 ms
6,652 KB
testcase_17 AC 608 ms
6,828 KB
testcase_18 AC 317 ms
6,384 KB
testcase_19 AC 591 ms
6,900 KB
testcase_20 AC 638 ms
6,968 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

l=["t","r","e"]
c=[0,0,0]
S=raw_input()
for i in xrange(len(S)):
  for j in xrange(len(l)):
    if S[i]==l[j]:
      c[j]+=1
print min(c[0],min(c[1],c[2]/2))
0