結果

問題 No.632 穴埋め門松列
ユーザー saran1591saran1591
提出日時 2018-06-28 10:46:02
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 54 ms / 1,000 ms
コード長 368 bytes
コンパイル時間 2,001 ms
コンパイル使用メモリ 101,136 KB
実行使用メモリ 23,412 KB
最終ジャッジ日時 2023-09-13 14:38:14
合計ジャッジ時間 2,956 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
21,432 KB
testcase_01 AC 51 ms
21,396 KB
testcase_02 AC 52 ms
21,532 KB
testcase_03 AC 53 ms
21,460 KB
testcase_04 AC 52 ms
21,356 KB
testcase_05 AC 54 ms
23,412 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Microsoft (R) Visual C# Compiler version 3.9.0-6.21124.20 (db94f4cc)
Copyright (C) Microsoft Corporation. All rights reserved.

ソースコード

diff #

using static System.Console;
using System.Linq;
namespace App
{
    class Prog
    {
        static void Main()
        {
            var x = ReadLine().Split().ToArray();
            if (x[1] == "?")
            {
                WriteLine("14");
                return;
            }
            WriteLine((x[0] == "2" || x[2] == "2") ? "1" : "4");
        }
    }
}
0