結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2019-03-15 11:01:35 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 443 bytes |
コンパイル時間 | 459 ms |
コンパイル使用メモリ | 59,128 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 16:55:05 |
合計ジャッジ時間 | 1,268 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 WA * 2 |
other | AC * 19 WA * 2 |
ソースコード
#include <iostream> #include <vector> #include <algorithm> #define REP(i, n) for(int i = 0; i < (int)(n); i++) #define print(x) cout << x << endl; using namespace std; const int MOD = (int)1e9 + 7; int main(void){ cin.tie(0); ios::sync_with_stdio(false); int N; cin >> N; int ans = 0; int n = 1; REP(i, n){ n *= 2; ans += 1; if(n > N){break;} } print(ans); return 0; }