123672024-12-13 11:06:58birozsBimmbamm (30)python3Wrong answer 3/3017ms3320 KiB
N = int(input())
lista = []
for i in range(N):
    lista.append(input())
hiba = False
for i in range(1,N+1):
    if i % 3 == 0 and i % 5 != 0:
        szo = "BIMM"
    elif i % 3 != 0 and i % 5 == 0:
        szo = "BAMM"
    elif i % 3 == 0 and i % 5 == 0:
        szo == "BUMM"
    else:
        szo = "SZAM"
    if szo != lista[i-1]:
        print(i)
        hiba = True
        break
if not hiba:
    print(0)
SubtaskSumTestVerdictTimeMemory
base3/30
1Accepted0/016ms3124 KiB
2Wrong answer0/017ms3124 KiB
3Wrong answer0/316ms3320 KiB
4Wrong answer0/316ms3128 KiB
5Accepted3/314ms2956 KiB
6Wrong answer0/314ms3120 KiB
7Wrong answer0/316ms3120 KiB
8Wrong answer0/316ms3140 KiB
9Wrong answer0/316ms2996 KiB
10Wrong answer0/316ms3120 KiB
11Wrong answer0/317ms3176 KiB
12Wrong answer0/316ms3184 KiB