当前位置:网站首页>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
边栏推荐
- Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
- Win view port occupation command line
- Kubernetes - detailed explanation of pod
- The second day of learning rhcsa
- Six very 6 computer driver managers: what software is good for driver upgrade? Recommended by the best computer driver management software abroad
- Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
- JZ35 复杂链表的复制
- Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
- grain rain
- Interpretation of the future development of smart agriculture
猜你喜欢

Huawei machine test question -- deformation of hj53 Yang Hui triangle

Solve the problem that PowerShell mining occupies 100% of cpu7 in win7

Fashion MNIST dataset classification training

Shell script learning notes - regular expressions

基于ele封装下拉菜单等组件

1215_ Hello world used by scons

ele之Table表格的封装

Android 高阶面试必问:全局业务和项目的架构设计与重构

Plug in for vscode

基于多态的职工管理系统源码与一些理解
随机推荐
Redis data server / database / cache (2022)
mysql function函数语法
Winsock programming interface experiment: Ping
The space between the left and right of the movie ticket seats is empty and cannot be selected
Solve the problem that PowerShell mining occupies 100% of cpu7 in win7
L2-006 树的遍历(中后序确定二叉树&层序遍历)
Codeforces round 784 (Div. 4) (a - H)
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
接口请求时间太长,jstack观察锁持有情况
JSON data text
Chapter VII project communication management of information system project manager summary
Traversée de l'arbre L2 - 006
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
Practical combat of industrial defect detection project (II) -- steel surface defect detection based on deep learning framework yolov5
重大危险源企业如何保障年底前完成双预防机制数字化建设任务
Configuring Apache Web services for servers such as Tianyi cloud
win查看端口占用 命令行
进阶上将程序员必备素质
When using art template inheritance, compileerror: invalid or unexpected token generated
Get together to watch (detailed version) eat a few cents a day