結果
| 問題 |
No.279 木の数え上げ
|
| コンテスト | |
| ユーザー |
con
|
| 提出日時 | 2018-11-19 15:11:27 |
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
| 結果 |
AC
|
| 実行時間 | 102 ms / 2,000 ms |
| コード長 | 518 bytes |
| コンパイル時間 | 193 ms |
| コンパイル使用メモリ | 12,544 KB |
| 実行使用メモリ | 20,148 KB |
| 最終ジャッジ日時 | 2024-12-24 15:16:35 |
| 合計ジャッジ時間 | 2,877 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 21 |
ソースコード
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
con