Search found 7 matches

Mon Jan 20, 2003 1:10 pm
Forum: Volume 101 (10100-10199)
Topic: 10141 - Request for Proposal
Replies: 44
Views: 15094
Your code looks correct at first glance. But why you use arrays? In this problem you only need to store maximum complient number, corresponding proposal name and minimal price, i.e. 2 integers and 1 string through all cycle. And what you can try to do besides: init value for "compliance" should be n...
Mon Jan 13, 2003 1:04 pm
Forum: Volume 1 (100-199)
Topic: 152 - Tree's a Crowd
Replies: 30
Views: 3654

I finally got AC; my mistake was trivial and stupid (as usual) - too small array for input data ([1..5000] instead of [1..5001]).

Best regards
Fri Jan 10, 2003 1:07 pm
Forum: Volume 1 (100-199)
Topic: 152 - Tree's a Crowd
Replies: 30
Views: 3654

152 - Tree's a Crowd

Please anybody hint what's up with P152! The problem seems quite easy, if using "brute force" approach, although too slow. I tryed some variants, always getting WA. There is some unclear things for me: 1. Should I consider last line of input (0 0 0) like an ordinary case to check? 2. May I assume al...
Fri Nov 22, 2002 1:32 pm
Forum: Volume 3 (300-399)
Topic: 375 - Inscribed Circles and Isosceles Triangles
Replies: 19
Views: 2484
I've just got AC for this problem after 2 attempts. Second (successful) variant had only 1 change: Single type to Double, I wrote in Pascal. Besides, in your variant I noticed one small bug: you check r>=1.0e-6 BEFORE adding new calculated "r" to "sum". I think this last addition may cause wrong las...
Wed Nov 13, 2002 9:56 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 74998
It seems you mess sequence elements and their ordering numbers.
For 3 element sequence x1,x2,x3 the only requirement to be 'jolly' is:
{Abs(x1-x2), Abs(x2-x3)} in [1,2] (without repetitions).

So following number triples all are jolly:
1,2,4; 4,2,1; 104,102,101; -5,-7,-6.
Fri Oct 25, 2002 11:45 am
Forum: Pascal
Topic: input problem
Replies: 12
Views: 12514
Hi to all! I'd like to resume discussion on input problems. All advices above work well in case of known amount of numbers in the line. But if you need to read indefinite (may be very big) number of integers? Same problem with very long Strings. I've got many WA, TLE, MLE with several "primitive" AC...
Wed Sep 11, 2002 9:50 am
Forum: Other words