Codeforces 591A Wizards' Duel
来源:互联网 发布:90年代的美国 知乎 编辑:程序博客网 时间:2024/05/17 08:30
题意:
给你一段长为l的道路,有两个人分别在两头以速度p、q相向而行,问他们在距离起点多少米相遇。
思路:
初中数学题。
#include<cstdio>double l,p,q;int main(){scanf("%lf%lf%lf",&l,&p,&q);double ans=(l/(p+q))*p;printf("%.4lf\n",ans);return 0;}
0 0
- CodeForces-591A Wizards' Duel
- Codeforces 591A Wizards' Duel
- Codeforces 591A Wizards' Duel
- codeforces 591A Wizards' Duel
- 大水题--CodeForces - 591A Wizards' Duel
- A. Wizards' Duel
- Codeforces Round #327 (Div. 2)A. Wizards' Duel
- Codeforces Round #327 (Div. 2) A. Wizards' Duel 反思
- Codeforces Round #327 (Div. 2) (A. Wizards' Duel 简单数学)
- Codeforces Round #327 (Div. 2) A. Wizards' Duel
- Codeforces Round #327 (Div. 2)A. Wizards' Duel
- Codeforces Round #327 (Div. 2) A. Wizards' Duel(水)
- Codeforces Round #327 (Div. 2)A. Wizards' Duel
- Code Forces 591 A. Wizards' Duel(水~)
- cf #327 Div.2 Problem A Wizards' Duel
- Wizards' Duel(物理题s=v*t)
- A. Wizards and Demonstration
- codeforces B. Ciel and Duel
- 欢迎使用CSDN-markdown编辑器
- HDU 5326 Work(并查集)
- 【C】两个有序序列的中位数
- Ubuntu16.04 + Wine1.9.4
- web--less
- Codeforces 591A Wizards' Duel
- C++ FUNCTION FOR ACM
- Axure简单使用(以登录界面为例)
- 关于配置阿里云服务器的一些坑
- LeetCode 342. Power of Four
- Use the Raspberry Pi as a DIY Surveillance camera
- AndroidStudio的安装配置&&注意要点
- hdu2829Lawrence
- 用Dialog实现自定义对话框