結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
msm1993
|
| 提出日時 | 2020-10-29 17:37:38 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 2,000 ms |
| + 363µs | |
| コード長 | 270 bytes |
| 記録 | |
| コンパイル時間 | 887 ms |
| コンパイル使用メモリ | 182,704 KB |
| 実行使用メモリ | 9,396 KB |
| 最終ジャッジ日時 | 2026-08-22 15:08:04 |
| 合計ジャッジ時間 | 2,439 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
using P = pair<int,int>;
int main(void){
ll n, k;
cin >> n >> k;
if(n - k >= 0){
cout << ll(pow(2LL, n - k)) << endl;
}
else{
cout << 0 << endl;
}
return 0;
}
msm1993