結果
問題 |
No.820 Power of Two
|
ユーザー |
![]() |
提出日時 | 2019-08-22 15:22:04 |
言語 | C (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 1 ms / 2,000 ms |
コード長 | 410 bytes |
コンパイル時間 | 305 ms |
コンパイル使用メモリ | 30,592 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-12 11:17:34 |
合計ジャッジ時間 | 834 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
ソースコード
#include <stdio.h> #include <stdlib.h> #include <string.h> #include <stdbool.h> #include <math.h> int main(void) { int n,k,cnt=0; int x=1,big=1,ans=0; scanf("%d %d",&n,&k); for(int i=1;i<=k;i++) { x = x * 2; } for(int i=1;i<=n;i++) { big = big * 2; } cnt = big / x; printf("%d",cnt); }