結果
問題 | No.1298 OR XOR |
ユーザー | ttkkggww |
提出日時 | 2020-11-27 21:29:39 |
言語 | C++17 (gcc 12.3.0 + boost 1.83.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 279 bytes |
コンパイル時間 | 5,998 ms |
コンパイル使用メモリ | 197,788 KB |
実行使用メモリ | 4,504 KB |
最終ジャッジ日時 | 2023-10-01 04:47:27 |
合計ジャッジ時間 | 7,500 ms |
ジャッジサーバーID (参考情報) |
judge13 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | WA | - |
testcase_01 | WA | - |
testcase_02 | WA | - |
testcase_03 | WA | - |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | WA | - |
testcase_07 | WA | - |
testcase_08 | WA | - |
testcase_09 | WA | - |
testcase_10 | WA | - |
testcase_11 | WA | - |
testcase_12 | WA | - |
testcase_13 | WA | - |
ソースコード
#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; }