結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー shinwisteriashinwisteria
提出日時 2018-03-04 14:30:17
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 390 bytes
コンパイル時間 4,235 ms
コンパイル使用メモリ 71,568 KB
実行使用メモリ 60,912 KB
最終ジャッジ日時 2023-09-21 23:59:59
合計ジャッジ時間 11,617 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 211 ms
59,348 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 126 ms
55,828 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 127 ms
55,420 KB
testcase_08 AC 127 ms
55,576 KB
testcase_09 AC 127 ms
55,976 KB
testcase_10 AC 128 ms
55,824 KB
testcase_11 WA -
testcase_12 AC 125 ms
55,656 KB
testcase_13 AC 129 ms
55,812 KB
testcase_14 AC 382 ms
60,664 KB
testcase_15 AC 274 ms
58,064 KB
testcase_16 AC 416 ms
60,348 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 383 ms
60,364 KB
testcase_20 AC 473 ms
60,256 KB
testcase_21 AC 195 ms
58,580 KB
testcase_22 AC 319 ms
60,072 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

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 = 1;
		for(int i = 1;i < 6;i++){
			if(l[i] >= l[i-1]){
				Level = i+1;
			}
		}
		System.out.println(Level);

	}

}
0