Search found 51 matches

by fpavetic
Sun Dec 30, 2007 8:29 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 21502

mf wrote:
For unsigned long long it's "%I64u" in Windows
That depends on your compiler. I use cygwin and it's %llu for me :)
Visual Studio 2005 also supports %llu.
if i am not mistaken Dev-C++ uses MinGW compiler, and there long long is printed differently than "%lld"
by fpavetic
Sun Dec 30, 2007 1:28 pm
Forum: Volume 113 (11300-11399)
Topic: 11374 - Airport Express
Replies: 15
Views: 6231

Then connections of Commercial-Xpress are special edges, first endpoint is node of first group, and second endpoint is node of second group. These edges are bi-directional too. i do not think so that you should make special edges bidirectional. just make them directed from the first set to the seco...
by fpavetic
Sat Dec 29, 2007 11:13 pm
Forum: Volume 113 (11300-11399)
Topic: 11372 - Arranging a Contest
Replies: 13
Views: 4384

jah wrote:Could you post some test case, I don't know what's wrong with my code.
are you sure you are finding lexicographically smallest solution?
by fpavetic
Sat Dec 29, 2007 9:06 pm
Forum: Volume 113 (11300-11399)
Topic: 11371 - Number Theory for Newbies
Replies: 65
Views: 21502

S.M.ferdous wrote:for 12300 my output is:

32100 - 123 = 31977 = 9 * 3553

is it wrong?
yes, it is.
all digits must occur in both a and b
by fpavetic
Sat Nov 24, 2007 8:22 pm
Forum: Bugs and suggestions
Topic: Suggestion about downloadable code.
Replies: 3
Views: 2294

also it would be great to have virtual contest system :)
by fpavetic
Tue Oct 23, 2007 2:29 pm
Forum: Volume 113 (11300-11399)
Topic: 11315 - Attacker
Replies: 10
Views: 3088

shanto86 wrote:well there is a problem with the union of rectangle procedure. note that some rectangle may get out of board. and in that case what to do? coz then only making union does not work!
that is my problem as well :)
by fpavetic
Sun Oct 21, 2007 12:19 pm
Forum: Volume 113 (11300-11399)
Topic: 11317 - GCD+LCM
Replies: 16
Views: 5793

11317 - GCD+LCM

hello,

can anyone please post some hints for the first part of the problem?
if one knows how to solve the first part, second is more or less trivial

Filip
by fpavetic
Sun Oct 21, 2007 12:18 pm
Forum: Volume 113 (11300-11399)
Topic: 11315 - Attacker
Replies: 10
Views: 3088

11315 - Attacker

can someone please give a hint or an idea for this problem?

my idea was to rotate the plane for 45 degrees but it didn't handle the boundary constraint ( it counted fields outside the chessboard as well )

Filip
by fpavetic
Sun Jul 15, 2007 3:06 pm
Forum: Volume 112 (11200-11299)
Topic: 11243 - Texas Trip
Replies: 18
Views: 7913

11243 - Texas Trip

can someone please give a hint on this problem?

Thank you
by fpavetic
Tue Mar 06, 2007 3:07 pm
Forum: Volume 111 (11100-11199)
Topic: 11187 - Water Crisis
Replies: 12
Views: 4931

can you share those tricks? :roll:
by fpavetic
Sun Mar 04, 2007 6:13 pm
Forum: Volume 111 (11100-11199)
Topic: 11186 - Circum Triangle
Replies: 18
Views: 7023

well, i still cant get it accepted so if anybody can check out my code:

Code: Select all

  removed
  silly, yet frustrating mistake
  thank you deepesh and rio
by fpavetic
Sun Mar 04, 2007 5:13 pm
Forum: Volume 111 (11100-11199)
Topic: 11186 - Circum Triangle
Replies: 18
Views: 7023

There is a solution with O(n) too. For the previous posted test, my code outputs 21341254742 6326026258 93611494 92130101 can you please tell me what do you get before you round your solutions i get: 21341254742.435440063476562 6326026258.263971328735352 93611493.600922271609306 92130100.9769803583...
by fpavetic
Sun Mar 04, 2007 2:11 pm
Forum: Volume 111 (11100-11199)
Topic: 11186 - Circum Triangle
Replies: 18
Views: 7023

can somebody please tell me outputs for following test cases and if it is not a problem, can one tell me his result BEFORE rounding too, i suspect i am having precision issue http://fpavetic.googlepages.com/11186.big1 http://fpavetic.googlepages.com/11186.big2 http://fpavetic.googlepages.com/11186.b...
by fpavetic
Mon Feb 26, 2007 4:06 pm
Forum: Volume 111 (11100-11199)
Topic: 11184 - Joyful Ride
Replies: 11
Views: 6888

Well..I tried that problem during the contest..I guessed there was a solution when (n-4)%3 == 0, you can make the sample for 4, 7, 11 and you will find that the solution follows a pattern. Though I didn't get AC :p, so, perhaps I was missing something else? well, i don't think that is quite correct...

Go to advanced search