当前位置:网站首页>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
边栏推荐
- Encapsulation of ele table
- Navicat premium import SQL file
- Navicat failed to connect to Oracle Database: cannot load OCI DLL, 87: instant client package is
- TypeScript(1)
- The penultimate K nodes in jz22 linked list
- Basic workflow of CPU
- Slave should be able to synchronize with the master in tests/integration/replication-psync. tcl
- The difference between encodeuri and encodeuricomponent
- OCR识别PDF文件
- Linux Redis ——Redis HA Sentinel 集群搭建详解 & Redis主从部署
猜你喜欢
C语言 171. 最近回文数
Domestic lightweight Kanban scrum agile project management tool
Sonic cloud real machine tutorial
Log cutting - build a remote log collection server
Encapsulate components such as pull-down menu based on ele
Fashion MNIST dataset classification training
L2-006 樹的遍曆(中後序確定二叉樹&層序遍曆)
Interpretation of the future development of smart agriculture
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
期中汇总(概论+应用层+运输层)
随机推荐
Kubernetes study notes
Sonic cloud real machine tutorial
Win view port occupation command line
Close the computer port
Linux redis - redis ha sentinel cluster construction details & redis master-slave deployment
Decision tree principle of machine learning
Slave should be able to synchronize with the master in tests/integration/replication-psync.tcl
国产轻量级看板式Scrum敏捷项目管理工具
Encapsulation of ele table
Classification and regression tree of machine learning
基于多态的职工管理系统源码与一些理解
leangoo脑图-共享式多人协作思维导图工具分享
Modify the content of MySQL + PHP drop-down box
《信息系统项目管理师总结》第四章 项目成本管理
Centos7 install MySQL 8 0
Log4j知识点记录
《信息系统项目管理师总结》第五章 项目质量管理
Error installing Mongo service 'mongodb server' on win10 failed to start
B blocks of the 46th ICPC Asian regional competition (Kunming)
Day 3 of learning rhcsa