結果
| 問題 |
No.2063 ±2^k operations (easy)
|
| コンテスト | |
| ユーザー |
gr1msl3y
|
| 提出日時 | 2022-09-02 21:25:32 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 42 ms / 2,000 ms |
| コード長 | 210 bytes |
| コンパイル時間 | 311 ms |
| コンパイル使用メモリ | 82,240 KB |
| 実行使用メモリ | 58,180 KB |
| 最終ジャッジ日時 | 2024-11-16 02:14:39 |
| 合計ジャッジ時間 | 2,027 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 21 |
ソースコード
N = input()
ct1 = N.count('1')
if ct1 == 2:
print('Yes')
exit()
elif ct1 == 1:
print('No')
exit()
ind = 0
while ind < len(N) and N[ind] == '1':
ind += 1
print('Yes' if ind == ct1 else 'No')
gr1msl3y