結果
| 問題 |
No.290 1010
|
| コンテスト | |
| ユーザー |
hotpepsi
|
| 提出日時 | 2016-09-03 23:24:34 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 285 bytes |
| コンパイル時間 | 632 ms |
| コンパイル使用メモリ | 55,288 KB |
| 実行使用メモリ | 5,424 KB |
| 最終ジャッジ日時 | 2024-11-15 19:23:20 |
| 合計ジャッジ時間 | 1,736 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 24 |
ソースコード
#include <iostream>
using namespace std;
int main(int argc, char *argv[]) {
int N;
string s;
cin >> N >> s;
cout << s << endl;
string ans = "YES";
if (N <= 3 && s.find("00") == string::npos && s.find("11") == string::npos) {
ans = "NO";
}
cout << ans << endl;
return 0;
}
hotpepsi