could anyone tell me why WA or send some input that my program will not correctly execute?
#include <iostream.h>
#include <math.h>
#include <alloc.h>
int zad[225]={
5, 10, 20, 25, 30, 43 ,
15, -7, 30, 34, 40, 50 ,
20, 35, -10, 40, 45, 55,
30, 35, 45, -20, 50, 57,
40, 42, 48, 50, -25, 60,
50, 55 ...
Search found 7 matches
- Tue Jan 04, 2005 4:16 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10076 - The Bumpy Robot
- Replies: 8
- Views: 4005
- Mon Dec 27, 2004 3:07 pm
- Forum: Volume 6 (600-699)
- Topic: 659 - Reflections
- Replies: 12
- Views: 6979
I have question about precision those numbers ... should i round it like you ?Per wrote:Pasq: My accepted program outputsfor your input.Code: Select all
1 2 1 3 inf
(After hitting 1, the ray goes from (3.79,4.84) and hits 2 in (6.32, 6.26).)
- Thu Dec 16, 2004 10:13 am
- Forum: Volume 100 (10000-10099)
- Topic: 10076 - The Bumpy Robot
- Replies: 8
- Views: 4005
- Mon Nov 22, 2004 5:08 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10076 - The Bumpy Robot
- Replies: 8
- Views: 4005
10076 Time Limit Exceed HELP
Here is my code in c++ is it slow or why have i always this answer please help !
#include <iostream.h>
#include <math.h>
int pole[225];
int pole1[225];
int rx=0;
int ry=0;
float alfa1;
float alfa2;
int gamma;
float beta1;
float beta2;
int delta;
int x,y,xt,yt;
int energy;
int celkovycas;
int ...
#include <iostream.h>
#include <math.h>
int pole[225];
int pole1[225];
int rx=0;
int ry=0;
float alfa1;
float alfa2;
int gamma;
float beta1;
float beta2;
int delta;
int x,y,xt,yt;
int energy;
int celkovycas;
int ...
- Fri Nov 19, 2004 2:01 pm
- Forum: Other words
- Topic: Judge software running slow?
- Replies: 9
- Views: 2984
- Tue Nov 02, 2004 12:48 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10076 - The Bumpy Robot
- Replies: 8
- Views: 4005
10076 - The Bumpy Robot
I used the input from web :
6 6
1.5 0.2 1
0.2 1.5 1
5 10 20 25 30 43
15 -7 30 34 40 50
20 35 -10 40 45 55
30 35 45 -20 50 57
40 42 48 50 -25 60
50 55 60 63 68 -30
1 1 6 6 200
the answer has to be 112 (its on the web) but my program wrote 110.5... I dont know why, perhaps i must use rounded ...
6 6
1.5 0.2 1
0.2 1.5 1
5 10 20 25 30 43
15 -7 30 34 40 50
20 35 -10 40 45 55
30 35 45 -20 50 57
40 42 48 50 -25 60
50 55 60 63 68 -30
1 1 6 6 200
the answer has to be 112 (its on the web) but my program wrote 110.5... I dont know why, perhaps i must use rounded ...
- Fri Oct 15, 2004 3:53 pm
- Forum: Volume 5 (500-599)
- Topic: 552 - Filling the Gaps
- Replies: 12
- Views: 6554