結果
| 問題 |
No.3355 対数の整数部分
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2025-11-14 21:39:38 |
| 言語 | C++23 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 418 bytes |
| コンパイル時間 | 975 ms |
| コンパイル使用メモリ | 104,716 KB |
| 実行使用メモリ | 7,852 KB |
| 最終ジャッジ日時 | 2025-11-14 21:40:35 |
| 合計ジャッジ時間 | 1,858 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 29 WA * 1 |
ソースコード
#include <iostream>
#include <iomanip>
#include <cmath>
namespace man {
constexpr inline long double log(const long long x, const long double base = 2) noexcept { return std::log2l(x) / std::log2l(base); }
}
int main() {
std::cin.tie(nullptr) -> sync_with_stdio(false);
long long n, m;
std::cin >> n >> m;
std::cout << std::fixed << std::setprecision(12) << static_cast<int>(man::log(m, n)) << '\n';
}