Search found 111 matches

by arsalan_mousavian
Sun Aug 06, 2006 2:23 am
Forum: Volume 110 (11000-11099)
Topic: 11063 - B2-Sequence
Replies: 73
Views: 40506

i am still getting WA , any suggestions ?

Code: Select all

now i know why i got WA :)
}
by arsalan_mousavian
Sun Aug 06, 2006 2:12 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37770

thanks mf , i'll check my code soon , my program doesn't give the right answer to your Input, but my program gives the right output for martin macko's IO

NOW I GOT ACCEPTED , THANKS A LOT
by arsalan_mousavian
Sun Aug 06, 2006 2:09 am
Forum: Volume 110 (11000-11099)
Topic: 11056 - Formula 1
Replies: 34
Views: 16706

oh , no , you know i think i print some extra new line , thanks for reply
by arsalan_mousavian
Sun Aug 06, 2006 2:06 am
Forum: Volume 110 (11000-11099)
Topic: 11063 - B2-Sequence
Replies: 73
Views: 40506

Hi , i got many WA s on this problem , i store all the sums in a set , and for each i and j that i<=j check whether their sum is in set or not , if so it is not B2-sequence otherwise it is B2-seq. any suggestions?
by arsalan_mousavian
Sun Aug 06, 2006 1:51 am
Forum: Volume 110 (11000-11099)
Topic: 11059 - Maximum Product
Replies: 96
Views: 37770

i 've got many WA on this problem , i have used long long to store the result
and multiply it by each input , whenever the result is greater than zero , i compare it with max , and finaly print it , where is my mistake
by arsalan_mousavian
Sun Aug 06, 2006 1:45 am
Forum: Volume 110 (11000-11099)
Topic: 11056 - Formula 1
Replies: 34
Views: 16706

i 've got 15 PE during the contest , and i don't understrand why this happens
could some one take a look at my code

Code: Select all

cut off after finding my silly mistake
by arsalan_mousavian
Wed Aug 02, 2006 8:40 am
Forum: Volume 110 (11000-11099)
Topic: 11002 - Towards Zero
Replies: 39
Views: 17878

i think you miss the results range bacause it is belongs to the interval [-3000,3000] but you assume it between -500 and 500 :wink:
by arsalan_mousavian
Sat Jul 29, 2006 3:35 pm
Forum: Volume 110 (11000-11099)
Topic: 11052 - Economic phone calls
Replies: 26
Views: 11577

thanks martin macko for you reply , but my program passes all your input ,
any suggestions ?

yours
Arsalan
by arsalan_mousavian
Sat Jul 29, 2006 10:32 am
Forum: Volume 110 (11000-11099)
Topic: 11002 - Towards Zero
Replies: 39
Views: 17878

Well, why not ask the question in that thread then? This is how we end up with 10 threads on each problem. In my Java solution I used a set (as suggested by misof in yet another thread on this problem) to determine different sums in each row, so I could build the table (which is not needed, but it ...
by arsalan_mousavian
Fri Jul 28, 2006 11:18 pm
Forum: Volume 110 (11000-11099)
Topic: 11052 - Economic phone calls
Replies: 26
Views: 11577

i think the answer for the above input is 0 , because we don't need to store anything , by the way i have used a greedy solution for this problem , but i 've got WA , can someone post some IO ?

tanx
Arsalan
by arsalan_mousavian
Mon Jul 24, 2006 9:07 pm
Forum: Volume 110 (11000-11099)
Topic: 11048 - Automatic Correction of Misspellings
Replies: 30
Views: 12617

i think it is a better way to check your mailbox when you submit :wink:
by arsalan_mousavian
Mon Jul 24, 2006 3:23 am
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 26082

yeah , i am getting WA under 1 sec
by arsalan_mousavian
Sun Jul 23, 2006 5:59 pm
Forum: Volume 110 (11000-11099)
Topic: 11054 - Wine trading in Gergovia
Replies: 25
Views: 6872

think about how much it costs if you want from one house to its adjacent , then you can solve it with O(n)

Hop it helps . . .
Arsalan
by arsalan_mousavian
Wed Jul 05, 2006 1:57 pm
Forum: C++
Topic: <math.h> vs <cmath>
Replies: 2
Views: 1873

<math.h> vs <cmath>

i 've got many WA on some problem in UVA , because VS 2005 compiler do not have <cmath> library i used <math.h> , but when i submit with #include <cmath>instead of #include <math.h> i 've got AC , seem so strange to me .. ...
any suggestions ?
thanks in Advance
by arsalan_mousavian
Mon Jul 03, 2006 10:03 pm
Forum: Volume 109 (10900-10999)
Topic: 10905 - Children's Game
Replies: 66
Views: 26082

i've got WA again and again and my program passes all the io that is given in the board , i used DP to solve the problem #include <iostream> #include <cstring> #include <queue> #include <memory> #include <cstdlib> #include <math.h> using namespace std ; char input [50][3000] ; char result [1000000] ...

Go to advanced search