結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
![]() |
提出日時 | 2017-11-22 20:07:38 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 1,277 ms |
コンパイル使用メモリ | 157,272 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-26 11:22:09 |
合計ジャッジ時間 | 2,298 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 20 WA * 1 |
ソースコード
#include<bits/stdc++.h> using namespace std; #define NUM 10000 int num[NUM]; int main(){ int N; cin >> N; int sheets = 1; int cnt = 0; while(true){ sheets *= 2; cnt++; if(sheets >= N) break; } cout << cnt << endl; return 0; }