結果

問題 No.820 Power of Two
ユーザー da_ha_
提出日時 2019-05-12 21:41:02
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 439 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 77,340 KB
実行使用メモリ 5,376 KB
最終ジャッジ日時 2024-07-05 17:29:54
合計ジャッジ時間 1,162 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <algorithm>
#include <string>
#include <vector>
#include <set>
#include <cmath>
#include <list>
#include <numeric>
#include <stack>
#include <queue>
#include <tuple>
#include <bitset>
using namespace std;
typedef long long ll;
#define rep(i,n) for(int i = 0; i < n; i++)
const int inf = 1012345678;




int main() {
    int N,K;
    cin >> N >> K;
    int ans = pow(2,N) / pow(2,K);
    cout << ans << endl;
}
0