結果
問題 | No.47 ポケットを叩くとビスケットが2倍 |
ユーザー |
![]() |
提出日時 | 2018-02-25 21:52:21 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 263 bytes |
コンパイル時間 | 515 ms |
コンパイル使用メモリ | 58,452 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-17 03:25:17 |
合計ジャッジ時間 | 1,380 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <iostream> #include <cmath> #include <cstdlib> using std::cout; using std::cin; using std::endl; int main(void) { int num; cin >> num; for(int i=0;;i++){ if ( num <= pow(2,i) ){ cout << i << endl; break; } } return 0; }