結果
問題 | No.820 Power of Two |
ユーザー |
|
提出日時 | 2019-04-27 09:53:38 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 227 bytes |
コンパイル時間 | 281 ms |
コンパイル使用メモリ | 28,544 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-27 10:05:36 |
合計ジャッジ時間 | 874 ms |
ジャッジサーバーID (参考情報) |
judge3 / 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; }