結果
問題 |
No.1298 OR XOR
|
ユーザー |
|
提出日時 | 2020-11-27 21:29:39 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 2,043 ms |
コンパイル使用メモリ | 191,596 KB |
最終ジャッジ日時 | 2025-01-16 06:29:51 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 1 |
other | WA * 13 |
ソースコード
#include<bits/stdc++.h> //#include<atcoder/all> using namespace std; using ll = long long; int main() { ll n; cin >> n; ll a,b,c; a=b=c=0; for(int bit = 0;bit<40;bit++){ if(n>>bit&1){ a += 1LL<<bit; b += 1LL<<bit; }else{ } } cout<<a<<' '<<b<<' '<<c<<endl; }