結果
| 問題 | No.3088 XOR = SUM |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-04 22:58:12 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.90.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 422 bytes |
| 記録 | |
| コンパイル時間 | 2,891 ms |
| コンパイル使用メモリ | 272,804 KB |
| 実行使用メモリ | 5,760 KB |
| 最終ジャッジ日時 | 2026-07-08 11:03:42 |
| 合計ジャッジ時間 | 10,166 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 1 WA * 21 |
ソースコード
#include <bits/stdc++.h>
#include <atcoder/all>
using namespace std;
using ll = long long;
int main(){
ios::sync_with_stdio(false);
cin.tie(0);
int T;
cin >> T;
while(T--){
ll n;
cin >> n;
if(n <= 1){
cout << "0 0\n";
continue;
}
n = (1ll << __lg(n)) - 1;
ll b = 1ll << __lg(n);
cout << n - b << ' ' << b << '\n';
}
}