結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
mas9612
|
| 提出日時 | 2019-08-02 22:44:33 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 405 ms / 2,000 ms |
| コード長 | 266 bytes |
| コンパイル時間 | 459 ms |
| コンパイル使用メモリ | 60,576 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-05 08:19:05 |
| 合計ジャッジ時間 | 1,390 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <cmath>
#include <iostream>
using namespace std;
int main() {
int n, k;
cin >> n >> k;
int count = 0;
int max = pow(2, n);
int base = pow(2, k);
for (int i = 1; base * i <= max; ++i)
++count;
cout << count << '\n';
}
mas9612