結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー kou6839kou6839
提出日時 2014-11-30 20:11:34
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 471 bytes
コンパイル時間 1,912 ms
コンパイル使用メモリ 72,376 KB
実行使用メモリ 62,188 KB
最終ジャッジ日時 2023-09-02 00:57:05
合計ジャッジ時間 10,076 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 199 ms
59,040 KB
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 122 ms
53,824 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 AC 124 ms
56,176 KB
testcase_08 AC 121 ms
55,848 KB
testcase_09 AC 125 ms
55,976 KB
testcase_10 AC 124 ms
55,820 KB
testcase_11 WA -
testcase_12 AC 125 ms
55,992 KB
testcase_13 AC 124 ms
56,156 KB
testcase_14 AC 365 ms
60,128 KB
testcase_15 AC 285 ms
60,048 KB
testcase_16 AC 409 ms
60,472 KB
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 368 ms
60,368 KB
testcase_20 AC 444 ms
60,576 KB
testcase_21 AC 190 ms
58,684 KB
testcase_22 AC 319 ms
60,172 KB
testcase_23 WA -
testcase_24 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.math.BigInteger;
import java.util.*;
 
public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        int[] ans= new int[7];
        for(int i=0;i<n;i++){
        	int t= sc.nextInt();
        	ans[t]++;
        }
        int anss=0;
        for(int i=0;i<=5;i++){
        	if(ans[i]<=ans[i+1]) anss=i+1;
        }
        System.out.println(anss);
    }
}
0