結果

問題 No.820 Power of Two
ユーザー mmn15277198
提出日時 2020-06-02 20:16:25
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 276 bytes
コンパイル時間 732 ms
コンパイル使用メモリ 77,772 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-11-24 11:22:28
合計ジャッジ時間 1,310 ms
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <string>
#include <algorithm>
#include <vector>
#include <math.h>
#include <iomanip>

using namespace std;

int main(){
	int n,k;
	cin >> n >> k;
	long long x=pow(2,n);
	long long y=pow(2,k);
	long long ans=x/y;
	cout << ans << endl;
	return 0;
}
0