結果
| 問題 |
No.2416 vs Slime
|
| コンテスト | |
| ユーザー |
kekenx
|
| 提出日時 | 2023-08-12 22:21:38 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 219 bytes |
| コンパイル時間 | 2,335 ms |
| コンパイル使用メモリ | 192,388 KB |
| 最終ジャッジ日時 | 2025-02-16 07:36:11 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 1 |
| other | AC * 35 WA * 2 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main() {
long long h, a;
cin >> h >> a;
long long count = 0;
while (h > 0) {
count++;
h /= a;
}
cout << pow(2LL, count) - 1 << '\n';
return 0;
}
kekenx