Search found 58 matches

by Phantom
8 years ago
Forum: Problem set
Topic: 1771 - Getting Home
Replies: 4
Views: 591
Gender: None specified

Re: 1771 - Getting Home

My algorithm is very simple. I initialize the first and the last vertex whith value 0, because Stadium will always be at neighbourhood 1 and Mirko’s house will be at neighbourhood N in the map, and he won't need to pay anything on those two points. Afterward, I implement an algorithm that give me th...
by Phantom
8 years ago
Forum: Problem set
Topic: 1771 - Getting Home
Replies: 4
Views: 591
Gender: None specified

Re: 1771 - Getting Home

May you can post a more ugly test case here?? Because my algorithm works for all my test cases, but the COJ dislike it... :(
by Phantom
8 years ago
Forum: Problem set
Topic: 1667 - Reading a Quadtree
Replies: 4
Views: 1488
Gender: None specified

Re: About G - Reading a Quadtree

JoJoJo :twisted: I got an accepted, people!! My problem was that I am traumatizing with all this problems that always have at least a snare.
by Phantom
8 years ago
Forum: Other languages
Topic: Ruby
Replies: 23
Views: 21086
Gender: None specified

Ruby

My opinion is the same. C and C++ are very fast, that don’t have discussion. But… in C and C++ you have to implement almost everything. Itch! That is a problem… and big! For example, in Ruby for the big powers of 3 you most only write: puts 3**gets.to_i In Pthon: print 3**input() -->The numbers in P...
by Phantom
8 years ago
Forum: Problem set
Topic: 1667 - Reading a Quadtree
Replies: 4
Views: 1488
Gender: None specified

Reading a Quadtree

No, sorry if I didn’t explained well. I don’t want you post code, only an example as the normal example in the exercise in the input. My program works for the “normal” input. I spouse my problem is in a degenerate case, but… which case may be?? :D Do you understand me now?? The algorithm… well… is v...
by Phantom
8 years ago
Forum: Other languages
Topic: Ruby
Replies: 23
Views: 21086
Gender: None specified

Ruby

Ok pepe!! Ruby is coming... Ruby like Python, is a very powerfull language. Whitout shame... ask me, and... we can discuss about it. I recommend you Python and Ruby... the future in the present.
by Phantom
8 years ago
Forum: Problem set
Topic: 1667 - Reading a Quadtree
Replies: 4
Views: 1488
Gender: None specified

1667 - Reading a Quadtree

http://coj.uci.cu/24h/problem.xhtml?abb=1667

This problem is very very beautiful! I like it! But... Please... Can you post some example that you know work, because I don't know what more can I do. :cry:

Sorry for my bad English...
by Phantom
8 years ago
Forum: Other languages
Topic: Python
Replies: 36
Views: 33525
Gender: None specified

Python

If you have any doubt about python, you can make me a question. ;)

Go to advanced search