結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
Ilag
|
| 提出日時 | 2020-03-20 20:41:07 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 752µs | |
| コード長 | 324 bytes |
| 記録 | |
| コンパイル時間 | 1,005 ms |
| コンパイル使用メモリ | 183,344 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-10-13 04:13:37 |
| 合計ジャッジ時間 | 2,453 ms |
|
ジャッジサーバーID (参考情報) |
judge4_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#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