結果

問題 No.1101 鼻水
ユーザー mencotton
提出日時 2020-11-02 21:32:03
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 407 bytes
コンパイル時間 479 ms
コンパイル使用メモリ 69,956 KB
実行使用メモリ 6,948 KB
最終ジャッジ日時 2024-07-22 08:04:40
合計ジャッジ時間 1,342 ms
ジャッジサーバーID
(参考情報)
judge4 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
#include <algorithm>

using namespace std;
using ll = long long;

int main() {
    ll v, t, p;
    cin >> v >> t >> p;

    ll ok = 0, ng = 3e18;
    while (ng - ok > 1) {
        ll mid = (ng + ok) / 2;

        mid -= (mid - 1) / t + 1;
        if (mid <= v * (p + 1))ok = (ng + ok) / 2;
        else ng = (ng + ok) / 2;
    }

    cout << ok << endl;
    return 0;
}
0