結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
keisuke6
|
| 提出日時 | 2022-09-02 21:27:05 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 257 bytes |
| コンパイル時間 | 2,123 ms |
| コンパイル使用メモリ | 192,456 KB |
| 最終ジャッジ日時 | 2025-02-07 00:42:12 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 17 WA * 4 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
signed main(){
string S;
cin>>S;
int N = S.size();
int ans = 0;
for(int i=0;i<N;i++) ans += (S[i]-'0');
if(ans == 2 || N-ans == 2) cout<<"Yes"<<endl;
else cout<<"No"<<endl;
}
keisuke6