結果
| 問題 |
No.1101 鼻水
|
| コンテスト | |
| ユーザー |
itohdak
|
| 提出日時 | 2020-07-03 22:26:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 530 bytes |
| コンパイル時間 | 1,740 ms |
| コンパイル使用メモリ | 191,668 KB |
| 最終ジャッジ日時 | 2025-01-11 14:53:05 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define REP(i,m,n) for(int i=(int)(m); i<(int)(n); i++)
#define rep(i,n) REP(i,0,n)
#define RREP(i,m,n) for(int i=(int)(m); i>=(int)(n); i--)
#define rrep(i,n) RREP(i,n-1,0)
#define all(v) v.begin(), v.end()
const int inf = 1e9+7;
const ll longinf = 1LL<<60;
const ll mod = 1e9+7;
int main() {
cin.tie(0);
ios::sync_with_stdio(false);
ll v, t, p; cin >> v >> t >> p;
ll V = v*(p+1);
cout << 1+(V-1)/(t-1)*t+(V-(V-1)/(t-1)*(t-1)) << "\n";
return 0;
}
itohdak