結果

問題 No.411 昇順昇順ソート
ユーザー Yut176
提出日時 2016-08-12 22:52:34
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 294 bytes
コンパイル時間 466 ms
コンパイル使用メモリ 62,976 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-07 15:38:44
合計ジャッジ時間 1,433 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 4
other AC * 27 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <cstdio>
#include <cmath>
#include <vector>
#include <algorithm>
using namespace std;

int main(){

	int n,k;
	cin >> n >> k;

	if( k == 1 ){
		cout << 0 << endl;
		return 0;
	}

	int ans = 1;
	for(int i=0;i<n-k;i++) ans *= 2;

	cout << ans << endl;
return 0;
}
	
	
0