結果
| 問題 | No.1298 OR XOR |
| コンテスト | |
| ユーザー |
nok0
|
| 提出日時 | 2020-10-18 19:37:26 |
| 言語 | C++17 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 212 bytes |
| 記録 | |
| コンパイル時間 | 627 ms |
| コンパイル使用メモリ | 76,928 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-06-14 15:42:16 |
| 合計ジャッジ時間 | 2,557 ms |
|
ジャッジサーバーID (参考情報) |
judge1_1 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 5 |
ソースコード
#include <iostream>
int n, a, b, c;
int main() {
std::scanf("%d", &n);
if(n & -n == n) {
std::printf("-1 -1 -1\n");
return 0;
}
a = n, b = n & -n, c = a ^ b;
printf("%d %d %d\n", a, b, c);
return 0;
}
nok0