結果

問題 No.279 木の数え上げ
ユーザー fal_rndfal_rnd
提出日時 2017-07-18 23:48:45
言語 Java21
(openjdk 21)
結果
AC  
実行時間 274 ms / 2,000 ms
コード長 249 bytes
コンパイル時間 1,767 ms
コンパイル使用メモリ 75,184 KB
実行使用メモリ 47,160 KB
最終ジャッジ日時 2024-04-17 02:05:14
合計ジャッジ時間 6,400 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
41,316 KB
testcase_01 AC 102 ms
41,548 KB
testcase_02 AC 109 ms
41,156 KB
testcase_03 AC 111 ms
41,316 KB
testcase_04 AC 95 ms
41,180 KB
testcase_05 AC 110 ms
41,256 KB
testcase_06 AC 101 ms
41,376 KB
testcase_07 AC 103 ms
41,132 KB
testcase_08 AC 107 ms
41,500 KB
testcase_09 AC 99 ms
41,356 KB
testcase_10 AC 265 ms
47,108 KB
testcase_11 AC 192 ms
43,256 KB
testcase_12 AC 237 ms
46,480 KB
testcase_13 AC 180 ms
42,292 KB
testcase_14 AC 267 ms
47,160 KB
testcase_15 AC 246 ms
46,832 KB
testcase_16 AC 245 ms
46,724 KB
testcase_17 AC 270 ms
47,096 KB
testcase_18 AC 222 ms
45,256 KB
testcase_19 AC 274 ms
46,760 KB
testcase_20 AC 261 ms
47,000 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class C{
	public static void main(String[]$){
		int t=0,r=0,e=0;
		for(char c:new java.util.Scanner(System.in).next().toCharArray()) {
			if(c=='t')++t;
			if(c=='r')++r;
			if(c=='e')++e;
		}
		System.out.println(Math.min(Math.min(t,r),e/2));
	}
}
0