Bookmark and Share

free counters
Back to the Training Home

Lesson: 19
Problem: 10071
Title: Back to High School Physics
Difficulty Level: .5
Date: Jan 25, 2009
Site: UVA

I think you already solved this problem.
Just read two integers, v and t, and print 2*v*t.
Source Code:

 1 #include<stdio.h>
 2 void main()
 3 {
 4 	long int v,t,s=0;
 5 	while(scanf("%ld%ld",&v,&t)!=EOF)
 6 	{
 7 		s=2*v*t;
 8 		printf("%ld\n",s);
 9 	}
10 }
Back to the Training Home