結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
leafirby
|
| 提出日時 | 2019-07-05 00:36:50 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 225 bytes |
| コンパイル時間 | 1,337 ms |
| コンパイル使用メモリ | 165,252 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 07:16:23 |
| 合計ジャッジ時間 | 1,938 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 1 WA * 9 |
ソースコード
#include<bits/stdc++.h>
using namespace std;;
int main(){
int L,M=2,N,K;
cin >> N >>K;
if(K>N)cout << 0 << endl;
else{
for(int i=N-K;i>0;i--){
M*=2;
}
cout << M << endl;
}
}
leafirby