結果

問題 No.785 色食い虫
ユーザー bluemeganebluemegane
提出日時 2021-04-15 17:34:52
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 57 ms / 2,000 ms
コード長 429 bytes
コンパイル時間 1,883 ms
コンパイル使用メモリ 65,368 KB
実行使用メモリ 23,404 KB
最終ジャッジ日時 2023-09-14 17:22:50
合計ジャッジ時間 4,496 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 55 ms
21,180 KB
testcase_01 AC 57 ms
21,184 KB
testcase_02 AC 56 ms
21,284 KB
testcase_03 AC 56 ms
23,280 KB
testcase_04 AC 56 ms
21,164 KB
testcase_05 AC 56 ms
23,228 KB
testcase_06 AC 56 ms
23,404 KB
testcase_07 AC 55 ms
19,248 KB
testcase_08 AC 55 ms
21,152 KB
testcase_09 AC 56 ms
21,224 KB
testcase_10 AC 56 ms
23,312 KB
testcase_11 AC 56 ms
21,172 KB
testcase_12 AC 55 ms
21,180 KB
testcase_13 AC 55 ms
19,272 KB
testcase_14 AC 56 ms
21,356 KB
testcase_15 AC 55 ms
19,304 KB
testcase_16 AC 56 ms
23,300 KB
testcase_17 AC 56 ms
23,340 KB
testcase_18 AC 57 ms
23,212 KB
testcase_19 AC 57 ms
21,244 KB
testcase_20 AC 56 ms
23,272 KB
testcase_21 AC 57 ms
21,212 KB
testcase_22 AC 56 ms
23,296 KB
testcase_23 AC 56 ms
21,108 KB
testcase_24 AC 56 ms
21,176 KB
testcase_25 AC 56 ms
23,348 KB
testcase_26 AC 55 ms
19,240 KB
testcase_27 AC 55 ms
19,132 KB
testcase_28 AC 56 ms
21,324 KB
testcase_29 AC 57 ms
21,108 KB
testcase_30 AC 54 ms
21,416 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

using System.Linq;
using System;


public class Hello
{
    static void Main()
    {
        var ans = 1;
        for (int i = 0; i < 3; i++)
        {
            var s = Console.ReadLine().Trim();
            if (s == "NONE") ans *= 16 * 16;
            else
            {
                var c = s.Split(',').Count();
                ans *= (16 - c) * (16 - c);
            }
        }
        Console.WriteLine(ans);
    }
}
0