結果

問題 No.279 木の数え上げ
ユーザー vorg101vorg101
提出日時 2016-06-22 22:44:57
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
WA  
実行時間 -
コード長 148 bytes
コンパイル時間 79 ms
コンパイル使用メモリ 12,544 KB
実行使用メモリ 13,440 KB
最終ジャッジ日時 2024-04-20 00:36:39
合計ジャッジ時間 2,660 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 25 ms
10,496 KB
testcase_01 AC 25 ms
10,368 KB
testcase_02 AC 25 ms
10,496 KB
testcase_03 WA -
testcase_04 AC 25 ms
10,496 KB
testcase_05 AC 25 ms
10,496 KB
testcase_06 AC 24 ms
10,496 KB
testcase_07 AC 25 ms
10,496 KB
testcase_08 AC 24 ms
10,496 KB
testcase_09 AC 25 ms
10,496 KB
testcase_10 AC 138 ms
13,184 KB
testcase_11 AC 54 ms
11,008 KB
testcase_12 AC 101 ms
11,900 KB
testcase_13 AC 41 ms
10,880 KB
testcase_14 AC 163 ms
13,440 KB
testcase_15 AC 124 ms
12,152 KB
testcase_16 AC 118 ms
12,152 KB
testcase_17 AC 144 ms
13,312 KB
testcase_18 AC 82 ms
11,648 KB
testcase_19 AC 139 ms
13,184 KB
testcase_20 AC 155 ms
12,408 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

cntTR = 0
cntE = 0
for c in input():
    if c == 't' or c == 'r':
        cntTR += 1
    if c == 'e':
        cntE += 1
print(min(cntTR, cntE) // 2)
0