package 練習; import java.util.Date; import java.util.Scanner; public class main{ public static void main(String[] args){ long exec_time=new Date().getTime(); Scanner sc=new Scanner(System.in); int ne=0; int ushi=0; int tora=0; int u=0; int tatsu=0; int mi=0; int uma=0; int hitsuji=0; int saru=0; int tori=0; int inu=0; int i=0; int n=sc.nextInt(); int max=0; int sum=0; for(int j=0;jsum_sub-2){ System.out.println("NO"); }else{ System.out.println("YES"); } //System.out.println("sum_sub="+sum_sub); //System.out.println("max="+max); System.err.println(new Date().getTime()-exec_time+"ms"); } }