結果

問題 No.2063 ±2^k operations (easy)
ユーザー keisuke6
提出日時 2022-09-02 21:26:24
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 257 bytes
コンパイル時間 2,123 ms
コンパイル使用メモリ 192,488 KB
最終ジャッジ日時 2025-02-07 00:41:09
ジャッジサーバーID
(参考情報)
judge3 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1 WA * 2
other AC * 11 WA * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0