結果
問題 |
No.1298 OR XOR
|
ユーザー |
![]() |
提出日時 | 2023-09-01 13:08:46 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 482 bytes |
コンパイル時間 | 993 ms |
コンパイル使用メモリ | 98,744 KB |
最終ジャッジ日時 | 2025-02-16 15:59:02 |
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | TLE * 1 -- * 12 |
ソースコード
#include<iostream> #include<map> #include<vector> #include <algorithm> #include<math.h> #include <iomanip> #include<set> #include <numeric> #include<string> using namespace std; int main() { int n, a, b, c = 0; cin >> n; for (int i = 1; i <= n; i<<1){ if (n & i){ c = i; break; } } a = n; b = n- c; if (c == n || n == 1 || n == 2) cout << "-1 -1 -1" << endl; else cout << a << " " << b << " " << c << endl; }