結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-25 15:04:42 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 39 ms / 2,000 ms |
| コード長 | 217 bytes |
| コンパイル時間 | 232 ms |
| コンパイル使用メモリ | 82,532 KB |
| 実行使用メモリ | 52,864 KB |
| 最終ジャッジ日時 | 2024-07-02 13:24:19 |
| 合計ジャッジ時間 | 1,950 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
def main():
s = input().strip()
ones = s.count('1')
if (len(s) > 1 and s.count('1') > 1 and s.startswith('1' * s.count('1'))) or s.count('1') == 2:
print("Yes")
else:
print("No")
main()