結果
問題 |
No.79 過小評価ダメ・ゼッタイ
|
ユーザー |
![]() |
提出日時 | 2014-11-30 20:11:34 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 471 bytes |
コンパイル時間 | 2,196 ms |
コンパイル使用メモリ | 74,744 KB |
実行使用メモリ | 48,080 KB |
最終ジャッジ日時 | 2024-06-11 07:26:43 |
合計ジャッジ時間 | 9,867 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 14 WA * 8 |
ソースコード
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); } }