結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
![]() |
提出日時 | 2017-06-11 17:07:52 |
言語 | Java (openjdk 23) |
結果 |
WA
|
実行時間 | - |
コード長 | 745 bytes |
コンパイル時間 | 3,416 ms |
コンパイル使用メモリ | 75,420 KB |
実行使用メモリ | 68,644 KB |
最終ジャッジ日時 | 2024-09-24 16:22:22 |
合計ジャッジ時間 | 10,127 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 2 |
other | WA * 13 |
ソースコード
/*No.504 ゲーム大会(ランキング)*/ import java.io.*; public class No504{ public static void main(String[] args) { try(BufferedReader input =new BufferedReader(new InputStreamReader(System.in))){ int player=Integer.parseInt(input.readLine()); Integer score[] = new Integer [player-1]; int K_score=Integer.parseInt(input.readLine());; int Rank=1; /*long t0=System.currentTimeMillis();*/ for(int i=0;i<score.length;i++){ score[i]=Integer.parseInt(input.readLine()); } /*System.out.println((System.currentTimeMillis()-t0)/1000+"秒");*/ for(int j=0;j<score.length;j++){ if(K_score<score[j]){ Rank+=1; } System.out.println(Rank); } }catch(Exception e){ e.printStackTrace(); } } }