結果
問題 | No.820 Power of Two |
ユーザー | guracoro_corori |
提出日時 | 2019-06-24 20:28:41 |
言語 | C++11 (gcc 11.4.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 206 bytes |
コンパイル時間 | 1,367 ms |
コンパイル使用メモリ | 56,828 KB |
実行使用メモリ | 4,384 KB |
最終ジャッジ日時 | 2023-09-03 18:55:26 |
合計ジャッジ時間 | 1,205 ms |
ジャッジサーバーID (参考情報) |
judge11 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,376 KB |
testcase_01 | AC | 2 ms
4,380 KB |
testcase_02 | WA | - |
testcase_03 | AC | 1 ms
4,384 KB |
testcase_04 | AC | 2 ms
4,376 KB |
testcase_05 | AC | 2 ms
4,380 KB |
testcase_06 | AC | 2 ms
4,380 KB |
testcase_07 | AC | 2 ms
4,380 KB |
testcase_08 | AC | 1 ms
4,380 KB |
testcase_09 | AC | 1 ms
4,376 KB |
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; int main(){ int num,num2; cin>>num>>num2; if(num<num2){ cout<<0<<endl; }else{ cout<<pow(2,num-num2)<<endl; } }