結果
問題 | No.1101 鼻水 |
ユーザー |
![]() |
提出日時 | 2020-07-03 22:36:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 378 bytes |
コンパイル時間 | 3,402 ms |
コンパイル使用メモリ | 214,436 KB |
最終ジャッジ日時 | 2025-01-11 14:55:52 |
ジャッジサーバーID (参考情報) |
judge2 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#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<<r<<endl; return 0; }