23322023-01-10 15:15:19pyramisBimmbamm (30)cpp11Wrong answer 3/303ms3180 KiB
#include <iostream>

using namespace std;

int main()
{
    int N;
    cin>>N;
    string szo;
    for(int i=1; i <= N; i++){
        cin>> szo;

        if (i%15 == 0 && szo != "BUMM"){
            cout<<i;
            return 0;
        }
        else if(i%3 == 0 && szo != "BIMM"){
            cout<<i;
            return 0;
        }
         else if(i%5 == 0 && szo != "BAMM"){
            cout<<i;
            return 0;
        }
         else if(szo != "SZAM"){
            cout<<i;
            return 0;
        }
    }




    return 0;
}
SubtaskSumTestVerdictTimeMemory
base3/30
1Wrong answer0/03ms1808 KiB
2Wrong answer0/02ms2060 KiB
3Wrong answer0/32ms2140 KiB
4Wrong answer0/32ms2208 KiB
5Accepted3/32ms2684 KiB
6Wrong answer0/32ms2632 KiB
7Wrong answer0/32ms2832 KiB
8Wrong answer0/32ms2812 KiB
9Wrong answer0/32ms2928 KiB
10Wrong answer0/32ms3056 KiB
11Wrong answer0/32ms3176 KiB
12Wrong answer0/32ms3180 KiB