結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
ate
|
| 提出日時 | 2020-12-10 08:31:01 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 281 bytes |
| コンパイル時間 | 439 ms |
| コンパイル使用メモリ | 67,264 KB |
| 最終ジャッジ日時 | 2025-01-16 21:14:45 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 8 WA * 5 |
ソースコード
#include<iostream>
int main(){
int64_t n;
std::cin>>n;
int64_t a=n,b=n,c=0;
for(int i=0;i<=30;++i)if((n>>i)&1){
b -= 1<<i;
c |= 1<<i;
break;
}
if(c)std::cout<<a<<" "<<b<<" "<<c<<std::endl;
else std::cout<<"-1 -1 -1"<<std::endl;
}
ate