結果

問題 No.1101 鼻水
ユーザー mamimume____mo
提出日時 2020-07-07 22:11:00
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 737 bytes
コンパイル時間 755 ms
コンパイル使用メモリ 83,552 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-01 21:09:42
合計ジャッジ時間 1,634 ms
ジャッジサーバーID
(参考情報)
judge4 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

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;

ll v,t,p;
bool check(ll mid){
	//mid秒を達成出来るかどうか.
	if(mid / t >= mid - v * (p+1)){
		return true;
	}

	return false;
}

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

	//まず,v*(p+1)は少なくとも達成出来る.
	//グラフをかく

	
	cout << (p+1) * v + ((p+1) * v - 1) / (t-1) + 1 << endl;
}
0