Search found 131 matches

by Farid Ahmadov
Fri Mar 12, 2004 9:23 pm
Forum: Volume 2 (200-299)
Topic: 238 - Jill's Bike
Replies: 24
Views: 9697

Sorry for confusing description, but "climb" here means travel on hills. So you can't go up or down if the absolute difference >10. Consider this case as abs(difference)<=10. I'll fix it to avoid confusion. Please try this variation. And about output: Only one blank line between any two non-blank li...
by Farid Ahmadov
Fri Mar 12, 2004 9:21 pm
Forum: Volume 2 (200-299)
Topic: 238 - Jill's Bike
Replies: 24
Views: 9697

Sorry for confusing description, but "climb" here means travel on hills. So you can't go up or down if the absolute difference >10. Consider this case as abs(difference)<=10. I'll fix it to avoid confusion.
Please try this variation.
Thanks.
by Farid Ahmadov
Fri Mar 12, 2004 8:40 pm
Forum: Volume 2 (200-299)
Topic: 238 - Jill's Bike
Replies: 24
Views: 9697

The good news is that she lives in Greenhills, which has all its roads laid out in a strictly rectangular grid - east-west roads are streets; north-south roads are avenues and the distance between any two adjacent grid points is the same. You see it's said that the distance between any two adjacent...
by Farid Ahmadov
Fri Mar 12, 2004 7:44 pm
Forum: Volume 2 (200-299)
Topic: 238 - Jill's Bike
Replies: 24
Views: 9697

1) What does it mean by "Avoid any climb of more than 10 meters between adjacent grid points." ? Does it mean that the height difference should be < 10 (when climbing) or <= 10 < sqrt( 99 ) or <= sqrt( 99 ) ? This means that if height absolute difference >10 there is not way. 2) When it says "Alway...
by Farid Ahmadov
Fri Mar 12, 2004 7:18 pm
Forum: Off topic (General chit-chat)
Topic: Terrorism
Replies: 6
Views: 3638

I do regret to this great tragedy.
by Farid Ahmadov
Mon Dec 29, 2003 8:08 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14752

That's all. AC at last. My last program was checking: if there is any odd vertex or vertex 0 is not connected with any other vertex and this vertex is used to make a road then Not Possible. This was WA (but correct I think). I made a change: if there is any odd vertex or vertex 0 is not connected wi...
by Farid Ahmadov
Mon Dec 29, 2003 7:40 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14752

This is not correct and not fair. I've lost so much time on this problem at contest. There exist an Euler cycle. I visit every road and come back to the first city.
Thank you all.
by Farid Ahmadov
Mon Dec 29, 2003 7:36 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14752

Maybe I have some stupid mistake or I don't correctly get the input.
But I have tried nearly every variation of graph. But WA still.
by Farid Ahmadov
Mon Dec 29, 2003 2:18 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14752

My output for this case is "Possible".
by Farid Ahmadov
Mon Dec 29, 2003 12:58 pm
Forum: Volume 105 (10500-10599)
Topic: 10596 - Morning Walk
Replies: 41
Views: 14752

10596 WA

I'm getting crazy of this WA.
What is wrong? Isn't it Euler cycle?
What does mean:
Then there will be R lines each containing two numbers c1 and c2 indicating the intersections connecting a road.
Is it an oriented graph or not?
Please give any tricky inputs if there are any?

Thanks in advance.
by Farid Ahmadov
Sun Dec 21, 2003 12:37 pm
Forum: Volume 105 (10500-10599)
Topic: 10585 - Center of symmetry
Replies: 11
Views: 3234

hint: Just find mass center. If its coords x and y are of form d.5 or d.0 then it can be center of symmetry.
by Farid Ahmadov
Sat Dec 20, 2003 10:08 am
Forum: Volume 105 (10500-10599)
Topic: 10585 - Center of symmetry
Replies: 11
Views: 3234

You have to check just from one point to all other points if the center of mass lies between this points. If there is no such points then answer is no.
by Farid Ahmadov
Fri Dec 05, 2003 11:19 am
Forum: Volume 1 (100-199)
Topic: 138 - Street Numbers
Replies: 93
Views: 6970

Just write on a paper first 6 numbers found by brute force and try to find relation between them.
by Farid Ahmadov
Thu Dec 04, 2003 8:11 pm
Forum: Volume 1 (100-199)
Topic: 162 - Beggar My Neighbour
Replies: 31
Views: 5010

162 Beggar My Neighbour

Hi. Need some %100 I/O to test my program.
Thanks in advance.
by Farid Ahmadov
Thu Dec 04, 2003 12:30 pm
Forum: Off topic (General chit-chat)
Topic: Multiple desktops now available in Windows too.
Replies: 4
Views: 2589

Ha-Ha. :P

Go to advanced search