結果

問題 No.504 ゲーム大会(ランキング)
ユーザー はむ吉🐹はむ吉🐹
提出日時 2017-04-29 13:02:53
言語 C
(gcc 12.3.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 27,748 KB
実行使用メモリ 4,352 KB
最終ジャッジ日時 2023-10-11 20:22:26
合計ジャッジ時間 1,488 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,348 KB
testcase_01 AC 0 ms
4,348 KB
testcase_02 AC 0 ms
4,348 KB
testcase_03 AC 0 ms
4,348 KB
testcase_04 AC 0 ms
4,348 KB
testcase_05 AC 1 ms
4,348 KB
testcase_06 AC 1 ms
4,348 KB
testcase_07 AC 24 ms
4,348 KB
testcase_08 AC 24 ms
4,352 KB
testcase_09 AC 24 ms
4,352 KB
testcase_10 AC 23 ms
4,352 KB
testcase_11 AC 23 ms
4,348 KB
testcase_12 AC 20 ms
4,352 KB
testcase_13 AC 19 ms
4,348 KB
testcase_14 AC 23 ms
4,352 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "inttypes.h"
#include "stdint.h"
#include "stdio.h"
#include "stdlib.h"


int main(int argc, char const *argv[]) {
    uint32_t n;
    scanf("%d", &n);
    int32_t pos = 1;
    printf("%d\n", pos);
    int32_t a0;
    scanf("%d", &a0);
    for (size_t i = 1; i < n; i++){
        int32_t a;
        scanf("%d", &a);
        if (a > a0) {
            pos++;
        }
        printf("%d\n", pos);
    }
    return EXIT_SUCCESS;
}
0