Search found 51 matches

by fpavetic
Sat Sep 09, 2006 8:48 pm
Forum: Bugs and suggestions
Topic: stats not updating II
Replies: 2
Views: 1800

stats not updating II

hi, i submited solutions for problems 11085, 11088, 11089 and 11093. they got accepted, and i got emails that say so, but my author statistics are not updated. i noticed other people too had problems with this, because there is another thread opened.

edit: neither am i shown in problem stats
by fpavetic
Tue Jun 27, 2006 4:39 pm
Forum: Volume 104 (10400-10499)
Topic: 10427 - Naughty Sleepy Boys
Replies: 35
Views: 21043

Sample: 3 9 10 11 10000 50000 1000000000 5135136 351357 88456345 34135141 513341 13516167 6252345 767657 613566 5768678 63453 253478 95465462 513513511 5151356786 875673562 Results: 3 9 1 0 7 1 7 4 4 1 7 0 2 0 4 0 6 1 1 2 0 5 6 for people who are going to try to solve this problem: my AC program ou...
by fpavetic
Thu Jun 15, 2006 9:54 pm
Forum: Volume 109 (10900-10999)
Topic: 10909 - Lucky Number
Replies: 18
Views: 6591

firstly, think about the order you should insert elements to keep the tree balanced; node should keep two informations: key and size ( number of elements in its left subtree + right subtree + 1 ); if you use an array and node index is i then its left subtree index is 2*i+1 and right 2*i+2; as for de...
by fpavetic
Thu Jun 15, 2006 3:10 pm
Forum: Volume 2 (200-299)
Topic: 274 - Cat and Mouse
Replies: 16
Views: 2107

WA

hello, i am constantly getting wa with this problem :( so can somebody please help? is the input realy in this format? number_of_test_cases blank_line rooms cat_start mouse_start list of cat edges -1 -1 list of mouse edges blank_line the same for next case i consider following tricky cases: - cat an...
by fpavetic
Fri May 19, 2006 8:07 pm
Forum: Volume 110 (11000-11099)
Topic: 11029 - Leading and Trailing
Replies: 43
Views: 17349

Re: I am getting T.L.E. !!!

Hi, I have submitted this problem several times but only managed to get T.L.E. I find the trailing digits by bigmod function and leading digits by fast exponentiation. Followings are the part of my code: FUNCTION USED TO FIND b^p mod m: ========================= long long bigmod (long long b, long ...
by fpavetic
Fri May 19, 2006 2:59 pm
Forum: Volume 110 (11000-11099)
Topic: 11027 - Palindromic Permutation
Replies: 18
Views: 10926

thanks mamun
by fpavetic
Thu May 18, 2006 11:29 pm
Forum: C++
Topic: including <ios>
Replies: 5
Views: 2333

sorry, i have written that without thinking, what i have written up there has outputed value of ios::fixed:
this should be correct now :)

ostringstream o;
o.setf( ios::fixed );
o << setprecision( 3 ) << nubmeryouwanttoprint;
by fpavetic
Thu May 18, 2006 8:19 pm
Forum: C++
Topic: including <ios>
Replies: 5
Views: 2333

write
ostringstream o;
o << ios::fixed << setprecision(3);
that should work
by fpavetic
Tue May 16, 2006 11:22 pm
Forum: Volume 110 (11000-11099)
Topic: 11033 - Help my Brother
Replies: 5
Views: 2262

then i dont understand why tle here is my code there are 9 nested loops: i fill first three columns in first three rows and the forth column i get subtracting first three from n: the same for forth row example board[0][0], board[0][1], board[0][2] - loop board[0][3] = n - board[0][0] - board[0][1] -...
by fpavetic
Tue May 16, 2006 10:29 pm
Forum: Volume 110 (11000-11099)
Topic: 11027 - Palindromic Permutation
Replies: 18
Views: 10926

can somebody please post some test cases? thank you
by fpavetic
Tue May 16, 2006 10:28 pm
Forum: Volume 110 (11000-11099)
Topic: 11033 - Help my Brother
Replies: 5
Views: 2262

i am getting TLE. complexity of my algorithm is 7 ^ 9. is that ok? can it be done in better time? please help someone :roll:
by fpavetic
Tue Apr 25, 2006 2:03 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60548

Timo wrote:I think for this problem not need to generate up to 10^8 prime, but only 10^4 prime.
:D
i agree ( i have solved this problem long time ago ). but i am just saying that memory is not the issue :)
by fpavetic
Mon Apr 24, 2006 10:46 pm
Forum: Volume 102 (10200-10299)
Topic: 10200 - Prime Time
Replies: 202
Views: 60548

dear yogeshgo05 i wonder how you didn't get MLE because : if we would be able to calculate all the the primes less than 10^9 using boolean array in a reasonable time ,we need 1000 MB memory that is much more than memory limitation on OJ ( 32 MB ) it is 10^8. and you can generate them using bit oper...
by fpavetic
Thu Apr 20, 2006 4:08 pm
Forum: Volume 105 (10500-10599)
Topic: 10501 - Simplified Shisen-Sho
Replies: 12
Views: 8478

10501

hi, i am trying to solve 10501, but i just cant get my solution to work in time.
can anyone please give a hint? :roll:
by fpavetic
Thu Apr 06, 2006 8:22 pm
Forum: Volume 3 (300-399)
Topic: 338 - Long Multiplication
Replies: 59
Views: 7044

the output up there is correct. i just made a silly mistake

Go to advanced search