Source code for submission s1121

FN.java

  1. /*
  2.  * To change this template, choose Tools | Templates
  3.  * and open the template in the editor.
  4.  */
  5. package fn;
  6.  
  7. import java.util.Scanner;
  8.  
  9. /**
  10.  *
  11.  * @author drevenak3
  12.  */
  13. public class FN {
  14.  
  15. /**
  16.   * @param args the command line arguments
  17.   */
  18. public static void main(String[] args) {
  19. // TODO code application logic here
  20. Scanner v=new Scanner(System.in);
  21. while(v.hasNext()){
  22. v.nextInt();
  23. int n=v.nextInt();
  24. for(int i=1;i<=n;++i){
  25. v.nextInt();v.nextInt();
  26. }
  27. if((Math.random()%2)==0)
  28. System.out.println("YES");
  29. else
  30. System.out.println("NO");
  31. }
  32. v.close();
  33. }
  34. }
  35.