結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
numatanumanuma
|
| 提出日時 | 2019-06-14 02:40:35 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 369 bytes |
| コンパイル時間 | 1,530 ms |
| コンパイル使用メモリ | 158,916 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-06 14:10:14 |
| 合計ジャッジ時間 | 2,330 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
//(・∀・)ノ
#include <bits/stdc++.h>
using namespace std;
typedef long long int ll;
#define rep(i,a,b) for(int i=a;i<b;i++)
#define rrep(i,a,b) for(int i=a;i>=b;i--)
#define print(s) cout<<(s)<<endl
int main() {
int N, K;
cin >> N >> K;
if (N < K){
print(0);
}else{
ll ans = pow(2, N - K);
print(ans);
}
return 0;
}
numatanumanuma