結果
問題 | No.279 木の数え上げ |
ユーザー | shinwisteria |
提出日時 | 2018-02-21 22:30:42 |
言語 | Java21 (openjdk 21) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 462 bytes |
コンパイル時間 | 4,454 ms |
コンパイル使用メモリ | 75,196 KB |
実行使用メモリ | 65,268 KB |
最終ジャッジ日時 | 2023-10-19 23:52:48 |
合計ジャッジ時間 | 10,903 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 161 ms
57,184 KB |
testcase_01 | AC | 149 ms
57,104 KB |
testcase_02 | AC | 142 ms
57,176 KB |
testcase_03 | AC | 142 ms
55,140 KB |
testcase_04 | AC | 140 ms
55,296 KB |
testcase_05 | AC | 139 ms
57,196 KB |
testcase_06 | AC | 142 ms
57,116 KB |
testcase_07 | AC | 138 ms
57,664 KB |
testcase_08 | AC | 154 ms
57,240 KB |
testcase_09 | AC | 143 ms
57,220 KB |
testcase_10 | MLE | - |
testcase_11 | AC | 274 ms
60,384 KB |
testcase_12 | MLE | - |
testcase_13 | AC | 238 ms
58,424 KB |
testcase_14 | MLE | - |
testcase_15 | MLE | - |
testcase_16 | MLE | - |
testcase_17 | MLE | - |
testcase_18 | AC | 333 ms
63,112 KB |
testcase_19 | MLE | - |
testcase_20 | MLE | - |
ソースコード
package m.shin; import java.util.Scanner; public class Con279 { public static void main(String[] args) { Scanner s = new Scanner(System.in); StringBuilder sb = new StringBuilder(s.nextLine()); s.close(); int t = 0,r = 0,e = 0; for(int i = 0;i < sb.length();i++){ switch(sb.charAt(i)){ case 't':t++; break; case 'r':r++; break; case 'e':e++; break; } } e = e / 2; System.out.println(Math.min(t, Math.min(r, e))); } }