結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-26 21:40:10 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 420 bytes |
| コンパイル時間 | 488 ms |
| コンパイル使用メモリ | 69,712 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-11-25 02:28:09 |
| 合計ジャッジ時間 | 937 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
/* https://yukicoder.me/problems/no/820 */
#include <iostream>
#include <vector>
#include <set>
#include <map>
#include <cmath>
#include <algorithm>
using namespace std;
/* {{{ Variables */
int N, K;
/* }}} */
int main(int argc, char *argv[])
{
/* {{{ Input */
cin >> N >> K;
/* }}} */
/* {{{ Output */
long long n = pow(2, N), k = pow(2, K), num = n/k;
cout << num << endl;
/* }}} */
return 0;
}