結果
| 問題 |
No.99 ジャンピング駒
|
| コンテスト | |
| ユーザー |
HiroakiSoftware
|
| 提出日時 | 2014-12-09 23:44:52 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 259 bytes |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 22,144 KB |
| 実行使用メモリ | 6,948 KB |
| 最終ジャッジ日時 | 2024-06-11 19:04:58 |
| 合計ジャッジ時間 | 862 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 WA * 4 |
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:9:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
9 | scanf("%d", &N);
| ~~~~~^~~~~~~~~~
main.cpp:11:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
11 | scanf("%d", &d);
| ~~~~~^~~~~~~~~~
ソースコード
/*
yukicoder No.99 ジャンピング駒
解答者:ヒロソフ(HiroakiSoftware)
*/
#include <stdio.h>
int main(void) {
int N;
int d;
scanf("%d", &N);
for (int i = 0; i < N; i++) {
scanf("%d", &d);
}
printf("%d\n", N % 2);
return 0;
}
HiroakiSoftware