結果

問題 No.785 色食い虫
ユーザー CroweaCrowea
提出日時 2019-02-12 14:13:29
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 61 ms / 2,000 ms
コード長 672 bytes
コンパイル時間 3,255 ms
コンパイル使用メモリ 103,212 KB
実行使用メモリ 23,736 KB
最終ジャッジ日時 2023-10-11 10:53:51
合計ジャッジ時間 6,024 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 60 ms
23,672 KB
testcase_01 AC 59 ms
21,568 KB
testcase_02 AC 60 ms
21,632 KB
testcase_03 AC 59 ms
19,464 KB
testcase_04 AC 60 ms
19,552 KB
testcase_05 AC 60 ms
23,604 KB
testcase_06 AC 60 ms
23,660 KB
testcase_07 AC 61 ms
23,600 KB
testcase_08 AC 60 ms
21,524 KB
testcase_09 AC 61 ms
23,736 KB
testcase_10 AC 61 ms
23,680 KB
testcase_11 AC 59 ms
21,632 KB
testcase_12 AC 60 ms
21,648 KB
testcase_13 AC 59 ms
21,500 KB
testcase_14 AC 60 ms
21,524 KB
testcase_15 AC 59 ms
23,560 KB
testcase_16 AC 60 ms
19,520 KB
testcase_17 AC 59 ms
21,624 KB
testcase_18 AC 58 ms
19,536 KB
testcase_19 AC 59 ms
19,592 KB
testcase_20 AC 59 ms
21,632 KB
testcase_21 AC 60 ms
21,488 KB
testcase_22 AC 60 ms
21,628 KB
testcase_23 AC 59 ms
23,600 KB
testcase_24 AC 60 ms
21,652 KB
testcase_25 AC 60 ms
21,556 KB
testcase_26 AC 59 ms
21,712 KB
testcase_27 AC 60 ms
21,644 KB
testcase_28 AC 59 ms
21,536 KB
testcase_29 AC 59 ms
23,648 KB
testcase_30 AC 53 ms
23,372 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using System;
using System.Linq;

public class Program
{
    const int RED_GREEN_BLUE = 3;
    public static void Main(string[] args)
    {
        var colors = new[] { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
                                      "A", "B", "C", "D", "E", "F" };
        var patterns = 1;
        var remain = 0;
        var line = string.Empty;
        for (var i = 0; i < RED_GREEN_BLUE; i++)
        {
            line = Console.ReadLine();
            remain = (line == "NONE") ? colors.Count() : colors.Except(line.Split(',').ToArray()).Count();
            patterns *= remain * remain;
        }
        Console.WriteLine(patterns);
    }
}
0