hdu 2054 A == B ? (java)

import java.math.BigDecimal;
import java.math.BigInteger;
import java.util.Scanner;


public class Main {

    /**
     * @param args
     */
    public static void main(String[] args) {
        // TODO Auto-generated method stub
        Scanner in =new Scanner(System.in);
        while(in.hasNextBigDecimal())
        {
        BigDecimal a=in.nextBigDecimal();
        BigDecimal b=in.nextBigDecimal();
        if(a.compareTo(b)==0) 
            System.out.println("YES");
        else 
            System.out.println("NO");
        }

    }
}

版权声明:本文为博主原创文章,未经博主允许不得转载。http://xiang578.top/

posted @ 2015-08-05 16:32  xryz  阅读(129)  评论(0编辑  收藏  举报