結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
KumaRyo4611
|
| 提出日時 | 2019-04-26 21:32:59 |
| 言語 | C++14 (gcc 15.2.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 328 bytes |
| 記録 | |
| コンパイル時間 | 450 ms |
| コンパイル使用メモリ | 89,728 KB |
| 実行使用メモリ | 9,984 KB |
| 最終ジャッジ日時 | 2026-05-19 09:16:43 |
| 合計ジャッジ時間 | 4,265 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 1 TLE * 1 -- * 7 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <cmath>
using namespace std;
int main(void) {
int N, K;
cin >> N >> K;
int ans = 0;
int max = pow(2, N), y = pow(2, K);;
y = pow(2, K);
while( y <= max){
ans++;
y *=2;
}
cout << ans << endl;
}
KumaRyo4611