Submission #33224


Source Code Expand

Copy
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;

class Program
{
    static void Main(string[] args)
    {
        int[] E = Array.ConvertAll(Console.ReadLine().Split(), s => int.Parse(s));
        int bonus = int.Parse(Console.ReadLine());
        int[] L = Array.ConvertAll(Console.ReadLine().Split(), s => int.Parse(s));

        int count = 0;
        bool isBonus = false;
        foreach (int i in L)
        {
            if (i == bonus) { isBonus = true; }
            foreach (int e in E)
            {
                if (i == e) { count++; }
            }
        }

        if (count == 6) { Console.WriteLine(1); }
        else if (count == 5)
        {
            if (isBonus) { Console.WriteLine(2); }
            else { Console.WriteLine(3); }
        }
        else if (count == 4) { Console.WriteLine(4); }
        else if (count == 3) { Console.WriteLine(5); }
        else { Console.WriteLine(0); }
    }
}

Submission Info

Submission Time
Task A - 宝くじ
User eitaho
Language C# (Mono 2.10.8.1)
Score 100
Code Size 1026 Byte
Status AC
Exec Time 141 ms
Memory 7844 KB

Judge Result

Set Name All
Score / Max Score 100 / 100
Status
AC × 51
Set Name Test Cases
All 00_1_01.txt, 00_1_02.txt, 00_2_01.txt, 00_2_02.txt, 00_3_01.txt, 00_3_02.txt, 00_sample_01.txt, 00_sample_02.txt, 00_sample_03.txt, 00_sample_04.txt, 00_sample_05.txt, 01_rand_00.txt, 01_rand_01.txt, 01_rand_02.txt, 01_rand_03.txt, 01_rand_04.txt, 01_rand_05.txt, 01_rand_06.txt, 01_rand_07.txt, 01_rand_08.txt, 01_rand_09.txt, 01_rand_10.txt, 01_rand_11.txt, 01_rand_12.txt, 01_rand_13.txt, 01_rand_14.txt, 01_rand_15.txt, 01_rand_16.txt, 01_rand_17.txt, 01_rand_18.txt, 01_rand_19.txt, 01_rand_20.txt, 01_rand_21.txt, 01_rand_22.txt, 01_rand_23.txt, 01_rand_24.txt, 01_rand_25.txt, 01_rand_26.txt, 01_rand_27.txt, 01_rand_28.txt, 01_rand_29.txt, 01_rand_30.txt, 01_rand_31.txt, 01_rand_32.txt, 01_rand_33.txt, 01_rand_34.txt, 01_rand_35.txt, 01_rand_36.txt, 01_rand_37.txt, 01_rand_38.txt, 01_rand_39.txt
Case Name Status Exec Time Memory
00_1_01.txt AC 130 ms 7720 KB
00_1_02.txt AC 131 ms 7776 KB
00_2_01.txt AC 131 ms 7700 KB
00_2_02.txt AC 133 ms 7744 KB
00_3_01.txt AC 132 ms 7724 KB
00_3_02.txt AC 135 ms 7724 KB
00_sample_01.txt AC 138 ms 7772 KB
00_sample_02.txt AC 133 ms 7676 KB
00_sample_03.txt AC 135 ms 7720 KB
00_sample_04.txt AC 134 ms 7704 KB
00_sample_05.txt AC 138 ms 7844 KB
01_rand_00.txt AC 134 ms 7724 KB
01_rand_01.txt AC 134 ms 7688 KB
01_rand_02.txt AC 134 ms 7716 KB
01_rand_03.txt AC 133 ms 7716 KB
01_rand_04.txt AC 130 ms 7724 KB
01_rand_05.txt AC 133 ms 7720 KB
01_rand_06.txt AC 135 ms 7716 KB
01_rand_07.txt AC 132 ms 7720 KB
01_rand_08.txt AC 133 ms 7716 KB
01_rand_09.txt AC 134 ms 7708 KB
01_rand_10.txt AC 130 ms 7724 KB
01_rand_11.txt AC 135 ms 7720 KB
01_rand_12.txt AC 129 ms 7720 KB
01_rand_13.txt AC 141 ms 7772 KB
01_rand_14.txt AC 133 ms 7716 KB
01_rand_15.txt AC 132 ms 7716 KB
01_rand_16.txt AC 135 ms 7712 KB
01_rand_17.txt AC 134 ms 7720 KB
01_rand_18.txt AC 134 ms 7720 KB
01_rand_19.txt AC 132 ms 7732 KB
01_rand_20.txt AC 135 ms 7716 KB
01_rand_21.txt AC 137 ms 7712 KB
01_rand_22.txt AC 132 ms 7696 KB
01_rand_23.txt AC 137 ms 7712 KB
01_rand_24.txt AC 137 ms 7716 KB
01_rand_25.txt AC 131 ms 7716 KB
01_rand_26.txt AC 135 ms 7720 KB
01_rand_27.txt AC 136 ms 7712 KB
01_rand_28.txt AC 138 ms 7712 KB
01_rand_29.txt AC 132 ms 7804 KB
01_rand_30.txt AC 138 ms 7712 KB
01_rand_31.txt AC 133 ms 7712 KB
01_rand_32.txt AC 132 ms 7744 KB
01_rand_33.txt AC 131 ms 7724 KB
01_rand_34.txt AC 132 ms 7720 KB
01_rand_35.txt AC 134 ms 7708 KB
01_rand_36.txt AC 134 ms 7684 KB
01_rand_37.txt AC 133 ms 7716 KB
01_rand_38.txt AC 133 ms 7716 KB
01_rand_39.txt AC 134 ms 7720 KB