2 solutions

  • 0
    @ 2025-12-19 20:07:18

    菜鸟请注意,以下是作弊方法:

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
        cout<<"YES";
    }
    
    • 0
      @ 2025-12-19 20:05:22

      正常方法:

      #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";
          }
      }
      
      • 1

      Information

      ID
      1790
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      8
      Tags
      # Submissions
      57
      Accepted
      11
      Uploaded By