結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー shinwisteriashinwisteria
提出日時 2018-03-04 15:28:22
言語 Java21
(openjdk 21)
結果
AC  
実行時間 455 ms / 5,000 ms
コード長 392 bytes
コンパイル時間 3,124 ms
コンパイル使用メモリ 72,184 KB
実行使用メモリ 60,708 KB
最終ジャッジ日時 2023-09-08 15:22:03
合計ジャッジ時間 10,867 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 201 ms
58,488 KB
testcase_01 AC 436 ms
60,280 KB
testcase_02 AC 124 ms
55,780 KB
testcase_03 AC 121 ms
56,316 KB
testcase_04 AC 121 ms
56,020 KB
testcase_05 AC 441 ms
60,240 KB
testcase_06 AC 127 ms
55,732 KB
testcase_07 AC 125 ms
55,964 KB
testcase_08 AC 124 ms
56,360 KB
testcase_09 AC 123 ms
55,880 KB
testcase_10 AC 123 ms
56,320 KB
testcase_11 AC 125 ms
56,012 KB
testcase_12 AC 122 ms
56,360 KB
testcase_13 AC 123 ms
55,908 KB
testcase_14 AC 404 ms
60,172 KB
testcase_15 AC 284 ms
60,460 KB
testcase_16 AC 414 ms
60,544 KB
testcase_17 AC 284 ms
60,152 KB
testcase_18 AC 398 ms
60,156 KB
testcase_19 AC 359 ms
60,648 KB
testcase_20 AC 455 ms
60,424 KB
testcase_21 AC 188 ms
58,768 KB
testcase_22 AC 319 ms
60,228 KB
testcase_23 AC 434 ms
60,708 KB
testcase_24 AC 446 ms
60,324 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

package m.shin;
import java.util.Scanner;
public class Con79 {

	public static void main(String[] args) {
		Scanner s = new Scanner(System.in);
		int N = s.nextInt();
		int[] l = new int[6];
		for(int i = 0;i < N;i++){
			l[s.nextInt()-1]++;
		}
		s.close();

		int Level = 0;
		for(int i = 0;i < 6;i++){
			if(l[i] >= l[Level]){
				Level = i;
			}
		}
		System.out.println(Level+1);

	}

}
0