結果

問題 No.820 Power of Two
ユーザー leaf_1415
提出日時 2019-04-26 21:21:31
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 178 bytes
コンパイル時間 520 ms
コンパイル使用メモリ 54,440 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-11-25 01:40:56
合計ジャッジ時間 1,051 ms
ジャッジサーバーID
(参考情報)
judge3 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 10
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>

using namespace std;

int main(void)
{
  int n, k;
  cin >> n >> k;
  if(n-k >= 0){
    cout << (1<<(n-k)) << endl;
  }else cout << 0 << endl;
  return 0;
}
0