結果

問題 No.3220 Forest Creation
コンテスト
ユーザー vjudge1
提出日時 2025-10-26 17:03:16
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 191 bytes
コンパイル時間 1,286 ms
コンパイル使用メモリ 162,016 KB
実行使用メモリ 7,724 KB
最終ジャッジ日時 2025-10-26 17:03:20
合計ジャッジ時間 3,096 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 2
other AC * 25 WA * 21
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:6:14: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    6 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
main.cpp:8:22: warning: ignoring return value of ‘int scanf(const char*, ...)’ declared with attribute ‘warn_unused_result’ [-Wunused-result]
    8 |                 scanf("%d",&a[i]);
      |                 ~~~~~^~~~~~~~~~~~

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;
int a[100010];
int main(){
	int n;
	scanf("%d",&n);
	for (int i=0;i<=n;i++){
		scanf("%d",&a[i]);
	}
	printf(a[1]%2?"No\n":"Yes\n");
	return 0;
}
0