結果
問題 | No.279 木の数え上げ |
ユーザー | samplelpmas |
提出日時 | 2016-12-17 09:45:51 |
言語 | Java21 (openjdk 21) |
結果 |
MLE
(最新)
AC
(最初)
|
実行時間 | - |
コード長 | 490 bytes |
コンパイル時間 | 3,956 ms |
コンパイル使用メモリ | 71,668 KB |
実行使用メモリ | 65,588 KB |
最終ジャッジ日時 | 2023-08-20 21:45:01 |
合計ジャッジ時間 | 9,568 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge13 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 121 ms
54,136 KB |
testcase_01 | AC | 124 ms
55,696 KB |
testcase_02 | AC | 122 ms
55,656 KB |
testcase_03 | AC | 121 ms
55,784 KB |
testcase_04 | AC | 121 ms
55,664 KB |
testcase_05 | AC | 120 ms
55,388 KB |
testcase_06 | AC | 120 ms
55,776 KB |
testcase_07 | AC | 121 ms
55,652 KB |
testcase_08 | AC | 122 ms
55,660 KB |
testcase_09 | AC | 119 ms
55,824 KB |
testcase_10 | AC | 298 ms
61,152 KB |
testcase_11 | AC | 206 ms
58,400 KB |
testcase_12 | AC | 258 ms
62,888 KB |
testcase_13 | AC | 197 ms
56,360 KB |
testcase_14 | AC | 295 ms
63,412 KB |
testcase_15 | MLE | - |
testcase_16 | MLE | - |
testcase_17 | AC | 267 ms
62,956 KB |
testcase_18 | AC | 237 ms
59,228 KB |
testcase_19 | MLE | - |
testcase_20 | AC | 299 ms
63,312 KB |
ソースコード
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] INPUT_STRING = sc.next().toCharArray(); int[] charCount = new int[123]; for (int i = 0; i < INPUT_STRING.length; i++) { charCount[INPUT_STRING[i]]++; } int treeMax = Math.min(Math.min(charCount['t'], charCount['r']), (charCount['e'] / 2)); System.out.println(treeMax); } }