Submission #34030


Source Code Expand

Copy
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
 
namespace AtCoder
{
    class Program
    {
        static void Main(string[] args)
        {
            string eNumber = Console.ReadLine();
            string bNumber = Console.ReadLine();
            string lNumber = Console.ReadLine();
 
            var except = eNumber.Except(lNumber);
            int count = except.Count();
            if (count == 0) Console.WriteLine("1");
            else if ((count == 2) || (count == 3))
            {
                Console.WriteLine(2 + count);
            }
            else if (count == 1)
            {
                if (lNumber.Any(c => c == bNumber[0])) Console.WriteLine("2");
                else Console.WriteLine("3");
            }
            else Console.WriteLine("0");
        }
    }
}

Submission Info

Submission Time
Task A - 宝くじ
User jag5X
Language C# (Mono 2.10.8.1)
Score 100
Code Size 871 Byte
Status AC
Exec Time 225 ms
Memory 10252 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 202 ms 9724 KB
00_1_02.txt AC 169 ms 9868 KB
00_2_01.txt AC 168 ms 9668 KB
00_2_02.txt AC 167 ms 9856 KB
00_3_01.txt AC 163 ms 9844 KB
00_3_02.txt AC 162 ms 9740 KB
00_sample_01.txt AC 163 ms 9712 KB
00_sample_02.txt AC 165 ms 9836 KB
00_sample_03.txt AC 207 ms 9816 KB
00_sample_04.txt AC 165 ms 9844 KB
00_sample_05.txt AC 174 ms 10236 KB
01_rand_00.txt AC 170 ms 10220 KB
01_rand_01.txt AC 168 ms 10240 KB
01_rand_02.txt AC 170 ms 10224 KB
01_rand_03.txt AC 183 ms 10096 KB
01_rand_04.txt AC 167 ms 10224 KB
01_rand_05.txt AC 174 ms 10224 KB
01_rand_06.txt AC 166 ms 9852 KB
01_rand_07.txt AC 172 ms 10248 KB
01_rand_08.txt AC 173 ms 10096 KB
01_rand_09.txt AC 193 ms 10244 KB
01_rand_10.txt AC 170 ms 10244 KB
01_rand_11.txt AC 170 ms 9716 KB
01_rand_12.txt AC 175 ms 10252 KB
01_rand_13.txt AC 171 ms 10236 KB
01_rand_14.txt AC 177 ms 10236 KB
01_rand_15.txt AC 176 ms 10232 KB
01_rand_16.txt AC 177 ms 10240 KB
01_rand_17.txt AC 178 ms 10248 KB
01_rand_18.txt AC 169 ms 9872 KB
01_rand_19.txt AC 225 ms 10228 KB
01_rand_20.txt AC 181 ms 10224 KB
01_rand_21.txt AC 178 ms 10236 KB
01_rand_22.txt AC 177 ms 10232 KB
01_rand_23.txt AC 176 ms 10232 KB
01_rand_24.txt AC 170 ms 10224 KB
01_rand_25.txt AC 197 ms 10224 KB
01_rand_26.txt AC 175 ms 10244 KB
01_rand_27.txt AC 173 ms 10228 KB
01_rand_28.txt AC 170 ms 10240 KB
01_rand_29.txt AC 187 ms 10224 KB
01_rand_30.txt AC 193 ms 10220 KB
01_rand_31.txt AC 179 ms 9788 KB
01_rand_32.txt AC 192 ms 10248 KB
01_rand_33.txt AC 189 ms 10172 KB
01_rand_34.txt AC 179 ms 9752 KB
01_rand_35.txt AC 185 ms 10232 KB
01_rand_36.txt AC 185 ms 10220 KB
01_rand_37.txt AC 185 ms 10220 KB
01_rand_38.txt AC 188 ms 10184 KB
01_rand_39.txt AC 183 ms 10244 KB