結果
| 問題 | No.1298 OR XOR | 
| コンテスト | |
| ユーザー |  keep_OC | 
| 提出日時 | 2020-11-27 21:26:28 | 
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 6 ms / 2,000 ms | 
| コード長 | 1,303 bytes | 
| コンパイル時間 | 2,524 ms | 
| コンパイル使用メモリ | 192,868 KB | 
| 最終ジャッジ日時 | 2025-01-16 06:25:06 | 
| ジャッジサーバーID (参考情報) | judge5 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 1 | 
| other | AC * 13 | 
ソースコード
#include <bits/stdc++.h>
using namespace std;
// #include <atcoder/all>
// using namespace atcoder;
// using mint = modint1000000007;
// // using mint = modint998244353;
typedef int64_t Int;
#define all(x) (x).begin(), (x).end()
 
const double EPS = 1e-10;
const Int INF = 1e18;
const int inf = 1e9;
const Int mod = 1e9+7;
template<class T> 
istream &operator>>(istream &is, vector<T> &v) { 
    for (auto &e : v) {
        is >> e; 
    }
    return is; 
}
bool print_space_enable = false;
void print() { 
    std::cout << '\n'; 
    print_space_enable = false;
}
template <class Head, class... Tail>
void print(Head&& head, Tail&&... tail) {
    if (print_space_enable) std::cout << " ";
    std::cout << fixed << setprecision(15) << head;
    print_space_enable = true;
    print(std::forward<Tail>(tail)...);
}
template<typename T>
void print(vector<T> v) {
    for (size_t i = 0; i < v.size(); i++) {
        if (i > 0) std::cout << " ";
        std::cout << v[i];
    }
    std::cout << '\n';
}
void fast_IO() {
    ios::sync_with_stdio(false);
    cin.tie(nullptr);
}
void solve() {
    fast_IO();
    Int n;
    cin >> n;
    Int lsb = n & -n;
    if (n == lsb) {
        print(-1, -1, -1);
    } else {
        print(n, n - lsb, lsb);
    }
}
int main() {
    solve();
    return 0;
}
            
            
            
        