首页 > 代码库 > HDU 2054: A == B ?

HDU 2054: A == B ?

A == B ?

import java.util.*;
import java.math.*;
class Main{
public static void main(String args[])
{
Scanner scanner=new Scanner(System.in);
while(scanner.hasNextBigDecimal())
{
BigDecimal x=scanner.nextBigDecimal(),y=scanner.nextBigDecimal();
System.out.println(x.compareTo(y)==0?"YES":"NO");
}
scanner.close();
}
}

 

HDU 2054: A == B ?