結果
問題 | No.79 過小評価ダメ・ゼッタイ |
ユーザー | muston |
提出日時 | 2016-06-01 15:42:59 |
言語 | Java21 (openjdk 21) |
結果 |
WA
|
実行時間 | - |
コード長 | 682 bytes |
コンパイル時間 | 3,260 ms |
コンパイル使用メモリ | 74,628 KB |
実行使用メモリ | 59,472 KB |
最終ジャッジ日時 | 2024-04-16 22:26:32 |
合計ジャッジ時間 | 12,031 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | AC | 131 ms
40,932 KB |
testcase_03 | AC | 129 ms
41,492 KB |
testcase_04 | WA | - |
testcase_05 | AC | 519 ms
48,228 KB |
testcase_06 | AC | 116 ms
40,176 KB |
testcase_07 | AC | 131 ms
41,664 KB |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | AC | 131 ms
41,404 KB |
testcase_11 | AC | 115 ms
39,872 KB |
testcase_12 | WA | - |
testcase_13 | AC | 131 ms
41,256 KB |
testcase_14 | WA | - |
testcase_15 | AC | 293 ms
47,840 KB |
testcase_16 | WA | - |
testcase_17 | WA | - |
testcase_18 | WA | - |
testcase_19 | AC | 425 ms
47,976 KB |
testcase_20 | AC | 541 ms
48,088 KB |
testcase_21 | WA | - |
testcase_22 | WA | - |
testcase_23 | WA | - |
testcase_24 | WA | - |
ソースコード
import java.util.Scanner; /** * * @author * No.79 */ public class No79 { public static void main(String[] args) { Scanner scan = new Scanner(System.in); //評価した人数 int[] n = new int[scan.nextInt()]; //評価レベルの数 int[] levelCount = new int[6]; //最終的な評価レベル int level = 0; //評価する for(int i=0;i<n.length;i++){ n[i] = scan.nextInt(); } //同じ評価の数を数えていく for(int i=0;i<n.length;i++){ levelCount[n[i]-1]++; } //評価レベルの多いものを出す for(int i=0;i<levelCount.length;i++){ if(level<=levelCount[i]){ level = i+1; } } System.out.println(level); } }