当前位置:网站首页>The two armies clash
The two armies clash
2022-07-29 17:14:00 【seal ink】
两军交锋
话说辽军与MCA相峙多年,终于在一个秋日的早晨爆发了一次大规模的冲突.情况是这样子的,当天上午,由耶律-Pacision领军的辽军忽然带领数万人马浩浩荡荡向MCA山杀来,而这时候驻扎在MCA防守前线的是久经沙场的老将纪哥.纪哥得知这个消息,立刻召集手下精英,前往阻击辽军.现已知辽军前进速度 U 米/秒 ,纪哥 速度 V 米 /秒 ,两军一开始相距L米,战地记者从两军刚开始进军就立刻开始以 W 米/秒的速度马不停蹄地往返于两军之间作第一时间的报道,即一到达一方,立刻返回前往另一方.问,当两军交锋之时,战地记者总共走的路程.
Input
首先输入一个t,表示有t组数据,跟着t行:
每行有四个实数 u ,v , w , l 分别表示辽军速度,纪哥速度,记者速度,以及起始的距离.
Output
输出一行实数表示总的路程.精确到小数点后3位.
Sample Input
1
10 20 30 100
Sample Output
100.000
#include<stdio.h>
int main()
{
int N;
scanf("%d",&N);
while(N--)
{
float u,v,w,l;
scanf("%f %f %f %f",&u,&v,&w,&l);
float t,sum;
u=u+v;
t=l/u;
sum=w*t;
printf("%.3f\n",sum);
}
return 0;
}
边栏推荐
- Groeb - "gramm, explicit and complete n -" gramm mask language model, implements the explicit n - "gramm semantic unit modeling knowledge.
- ASCII code sorting
- GBJ2510-ASEMI电机专用25A整流桥GBJ2510
- 【Translation】Device Manager—Intel NIC Properties Setting Advanced Options Function
- 中国厂商统治印度智能手机市场,份额提升至77%
- tutorial/detailed_workflow.ipynb 量化金融Qlib库
- #夏日挑战赛# HarmonyOS - 实现签名功能
- LinkedList 5-141. 环形链表
- Go语言结构体Go range怎么使用
- 知识图谱构建全流程
猜你喜欢

传输层 TCP的连接管理-释放连接四次握手
![[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the](/img/86/b664e56dff66c57c9f24c850919743.png)
[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the

ByteArrayOutputStream 类源码分析

1802. 有界数组中指定下标处的最大值【贪心 +二分】

R语言中给数据框增加分组/根据样本名称添加分组的代码

HMS Core音频编辑服务音源分离与空间音频渲染,助力快速进入3D音频的世界

浅聊对比学习(Contrastive Learning)

Texture 】 【 terrain 】 【 virtual virtual terrain texture technology is introduced

如何写好设计文档

RocketQA: across batches negative sampling (cross - batch negatives), the denoising of strong negative cases of sampling (denoised hard negative from) and data to enhance (data augment
随机推荐
百面量化金融
(笔记)Build was configured to prefer settings repositories over project repositories but 解决方法
58 security - image quality assessment technology practice
MLX90640 红外热成像仪开发笔记(九)
What is the GMAT test?
Nuggets quantification: Obtain data through the history method, and use the same proportional weighting factor as Sina Finance and Snowball.different from a flush
[极客大挑战 2019]LoveSQL 1
PL5902 SOT-23-5 高效1MHz2A同步DC-DC降压调节器 百盛电子代理商
参加Ultimate Harvest Moon活动,立即赢取终极版月光女神NFT
接口内容01文档:postman学习路线
[Server Storage Data Recovery] A data recovery case of a RAID 5 crash caused by the failure of a certain model of Huawei OceanStor storage RAID 5 hard disk and the failure to synchronize data with the
query词权重, 搜索词权重计算
店铺信息管理系统
Query term weights, search term weighting
浅谈程序的内存布局
How should small and medium-sized financial enterprises carry out disaster recovery construction?
贪心(1)区间完全覆盖问题
pycaret在钻石数据集上的使用 - 回归问题
知识图谱构建全流程
递归法解决N皇后问题