結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-17 13:22:03 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 256 bytes |
| コンパイル時間 | 552 ms |
| コンパイル使用メモリ | 58,308 KB |
| 実行使用メモリ | 17,088 KB |
| 最終ジャッジ日時 | 2024-09-17 05:53:27 |
| 合計ジャッジ時間 | 6,943 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | TLE * 1 -- * 9 |
ソースコード
#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;
}