import java.io.*; import java.math.*; import java.util.*; public class Main { public static void main ( String [] args ) { Scanner cin = new Scanner(System.in); BigInteger m, n, p; while ( cin.hasNext() ) { n = new BigInteger(cin.next()); m = new BigInteger(cin.next()); p = new BigInteger(cin.next()); if ( p.equals(BigInteger.valueOf(0)) && m.equals (n) ) System.out.println("YES" ); else if ( p.equals(BigInteger.valueOf(0)) ) System.out.println("NO"); else if ( m.compareTo(n) >= 0 ) { if ( m.subtract(n).compareTo(p) <= 0 ) System.out.println("YES"); else System.out.println("NO"); } else { if ( m.compareTo(BigInteger.valueOf(3)) < 0 ) System.out.println("NO"); else System.out.println("YES"); } } } }
hdu 4523 威威猫系列故事——过生日
最新推荐文章于 2014-06-13 20:00:06 发布