結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2019-03-15 11:03:31 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 449 bytes |
コンパイル時間 | 791 ms |
コンパイル使用メモリ | 59,104 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-28 16:55:48 |
合計ジャッジ時間 | 2,205 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 WA * 1 |
other | AC * 2 WA * 19 |
ソースコード
#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; if(n > N){break;} else{ans += 1;} } print(ans); return 0; }