結果

問題 No.3088 XOR = SUM
ユーザー rin204
提出日時 2025-04-04 21:30:50
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 208 bytes
コンパイル時間 727 ms
コンパイル使用メモリ 82,816 KB
実行使用メモリ 77,696 KB
最終ジャッジ日時 2025-04-04 21:33:00
合計ジャッジ時間 22,549 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 1 WA * 21
権限があれば一括ダウンロードができます

ソースコード

diff #

def solve():
    n = int(input())
    x = 0
    y = 0
    for i in range(60):
        if n >> i & 1:
            x = 1 << i
            y |= x

    print(y - x, x)


for _ in range(int(input())):
    solve()
0