結果

問題 No.820 Power of Two
ユーザー icemaniceman
提出日時 2019-04-26 21:47:57
言語 C++17(clang)
(17.0.6 + boost 1.83.0)
結果
TLE  
(最新)
AC  
(最初)
実行時間 -
コード長 212 bytes
コンパイル時間 856 ms
コンパイル使用メモリ 90,064 KB
実行使用メモリ 7,796 KB
最終ジャッジ日時 2023-08-20 12:21:44
合計ジャッジ時間 4,150 ms
ジャッジサーバーID
(参考情報)
judge11 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 1 ms
4,380 KB
testcase_01 AC 1 ms
4,380 KB
testcase_02 TLE -
testcase_03 -- -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <math.h>
using namespace std;
int main(void){
    // Your code here!
    long long n , k;
    long long i = 1;
    cin >> n >> k;
    for(;pow(2,k)*i<=pow(2,n);i++);
    cout<<i-1;
}
0