115392024-10-21 23:13:14SzmolikGusztavBimmbamm (30)csharpRuntime error 0/3014ms3044 KiB
using System;

public class Program {
    
    public static void Main () {
        short n = short.Parse (Console.ReadLine ());
        short ans = 0;
        string s = string.Empty;
        string sExpect = string.Empty;
        
        for (short i = 1; i <= n && ans == 0; i++) {
            s = Console.ReadLine ();
            sExpect = (i%15 == 0 ? "BUMM" : (i%5 == 0 ? "BAMM" : (i%3 == 0 ? "BIMM" : "SZAM")));
            
            if (s != sExpect)
                ans = i;
        }
        
        Console.WriteLine (ans);
    }
}
SubtaskSumTestVerdictTimeMemory
base0/30
1Runtime error0/014ms2976 KiB
2Runtime error0/014ms2764 KiB
3Runtime error0/314ms2776 KiB
4Runtime error0/314ms2552 KiB
5Runtime error0/314ms2780 KiB
6Runtime error0/314ms2844 KiB
7Runtime error0/314ms2552 KiB
8Runtime error0/314ms2752 KiB
9Runtime error0/314ms2772 KiB
10Runtime error0/314ms3044 KiB
11Runtime error0/314ms2788 KiB
12Runtime error0/314ms2876 KiB