fork download
  1. #include <iostream>
  2. #include <cmath>
  3.  
  4. using namespace std;
  5.  
  6. int main(){
  7. unsigned long long s1;
  8. unsigned long long s2;
  9. cin >> s1 >> s2;
  10. double sqrtOfHeight = sqrt(s1) + sqrt(s2);
  11. cout << (unsigned long long) (1000 * sqrtOfHeight * sqrtOfHeight);
  12. }
Success #stdin #stdout 0s 4408KB
stdin
Standard input is empty
stdout
140736343910864016