結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2024-10-11 10:35:45 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 317 bytes |
コンパイル時間 | 1,668 ms |
コンパイル使用メモリ | 165,004 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-11 10:35:47 |
合計ジャッジ時間 | 2,610 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 1 |
ソースコード
#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){ now *= 2; cnt++; if(now >= n){ cout << cnt << endl; return 0; } } return 0; }