結果
問題 |
No.820 Power of Two
|
ユーザー |
![]() |
提出日時 | 2019-09-26 07:09:44 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 318 bytes |
コンパイル時間 | 560 ms |
コンパイル使用メモリ | 61,108 KB |
実行使用メモリ | 6,948 KB |
最終ジャッジ日時 | 2024-09-23 07:35:03 |
合計ジャッジ時間 | 1,202 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 9 WA * 1 |
ソースコード
#include <fstream> #include <iostream> #include <utility> #include <string> #include <cmath> int main() { //std::ifstream inf("Text.txt"); std::cin.rdbuf(inf.rdbuf()); int N, K; std::cin >> N >> K; if (N - K < 0) { std::cout << 0 << std::endl; } else { std::cout << std::pow(2, N - K) << std::endl; } }