結果
問題 |
No.3088 XOR = SUM
|
ユーザー |
![]() |
提出日時 | 2025-04-04 21:41:23 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 324 bytes |
コンパイル時間 | 3,684 ms |
コンパイル使用メモリ | 191,320 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-04-04 21:42:15 |
合計ジャッジ時間 | 19,243 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 1 WA * 21 |
ソースコード
#include <bits/stdc++.h> using namespace std; #define int long long int T; signed main(){ cin>>T; for(int i = 0; i < T; i++){ int N; cin>>N; int cnt = 1; for(int i = 0; cnt*2 < N; i++){ cnt *= 2; } if(N == 0) cnt = 0; if(cnt*2 == N) cnt = 0; cout << cnt << " " << N-cnt << endl; } }