結果
| 問題 | No.2881 Mod 2^N |
| コンテスト | |
| ユーザー |
detteiuu
|
| 提出日時 | 2024-09-08 17:11:22 |
| 言語 | PyPy3 (7.3.23 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 63 ms / 2,000 ms |
| + 624µs | |
| コード長 | 321 bytes |
| 記録 | |
| コンパイル時間 | 261 ms |
| コンパイル使用メモリ | 96,108 KB |
| 実行使用メモリ | 78,976 KB |
| 最終ジャッジ日時 | 2026-08-25 15:27:41 |
| 合計ジャッジ時間 | 4,257 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 30 |
ソースコード
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