結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
Ilag
|
| 提出日時 | 2020-03-20 20:41:07 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 324 bytes |
| コンパイル時間 | 1,934 ms |
| コンパイル使用メモリ | 166,524 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-12-14 19:15:32 |
| 合計ジャッジ時間 | 2,136 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using P = pair<int, int>;
using PL = pair<ll, ll>;
// Welcome to my source code!
int main() {
ll n, k;
cin >> n >> k;
ll x = 1, y = 1;
for (int i = 0; i < n; i++) x *= 2;
for (int i = 0; i < k; i++) y *= 2;
cout << x / y << endl;
}
Ilag