fork download
  1. #include <iostream>
  2. #include <cmath>
  3. using namespace std;
  4.  
  5. int main() {
  6. // your code goes here
  7. for(int i=100;i<1000;i++){
  8. int a,b;
  9. a=i*20;
  10. b=sqrt(a);
  11. if(a==b*b){
  12. cout<<i;
  13. break;
  14. }
  15. }
  16.  
  17.  
  18.  
  19. return 0;
  20. }
Success #stdin #stdout 0.01s 4812KB
stdin
20
stdout
125