結果
問題 | No.1298 OR XOR |
ユーザー |
|
提出日時 | 2024-03-23 17:40:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 341 bytes |
コンパイル時間 | 4,150 ms |
コンパイル使用メモリ | 249,492 KB |
最終ジャッジ日時 | 2025-02-20 13:26:29 |
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 13 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;int N;int main() {cin >> N;if (N == (N & -N)) {cout << "-1 -1 -1" << endl;return 0;}int A = N, B = N & -N, C = N ^ B;cout << A << " " << B << " " << C << endl;return 0;}