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