結果
問題 | No.504 ゲーム大会(ランキング) |
ユーザー |
|
提出日時 | 2016-06-04 21:06:48 |
言語 | C90 (gcc 12.3.0) |
結果 |
AC
|
実行時間 | 24 ms / 2,000 ms |
コード長 | 186 bytes |
コンパイル時間 | 424 ms |
コンパイル使用メモリ | 20,608 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-08 16:32:23 |
合計ジャッジ時間 | 1,553 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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,i;scanf("%d",&n);int a[n];for(i=0; i<n; i++) {scanf("%d",&a[i]);if(a[0]<a[i]) r++;printf("%d\n",r);}return 0;}