結果
問題 |
No.820 Power of Two
|
ユーザー |
|
提出日時 | 2019-06-10 00:18:47 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 326 bytes |
コンパイル時間 | 125 ms |
コンパイル使用メモリ | 29,440 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-06 00:22:44 |
合計ジャッジ時間 | 567 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 9 |
ソースコード
#include<stdio.h> #include<math.h> int main(void) { int i,n,k,count; count = 0; scanf("%d %d", &n, &k); n = pow(2,n); k = pow(2,k); for (;k < n;) { if (k >= n) break; else { k = k * 2; count++; } } printf("%d\n", count); return (0); }