Page 3 of 4
Posted: Tue Mar 14, 2006 10:51 am
by tmdrbs6584
long long int...
Posted: Tue Mar 14, 2006 10:51 am
by tmdrbs6584
long long int...
Posted: Tue Mar 14, 2006 10:51 am
by tmdrbs6584
long long int...
Posted: Sat Apr 07, 2007 2:55 pm
by Waddle
does the output always be positive
Posted: Mon Apr 16, 2007 4:42 pm
by ranacse05
no answer can be nagetive
Posted: Fri Aug 24, 2007 6:52 pm
by kauedg
Im feeling stupid cause i cant find the answer. Help please?
Posted: Fri Aug 24, 2007 7:57 pm
by Jan
Posted: Fri Aug 24, 2007 8:06 pm
by kauedg
I have just changed this line and got AC. Now im getting how the judge wants the inputs. thanks =)
Posted: Sat Aug 25, 2007 2:46 am
by helloneo
Remove your code plz..~

Posted: Sat Aug 25, 2007 7:58 am
by kauedg
removed. =) sorry
Posted: Sun Mar 09, 2008 8:23 pm
by scott1991
why am i getting re?
Code: Select all
#include <stdio.h>
int main()
{
long int v, t;
while(scanf("%lld %lld", &v, &t)==2)
{
printf("%lld\n", (2*t*v));
}
return 0;
}
Posted: Sun Mar 09, 2008 8:53 pm
by emotional blind
scott1991 wrote:why am i getting re?
Code: Select all
#include <stdio.h>
int main()
{
long int v, t;
while(scanf("%lld %lld", &v, &t)==2)
{
printf("%lld\n", (2*t*v));
}
return 0;
}
Type miss-match
you declared long int, but scan for long long.
10071 - Back to High School Physics
Posted: Fri May 27, 2011 6:13 am
by rahat khan
#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}
Re: plz help
Posted: Fri May 27, 2011 6:37 am
by sohel
- Please mention your problem name and ID.
- Search the board first to find existing discussions of your problem. Do not create a new thread if one exists already. Make your post on an existing thread.
Re:10071 Back to High School Physics
Posted: Fri May 27, 2011 6:41 am
by rahat khan
#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}