結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-22 15:22:04 |
| 言語 | C(gnu17) (gcc 15.2.0) |
| 結果 |
AC
|
| 実行時間 | 0 ms / 2,000 ms |
| + 858µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 69 ms |
| コンパイル使用メモリ | 39,040 KB |
| 実行使用メモリ | 5,888 KB |
| 最終ジャッジ日時 | 2026-07-22 12:10:35 |
| 合計ジャッジ時間 | 1,281 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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);
}
funakoshi