結果

問題 No.1101 鼻水
ユーザー uw_yu1rabbit
提出日時 2020-08-16 11:33:03
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 404 bytes
コンパイル時間 3,539 ms
コンパイル使用メモリ 213,840 KB
最終ジャッジ日時 2025-01-13 01:56:03
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#pragma GCC target("avx")
#pragma GCC optimize("O3")
#pragma GCC optimize("unroll-loops")
#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (long long i = 0; i < (long long)(n); i++)
using ll = long long;
using P = pair<ll,ll>;

int main(){
ios::sync_with_stdio(false);
std::cin.tie(nullptr);
ll v,t,p;
cin >> v >> t >> p;
cout << (p + 1) * v + ((p + 1) * v - 1) / (t - 1) + 1 << endl;
}
0