結果

問題 No.1298 OR XOR
ユーザー 学ぶマン
提出日時 2025-02-23 22:35:47
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 34 ms / 2,000 ms
コード長 146 bytes
コンパイル時間 400 ms
コンパイル使用メモリ 82,372 KB
実行使用メモリ 53,788 KB
最終ジャッジ日時 2025-02-23 22:35:50
合計ジャッジ時間 2,179 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
N = int(input())
if N.bit_count() < 2:
    exit(print(-1, -1, -1))

cnt = int(math.log2(N))
A = 2**cnt
B = N - A
C = N
print(A, B, C)
0