Search found 9 matches

by FCS
Sun Sep 21, 2003 11:14 am
Forum: Volume 1 (100-199)
Topic: 199 - Partial differential equations
Replies: 15
Views: 4350

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...
by FCS
Sat Sep 20, 2003 6:32 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 17802

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...
by FCS
Sat Sep 20, 2003 6:25 am
Forum: Volume 4 (400-499)
Topic: 412 - Pi
Replies: 104
Views: 17802

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...
by FCS
Tue Dec 04, 2001 3:52 am
Forum: Volume 4 (400-499)
Topic: 459 - Graph Connectivity
Replies: 132
Views: 24618

Are you using pascal?
This input file is screwed for pascal.
I only managed to get it accepted in C.
by FCS
Tue Dec 04, 2001 3:50 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 21906

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 ...
by FCS
Tue Dec 04, 2001 3:37 am
Forum: Volume 4 (400-499)
Topic: 474 - Heads / Tails Probability
Replies: 50
Views: 10807

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.
by FCS
Tue Dec 04, 2001 3:31 am
Forum: Volume 3 (300-399)
Topic: 356 - Square Pegs And Round Holes
Replies: 41
Views: 6341

Positive integer means > 0
by FCS
Tue Dec 04, 2001 3:30 am
Forum: Volume 3 (300-399)
Topic: 369 - Combinations
Replies: 101
Views: 17093

Use unsigned long. That is sufficient.
by FCS
Wed Oct 17, 2001 4:18 am
Forum: Volume 2 (200-299)
Topic: 276 - Egyptian Multiplication
Replies: 22
Views: 5693

Do all calculations modulo 100000.

Go to advanced search