結果
| 問題 |
No.2881 Mod 2^N
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2024-09-08 14:31:59 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 347 bytes |
| コンパイル時間 | 317 ms |
| コンパイル使用メモリ | 82,428 KB |
| 実行使用メモリ | 54,304 KB |
| 最終ジャッジ日時 | 2024-09-08 14:32:04 |
| 合計ジャッジ時間 | 4,052 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 24 WA * 6 |
ソースコード
import sys
input = sys.stdin.readline
N, X, Y = map(int, input().split())
A = []
if X==Y:
print(len(A))
print(*A)
exit()
if Y==0:
print(-1)
exit()
b = bin(Y)[2:]
A.append(N)
i = 0
while i<len(b):
j = i+1
while j<len(b) and b[j]=="0":
j+=1
if j<len(b):
A.append(j-i)
i = j
print(len(A))
print(*A)