結果
| 問題 | No.3088 XOR = SUM |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-05-07 04:37:39 |
| 言語 | Python3 (3.14.3 + numpy 2.4.4 + scipy 1.17.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 292 ms |
| コンパイル使用メモリ | 21,284 KB |
| 実行使用メモリ | 15,868 KB |
| 最終ジャッジ日時 | 2026-07-10 12:56:41 |
| 合計ジャッジ時間 | 4,892 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 TLE * 5 -- * 16 |
ソースコード
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)
titia