結果
問題 |
No.820 Power of Two
|
ユーザー |
|
提出日時 | 2019-06-10 00:22:48 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 330 bytes |
コンパイル時間 | 362 ms |
コンパイル使用メモリ | 29,312 KB |
実行使用メモリ | 10,496 KB |
最終ジャッジ日時 | 2024-10-06 00:23:15 |
合計ジャッジ時間 | 3,722 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 1 WA * 1 TLE * 1 -- * 7 |
ソースコード
#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 (;1;) { if (k <= n) { count++; k = k * 2; } else { break; } } printf("%d\n", count); return (0); }