結果
| 問題 | No.79 過小評価ダメ・ゼッタイ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-01-14 16:04:42 |
| 言語 | Java (openjdk 25.0.2) |
| 結果 |
AC
|
| 実行時間 | 103 ms / 5,000 ms |
| コード長 | 702 bytes |
| 記録 | |
| コンパイル時間 | 2,856 ms |
| コンパイル使用メモリ | 81,300 KB |
| 実行使用メモリ | 50,000 KB |
| 最終ジャッジ日時 | 2026-03-13 00:18:04 |
| 合計ジャッジ時間 | 4,818 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
package me.yukicoder.lv1;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class No0082 {
public static void main(String[] args) {
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
int N = Integer.parseInt(br.readLine());
String[] L = br.readLine().split(" ");
int[] level = new int[6];
for (String s : L) {
level[Integer.parseInt(s) - 1]++;
}
int max = 0;
int maxCnt = 0;
for (int i = 0; i < level.length; i++) {
if (max <= level[i]) {
max = level[i];
maxCnt = i + 1;
}
}
System.out.println(maxCnt);
} catch (IOException e) {
e.printStackTrace();
}
}
}