fork(2) download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4. int main()
  5. {
  6. double a,b;
  7. cin>>a;
  8. b=1*pow(2,a);
  9. cout<<b;
  10. return 0;
  11. }
  12. /*wrong answer
  13.  
  14. intput:35
  15.  
  16. my output:3.43597e+010
  17.  
  18. real output:33940307968
  19. */
Success #stdin #stdout 0s 3460KB
stdin
35
stdout
3.43597e+10