結果

問題 No.411 昇順昇順ソート
ユーザー claw88
提出日時 2016-08-13 22:44:39
言語 C#(csc)
(csc 3.9.0)
結果
WA  
実行時間 -
コード長 263 bytes
コンパイル時間 2,345 ms
コンパイル使用メモリ 105,216 KB
実行使用メモリ 20,480 KB
最終ジャッジ日時 2024-11-07 16:32:34
合計ジャッジ時間 4,431 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27 WA * 3
権限があれば一括ダウンロードができます
コンパイルメッセージ
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.Linq;

class Program
{
    static void Main()
    {
        var a = Console.ReadLine().Split().Select(i => int.Parse(i)).ToArray();
        if(a[1]==1) Console.WriteLine(0);
        else Console.WriteLine(Math.Pow(2,a[0]-a[1]));
    }
}
0