結果

問題 No.504 ゲーム大会(ランキング)
ユーザー funakoshi
提出日時 2019-08-27 15:34:21
言語 C
(gcc 13.3.0)
結果
RE  
実行時間 -
コード長 431 bytes
コンパイル時間 176 ms
コンパイル使用メモリ 29,696 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-15 19:56:01
合計ジャッジ時間 2,942 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 5 RE * 8
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <stdbool.h>
#include <math.h>
int main(void)
{
    int point[100]={0};
    int krank=1,totalplayer;
    scanf("%d",&totalplayer);
    scanf("%d",&point[0]);
    for(int i=1;i<totalplayer;i++)
    {
        printf("%d\n",krank);
        scanf("%d",&point[i]);
        if(point[0]<point[i])
        {
            krank++;
        }
    }
    printf("%d\n",krank);
}
0