結果
| 問題 | No.3088 XOR = SUM |
| コンテスト | |
| ユーザー |
titia
|
| 提出日時 | 2025-05-07 04:38:20 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 318 bytes |
| 記録 | |
| コンパイル時間 | 239 ms |
| コンパイル使用メモリ | 95,980 KB |
| 実行使用メモリ | 85,504 KB |
| 最終ジャッジ日時 | 2026-07-10 12:56:54 |
| 合計ジャッジ時間 | 12,469 ms |
|
ジャッジサーバーID (参考情報) |
judge2_1 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 21 |
ソースコード
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