結果

問題 No.279 木の数え上げ
ユーザー bellangeldindonbellangeldindon
提出日時 2017-06-03 14:03:32
言語 Python2
(2.7.18)
結果
AC  
実行時間 297 ms / 2,000 ms
コード長 239 bytes
コンパイル時間 90 ms
コンパイル使用メモリ 7,124 KB
実行使用メモリ 38,976 KB
最終ジャッジ日時 2023-10-22 02:57:15
合計ジャッジ時間 3,578 ms
ジャッジサーバーID
(参考情報)
judge10 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 11 ms
6,412 KB
testcase_01 AC 11 ms
6,412 KB
testcase_02 AC 11 ms
6,412 KB
testcase_03 AC 11 ms
6,412 KB
testcase_04 AC 11 ms
6,412 KB
testcase_05 AC 11 ms
6,412 KB
testcase_06 AC 12 ms
6,412 KB
testcase_07 AC 11 ms
6,412 KB
testcase_08 AC 12 ms
6,412 KB
testcase_09 AC 11 ms
6,412 KB
testcase_10 AC 275 ms
36,688 KB
testcase_11 AC 69 ms
12,792 KB
testcase_12 AC 194 ms
26,872 KB
testcase_13 AC 43 ms
9,912 KB
testcase_14 AC 297 ms
38,976 KB
testcase_15 AC 247 ms
33,328 KB
testcase_16 AC 226 ms
30,880 KB
testcase_17 AC 277 ms
36,800 KB
testcase_18 AC 149 ms
21,972 KB
testcase_19 AC 271 ms
36,052 KB
testcase_20 AC 291 ms
38,428 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def smaller(x, y):
	if x < y:
		return x
	else:
		return y

s = raw_input()
t = 0
r = 0
e = 0

for i in range(0, len(s)):
	if s[i] == 't':
		t += 1
	elif s[i] == 'r':
		r += 1
	elif s[i] == 'e':
		e += 1

print smaller(smaller(t, r), e/2)
0