結果
| 問題 |
No.3088 XOR = SUM
|
| コンテスト | |
| ユーザー |
timi
|
| 提出日時 | 2025-04-05 00:11:30 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 140 bytes |
| コンパイル時間 | 598 ms |
| コンパイル使用メモリ | 82,560 KB |
| 実行使用メモリ | 77,492 KB |
| 最終ジャッジ日時 | 2025-04-05 00:11:57 |
| 合計ジャッジ時間 | 25,567 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 1 WA * 21 |
ソースコード
T=int(input())
for i in range(T):
N=int(input())
if N==0:
print(0,0)
else:
c=bin(N)[2:]
p=pow(2,len(c)-1)
print(p,N-p)
timi