123062024-12-11 18:50:01WellLeopardUsuallyBimmbamm (30)python3Accepted 30/3017ms3320 KiB
n = int(input())
ki = 0
for i in range(1, n+1):
    be = input().strip()
    if i % 15 == 0:
        if be != 'BUMM':
            ki = i
            break
    elif i % 3 == 0:
        if be != 'BIMM':
            ki = i
            break
    elif i % 5 == 0:
        if be != 'BAMM':
            ki = i
            break
    else:
        if be != 'SZAM':
            ki = i
            break
print(ki)
SubtaskSumTestVerdictTimeMemory
base30/30
1Accepted0/016ms3312 KiB
2Accepted0/017ms3236 KiB
3Accepted3/316ms3128 KiB
4Accepted3/316ms3088 KiB
5Accepted3/316ms3016 KiB
6Accepted3/316ms3080 KiB
7Accepted3/316ms2896 KiB
8Accepted3/316ms3104 KiB
9Accepted3/316ms3320 KiB
10Accepted3/314ms3124 KiB
11Accepted3/314ms3128 KiB
12Accepted3/316ms3096 KiB