72432024-01-05 10:58:04eduka78Bimmbamm (30)cpp17Wrong answer 0/303ms3516 KiB
#include <iostream>
#include <string>
#include <fstream>
using namespace std;

int main()
{
    int n, i, d=0;
    string a, el;
    ifstream f("be.txt");
    f>>n;
    for(i=1;i<=n;i++){
        f>>a;
        if(i%3==0&&i%5==0)el="BUMM";
        else if(i%5==0)el="BAMM";
        else if(i%3==0)el="BIMM";
        else el="SZAM";
        if(a!=el){cout<<i<<endl;i=n+1;d=1;}
    }
    if(d==0)cout<<0<<endl;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base0/30
1Wrong answer0/03ms1812 KiB
2Wrong answer0/03ms2180 KiB
3Wrong answer0/33ms2228 KiB
4Wrong answer0/33ms2376 KiB
5Wrong answer0/33ms2540 KiB
6Wrong answer0/33ms2756 KiB
7Wrong answer0/33ms2884 KiB
8Wrong answer0/33ms3128 KiB
9Wrong answer0/33ms3344 KiB
10Wrong answer0/33ms3396 KiB
11Wrong answer0/33ms3388 KiB
12Wrong answer0/33ms3516 KiB