8082022-01-16 16:47:47Halasz EszterÁdám és Éva együttcpp11Wrong answer 2/502ms2068 KiB
#include <iostream>
//#include <fstream>
#include <vector>
#include <string>

using namespace std;

//ifstream cin("bimbammbumm.in");
//ofstream cout("bimbammbumm.out");

int n,i;
string s,ss;

int main()
{
    cin>>n;
    bool f=false;
    for(i=1;i<=n;++i)
    {
        cin>>s;
        if (i%5==0 && i%3==0) ss="BUMM";
        else  if(i%3==0) ss="BIMM";
        else if(i%5==0) ss="BAMM";
        else ss="SZAM";
        if(ss!=s)
        {
            cout<<i;
            f=true;
            break;
        }
    }
    if(f==false)cout<<0;
    return 0;
}
SubtaskSumTestVerdictTimeMemory
base2/50
1Wrong answer0/02ms1808 KiB
2Wrong answer0/01ms1844 KiB
3Partially correct1/21ms1908 KiB
4Wrong answer0/21ms1912 KiB
5Partially correct1/21ms1916 KiB
6Wrong answer0/21ms1920 KiB
7Wrong answer0/21ms1924 KiB
8Wrong answer0/21ms1924 KiB
9Wrong answer0/21ms1932 KiB
10Wrong answer0/21ms1932 KiB
11Wrong answer0/21ms1940 KiB
12Wrong answer0/21ms1948 KiB
13Wrong answer0/21ms1944 KiB
14Wrong answer0/21ms1952 KiB
15Wrong answer0/21ms1956 KiB
16Wrong answer0/21ms1968 KiB
17Wrong answer0/31ms1976 KiB
18Wrong answer0/31ms2004 KiB
19Wrong answer0/41ms2016 KiB
20Wrong answer0/41ms2032 KiB
21Wrong answer0/41ms2044 KiB
22Wrong answer0/41ms2068 KiB