結果

問題 No.820 Power of Two
ユーザー himo
提出日時 2019-09-17 17:22:58
言語 C++11(廃止可能性あり)
(gcc 13.3.0)
結果
TLE  
実行時間 -
コード長 204 bytes
コンパイル時間 2,100 ms
コンパイル使用メモリ 157,780 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-07-07 13:17:38
合計ジャッジ時間 4,863 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 2 TLE * 1 -- * 7
権限があれば一括ダウンロードができます

ソースコード

diff #

#include "bits/stdc++.h"
using namespace std;

int main(){
int n,k;
cin >> n >>k;
int ans =0;
int che =pow(2,n);    
int z =pow(2,k);
for(int i=1;i<=che;i++){

    if(i%z==0)ans++;
}
cout << ans <<endl;
}
0