結果
問題 | No.1101 鼻水 |
ユーザー |
![]() |
提出日時 | 2020-07-03 21:30:45 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 22 ms / 2,000 ms |
コード長 | 622 bytes |
コンパイル時間 | 1,812 ms |
コンパイル使用メモリ | 81,560 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 22:53:03 |
合計ジャッジ時間 | 1,278 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include<iostream> #include<iomanip> #include<cmath> #include<string> #include<vector> #include<list> #include<algorithm> #include<map> #include<set> #include<queue> #include<stack> using namespace std; typedef long long ll; #define fi first #define se second #define mp make_pair #define rep(i, n) for(int i=0;i<n;++i) #define rrep(i, n) for(int i=n;i>=0;--i) const int inf=1e9+7; const ll mod=1e9+7; const ll big=1e18; const double PI=2*asin(1); int main() { ll V, T, P; cin>>V>>T>>P; ll ans = V*P+V; ll num = (ans-1)/T+1; ans += num; while((ans-1)/T+1>num) { ans++; num++; } cout<<ans<<endl; }