当前位置:网站首页>Niuke white moon race 6 [solution]
Niuke white moon race 6 [solution]
2022-04-23 02:56:00 【Hui Xiaoge】
https://ac.nowcoder.com/acm/contest/136
Catalog
Kun 【 thinking 】

Special attention here , We need to meet our actual situation .
If b>a You can't turn back , When I turned back, I met .
If a>b You need to determine , When you go back , Is the distance between the two greater than or equal to k
#include<bits/stdc++.h>
using namespace std;
typedef long long int LL;
int main(void)
{
double l,k,a,b; cin>>l>>k>>a>>b;
double t1=l/a,t2=l/b;
if(a>b)
{
double t=k/(a-b);
if(l-t*2*a>=k) t2=min(t2,t*2);
}
printf("%.2lf",t2-t1);
return 0;
}
版权声明
本文为[Hui Xiaoge]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220657494921.html
边栏推荐
- Domestic lightweight Kanban scrum agile project management tool
- The interface request takes too long. Jstack observes the lock holding
- Publish to NPM?
- Mosaic Routing: implement / home / news
- JZ35 replication of complex linked list
- 进阶上将程序员必备素质
- Error installing Mongo service 'mongodb server' on win10 failed to start
- Winsock programming interface experiment: implementation of ipconfig
- How can enterprises with major hazard installations ensure the completion of the digital construction task of double prevention mechanism by the end of the year
- B blocks of the 46th ICPC Asian regional competition (Kunming)
猜你喜欢

Huawei machine test question -- deformation of hj53 Yang Hui triangle
![[unity3d] rolling barrage effect in live broadcasting room](/img/61/46a7d6c4bf887fca8f088e7673cf2f.png)
[unity3d] rolling barrage effect in live broadcasting room

1215_ Hello world used by scons

Traversal of l2-006 tree (middle and later order determination binary tree & sequence traversal)

Processes and threads

Those years can not do math problems, using pyhon only takes 1 minute?

Intelligent agricultural management model

Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment

Android high-level interview must ask: overall business and project architecture design and reconstruction

windows MySQL8 zip安装
随机推荐
If MySQL / SQL server judges that the table or temporary table exists, it will be deleted
Chapter IV project cost management of information system project manager summary
php+mysql对下拉框搜索的内容修改
B blocks of the 46th ICPC Asian regional competition (Kunming)
Those years can not do math problems, using pyhon only takes 1 minute?
Specific field information of MySQL export table (detailed operation of Navicat client)
Shell learning notes -- shell processing of output stream awk
Fashion MNIST dataset classification training
Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
Source code and some understanding of employee management system based on polymorphism
LeetCode 1450 - 1453
Classification of technology selection (2022)
The problem of removing spaces from strings
The shell monitors the depth of the IBM MQ queue and scans it three times in 10s. When the depth value exceeds 5 for more than two times, the queue name and depth value are output.
Innovation and management based on Scrum
TypeScript(1)
Kubernetes study notes
Rhcsa day 1 operation
First day of rhcsa
Codeforces round 784 (Div. 4) (a - H)