結果
| 問題 | No.3088 XOR = SUM | 
| コンテスト | |
| ユーザー |  titia | 
| 提出日時 | 2025-05-07 04:37:39 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 318 bytes | 
| コンパイル時間 | 329 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 10,112 KB | 
| 最終ジャッジ日時 | 2025-05-07 04:37:50 | 
| 合計ジャッジ時間 | 8,739 ms | 
| ジャッジサーバーID (参考情報) | judge2 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 1 TLE * 1 -- * 20 | 
ソースコード
import sys
input = sys.stdin.readline
T=int(input())
for tests in range(T):
    N=int(input())
    ANS1=0
    ANS2=0
    x=0
    for i in range(64,-1,-1):
        if N & (1<<i) != 0:
            if x==0:
                ANS1+=1<<i
            else:
                ANS2+=1<<i
            x=1
    print(ANS1,ANS2)
            
            
            
        