結果

問題 No.632 穴埋め門松列
ユーザー mbanmban
提出日時 2018-01-31 07:51:55
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 53 ms / 1,000 ms
コード長 1,374 bytes
コンパイル時間 4,407 ms
コンパイル使用メモリ 107,512 KB
実行使用メモリ 22,524 KB
最終ジャッジ日時 2023-08-28 17:17:34
合計ジャッジ時間 4,963 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
20,584 KB
testcase_01 AC 53 ms
22,468 KB
testcase_02 AC 53 ms
20,460 KB
testcase_03 AC 52 ms
22,396 KB
testcase_04 AC 52 ms
20,596 KB
testcase_05 AC 52 ms
22,524 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.Collections;
using System.Collections.Generic;
using System.Collections.Specialized;
using System.Text;
using System.Text.RegularExpressions;
using System.Linq;
using System.IO;
using System.Diagnostics;

class Scanner
{
    private readonly char Separator = ' ';
    private int Index = 0;
    private string[] Line = new string[0];
    public string Next()
    {
        if (Index >= Line.Length)
        {
            Line = Console.ReadLine().Split(Separator);
            Index = 0;
        }
        var ret = Line[Index];
        Index++;
        return ret;
    }

    public int NextInt()
    {
        return int.Parse(Next());
    }

    public long NextLong()
    {
        return long.Parse(Next());
    }
}

class Program
{

    public void Solve()
    {
        var a = Console.ReadLine().Split(' ');
        string ans;
        switch(a[1])
        {
            case "?":
                ans = "14";
                break;
            case "3":
                ans = "1";
                break;
            case "2":
                ans = "4";
                break;
            default:
                throw new Exception();
        }
        Console.WriteLine(ans);
    }

    private bool TwoPow(long n)
    {
        return (n & (n - 1)) == 0;
    }

    static public void Main()
    {
        new Program().Solve();
    }
}
0