結果

問題 No.411 昇順昇順ソート
ユーザー taba
提出日時 2017-05-18 23:23:20
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 1 ms / 2,000 ms
コード長 435 bytes
コンパイル時間 826 ms
コンパイル使用メモリ 108,472 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-09-18 19:15:56
合計ジャッジ時間 1,623 ms
ジャッジサーバーID
(参考情報)
judge5 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 30
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <cstdio>
#include <cstring>
#include <cmath>
#include <cassert>
#include <random>
#include <vector>
#include <algorithm>
#include <array>
#include <functional>
#include <utility>
#include <regex>
#include <tuple>
#include <map>

using namespace std;
template<typename T>
constexpr T gcd(T a,T b){
	return a%b?gcd(b,a%b):b;
}

int main(){
	int n,k,cnt=0;
	-scanf("%d%d",&n,&k);
	printf("%d\n",(1<<(n-k))-n*(k==1));
	return 0;
}
0