結果

問題 No.411 昇順昇順ソート
ユーザー mbanmban
提出日時 2016-12-29 18:50:10
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 531 bytes
コンパイル時間 2,266 ms
コンパイル使用メモリ 104,136 KB
実行使用メモリ 25,240 KB
最終ジャッジ日時 2023-08-21 18:14:51
合計ジャッジ時間 5,927 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
23,248 KB
testcase_01 AC 62 ms
23,180 KB
testcase_02 AC 63 ms
25,200 KB
testcase_03 AC 61 ms
21,100 KB
testcase_04 AC 62 ms
23,172 KB
testcase_05 AC 61 ms
23,176 KB
testcase_06 AC 62 ms
23,176 KB
testcase_07 AC 62 ms
25,228 KB
testcase_08 AC 62 ms
25,172 KB
testcase_09 AC 61 ms
23,136 KB
testcase_10 AC 62 ms
23,136 KB
testcase_11 AC 61 ms
23,120 KB
testcase_12 AC 62 ms
23,188 KB
testcase_13 AC 61 ms
23,112 KB
testcase_14 AC 61 ms
23,180 KB
testcase_15 AC 61 ms
23,156 KB
testcase_16 AC 61 ms
25,184 KB
testcase_17 AC 62 ms
23,128 KB
testcase_18 AC 61 ms
25,168 KB
testcase_19 AC 61 ms
23,012 KB
testcase_20 AC 61 ms
24,932 KB
testcase_21 AC 61 ms
24,864 KB
testcase_22 AC 61 ms
24,936 KB
testcase_23 WA -
testcase_24 WA -
testcase_25 AC 61 ms
23,128 KB
testcase_26 AC 61 ms
22,788 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 61 ms
23,132 KB
testcase_30 AC 63 ms
23,184 KB
testcase_31 AC 62 ms
23,064 KB
testcase_32 AC 62 ms
22,872 KB
testcase_33 AC 62 ms
22,852 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;

class Magatro
{

    static void Main()
    {
        int N, K;
        string[] s = Console.ReadLine().Split(' ');
        N = int.Parse(s[0]);
        K = int.Parse(s[1]);
        if (K == 1)
        {
            Console.WriteLine(Math.Pow(2,--N)-N);
            return;
        }
        Console.WriteLine(Math.Pow(2, N - K));
    }
}



0