fork download
  1. * package whatever; // don't place package name! */
  2.  
  3. import java.util.*;
  4. import java.lang.*;
  5. import java.io.*;
  6.  
  7. /* Name of the class has to be "Main" only if the class is public. */
  8. public class Main
  9. {
  10. public static void main (String[] args) throws java.lang.Exception
  11. {
  12. // your code goes here
  13. String s[] =inp.readLine().split(" ");
  14. long r=Long.parseLong(s[0]);
  15. long x=Long.parseLong(s[1]);
  16. long y=Long.parseLong(s[2]);
  17. long x1=Long.parseLong(s[3]);
  18. long y1=Long.parseLong(s[4]);
  19. // System.out.println((x-x1)*(x-x1));
  20. // System.out.println((y-y1)*(y-y1));
  21. long num=(x-x1)*(x-x1) + (y-y1)*(y-y1);
  22. // System.out.println(num);
  23. double ans=Math.sqrt(num);
  24. double sol=(ans)/(2*r);
  25. System.out.printf("%.0f",Math.ceil(sol));
  26.  
  27. }
  28. }
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:1: error: class, interface, or enum expected
* package whatever; // don't place package name! */
^
1 error
stdout
Standard output is empty