10071 - Back to High School Physics

All about problems in Volume 100. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

User avatar
tmdrbs6584
Learning poster
Posts: 98
Joined: Sat Jan 21, 2006 12:45 pm
Location: Busan,Corea(Republic of)

Post by tmdrbs6584 » Tue Mar 14, 2006 10:51 am

long long int...

User avatar
tmdrbs6584
Learning poster
Posts: 98
Joined: Sat Jan 21, 2006 12:45 pm
Location: Busan,Corea(Republic of)

Post by tmdrbs6584 » Tue Mar 14, 2006 10:51 am

long long int...

User avatar
tmdrbs6584
Learning poster
Posts: 98
Joined: Sat Jan 21, 2006 12:45 pm
Location: Busan,Corea(Republic of)

Post by tmdrbs6584 » Tue Mar 14, 2006 10:51 am

long long int...

Waddle
New poster
Posts: 22
Joined: Thu Jan 25, 2007 3:54 pm
Location: Taiwan
Contact:

Post by Waddle » Sat Apr 07, 2007 2:55 pm

does the output always be positive

ranacse05
New poster
Posts: 37
Joined: Wed Mar 28, 2007 5:08 pm
Location: Rajshahi
Contact:

Post by ranacse05 » Mon Apr 16, 2007 4:42 pm

no answer can be nagetive
I like to solve problems.

kauedg
New poster
Posts: 8
Joined: Fri Aug 24, 2007 2:42 am

Post by kauedg » Fri Aug 24, 2007 6:52 pm

Im feeling stupid cause i cant find the answer. Help please?

Code: Select all


Code removal requested =)

Last edited by kauedg on Sat Aug 25, 2007 7:58 am, edited 2 times in total.

Jan
Guru
Posts: 1334
Joined: Wed Jun 22, 2005 10:58 pm
Location: Dhaka, Bangladesh
Contact:

Post by Jan » Fri Aug 24, 2007 7:57 pm

Use

Code: Select all

while(scanf("%d %d",&v,&t)==2) 
Hope it helps.
Ami ekhono shopno dekhi...
HomePage

kauedg
New poster
Posts: 8
Joined: Fri Aug 24, 2007 2:42 am

Post by kauedg » Fri Aug 24, 2007 8:06 pm

I have just changed this line and got AC. Now im getting how the judge wants the inputs. thanks =)

helloneo
Guru
Posts: 516
Joined: Mon Jul 04, 2005 6:30 am
Location: Seoul, Korea

Post by helloneo » Sat Aug 25, 2007 2:46 am

Remove your code plz..~ :-)

kauedg
New poster
Posts: 8
Joined: Fri Aug 24, 2007 2:42 am

Post by kauedg » Sat Aug 25, 2007 7:58 am

removed. =) sorry

scott1991
New poster
Posts: 28
Joined: Fri Dec 07, 2007 11:41 pm

Post by scott1991 » Sun Mar 09, 2008 8:23 pm

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;
} 

User avatar
emotional blind
A great helper
Posts: 383
Joined: Mon Oct 18, 2004 8:25 am
Location: Bangladesh
Contact:

Post by emotional blind » Sun Mar 09, 2008 8:53 pm

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.

rahat khan
New poster
Posts: 10
Joined: Mon May 23, 2011 1:12 pm

10071 - Back to High School Physics

Post by rahat khan » Fri May 27, 2011 6:13 am

#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}
Last edited by rahat khan on Fri May 27, 2011 10:59 am, edited 1 time in total.

User avatar
sohel
Guru
Posts: 856
Joined: Thu Jan 30, 2003 5:50 am
Location: New York

Re: plz help

Post by sohel » Fri May 27, 2011 6:37 am

- 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.

rahat khan
New poster
Posts: 10
Joined: Mon May 23, 2011 1:12 pm

Re:10071 Back to High School Physics

Post by rahat khan » Fri May 27, 2011 6:41 am

#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}

Post Reply

Return to “Volume 100 (10000-10099)”