結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
komite_kyopro
|
| 提出日時 | 2020-11-27 21:32:28 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 788 bytes |
| コンパイル時間 | 1,895 ms |
| コンパイル使用メモリ | 166,000 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-23 22:16:01 |
| 合計ジャッジ時間 | 2,678 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include <bits/stdc++.h>
//#include <atcoder/modint.hpp>
using namespace std;
#define all(a)a.begin(),a.end()
using ll=long long;
const int INF = 1<<30;
const ll INFll =1LL<<62;
//const int mod= int(1e9)+7;
//const int mod2=998244353;
using P = pair<int,int>;
using Pl= pair<ll,ll>;
using ld=long double;
using V=vector<int>;
using Vl=vector<ll>;
using Vd=vector<ld>;
using VV=vector<vector<int>>;
using VVl=vector<vector<ll>>;
using VVd=vector<vector<ld>>;
//using mint=atcoder::modint1000000007;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
int n;cin >>n;
int x=__builtin_popcount(n);
if(x==1){
cout <<-1<<" "<<-1<<" "<<-1<<"\n";
return 0;
}
else{
cout <<n<<" "<<(n&(-n))<<" "<<n-(n&-n)<<"\n";
}
return 0;
}
komite_kyopro