結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-04-27 09:53:38 |
| 言語 | C (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 2,000 ms |
| コード長 | 227 bytes |
| 記録 | |
| コンパイル時間 | 223 ms |
| コンパイル使用メモリ | 38,980 KB |
| 最終ジャッジ日時 | 2026-02-22 03:13:28 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 10 |
ソースコード
#include <stdio.h>
#include <math.h>
int main(void)
{
int n,k;
long int x;
scanf("%d %d",&n,&k);
if (n<k){
puts("0");
} else {
x = pow(2,n-k);
printf("%d\n",x);
}
return 0;
}