## Search found 23 matches

Wed Jul 02, 2003 4:24 pm
Forum: Volume 103 (10300-10399)
Topic: 10341 - Solve It
Replies: 64
Views: 34742
Please, help! What wrong with this code? #include <iostream.h> #include <math.h> #include <stdio.h> int p,q,r,s,t,u; double a, b, c; double f(double x) { return p/exp(x) + q*sin(x) + r*cos(x) + s*tan(x) + t*x*x + u; } int main() { while ((cin >> p >> q >> r >> s >> t >> u) != NULL) { a = 0.0; b = 1....
Wed Jul 02, 2003 2:30 pm
Forum: Volume 105 (10500-10599)
Topic: 10510 - Cactus
Replies: 31
Views: 22559
Unfortunately I have not solved this problem yet and have no idea how to sove it.
Wed Jul 02, 2003 10:51 am
Forum: Volume 105 (10500-10599)
Topic: 10510 - Cactus
Replies: 31
Views: 22559
Try this input:

1
4
8
0 1
1 2
2 3
3 0
2 4
4 2
3 4
4 3

This is not cactus, but for every node in-degree equals to out-degree.
Am I right?
Wed Jun 25, 2003 5:46 pm
Forum: Volume 105 (10500-10599)
Topic: 10505 - Montesco vs Capuleto
Replies: 73
Views: 36887

### Is input correct?

Is this input correct?

6
3 4 5 6
3 4 5 6
3 4 5 6
3 1 2 3
4 1 2 3 6
4 1 2 3 5

If YES what sould be the answer: 0 or 3?
Mon Jun 23, 2003 9:43 am
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13481
I have read Adrian Kuegel's post and I set start position to 0,then simulate the problem Still get wrong anwser Could you give me some tricky input/output? thx I got AC after the following steps: 1. Simulate the problem. 2. Set start position to 0. 3. Output the result. I do not understand why but ...
Thu Jun 19, 2003 3:52 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13481

Try to mark initial cell as empty '0' before output the result.
Tue Jun 17, 2003 4:04 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13481
Adrian Kuegel wrote:The input is wrong.
Look here:
http://acm.uva.es/board/viewtopic.php?t=3224
You are right!!!

Thank you very much!
Sun Jun 15, 2003 4:57 pm
Forum: Volume 105 (10500-10599)
Topic: 10500 - Robot maps
Replies: 45
Views: 13481

### 10500 - Robot maps

The problem seems to be easy but I got WA many times. So some questions: 1. What character is used to mark an empty cell of the map: is it a zero digit '0' or is it a letter 'O'? I tried both and always got WA. 2. What may be the trick? Can somebody give us a hint? Many thanks in advance!!