結果

問題 No.279 木の数え上げ
ユーザー kutsutamakutsutama
提出日時 2018-12-20 12:52:39
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 150 ms / 2,000 ms
コード長 141 bytes
コンパイル時間 835 ms
コンパイル使用メモリ 11,704 KB
実行使用メモリ 11,820 KB
最終ジャッジ日時 2023-10-26 00:53:23
合計ジャッジ時間 2,606 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 29 ms
9,888 KB
testcase_01 AC 29 ms
9,884 KB
testcase_02 AC 29 ms
9,888 KB
testcase_03 AC 28 ms
9,884 KB
testcase_04 AC 29 ms
9,884 KB
testcase_05 AC 30 ms
9,888 KB
testcase_06 AC 29 ms
9,884 KB
testcase_07 AC 28 ms
9,884 KB
testcase_08 AC 29 ms
9,888 KB
testcase_09 AC 29 ms
9,884 KB
testcase_10 AC 140 ms
11,616 KB
testcase_11 AC 54 ms
10,260 KB
testcase_12 AC 107 ms
11,128 KB
testcase_13 AC 44 ms
10,032 KB
testcase_14 AC 150 ms
11,820 KB
testcase_15 AC 126 ms
11,576 KB
testcase_16 AC 119 ms
11,336 KB
testcase_17 AC 146 ms
11,704 KB
testcase_18 AC 85 ms
10,804 KB
testcase_19 AC 143 ms
11,664 KB
testcase_20 AC 149 ms
11,784 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

s = input()

cnt = {'e':0, 'r':0, 't':0}
for c in s:
  if c in cnt:
    cnt[c] += 1
res = min(cnt['e'] // 2, cnt['r'], cnt['t'])

print(res)
0