結果

問題 No.790 ちきんの括弧並べ
ユーザー keymoonkeymoon
提出日時 2019-04-25 14:03:59
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 24 ms / 2,000 ms
コード長 959 bytes
コンパイル時間 1,053 ms
コンパイル使用メモリ 102,400 KB
実行使用メモリ 17,664 KB
最終ジャッジ日時 2024-04-29 20:19:50
合計ジャッジ時間 2,214 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 23 ms
17,536 KB
testcase_01 AC 24 ms
17,664 KB
testcase_02 AC 24 ms
17,536 KB
testcase_03 AC 23 ms
17,408 KB
testcase_04 AC 23 ms
17,408 KB
testcase_05 AC 23 ms
17,408 KB
testcase_06 AC 23 ms
17,408 KB
testcase_07 AC 22 ms
17,408 KB
testcase_08 AC 24 ms
17,408 KB
testcase_09 AC 22 ms
17,280 KB
testcase_10 AC 22 ms
17,536 KB
testcase_11 AC 21 ms
17,536 KB
testcase_12 AC 22 ms
17,536 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.IO;
using System.Linq;
using System.Numerics;
using System.Collections;
using System.Collections.Generic;
using System.Text;
using System.Text.RegularExpressions;
using System.Threading.Tasks;
using static System.Math;
using LayoutKind = System.Runtime.InteropServices.LayoutKind;
using Debug = System.Diagnostics.Debug;
using StructLayoutAttribute = System.Runtime.InteropServices.StructLayoutAttribute;
using FieldOffsetAttribute = System.Runtime.InteropServices.FieldOffsetAttribute;
using MethodImplOptions = System.Runtime.CompilerServices.MethodImplOptions;
using MethodImplAttribute = System.Runtime.CompilerServices.MethodImplAttribute;
using System.Runtime.CompilerServices;

static class P
{
    static void Main()
    {
        var catalan = new int[] { 1, 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694845 };
        Console.WriteLine(catalan[int.Parse(Console.ReadLine())]);
    }
}
0