結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2020-11-03 08:47:08 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 225 bytes |
| コンパイル時間 | 739 ms |
| コンパイル使用メモリ | 65,580 KB |
| 最終ジャッジ日時 | 2025-01-15 19:17:06 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include <iostream>
int main() {
int n;
std::cin >> n;
if(n == (n & -n)) {
std::cout << "-1 -1 -1" << std::endl;
}
int a = n, b = n & -n, c = a ^ b;
std::cout << a << " " << b << " " << c << std::endl;
return 0;
}
nok0