結果
| 問題 | No.2063 ±2^k operations (easy) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-06-25 15:04:42 |
| 言語 | PyPy3 (8.0.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 24 ms / 2,000 ms |
| + 473µs | |
| コード長 | 217 bytes |
| 記録 | |
| コンパイル時間 | 62 ms |
| コンパイル使用メモリ | 81,276 KB |
| 実行使用メモリ | 56,508 KB |
| 最終ジャッジ日時 | 2026-10-11 00:30:01 |
| 合計ジャッジ時間 | 2,212 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
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()