結果
問題 |
No.1298 OR XOR
|
ユーザー |
![]() |
提出日時 | 2025-02-23 22:35:03 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 158 bytes |
コンパイル時間 | 327 ms |
コンパイル使用メモリ | 82,660 KB |
実行使用メモリ | 54,564 KB |
最終ジャッジ日時 | 2025-02-23 22:35:07 |
合計ジャッジ時間 | 2,777 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | AC * 5 WA * 8 |
ソースコード
import math N = int(input()) if N.bit_count() < 2: exit(print(-1, -1, -1)) cnt = int(math.log2(N)) print(cnt) A = 2**cnt B = N - A C = N print(A, B, C)