fork(2) download
  1.  
  2. import java.io.BufferedReader;
  3. import java.io.IOException;
  4. import java.io.InputStreamReader;
  5. import java.io.StreamTokenizer;
  6. import java.util.ArrayList;
  7. import java.util.Collections;
  8. import java.util.Iterator;
  9. import java.util.TreeSet;
  10. import java.lang.Integer;
  11.  
  12. public class fence_kp_java {
  13.  
  14.  
  15. static int nextInt() {
  16. try {
  17. st.nextToken();
  18. return (int) st.nval;
  19. } catch (IOException ex) {
  20. return 0;
  21. }
  22. }
  23.  
  24.  
  25. public static void main(String[] args) {
  26. int t = nextInt();
  27. for(int i=0;i<t;i++) {
  28. int a=nextInt();
  29. if(360%(180-a)==0) {
  30. System.out.println("YES");
  31. } else {
  32. System.out.println("NO");
  33. }
  34. }
  35. }
  36. }
  37.  
Compilation error #stdin compilation error #stdout 0s 0KB
stdin
Standard input is empty
compilation info
Main.java:12: error: class fence_kp_java is public, should be declared in a file named fence_kp_java.java
public class fence_kp_java {
       ^
1 error
stdout
Standard output is empty