Codeforces 835A Key races (水题)
来源:互联网 发布:php选择题答题系统 编辑:程序博客网 时间:2024/06/14 22:02
题目链接
CF 835A
题目大意
分析
代码
#include <bits/stdc++.h>using namespace std;int main(){ int s,v1,v2,t1,t2; while (scanf("%d%d%d%d%d",&s,&v1,&v2,&t1,&t2)!=EOF) { int a=s*v1+2*t1; int b=s*v2+2*t2; if (a<b) printf("First\n"); else if (a>b) printf("Second\n"); else printf("Friendship\n"); } return 0;}
阅读全文
0 0
- Codeforces 835A Key races (水题)
- Codeforces 835A-Key races
- Codeforces 835 A Key races
- CodeForces 835A Key races
- codeforces 835 a Key races
- codeforces 835A Key races
- codeforces A. Key races
- Codeforces #835A: Key Races 题解
- CodeForces 835 A.Key races(水~)
- codeforces 835a 之 Key races
- codeforces 835B Key races
- Codeforces Round #427 A. Key races
- A. Key races
- Codeforces Round #427 (Div. 2) A. Key races
- Codeforces Round #427 (Div. 2)-A. Key races
- Codeforces Round #427 (Div. 2) A. Key races
- cf427(2) A. Key races
- Key races
- spring mvc高级篇(一):Spring+SpringMVC+Hibernate整合
- 技术的本质 读书笔记
- 机器学习10大经典算法
- 2017"百度之星"程序设计大赛
- 2017 百度之星A轮初赛(小C的倍数问题, 今夕何夕, 度度熊的01世界)
- Codeforces 835A Key races (水题)
- java多线程之Runnable同时执行同一资源实例
- 【TX1学习与开发系列】如何快速部署多个tx1系统(超细节版)(五)
- servlet中文乱码问题总结
- JAVA第一天
- 数据结构-队列
- python之全局变量操作
- Codeforces 835B The number on the board (贪心)
- conda命令行使用