結果

問題 No.3220 Forest Creation
コンテスト
ユーザー vjudge1
提出日時 2025-10-26 16:53:20
言語 C++17(gcc12)
(gcc 12.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 286 bytes
コンパイル時間 5,621 ms
コンパイル使用メモリ 209,004 KB
実行使用メモリ 7,724 KB
最終ジャッジ日時 2025-10-26 16:53:28
合計ジャッジ時間 6,661 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 25 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
int b[100005];
int main()
{
	int n;
	cin>>n;
	int a[n+1];
	for(int i=0;i<=n;i++)cin>>a[i];
//	while(1)
//	{
		for(int i=1;i<n;i++)
		{
			if((a[i]+a[i+1])%2==1)
			{
				cout<<"No\n";
				return 0;
			}
		}
//	}
	cout<<"Yes\n"; 
	return 0;
}
0