結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2024-10-11 10:36:55 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 317 bytes |
コンパイル時間 | 1,641 ms |
コンパイル使用メモリ | 167,216 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-11 10:36:57 |
合計ジャッジ時間 | 2,452 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define rep(i,n) for(int i = 0; i < int(n); i++) int main(){ cin.tie(nullptr); ios_base::sync_with_stdio(false); int n; cin >> n; int now = 1; int cnt = 0; while(true){ if(now >= n){ cout << cnt << endl; return 0; } now *= 2; cnt++; } return 0; }