結果

問題 No.290 1010
ユーザー chuka231
提出日時 2015-10-16 22:41:05
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 241 bytes
コンパイル時間 497 ms
コンパイル使用メモリ 56,820 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-21 19:50:08
合計ジャッジ時間 1,501 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 6 WA * 18
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <cstring>
using namespace std;

int main()
{
	int n;
	string s;

	cin >> n >> s;

	if (n < 2 || s == "101" || "010") {
		cout << "NO" << endl;
	}
	else{
		cout << "YES" << endl;
	}

	return 0;
}
0