当前位置:网站首页>11.a==b?
11.a==b?
2022-04-23 06:08:00 【linsa_ pursuer】
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".
package com;
import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner s = new Scanner(System.in);
while (s.hasNext()){
System.out.println(has(s.next(),s.next()));
}
}
public static String has(String a, String b){
if(new BigDecimal(a).compareTo(new BigDecimal(b))==0){
return "YES";
}else{
return "NO";
}
}
}
Such as :
Input :
1 2
2 2
3 3.0
4 3
Output :
NO
YES
YES
NO
版权声明
本文为[linsa_ pursuer]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220533259622.html
边栏推荐
- lambda expressions
- Reading of denoising paper - [ridnet, iccv19] real image denoising with feature attention
- You cannot access this shared folder because your organization's security policy prevents unauthenticated guests from accessing it
- Complete example demonstration of creating table to page - joint table query
- Multithreading and high concurrency (3) -- synchronized principle
- Pytorch学习记录(十二):学习率衰减+正则化
- PyTorch入门小笔记——利用简单例子观察前向传播各个层输出的size
- DBCP usage
- MySQL basic madness theory
- Pytorch Learning record (XIII): Recurrent Neural Network
猜你喜欢

Pyqy5 learning (III): qlineedit + qtextedit

给yarn配置国内镜像加速器

Programming record - picture rotation function SciPy ndimage. Simple use and effect observation of rotate()

PyTorch笔记——观察DataLoader&用torch构建LeNet处理CIFAR-10完整代码

Paper on LDCT image reconstruction: edge enhancement based transformer for medical image denoising

Solve the error: importerror: iprogress not found Please update jupyter and ipywidgets

Fundamentals of in-depth learning -- a simple understanding of meta learning (from Li Hongyi's course notes)

Pytorch学习记录(十二):学习率衰减+正则化

Pytorch学习记录(三):神经网络的结构+使用Sequential、Module定义模型

Font shape `OMX/cmex/m/n‘ in size <10.53937> not available (Font) size <10.95> substituted.
随机推荐
Unsupervised denoising - [tmi2022] ISCL: dependent self cooperative learning for unpaired image denoising
PyQy5学习(三):QLineEdit+QTextEdit
Pytorch learning record (IX): convolutional neural network in pytorch
MySQL best practices for creating tables
String notes
Custom exception class
PyQy5学习(二):QMainWindow+QWidget+QLabel
PyTorch入门小笔记——利用简单例子观察前向传播各个层输出的size
Font shape `OMX/cmex/m/n‘ in size <10.53937> not available (Font) size <10.95> substituted.
Framework analysis 2 Source code - login authentication
对比学习论文——[MoCo,CVPR2020]Momentum Contrast for Unsupervised Visual Representation Learning
Solve the error: importerror: iprogress not found Please update jupyter and ipywidgets
Pytorch notes - observe dataloader & build lenet with torch to process cifar-10 complete code
線性代數第一章-行列式
Configure domestic image accelerator for yarn
Pytorch学习记录(五):反向传播+基于梯度的优化器(SGD,Adagrad,RMSporp,Adam)
C3p0 database connection pool usage
Explain of MySQL optimization
Pytoch -- data loading and processing
Denoising paper - [noise2void, cvpr19] noise2void learning denoising from single noise images