Hdu-2054-a = = B? (Java large number BigDecimal)

Source: Internet
Author: User

A = = B?Time limit:1000/1000 MS (java/others) Memory limit:32768/32768 K (java/others)
Total submission (s): 72556 Accepted Submission (s): 11427


Problem descriptiongive You both numbers A and B, if A is equal to B, you should print "YES", or print "NO".
Inputeach test Case contains-numbers A and B.

Outputfor each case, if A was equal to B, you should print "YES", or print "NO".
Sample Input
1 22 23) 34 3

Sample Output
Noyesyesno

Author8600 && XHD
Source Celebration Cup warm up
Recommendlinle | We have carefully selected several similar problems for you:2057 2050 1096 1091 2074

There is a natural sense of superiority over C players only when they are bigger.

Import java.io.*;import java.math.bigdecimal;import java.util.*;p ublic class main{public static void Main (string[] args {//TODO auto-generated method Stubscanner input = new Scanner (system.in); while (Input.hasnext ()) {BigDecimal A = Input.ne Xtbigdecimal (); BigDecimal B = Input.nextbigdecimal (); if (A.compareto (b)!=0) {System.out.println ("NO");} Else{system.out.println ("YES");}}}



Hdu-2054-a = = B? (Java large number BigDecimal)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.