結果

問題 No.279 木の数え上げ
ユーザー mits58mits58
提出日時 2016-06-05 17:27:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 311 ms / 2,000 ms
コード長 368 bytes
コンパイル時間 2,289 ms
コンパイル使用メモリ 74,076 KB
実行使用メモリ 45,820 KB
最終ジャッジ日時 2024-04-22 16:20:47
合計ジャッジ時間 7,670 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,400 KB
testcase_01 AC 128 ms
41,396 KB
testcase_02 AC 127 ms
41,152 KB
testcase_03 AC 128 ms
41,136 KB
testcase_04 AC 124 ms
40,960 KB
testcase_05 AC 127 ms
40,952 KB
testcase_06 AC 127 ms
41,036 KB
testcase_07 AC 127 ms
40,976 KB
testcase_08 AC 127 ms
41,172 KB
testcase_09 AC 125 ms
41,012 KB
testcase_10 AC 311 ms
45,676 KB
testcase_11 AC 218 ms
42,780 KB
testcase_12 AC 272 ms
45,268 KB
testcase_13 AC 197 ms
41,944 KB
testcase_14 AC 299 ms
45,420 KB
testcase_15 AC 278 ms
45,236 KB
testcase_16 AC 273 ms
45,436 KB
testcase_17 AC 306 ms
45,652 KB
testcase_18 AC 256 ms
44,184 KB
testcase_19 AC 309 ms
45,820 KB
testcase_20 AC 283 ms
45,660 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main{
	public static void main(String args[]){
		Scanner sc=new Scanner(System.in);
		while(sc.hasNext()){
			char[] a=new char['z'-'a'+1];
			String str=sc.next();
			for(int i=0;i<str.length();i++) a[str.charAt(i)-'a']++;
			int res=Math.min(Math.min(a['t'-'a'],a['r'-'a']), a['e'-'a']/2);
			System.out.println(res);
		}
	}
}
0