結果
問題 |
No.47 ポケットを叩くとビスケットが2倍
|
ユーザー |
|
提出日時 | 2025-08-29 01:32:20 |
言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 471 bytes |
コンパイル時間 | 2,703 ms |
コンパイル使用メモリ | 277,304 KB |
実行使用メモリ | 7,720 KB |
最終ジャッジ日時 | 2025-08-29 01:32:24 |
合計ジャッジ時間 | 3,868 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 21 |
ソースコード
#include <bits/stdc++.h> #include <atcoder/dsu> using namespace atcoder; using namespace std; using ll = int64_t; using ull = u_int64_t; #define ALL(a) (a).begin(), (a).end() #define endl '\n' #define Yes cout << "Yes" << endl #define No cout << "No" << endl int main() { ios::sync_with_stdio(false); cin.tie(nullptr); ll N; cin >> N; ll cnt = 0; ll tmp = 1; while (N > tmp) { cnt++; tmp *= 2; } cout << cnt << endl; }