結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-09-24 20:49:31 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 44 ms / 2,000 ms |
| コード長 | 268 bytes |
| コンパイル時間 | 168 ms |
| コンパイル使用メモリ | 82,288 KB |
| 実行使用メモリ | 58,752 KB |
| 最終ジャッジ日時 | 2024-12-22 12:34:18 |
| 合計ジャッジ時間 | 2,035 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
N = input()
c = N.count('1')
if c==1:
print('No')
elif c==2:
print('Yes')
else:
N = '0'+N
run = 0
for i in range(len(N)-1):
if N[i:i+2]=='01':
run += 1
if run==1:
print('Yes')
else:
print('No')