結果

問題 No.411 昇順昇順ソート
ユーザー tetsuzuki1115
提出日時 2018-04-12 23:56:08
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 473 bytes
コンパイル時間 679 ms
コンパイル使用メモリ 82,280 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-06-26 21:36:17
合計ジャッジ時間 1,600 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <string>
#include <cstring>
#include <math.h>
#include <cmath>
#include <limits.h>
#include <map>
#include <set>
#include <queue>
#include <algorithm>
#include <functional>
#include <stdio.h>
using namespace std;

long long MOD = 1000000007;

int main() {
    long long N,K;
    cin >> N >> K;
    if ( K == 1 ) {
        cout << (1<<(N-2))-1 << endl;
    }
    else {
        cout << (1<<(N-K)) << endl;
    }
    return 0;
}
0