結果

問題 No.279 木の数え上げ
ユーザー concon
提出日時 2018-11-19 15:11:27
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 85 ms / 2,000 ms
コード長 518 bytes
コンパイル時間 256 ms
コンパイル使用メモリ 10,744 KB
実行使用メモリ 17,804 KB
最終ジャッジ日時 2023-08-26 02:05:19
合計ジャッジ時間 2,434 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 15 ms
7,888 KB
testcase_01 AC 14 ms
7,860 KB
testcase_02 AC 14 ms
7,900 KB
testcase_03 AC 15 ms
7,900 KB
testcase_04 AC 13 ms
7,908 KB
testcase_05 AC 14 ms
7,804 KB
testcase_06 AC 14 ms
7,828 KB
testcase_07 AC 14 ms
7,844 KB
testcase_08 AC 15 ms
7,844 KB
testcase_09 AC 14 ms
7,888 KB
testcase_10 AC 77 ms
15,908 KB
testcase_11 AC 27 ms
9,640 KB
testcase_12 AC 54 ms
13,384 KB
testcase_13 AC 23 ms
9,088 KB
testcase_14 AC 85 ms
17,804 KB
testcase_15 AC 67 ms
15,128 KB
testcase_16 AC 61 ms
14,548 KB
testcase_17 AC 73 ms
16,236 KB
testcase_18 AC 46 ms
12,176 KB
testcase_19 AC 75 ms
15,996 KB
testcase_20 AC 78 ms
16,560 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

S=list(input())
t=S.count("t")
r=S.count("r")
e=S.count("e")
e=e//2
if (t>=r) :
    if (r>=e) :
        print(e)
    else:
        print(r)
elif (r>t) :
    if (t>e) :
        print(e)
    else:
        print(t)
elif (r>=e) :
    if (e>=t) :
        print(t)
    else:
        print(e)
elif (e>r) :
    if (r>t) :
        print(t)
    else:
        print(r)
elif (t>=e) :
    if (e>=r) :
        print(r)
    else:
        print(e)
elif (e>t) :
    if (t>r) :
        print(r)
    else:
        print(t)
else:
    pass
0