結果

問題 No.79 過小評価ダメ・ゼッタイ
ユーザー rf141rf141
提出日時 2015-08-10 21:33:04
言語 Java21
(openjdk 21)
結果
AC  
実行時間 459 ms / 5,000 ms
コード長 493 bytes
コンパイル時間 3,974 ms
コンパイル使用メモリ 71,688 KB
実行使用メモリ 62,476 KB
最終ジャッジ日時 2023-09-08 14:36:14
合計ジャッジ時間 11,525 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 201 ms
59,112 KB
testcase_01 AC 459 ms
60,436 KB
testcase_02 AC 123 ms
55,724 KB
testcase_03 AC 126 ms
55,780 KB
testcase_04 AC 131 ms
55,820 KB
testcase_05 AC 437 ms
59,380 KB
testcase_06 AC 120 ms
55,816 KB
testcase_07 AC 120 ms
55,872 KB
testcase_08 AC 121 ms
56,280 KB
testcase_09 AC 121 ms
56,248 KB
testcase_10 AC 120 ms
55,952 KB
testcase_11 AC 121 ms
53,940 KB
testcase_12 AC 121 ms
56,132 KB
testcase_13 AC 120 ms
56,016 KB
testcase_14 AC 369 ms
60,396 KB
testcase_15 AC 291 ms
60,056 KB
testcase_16 AC 386 ms
60,132 KB
testcase_17 AC 278 ms
60,144 KB
testcase_18 AC 389 ms
60,756 KB
testcase_19 AC 359 ms
60,200 KB
testcase_20 AC 417 ms
60,168 KB
testcase_21 AC 189 ms
58,308 KB
testcase_22 AC 318 ms
60,056 KB
testcase_23 AC 431 ms
62,476 KB
testcase_24 AC 449 ms
60,420 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Evaluation{
    public static void main(String... args){
        Scanner scan = new Scanner(System.in);
        int N = scan.nextInt();
        int[] counts = new int[6];
        for(int i = 0; i < N; i++){
            counts[scan.nextInt() - 1]++;
        }
        int max = 0;
        for(int i = 0; i < 6; i++){
            if(counts[max] <= counts[i]){
                max = i;
            }
        }   
        System.out.println(max + 1);      
    }
}
0