一开始,我百思不得其解,想不通为什么一直爆零
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a<=b){
cout<<"YES";
}
else{
cout<<"NO";
}
return 0;
}
后来,才发现,原来题目说了第二个字符为阿拉伯数字
真.阅读题语言月赛
AC代码
#include<iostream>
using namespace std;
int main(){
int a,b;
cin>>a>>b;
if(a<=b){
cout<<"YE5";
}
else{
cout<<"N0";
}
return 0;
}
总之,做题前先看题目!