結果
問題 | No.290 1010 |
ユーザー |
![]() |
提出日時 | 2015-10-16 23:54:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 20 ms / 5,000 ms |
コード長 | 553 bytes |
コンパイル時間 | 1,007 ms |
コンパイル使用メモリ | 68,896 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-22 06:38:17 |
合計ジャッジ時間 | 1,848 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 24 |
ソースコード
#include<iostream> #include<vector> #include<set> #include<map> #include<list> #include<stack> #include<queue> #include<bitset> #include<array> #include<algorithm> #include<cstdio> #include<string> #include<cstdlib> #include<numeric> #define D long long #define U unsigned using namespace std; D n, m,a, b, d, e, x, y, z; D i, j, k; char c,f; string s; D ans; int main() { D t; cin >>a>>s; if (s == "010" || s == "101" || s == "01" || s == "10" || s == "0" || s == "1") cout << "NO" << endl; else cout << "YES" << endl; }