結果
| 問題 | No.3088 XOR = SUM | 
| コンテスト | |
| ユーザー |  | 
| 提出日時 | 2025-04-04 22:06:34 | 
| 言語 | Python3 (3.13.1 + numpy 2.2.1 + scipy 1.14.1) | 
| 結果 | 
                                TLE
                                 
                             | 
| 実行時間 | - | 
| コード長 | 206 bytes | 
| コンパイル時間 | 620 ms | 
| コンパイル使用メモリ | 12,032 KB | 
| 実行使用メモリ | 16,384 KB | 
| 最終ジャッジ日時 | 2025-04-04 22:06:55 | 
| 合計ジャッジ時間 | 6,112 ms | 
| ジャッジサーバーID (参考情報) | judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 1 TLE * 1 -- * 20 | 
ソースコード
T = int(input())
for _ in range(T):
    N = int(input())
    if N == 0:
        print(0, 0)
    else:
        p = 0
        while (1 << (p + 1)) <= N:
            p += 1
        print(1 << p, N - (1 << p))
            
            
            
        