fork download
  1. #include <iostream>
  2. #include <bits/stdc++.h>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. int a=4,b=3,c=1;
  8. if(a>>(c-1) && b<<(c+1))
  9. a=a+c;
  10. else
  11. b = a<<c;
  12.  
  13. cout<<a-b+c;
  14. return 0;
  15. }
Success #stdin #stdout 0.01s 5492KB
stdin
Standard input is empty
stdout
3