結果
| 問題 | No.504 ゲーム大会(ランキング) | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2017-05-01 10:28:34 | 
| 言語 | C90 (gcc 12.3.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 24 ms / 2,000 ms | 
| コード長 | 228 bytes | 
| コンパイル時間 | 277 ms | 
| コンパイル使用メモリ | 22,144 KB | 
| 実行使用メモリ | 5,376 KB | 
| 最終ジャッジ日時 | 2024-09-14 01:49:36 | 
| 合計ジャッジ時間 | 1,480 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge6 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 13 | 
コンパイルメッセージ
main.c: In function ‘main’:
main.c:6:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%lld",&n);
      |         ^~~~~~~~~~~~~~~~
main.c:7:9: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    7 |         scanf("%lld",&s);
      |         ^~~~~~~~~~~~~~~~
main.c:10:17: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
   10 |                 scanf("%lld",&p);
      |                 ^~~~~~~~~~~~~~~~
            
            ソースコード
#include <stdio.h>
#include <math.h>
int main(){
	long long n,s,r=1,p,i;
	scanf("%lld",&n);
	scanf("%lld",&s);
	printf("1\n");
	for(i = 2;i <= n;i++){
		scanf("%lld",&p);
		if(s < p){r++;}
		printf("%lld\n",r);
	}
	return 0;
}
            
            
            
        