結果

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

ソースコード

diff #

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

int main(){

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

	if( n-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