結果
| 問題 |
No.79 過小評価ダメ・ゼッタイ
|
| コンテスト | |
| ユーザー |
kohaku_kohaku
|
| 提出日時 | 2016-11-11 05:23:52 |
| 言語 | Java (openjdk 23) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 593 bytes |
| コンパイル時間 | 1,953 ms |
| コンパイル使用メモリ | 74,216 KB |
| 実行使用メモリ | 59,156 KB |
| 最終ジャッジ日時 | 2024-11-25 07:53:00 |
| 合計ジャッジ時間 | 9,664 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 3 |
| other | WA * 22 |
ソースコード
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int [] L = new int [N];
int [] P = new int [6];
for(int i=0; i<N; i++){
L[i] = sc.nextInt();
P[L[i]-1]+=1;
}
int max = 0;
for(int j=0; j<6; j++){
if(max<P[j]){
max=P[j];
}
}
for(int j=0; j<6; j++){
if(max==P[5-j]){
System.out.println(P[5-j]+1);
}
}
}
}
kohaku_kohaku