acm-UVA10071(水题)
2014-07-19 21:01
155 查看
/*
Problem B
Back to High School Physics
Input: standard input
Output: standard output
A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?
Input
The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (-100 <= v <= 100) and t(0<=t<= 200) ( t means at the time the particle gains that velocity)
Output
For each line of input print a single integer in one line denoting the displacement in double of that time.
Sample Input
0 0
5 12
Sample Output
0
120
*/
Problem B
Back to High School Physics
Input: standard input
Output: standard output
A particle has initial velocity and constant acceleration. If its velocity after certain time is v then what will its displacement be in twice of that time?
Input
The input will contain two integers in each line. Each line makes one set of input. These two integers denote the value of v (-100 <= v <= 100) and t(0<=t<= 200) ( t means at the time the particle gains that velocity)
Output
For each line of input print a single integer in one line denoting the displacement in double of that time.
Sample Input
0 0
5 12
Sample Output
0
120
*/
#include<iostream> using namespace std; int main(){ int v,t; while(cin>>v>>t){ cout<<2*v*t<<endl; } return 0; }
相关文章推荐
- acm-UVA494(水题)
- [ACM_水题] UVA 12502 Three Families [2人干3人的活后分钱,水]
- acm-UVa414(水题)
- acm-uva490(水题)
- UVA10071 Back to High School Physics【水题】
- acm-uva445(水题)
- acm-UVA1055(水题)
- [ACM_水题] UVA 11292 Dragon of Loowater [勇士斗恶龙 双数组排序 贪心]
- acm-uva488(水题)
- uva 10055 uva 10071 uva 10300(水题两三道)
- [ACM_水题] UVA 11729 Commando War [不可同时交代任务 可同时执行 最短完成全部时间 贪心]
- acm-uva458(水题)
- [数论]Irrelevant Elements, ACM/ICPC NEERC 2004, Uva1635
- ACM水题系列 HDOJ2629
- UVA458编码水题
- uva 11646 几何水题
- UVA488水题
- 3-7 DNA序列(DNA Consensus String, ACM/ICPC Seoul 2006, UVa1368)
- UVA - 11059(暴力水题)
- ACMSTEP 1.2.5 IBM Minus One//超级水题