結果

問題 No.279 木の数え上げ
ユーザー 双六双六
提出日時 2020-07-27 03:34:53
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 471 bytes
コンパイル時間 453 ms
コンパイル使用メモリ 86,916 KB
実行使用メモリ 79,124 KB
最終ジャッジ日時 2023-09-11 05:36:36
合計ジャッジ時間 4,419 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 MLE -
testcase_01 MLE -
testcase_02 MLE -
testcase_03 MLE -
testcase_04 MLE -
testcase_05 MLE -
testcase_06 MLE -
testcase_07 MLE -
testcase_08 MLE -
testcase_09 MLE -
testcase_10 MLE -
testcase_11 MLE -
testcase_12 MLE -
testcase_13 MLE -
testcase_14 MLE -
testcase_15 MLE -
testcase_16 MLE -
testcase_17 MLE -
testcase_18 MLE -
testcase_19 MLE -
testcase_20 MLE -
権限があれば一括ダウンロードができます

ソースコード

diff #

# import sys; input = sys.stdin.buffer.readline
# sys.setrecursionlimit(10**7)
from collections import defaultdict
con = 10 ** 9 + 7; INF = float("inf")

def getlist():
	return list(map(int, input().split()))

#処理内容
def main():
	S = input()
	D = defaultdict(int)
	for i in S:
		if i == "t":
			D["t"] += 1
		elif i == "r":
			D["r"] += 1
		elif i == "e":
			D["e"] += 1

	ans = min(D["t"], D["r"], int(D["e"] // 2))
	print(ans)

if __name__ == '__main__':
	main()
0