122892024-12-11 12:49:28andorasrBimmbamm (30)cpp17Accepted 30/301ms320 KiB
#include <iostream>

using namespace std;

int main()
{
    bool BLAH=true;
    string x,y;
    int n;
    cin>>n;
    for(int i=1;i<=n && BLAH;i++)
    {
        cin>>x;
        y="SZAM";
        if (i%3==0) y="BIMM";
        if (i%5==0) y="BAMM";
        if (i%3==0 && i%5==0) y="BUMM";
        if (x!=y)
        {
            cout<<i;
            BLAH=false;
        }
    }
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base30/30
1Accepted0/01ms320 KiB
2Accepted0/01ms320 KiB
3Accepted3/31ms320 KiB
4Accepted3/31ms320 KiB
5Accepted3/31ms320 KiB
6Accepted3/31ms320 KiB
7Accepted3/31ms320 KiB
8Accepted3/31ms320 KiB
9Accepted3/31ms320 KiB
10Accepted3/31ms320 KiB
11Accepted3/31ms320 KiB
12Accepted3/31ms320 KiB