Submission #34485


Source Code Expand

Copy
using System;

class Program
{
    static void Main(string[] args)
    {
        string 当選番号 = Console.ReadLine();
        string ボーナス = Console.ReadLine();
        string 買った = Console.ReadLine();
        int カウント = 0, 答え = 0;

        foreach (string s in 当選番号.Split())
        {
            if (買った.Contains(s)) { カウント++; }
        }
        switch (カウント)
        {
            case 6: 答え = 1; break;
            case 5:
                if (買った.Contains(ボーナス)) { 答え = 2; }
                else { 答え = 3; }
                break;
            case 4: 答え = 4; break;
            case 3: 答え = 5; break;
            default: 答え = 0; break;
        }

        Console.WriteLine(答え);
    }
}

Submission Info

Submission Time
Task A - 宝くじ
User eitaho
Language C# (Mono 2.10.8.1)
Score 100
Code Size 822 Byte
Status AC
Exec Time 182 ms
Memory 8420 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 155 ms 8328 KB
00_1_02.txt AC 152 ms 8284 KB
00_2_01.txt AC 151 ms 8320 KB
00_2_02.txt AC 152 ms 8292 KB
00_3_01.txt AC 156 ms 8312 KB
00_3_02.txt AC 150 ms 8312 KB
00_sample_01.txt AC 182 ms 8308 KB
00_sample_02.txt AC 152 ms 8324 KB
00_sample_03.txt AC 155 ms 8292 KB
00_sample_04.txt AC 160 ms 8316 KB
00_sample_05.txt AC 159 ms 8312 KB
01_rand_00.txt AC 156 ms 8316 KB
01_rand_01.txt AC 150 ms 8320 KB
01_rand_02.txt AC 165 ms 8352 KB
01_rand_03.txt AC 155 ms 8320 KB
01_rand_04.txt AC 157 ms 8276 KB
01_rand_05.txt AC 151 ms 8276 KB
01_rand_06.txt AC 152 ms 8304 KB
01_rand_07.txt AC 149 ms 8320 KB
01_rand_08.txt AC 152 ms 8320 KB
01_rand_09.txt AC 156 ms 8320 KB
01_rand_10.txt AC 155 ms 8300 KB
01_rand_11.txt AC 153 ms 8316 KB
01_rand_12.txt AC 153 ms 8308 KB
01_rand_13.txt AC 152 ms 8320 KB
01_rand_14.txt AC 154 ms 8312 KB
01_rand_15.txt AC 152 ms 8340 KB
01_rand_16.txt AC 152 ms 8328 KB
01_rand_17.txt AC 150 ms 8312 KB
01_rand_18.txt AC 153 ms 8316 KB
01_rand_19.txt AC 154 ms 8420 KB
01_rand_20.txt AC 160 ms 8312 KB
01_rand_21.txt AC 155 ms 8316 KB
01_rand_22.txt AC 152 ms 8320 KB
01_rand_23.txt AC 154 ms 8344 KB
01_rand_24.txt AC 153 ms 8312 KB
01_rand_25.txt AC 152 ms 8316 KB
01_rand_26.txt AC 161 ms 8316 KB
01_rand_27.txt AC 155 ms 8316 KB
01_rand_28.txt AC 156 ms 8344 KB
01_rand_29.txt AC 165 ms 8320 KB
01_rand_30.txt AC 156 ms 8316 KB
01_rand_31.txt AC 165 ms 8304 KB
01_rand_32.txt AC 171 ms 8408 KB
01_rand_33.txt AC 157 ms 8308 KB
01_rand_34.txt AC 159 ms 8320 KB
01_rand_35.txt AC 161 ms 8316 KB
01_rand_36.txt AC 152 ms 8316 KB
01_rand_37.txt AC 157 ms 8324 KB
01_rand_38.txt AC 156 ms 8312 KB
01_rand_39.txt AC 164 ms 8300 KB