1 solutions

  • 0
    @ 2025-11-5 17:45:07

    C++ :

    #include<stdio.h>
    #include<string.h>
    #include<algorithm>
    using namespace std;
    char s[105];
    int main()
    {
        //freopen("input.txt","r",stdin);
        //freopen("output.txt","w",stdout);
        int t;
        scanf("%d",&t);
        while(t--)
        {
            int n,k;
            scanf("%d%d",&n,&k);
            scanf("%s",s);
            if(n>k) printf("YES\n");
            else printf("NO\n");
        }
    }
    
    
    • 1

    Information

    ID
    18609
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By