結果

問題 No.411 昇順昇順ソート
ユーザー mbanmban
提出日時 2016-12-28 19:27:12
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 515 bytes
コンパイル時間 3,177 ms
コンパイル使用メモリ 101,080 KB
実行使用メモリ 25,252 KB
最終ジャッジ日時 2023-08-21 18:18:15
合計ジャッジ時間 5,704 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 62 ms
25,188 KB
testcase_01 AC 63 ms
23,192 KB
testcase_02 AC 62 ms
23,268 KB
testcase_03 AC 62 ms
25,220 KB
testcase_04 AC 62 ms
25,088 KB
testcase_05 AC 63 ms
25,096 KB
testcase_06 AC 63 ms
23,124 KB
testcase_07 AC 62 ms
23,240 KB
testcase_08 AC 62 ms
23,160 KB
testcase_09 AC 63 ms
23,196 KB
testcase_10 AC 63 ms
25,228 KB
testcase_11 AC 63 ms
23,128 KB
testcase_12 AC 63 ms
21,208 KB
testcase_13 AC 62 ms
23,248 KB
testcase_14 AC 62 ms
23,280 KB
testcase_15 AC 62 ms
25,180 KB
testcase_16 AC 62 ms
23,116 KB
testcase_17 AC 62 ms
25,212 KB
testcase_18 AC 62 ms
23,144 KB
testcase_19 AC 64 ms
25,216 KB
testcase_20 AC 62 ms
24,940 KB
testcase_21 AC 63 ms
22,868 KB
testcase_22 AC 63 ms
24,972 KB
testcase_23 AC 58 ms
20,700 KB
testcase_24 WA -
testcase_25 AC 62 ms
25,144 KB
testcase_26 AC 63 ms
22,884 KB
testcase_27 WA -
testcase_28 WA -
testcase_29 AC 64 ms
25,252 KB
testcase_30 AC 63 ms
23,104 KB
testcase_31 AC 62 ms
23,124 KB
testcase_32 AC 63 ms
22,912 KB
testcase_33 AC 62 ms
22,916 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(0);
            return;
        }
        Console.WriteLine(Math.Pow(2, N - K));
    }
}



0