結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
![]() |
提出日時 | 2017-04-21 22:45:08 |
言語 | Java (openjdk 23) |
結果 |
AC
|
実行時間 | 1,245 ms / 2,000 ms |
コード長 | 423 bytes |
コンパイル時間 | 3,403 ms |
コンパイル使用メモリ | 74,240 KB |
実行使用メモリ | 69,404 KB |
最終ジャッジ日時 | 2024-07-20 05:35:05 |
合計ジャッジ時間 | 15,210 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
ソースコード
package javacode;import java.util.Scanner;public class yukicoder01 {public static void main(String args[]){Scanner cin = new Scanner(System.in);int target = cin.nextInt();long score = cin.nextLong();int rank = 1;long tmp;System.out.println(rank);for(int i=0;i<target-1;i++){tmp = cin.nextLong();if(tmp>score){rank++;}System.out.println(rank);}}}