結果
問題 |
No.2063 ±2^k operations (easy)
|
ユーザー |
|
提出日時 | 2022-09-02 21:59:09 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 140 bytes |
コンパイル時間 | 2,158 ms |
コンパイル使用メモリ | 81,304 KB |
実行使用メモリ | 65,472 KB |
最終ジャッジ日時 | 2024-11-16 03:23:56 |
合計ジャッジ時間 | 2,380 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 17 WA * 4 |
ソースコード
s = input() n = len(s) cnt = 0 for c in s: if c == '1': cnt += 1 if min(cnt, n-cnt) == 2: print("Yes") else: print("No")