結果

問題 No.504 ゲーム大会(ランキング)
ユーザー kzyKTkzyKT
提出日時 2016-06-04 20:25:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 1,231 ms / 2,000 ms
コード長 399 bytes
コンパイル時間 2,222 ms
コンパイル使用メモリ 74,028 KB
実行使用メモリ 58,312 KB
最終ジャッジ日時 2024-04-17 05:13:34
合計ジャッジ時間 13,512 ms
ジャッジサーバーID
(参考情報)
judge1 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
41,380 KB
testcase_01 AC 130 ms
41,552 KB
testcase_02 AC 133 ms
41,236 KB
testcase_03 AC 132 ms
41,384 KB
testcase_04 AC 135 ms
41,248 KB
testcase_05 AC 135 ms
41,264 KB
testcase_06 AC 131 ms
41,396 KB
testcase_07 AC 1,199 ms
57,984 KB
testcase_08 AC 1,231 ms
58,080 KB
testcase_09 AC 1,177 ms
58,312 KB
testcase_10 AC 1,134 ms
58,036 KB
testcase_11 AC 1,140 ms
58,036 KB
testcase_12 AC 1,106 ms
57,564 KB
testcase_13 AC 1,077 ms
58,292 KB
testcase_14 AC 1,157 ms
58,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.*;
import java.lang.*;
import java.util.*;
import java.math.*;

public class Main {
    static Scanner cin = new Scanner(System.in);
    public static void main(String[] args) {
        int r=1,n=cin.nextInt(),x=0;
        for(int i=0; i<n; i++) {
            int y=cin.nextInt();
            if(i==0) x=y;
            if(x<y) r++;
            System.out.println(r);
        }
    }
}
0