結果
| 問題 | No.47 ポケットを叩くとビスケットが2倍 |
| コンテスト | |
| ユーザー |
a01sa01to
|
| 提出日時 | 2024-02-23 00:10:47 |
| 言語 | C++17(gcc12) (gcc 12.4.0 + boost 1.90.0) |
| 結果 |
CE
(最新)
AC
(最初)
|
| 実行時間 | - |
| コード長 | 354 bytes |
| 記録 | |
| コンパイル時間 | 1,668 ms |
| コンパイル使用メモリ | 191,304 KB |
| 最終ジャッジ日時 | 2026-07-03 19:08:33 |
| 合計ジャッジ時間 | 2,610 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
コンパイルエラー時のメッセージ・ソースコードは、提出者また管理者しか表示できないようにしております。(リジャッジ後のコンパイルエラーは公開されます)
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
ただし、clay言語の場合は開発者のデバッグのため、公開されます。
コンパイルメッセージ
main.cpp: In function ‘int main()’:
main.cpp:16:21: error: ‘bit_ceil’ was not declared in this scope
16 | cout << bit_width(bit_ceil(n)) - 1 << endl;
| ^~~~~~~~
main.cpp:16:11: error: ‘bit_width’ was not declared in this scope
16 | cout << bit_width(bit_ceil(n)) - 1 << endl;
| ^~~~~~~~~
ソースコード
#include <bits/stdc++.h>
using namespace std;
#ifdef LOCAL
#include "settings/debug.cpp"
#define _GLIBCXX_DEBUG
#else
#define Debug(...) void(0)
#endif
#define rep(i, n) for (int i = 0; i < (n); ++i)
using ll = long long;
using ull = unsigned long long;
int main() {
ull n;
cin >> n;
cout << bit_width(bit_ceil(n)) - 1 << endl;
return 0;
}
a01sa01to