結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2016-09-13 02:15:53 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 297 bytes |
コンパイル時間 | 504 ms |
コンパイル使用メモリ | 58,492 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 04:19:09 |
合計ジャッジ時間 | 1,246 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | AC * 1 WA * 20 |
ソースコード
#include <iostream> #include <string> #include <cmath> using namespace std; int main() { double n, ans; cin >> n; for (double i = 0; pow(2, i) > pow(10, 8); i++) { if (n == 1) ans = 0; if (n > pow(2, i) && n <= pow(2, i + 1)) ans = i + 1; } cout << ans << endl; return 0; }