結果

問題 No.741 AscNumber(Easy)
ユーザー suikameron1suikameron1
提出日時 2018-11-10 11:31:23
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 604 bytes
コンパイル時間 1,514 ms
コンパイル使用メモリ 67,300 KB
実行使用メモリ 99,548 KB
最終ジャッジ日時 2023-08-15 10:54:23
合計ジャッジ時間 8,059 ms
ジャッジサーバーID
(参考情報)
judge12 / judge11
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 56 ms
22,796 KB
testcase_01 AC 56 ms
22,708 KB
testcase_02 AC 55 ms
20,636 KB
testcase_03 AC 56 ms
22,680 KB
testcase_04 AC 55 ms
22,688 KB
testcase_05 AC 56 ms
22,608 KB
testcase_06 AC 55 ms
20,712 KB
testcase_07 AC 56 ms
22,800 KB
testcase_08 AC 56 ms
20,756 KB
testcase_09 AC 56 ms
22,688 KB
testcase_10 AC 55 ms
20,644 KB
testcase_11 AC 56 ms
22,764 KB
testcase_12 AC 56 ms
22,776 KB
testcase_13 AC 56 ms
20,716 KB
testcase_14 AC 55 ms
20,716 KB
testcase_15 AC 56 ms
22,800 KB
testcase_16 AC 56 ms
22,704 KB
testcase_17 AC 55 ms
22,820 KB
testcase_18 AC 55 ms
22,608 KB
testcase_19 AC 54 ms
20,764 KB
testcase_20 WA -
testcase_21 WA -
testcase_22 WA -
testcase_23 WA -
testcase_24 WA -
testcase_25 WA -
testcase_26 WA -
testcase_27 WA -
testcase_28 WA -
testcase_29 WA -
testcase_30 WA -
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
testcase_41 WA -
testcase_42 WA -
testcase_43 WA -
testcase_44 WA -
testcase_45 WA -
testcase_46 WA -
testcase_47 WA -
testcase_48 WA -
testcase_49 WA -
testcase_50 WA -
testcase_51 WA -
testcase_52 WA -
testcase_53 WA -
testcase_54 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

using System;
using System.Linq;//リストの使用
using System.Collections.Generic;
using System.Text;//テキストの高速出力に必要
class Program
{
	static void Main()
	{
		long n = long.Parse(Console.ReadLine());
		long[,] dp = new long[n+1,10];//dp[左からn桁見たとき、最後に見た位以下の値]=何通りか

    for(int i = 0; i <= 9; i++) dp[1,i] = i+1;

    for(int i = 2; i <= n; i++)
    {
      for(int j = 0; j <= 9; j++)
      {
        if(j == 0) dp[i,j] = dp[i-1,j];
        else dp[i,j] = dp[i-1,j] + dp[i,j-1];
      }
    }
    
		Console.WriteLine(dp[n,9]);
	}
}
0