結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-02-01 00:30:49 |
| 言語 | C++17 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 2 ms / 2,000 ms |
| + 592µs | |
| コード長 | 605 bytes |
| 記録 | |
| コンパイル時間 | 992 ms |
| コンパイル使用メモリ | 215,312 KB |
| 実行使用メモリ | 9,880 KB |
| 最終ジャッジ日時 | 2026-10-11 00:39:56 |
| 合計ジャッジ時間 | 2,555 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge4_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
string s;
cin >> s;
int cnt = 0;
for (char c : s)
if (c == '1') cnt++;
if (cnt == 1) {
cout << "No" << endl;
}
else if (cnt == 2) {
cout << "Yes" << endl;
}
else {
if (s.find("01") != string::npos) {
cout << "No" << endl;
}
else {
cout << "Yes" << endl;
}
}
return 0;
}
a01sa01to