結果

問題 No.820 Power of Two
ユーザー KodamaKodama
提出日時 2019-05-17 13:22:03
言語 C++11
(gcc 11.4.0)
結果
TLE  
実行時間 -
コード長 256 bytes
コンパイル時間 532 ms
コンパイル使用メモリ 59,264 KB
実行使用メモリ 12,172 KB
最終ジャッジ日時 2023-10-17 07:17:16
合計ジャッジ時間 7,033 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

#include <iostream>
#include <string>
#include <cmath>
using namespace std;

int main()
{
    int N;
    int K;
    cin >> N >> K;

    int correct = 0;
    for (int x = 1; x < N; x * pow(2, K))
    {
        correct++;
    }
    cout << correct << endl;
}
0