結果
問題 |
No.3088 XOR = SUM
|
ユーザー |
![]() |
提出日時 | 2025-05-07 04:38:20 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 640 ms |
コンパイル使用メモリ | 82,560 KB |
実行使用メモリ | 77,440 KB |
最終ジャッジ日時 | 2025-05-07 04:38:43 |
合計ジャッジ時間 | 19,664 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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)