HDU-ACM2054
来源:互联网 发布:linux谁开发的 编辑:程序博客网 时间:2024/06/07 08:30
A == B ?
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 88074 Accepted Submission(s): 13888
Problem Description
Give you two numbers A and B, if A is equal to B, you should print "YES", or print "NO".
Input
each test case contains two numbers A and B.
Output
for each case, if A is equal to B, you should print "YES", or print "NO".
Sample Input
1 22 23 34 3
Sample Output
NOYESYESNO
import java.math.BigDecimal;import java.util.Scanner;public class Main { public static void main(String[] args) { Scanner input=new Scanner(System.in); BigDecimal a,b; while (input.hasNextBigDecimal()){ a=input.nextBigDecimal(); b=input.nextBigDecimal(); if (a.compareTo(b)==0){ System.out.println("YES"); }else { System.out.println("NO"); } } }}
0 0
- HDU-ACM2054
- hdu
- hdu
- HDU
- hdu ()
- hdu
- hdu
- HDU
- HDU
- hdu
- hdu
- HDU
- Hdu
- hdu
- hdu-
- hdu
- hdu
- hdu
- HDU-ACM2053
- Scan / Detect New Luns In Redhat Linux & Outputs To Remember
- 7.2趣味递归法若干问题
- Storyboard实现界面跳转
- 第五周编程题-完数(看了很多别人的代码)
- HDU-ACM2054
- 使用PreparedStatement防止SQL注入
- BaseAdapter 自定义适配器的使用以及优化
- HDU 3394Railway 点双连通分量 + 桥
- SecureCRT WIN7下详细图文破解方法
- Loadrunner中java Vuser协议脚本开发
- CSS样式表
- [Inspiration]Book List To Read
- HDU-ACM2055