結果
| 問題 |
No.1298 OR XOR
|
| コンテスト | |
| ユーザー |
Nachia
|
| 提出日時 | 2020-11-27 21:27:53 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 3 ms / 2,000 ms |
| コード長 | 288 bytes |
| コンパイル時間 | 2,527 ms |
| コンパイル使用メモリ | 192,644 KB |
| 最終ジャッジ日時 | 2025-01-16 06:27:32 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
using LL=long long;
using ULL=unsigned long long;
#define rep(i,n) for(int i=0;i<(n);i++)
int main(){
int N; cin>>N;
int mlb = N&~(N-1);
if(N==mlb) cout<<"-1 -1 -1"<<endl;
else cout<<N<<" "<<(N-mlb)<<" "<<mlb<<endl;
return 0;
}
Nachia