結果
問題 |
No.820 Power of Two
|
ユーザー |
![]() |
提出日時 | 2019-04-27 20:14:04 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
MLE
|
実行時間 | - |
コード長 | 493 bytes |
コンパイル時間 | 631 ms |
コンパイル使用メモリ | 66,536 KB |
実行使用メモリ | 816,540 KB |
最終ジャッジ日時 | 2024-11-29 11:54:25 |
合計ジャッジ時間 | 16,202 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | MLE * 10 |
ソースコード
#include<algorithm> #include<iostream> #include<stdio.h> #include<string> #include<vector> #include <cmath> using namespace std; typedef long long ll; int main(){ cin.tie(0); ios::sync_with_stdio(false); // input ll N,K; cin >> N >> K; ll Z = pow(2,N); ll X = pow(2,K); ll flag = 0; ll i = 1; vector<ll> in; while(flag <= Z){ in.push_back(i*X); i++; flag = i*flag; } cout << in.size() << endl; return 0; }