标签:
Time Limit: 500/200 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)
Total Submission(s): 1330 Accepted Submission(s): 365
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNext()){ String s1 = sc.next(); String s2 = sc.next(); String s3 = sc.next(); BigInteger n = new BigInteger(s1); BigInteger m = new BigInteger(s2); BigInteger p = new BigInteger(s3); BigInteger three = BigInteger.valueOf(3); if(n.add(p).compareTo(m)>=0&&m.compareTo(three)>=0){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
标签:
原文地址:http://www.cnblogs.com/liyinggang/p/5617935.html