3 solutions

  • 1
    @ 2026-6-27 16:35:42
    #include<bits/stdc++.h>
    using namespace std;
    int main(){
    	char a[1001],b[1001];//我
    	cin>>a>>b;
    	int lena=strlen(a),lenb=strlen(b);//是
    	if(lena<lenb||lena==lenb&&strcmp(a,b)<0){
    		cout<<"YES";//水
    	}else{
    		cout<<"NO";//印
    	}
    	return 0;
    }
    

    Information

    ID
    1790
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    7
    Tags
    # Submissions
    69
    Accepted
    16
    Uploaded By