結果

問題 No.279 木の数え上げ
ユーザー ynyn
提出日時 2015-09-18 22:24:55
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 196 ms / 2,000 ms
コード長 186 bytes
コンパイル時間 216 ms
コンパイル使用メモリ 12,672 KB
実行使用メモリ 20,280 KB
最終ジャッジ日時 2024-04-22 16:00:35
合計ジャッジ時間 2,882 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 28 ms
10,496 KB
testcase_01 AC 27 ms
10,368 KB
testcase_02 AC 28 ms
10,496 KB
testcase_03 AC 27 ms
10,496 KB
testcase_04 AC 27 ms
10,496 KB
testcase_05 AC 28 ms
10,496 KB
testcase_06 AC 28 ms
10,368 KB
testcase_07 AC 27 ms
10,368 KB
testcase_08 AC 27 ms
10,368 KB
testcase_09 AC 28 ms
10,368 KB
testcase_10 AC 180 ms
19,620 KB
testcase_11 AC 65 ms
12,348 KB
testcase_12 AC 131 ms
16,140 KB
testcase_13 AC 47 ms
11,776 KB
testcase_14 AC 189 ms
20,280 KB
testcase_15 AC 166 ms
17,740 KB
testcase_16 AC 151 ms
17,100 KB
testcase_17 AC 196 ms
19,508 KB
testcase_18 AC 110 ms
14,704 KB
testcase_19 AC 178 ms
19,308 KB
testcase_20 AC 183 ms
19,264 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S = list(input())
c_t = 0
c_r = 0
c_e = 0
for s in S:
    if s == "t":
        c_t += 1
    if s == "r":
        c_r += 1
    if s == "e":
        c_e += 1

print(min(c_t, c_r, c_e//2))
0