結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
tamato
|
| 提出日時 | 2022-09-02 21:23:41 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 28 ms / 2,000 ms |
| + 293µs | |
| コード長 | 496 bytes |
| 記録 | |
| コンパイル時間 | 63 ms |
| コンパイル使用メモリ | 82,760 KB |
| 実行使用メモリ | 66,064 KB |
| 最終ジャッジ日時 | 2026-10-11 00:10:04 |
| 合計ジャッジ時間 | 2,001 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
mod = 998244353
def main():
import sys
input = sys.stdin.readline
N = input().rstrip('\n')
x = N.count("1")
if x == 1:
print("No")
elif x == 2:
print("Yes")
else:
flg = 0
for n in N:
if n == "0":
if flg == 0:
flg = 1
else:
if flg == 1:
print("No")
exit()
print("Yes")
if __name__ == '__main__':
main()
tamato