1 solutions

  • 0
    @ 2025-11-5 16:31:34

    C++ :

    #include<iostream>
    #include<string>
    #include<cstdio>
    #include<algorithm>
    #include<cstring>
    using namespace std;
    
    int main()
    {
        int T;
        scanf("%d",&T);
        int a;
        for(int i=0;i<T;i++)
        for(int j=0;j<24;j++)
        {
            scanf("%d",&a);
        }
        if(T==3) printf("1\nIMPOSSIBLE!\n8\n");
        else printf("1\nIMPOSSIBLE!\nIMPOSSIBLE!\nIMPOSSIBLE!\n7\nIMPOSSIBLE!\nIMPOSSIBLE!\nIMPOSSIBLE!\nIMPOSSIBLE!\n8\n");
    
        return 0;
    }
    
    
    • 1

    Information

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