結果
問題 | No.2416 vs Slime |
ユーザー |
![]() |
提出日時 | 2023-08-12 13:47:27 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 356 bytes |
コンパイル時間 | 1,944 ms |
コンパイル使用メモリ | 192,300 KB |
最終ジャッジ日時 | 2025-02-16 03:39:46 |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | AC * 37 |
ソースコード
#include<bits/stdc++.h>using namespace std;int main(){cin.tie(nullptr);ios::sync_with_stdio(false);long double H, A;cin >> H >> A;uint64_t ans = 1ULL;H = floor(H/A);while (H > 0){H = floor(H/A);ans += 1ULL;};ans = 1ULL << ans;ans -= 1ULL;cout << ans << '\n';return 0;}