23362023-01-10 15:19:22LonewolfBimmbamm (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( i%3!=0 && i%5!=0 && szo!="SZAM"){
        cout<<i;
        return 0;
        }

    }
    cout<<0;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base3/30
1Accepted0/03ms1812 KiB
2Wrong answer0/02ms1932 KiB
3Wrong answer0/32ms2136 KiB
4Wrong answer0/32ms2340 KiB
5Accepted3/32ms2588 KiB
6Wrong answer0/32ms2588 KiB
7Wrong answer0/32ms2708 KiB
8Wrong answer0/32ms2592 KiB
9Wrong answer0/32ms2824 KiB
10Wrong answer0/32ms2948 KiB
11Wrong answer0/32ms3180 KiB
12Wrong answer0/32ms3124 KiB