127292024-12-29 11:00:09ffteklaBimmbamm (30)cpp17Wrong answer 0/302ms508 KiB
#include <iostream>

using namespace std;
int N,i;
string a;

int main()
{
    cin>>N;

    for (i=1;i<=N;++i)
    {
        cin>>a;
        if (i%3==0 && i%5==0 && a!="BUMM") cout<<i;
        else if (i%5==0 && a!="BAMM") cout<<i;
        else if (i%3==0 && a!="BIMM") cout<<i;
        else if (a!="SZAM") cout<<i;
    }
}
SubtaskSumTestVerdictTimeMemory
base0/30
1Wrong answer0/01ms320 KiB
2Wrong answer0/02ms320 KiB
3Wrong answer0/31ms508 KiB
4Wrong answer0/31ms320 KiB
5Wrong answer0/31ms320 KiB
6Wrong answer0/31ms320 KiB
7Wrong answer0/31ms320 KiB
8Wrong answer0/31ms320 KiB
9Wrong answer0/31ms320 KiB
10Wrong answer0/32ms332 KiB
11Wrong answer0/32ms508 KiB
12Wrong answer0/32ms320 KiB