122862024-12-11 12:32:06KissCsongor777Bimmbamm (30)cpp17Wrong answer 3/301ms388 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(n%3==0)
            if(n%5==0)y="BUMM";
            else y="BIMM";
        else if(n%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/31ms388 KiB
7Wrong answer0/31ms324 KiB
8Wrong answer0/31ms320 KiB
9Wrong answer0/31ms332 KiB
10Wrong answer0/31ms320 KiB
11Wrong answer0/31ms380 KiB
12Wrong answer0/31ms320 KiB