2 solutions
- 1
Information
- ID
- 1790
- Time
- 1000ms
- Memory
- 256MiB
- Difficulty
- 8
- Tags
- # Submissions
- 57
- Accepted
- 11
- Uploaded By
正常方法:
#include<bits/stdc++.h>
using namespace std;
int main()
{
char a[2001]={},b[2001]={};
cin>>a>>b;
if(strlen(a)<strlen(b))cout<<"YES";
else
{
bool c=0;
for(int i=0;i<strlen(a);i++)if(b[i]>a[i])c=1;
if(c)cout<<"YES";
else cout<<"NO";
}
}
By signing up a Hydro universal account, you can submit code and join discussions in all online judging services provided by us.