結果
| 問題 | No.2881 Mod 2^N |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-09-08 17:11:22 |
| 言語 | PyPy3 (8.0.1 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 31 ms / 2,000 ms |
| + 268µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 73 ms |
| コンパイル使用メモリ | 64,364 KB |
| 実行使用メモリ | 53,644 KB |
| 最終ジャッジ日時 | 2026-11-08 12:18:00 |
| 合計ジャッジ時間 | 3,221 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 31 |
ソースコード
N, X, Y = map(int, input().split())
if Y%2 == 0:
if X == Y:
print(0)
else:
print(-1)
exit()
ans = [N]
pre = -1
for i in reversed(range(N)):
if 1<<i & Y:
if pre == -1:
pre = i
else:
ans.append(pre-i)
pre = i
print(len(ans))
print(*ans)
detteiuu