結果
| 問題 | No.820 Power of Two |
| コンテスト | |
| ユーザー |
funakoshi
|
| 提出日時 | 2019-08-22 15:22:04 |
| 言語 | C(gnu17) (gcc 15.3.0) |
| 結果 |
AC
不安定
|
| 実行時間 | 0 ms / 2,000 ms |
| + 916µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 89 ms |
| コンパイル使用メモリ | 40,156 KB |
| 実行使用メモリ | 9,844 KB |
| 最終ジャッジ日時 | 2026-10-13 04:02:53 |
| 合計ジャッジ時間 | 1,431 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 13 |
ソースコード
#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