結果

問題 No.820 Power of Two
ユーザー YkMlqYkMlq
提出日時 2019-04-26 21:27:18
言語 C++11
(gcc 11.4.0)
結果
WA  
実行時間 -
コード長 340 bytes
コンパイル時間 1,270 ms
コンパイル使用メモリ 157,440 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-05-03 21:26:23
合計ジャッジ時間 1,810 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
5,248 KB
testcase_01 AC 2 ms
5,376 KB
testcase_02 WA -
testcase_03 AC 1 ms
5,376 KB
testcase_04 AC 2 ms
5,376 KB
testcase_05 AC 1 ms
5,376 KB
testcase_06 AC 2 ms
5,376 KB
testcase_07 AC 1 ms
5,376 KB
testcase_08 AC 1 ms
5,376 KB
testcase_09 AC 2 ms
5,376 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
#define rep(i, n) for(int i=0; i<(n); ++i)
#define rep1(i,n) for(int i=1; i<=(n); ++i)
#define ALL(obj) (obj).begin(), (obj).end()
#define sz(v) (int)v.size()
#define pb push_back

using namespace std;
int N,K;

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