結果
問題 | No.2063 ±2^k operations (easy) |
ユーザー |
![]() |
提出日時 | 2022-09-08 20:34:02 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 223 bytes |
コンパイル時間 | 1,684 ms |
コンパイル使用メモリ | 166,092 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-24 16:10:27 |
合計ジャッジ時間 | 2,495 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 14 WA * 7 |
ソースコード
#include <bits/stdc++.h>using namespace std;int main() {string s;cin >> s;int cnt = 0;for (int i = 0; i < s.size(); i++) {cnt += s[i] == '1';}cout << (cnt <= 2 ? "Yes" : "No") << endl;return 0;}