結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
umashika
|
| 提出日時 | 2016-02-24 22:03:32 |
| 言語 | C90 (gcc 12.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 228 bytes |
| コンパイル時間 | 957 ms |
| コンパイル使用メモリ | 20,608 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-22 13:24:33 |
| 合計ジャッジ時間 | 888 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 6 |
コンパイルメッセージ
main.c: In function ‘main’:
main.c:7:11: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=]
7 | scanf("%d",&n);
| ~^ ~~
| | |
| | long int *
| int *
| %ld
main.c:9:13: warning: format ‘%d’ expects argument of type ‘int *’, but argument 2 has type ‘long int *’ [-Wformat=]
9 | scanf("%d",&x[i]);
| ~^ ~~~~~
| | |
| | long int *
| int *
| %ld
main.c:7:3: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
7 | scanf("%d",&n);
| ^~~~~~~~~~~~~~
main.c:9:5: warning: ignoring return value of ‘scanf’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d",&x[i]);
| ^~~~~~~~~~~~~~~~~
ソースコード
#include<stdio.h>
int main()
{
long int n;
long int x[100000];
long int i;
scanf("%d",&n);
for(i=0;i<n;i++){
scanf("%d",&x[i]);
}
if(n%2==0){
printf("1\n");
}
else{
printf("0\n");
}
return 0;
}
umashika