## Search found 9 matches

Sun Sep 21, 2003 11:14 am
Forum: Volume 1 (100-199)
Topic: 199 - Partial differential equations
Replies: 15
Views: 4596
this is a southwestern european regional competition (1995) problem http://www.ntnu.edu.tw/acm/ProblemSetArchive/B_EU_SWERC/1995/ i have taken a look at the sample solution used to generate the outputs - it wrongly uses f as increasing y from bottom to top. hence all the mistakes. interestingly, one...
Sat Sep 20, 2003 6:32 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 18899
did you remember to take out the freopen when you submitted? besides, there are nC2 = n(n-1)/2 unique pairs for a set of n numbers. when you increment your total counter, you do not check whether i=j for this is not considered. on a side note, you do not need to test input >input[j] for your gcd wil...
Sat Sep 20, 2003 6:25 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 18899
did you remember to take out the freopen when you submitted? besides, there are nC2 = n(n-1)/2 unique pairs for a set of n numbers. when you increment your total counter, you do not check whether i=j for this is not considered. on a side note, you do not need to test input >input[j] for your gcd wil...
Tue Dec 04, 2001 3:52 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 26167
Are you using pascal?
This input file is screwed for pascal.
I only managed to get it accepted in C.
Tue Dec 04, 2001 3:50 am
Forum: Volume 1 (100-199)
Replies: 135
Views: 23114
Does your program give the correct output for the sample input? Read the question carefully: You are given the ranking of event i (ci) in chronological order, which means that order[ci]=i; ci tells you the position of event i in chronological order. So your maximal increasing subsequence should not ...
Tue Dec 04, 2001 3:37 am
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 11404
Why don't you try storing your own exponent and mantissa instead? How might you have used logs? I think you may have a floating point precision problem.
Tue Dec 04, 2001 3:31 am
Forum: Volume 3 (300-399)
Topic: 356 - Square Pegs And Round Holes
Replies: 41
Views: 6666
Positive integer means > 0
Tue Dec 04, 2001 3:30 am
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 18636
Use unsigned long. That is sufficient.
Wed Oct 17, 2001 4:18 am
Forum: Volume 2 (200-299)
Topic: 276 - Egyptian Multiplication
Replies: 22
Views: 6016
Do all calculations modulo 100000.