結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
mas9612
|
| 提出日時 | 2019-08-02 22:44:33 |
| 言語 | C++11 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
TLE
不安定
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 266 bytes |
| 記録 | |
| コンパイル時間 | 363 ms |
| コンパイル使用メモリ | 78,152 KB |
| 実行使用メモリ | 9,904 KB |
| 最終ジャッジ日時 | 2026-10-13 04:01:30 |
| 合計ジャッジ時間 | 6,488 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge2_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 2 TLE * 1 -- * 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