結果
問題 | No.279 木の数え上げ |
ユーザー |
|
提出日時 | 2015-10-03 18:27:30 |
言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) |
結果 |
AC
|
実行時間 | 286 ms / 2,000 ms |
コード長 | 252 bytes |
コンパイル時間 | 152 ms |
コンパイル使用メモリ | 12,544 KB |
実行使用メモリ | 13,312 KB |
最終ジャッジ日時 | 2024-10-14 15:14:55 |
合計ジャッジ時間 | 3,749 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 21 |
ソースコード
#coding=UTF-8 #並び換えが出来るのなら楽なはず S=input() hindo={'t':0,'r':0,'e':0} for moji in S: hindo[moji]= (hindo[moji] if moji in hindo else 0)+1 print(min(hindo['t'],hindo['r'],hindo['e']//2))#eは2個必要なことに注意