結果

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

ソースコード

diff #

#include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <iostream>
#include <map>
#include <queue>
#include <deque>
#include <string>
#include <stack>
#include <vector>
#include <set>
#include <tuple>
#include <utility>
#include <functional>
using namespace std;
typedef long long ll;
typedef pair<int,int> P;
typedef tuple<int,int,int> T;
const int INF = 1000000000;
const int MOD = 1000000007;
int main(){
	ll v,t,p;
	cin >> v >> t >> p;

	ll ok = 0;
	ll ng = 2e18;
	while(ng - ok > 1){
		ll mid = (ok + ng) / 2;
		if(mid - p * v - mid/t <= v)ok = mid;
		else ng = mid;
	}

	cout << ok + 1 << endl;
}
0