結果

問題 No.411 昇順昇順ソート
ユーザー mbanmban
提出日時 2016-12-29 18:51:17
言語 C#(csc)
(csc 3.9.0)
結果
AC  
実行時間 65 ms / 2,000 ms
コード長 531 bytes
コンパイル時間 1,912 ms
コンパイル使用メモリ 102,896 KB
実行使用メモリ 25,204 KB
最終ジャッジ日時 2023-08-21 18:15:49
合計ジャッジ時間 5,259 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 61 ms
23,288 KB
testcase_01 AC 61 ms
23,200 KB
testcase_02 AC 61 ms
25,156 KB
testcase_03 AC 62 ms
23,228 KB
testcase_04 AC 62 ms
23,192 KB
testcase_05 AC 62 ms
23,324 KB
testcase_06 AC 62 ms
23,224 KB
testcase_07 AC 61 ms
23,128 KB
testcase_08 AC 61 ms
23,100 KB
testcase_09 AC 62 ms
23,216 KB
testcase_10 AC 61 ms
25,136 KB
testcase_11 AC 61 ms
23,176 KB
testcase_12 AC 61 ms
23,296 KB
testcase_13 AC 61 ms
23,040 KB
testcase_14 AC 62 ms
23,232 KB
testcase_15 AC 61 ms
21,108 KB
testcase_16 AC 61 ms
23,152 KB
testcase_17 AC 62 ms
25,132 KB
testcase_18 AC 61 ms
23,216 KB
testcase_19 AC 61 ms
23,160 KB
testcase_20 AC 61 ms
22,844 KB
testcase_21 AC 62 ms
22,884 KB
testcase_22 AC 62 ms
23,020 KB
testcase_23 AC 60 ms
22,940 KB
testcase_24 AC 63 ms
23,148 KB
testcase_25 AC 61 ms
23,124 KB
testcase_26 AC 60 ms
22,856 KB
testcase_27 AC 61 ms
23,172 KB
testcase_28 AC 61 ms
25,204 KB
testcase_29 AC 65 ms
23,064 KB
testcase_30 AC 61 ms
23,148 KB
testcase_31 AC 62 ms
23,128 KB
testcase_32 AC 61 ms
22,840 KB
testcase_33 AC 62 ms
25,044 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-1)-N);
            return;
        }
        Console.WriteLine(Math.Pow(2, N - K));
    }
}



0