fork download
  1. #include <cstdio>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7.  
  8. double a = 12345.678901;
  9. double ea = 1.2345;
  10. double ka = 67.8901;
  11. double b = 9876.54321;
  12. double eb = 0.1928;
  13. double kb = 1.23456;
  14.  
  15. double sa = 0.0, sb = 0.0;
  16. for (int i = 0; i < 100; i++) {
  17. sa += pow(a, ea);
  18. sb += pow(b, eb);
  19. }
  20.  
  21. double c = 1e10 - ka * sa - kb * sb;
  22.  
  23. printf("%25.12lf", c);
  24.  
  25. return 0;
  26. }
Success #stdin #stdout 0s 15232KB
stdin
Standard input is empty
stdout
  9236547359.632047653198