結果
| 問題 |
No.820 Power of Two
|
| コンテスト | |
| ユーザー |
proribone
|
| 提出日時 | 2019-06-03 15:16:25 |
| 言語 | C (gcc 13.3.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 234 bytes |
| コンパイル時間 | 111 ms |
| コンパイル使用メモリ | 30,720 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-17 20:25:40 |
| 合計ジャッジ時間 | 3,542 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 6 TLE * 4 |
ソースコード
#include<stdio.h>
#include<math.h>
int main(){
int n,k;
int i;
int c=0;
scanf("%d%d",&n,&k);
int a=(pow(2,n));
int b=(pow(2,k));
for(i=1;i<=a;i++){
if(i%b==0){
c++;
}
}
printf("%d\n",c);
return 0;
}
proribone