結果
問題 |
No.504 ゲーム大会(ランキング)
|
ユーザー |
|
提出日時 | 2016-06-04 21:06:21 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 23 ms / 2,000 ms |
コード長 | 189 bytes |
コンパイル時間 | 630 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-08 08:07:12 |
合計ジャッジ時間 | 2,045 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 13 |
コンパイルメッセージ
main.c: In function ‘main’: main.c:5:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 5 | scanf("%d",&n); | ^~~~~~~~~~~~~~ main.c:8:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result] 8 | scanf("%d",&a[i]); | ^~~~~~~~~~~~~~~~~
ソースコード
#include <stdio.h> int main() { int n,r=1; scanf("%d",&n); int a[n]; for(int i=0; i<n; i++) { scanf("%d",&a[i]); if(a[0]<a[i]) r++; printf("%d\n",r); } return 0; }