結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
misora192
|
| 提出日時 | 2020-12-09 21:57:52 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
WA
不安定
|
| 実行時間 | - |
| コード長 | 388 bytes |
| 記録 | |
| コンパイル時間 | 888 ms |
| コンパイル使用メモリ | 179,348 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 19:23:25 |
| 合計ジャッジ時間 | 2,901 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 1 |
| other | AC * 5 WA * 8 |
ソースコード
#include <bits/stdc++.h>
#define rep(i,n) for(int i=(0);i<(n);i++)
using namespace std;
typedef long long ll;
int main(){
cin.tie(0);
ios::sync_with_stdio(false);
int n;
cin >> n;
if(__builtin_popcount(n) == 1){
cout << "-1 -1 -1" << endl;
}else{
for(int a = 1; a <= n; a <<= 1){
if(a & n){
cout << a << " " << a << " " << n - a << endl;
exit(0);
}
}
}
}
misora192