10071 - Back to High School Physics
Moderator: Board moderators
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
long long int...
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
long long int...
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
-
- Learning poster
- Posts: 98
- Joined: Sat Jan 21, 2006 12:45 pm
- Location: Busan,Corea(Republic of)
long long int...
Archaan
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
CAN YOU BEAT ME?
http://acm.uva.es/problemset/usersjudge.php?user=19788
AND,
http://acm.uva.es/problemset/submit.php
http://online-judge.uva.es/problemset/submit.php
SUBMIT AND GET AC!!!
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.
Use
Hope it helps.
Code: Select all
while(scanf("%d %d",&v,&t)==2)
Ami ekhono shopno dekhi...
HomePage
HomePage
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;
}
-
- A great helper
- Posts: 383
- Joined: Mon Oct 18, 2004 8:25 am
- Location: Bangladesh
- Contact:
Type miss-matchscott1991 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; }
you declared long int, but scan for long long.
-
- New poster
- Posts: 10
- Joined: Mon May 23, 2011 1:12 pm
10071 - Back to High School Physics
#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}
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.
Re: plz help
- 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.
- 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.
-
- New poster
- Posts: 10
- Joined: Mon May 23, 2011 1:12 pm
Re:10071 Back to High School Physics
#include<stdio.h>
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}
int main()
{
int s,v,t;
scanf("%d %d",&v,&t);
s=v*t*2;
printf("%d\n",s);
return 0;
}