結果

問題 No.1101 鼻水
ユーザー umezo
提出日時 2020-07-03 22:30:33
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 377 bytes
コンパイル時間 1,931 ms
コンパイル使用メモリ 216,688 KB
最終ジャッジ日時 2025-01-11 14:54:43
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 10 WA * 12
権限があれば一括ダウンロードができます

ソースコード

diff #

#define _GLIBCXX_DEBUG
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
#define ALL(v) v.begin(), v.end()
typedef long long ll;

#include <bits/stdc++.h>
using namespace std;

int main() {
  ll v,t,p;
  cin>>v>>t>>p;
  
  ll l=0,r=9223372036854775807;
  while(r-l>1){
    ll m=(l+r)/2;
    if(m-1-(m-1)/t-(p+1)*v>0) r=m;
    else l=m;
  }
  
  cout<<l<<endl;

  return 0;
}
0