122872024-12-11 12:33:16KissCsongor777Bimmbamm (30)cpp17Wrong answer 3/301ms320 KiB
#include <iostream>

using namespace std;

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