結果
問題 |
No.820 Power of Two
|
ユーザー |
![]() |
提出日時 | 2019-05-25 12:43:23 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 447 bytes |
コンパイル時間 | 591 ms |
コンパイル使用メモリ | 90,176 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-17 15:02:59 |
合計ジャッジ時間 | 1,052 ms |
ジャッジサーバーID (参考情報) |
judge6 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <iostream> #include <vector> #include <set> #include <algorithm> #include <math.h> #include <string.h> #include <map> #include <numeric> #include <random> #include <queue> #include <tuple> #include <iomanip> using namespace std; const int MOD = 1000000007; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); int N,K; cin>>N>>K; if(N>=K){ cout<<(1<<(N-K))<<endl; }else{ cout<<0<<endl; } }