結果
| 問題 |
No.3088 XOR = SUM
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-04-04 22:54:05 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 388 bytes |
| コンパイル時間 | 4,024 ms |
| コンパイル使用メモリ | 249,280 KB |
| 実行使用メモリ | 6,144 KB |
| 最終ジャッジ日時 | 2025-04-04 22:54:17 |
| 合計ジャッジ時間 | 11,622 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 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 == 0){
cout << "0 0\n";
continue;
}
ll b = 1ll << __lg(n);
cout << n - b << ' ' << b << '\n';
}
}