結果
問題 | No.2063 ±2^k operations (easy) |
ユーザー | aaaaaaaaaa2230 |
提出日時 | 2022-09-02 22:02:56 |
言語 | PyPy3 (7.3.15) |
結果 |
AC
|
実行時間 | 49 ms / 2,000 ms |
コード長 | 242 bytes |
コンパイル時間 | 372 ms |
コンパイル使用メモリ | 82,072 KB |
実行使用メモリ | 71,552 KB |
最終ジャッジ日時 | 2024-11-16 03:30:32 |
合計ジャッジ時間 | 2,314 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
n = input() c = n.count("1") if c == 1: print("No") elif c == 2: print("Yes") else: num = 0 for a,na in zip(n,n[1:]): if a != na: num += 1 if num <= 1: print("Yes") else: print("No")