結果
問題 |
No.3088 XOR = SUM
|
ユーザー |
|
提出日時 | 2025-04-04 22:58:12 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 422 bytes |
コンパイル時間 | 4,378 ms |
コンパイル使用メモリ | 250,332 KB |
実行使用メモリ | 7,848 KB |
最終ジャッジ日時 | 2025-04-04 22:58:24 |
合計ジャッジ時間 | 11,834 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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'; } }