結果

問題 No.504 ゲーム大会(ランキング)
ユーザー はむ吉🐹
提出日時 2017-04-29 13:02:53
言語 C
(gcc 13.3.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 438 bytes
コンパイル時間 422 ms
コンパイル使用メモリ 28,672 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-09-13 19:13:28
合計ジャッジ時間 1,370 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

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