結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
raiseha_bunkei
|
| 提出日時 | 2019-08-28 22:46:06 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 213 bytes |
| コンパイル時間 | 192 ms |
| コンパイル使用メモリ | 30,208 KB |
| 実行使用メモリ | 13,768 KB |
| 最終ジャッジ日時 | 2024-11-17 16:39:00 |
| 合計ジャッジ時間 | 15,831 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 5 TLE * 5 |
ソースコード
#include <stdio.h>
#include <string.h>
#include <math.h>
int main() {
int N,K;
int i,count=0;
scanf("%ld%ld",&N,&K);
for(i=1; i<=pow(2, N);i++){
if(i%(int)(pow(2,K))==0) count++;
}
printf("%d\n",count);
}
raiseha_bunkei