Search found 7 matches

by SMBfromRU
Mon Jan 20, 2003 1:10 pm
Forum: Volume 101 (10100-10199)
Topic: 10141 - Request for Proposal
Replies: 44
Views: 15238

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...
by SMBfromRU
Mon Jan 13, 2003 1:04 pm
Forum: Volume 1 (100-199)
Topic: 152 - Tree's a Crowd
Replies: 30
Views: 3669

Thank you for your reply, ec3_limz!

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
by SMBfromRU
Fri Jan 10, 2003 1:07 pm
Forum: Volume 1 (100-199)
Topic: 152 - Tree's a Crowd
Replies: 30
Views: 3669

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...
by SMBfromRU
Fri Nov 22, 2002 1:32 pm
Forum: Volume 3 (300-399)
Topic: 375 - Inscribed Circles and Isosceles Triangles
Replies: 19
Views: 2499

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...
by SMBfromRU
Wed Nov 13, 2002 9:56 pm
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 75542

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.
by SMBfromRU
Fri Oct 25, 2002 11:45 am
Forum: Pascal
Topic: input problem
Replies: 12
Views: 12536

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...
by SMBfromRU
Wed Sep 11, 2002 9:50 am
Forum: Other words
Topic: About new incoming features
Replies: 47
Views: 27742

Hi to ALL! I'm an old Pascal user and fan ("old" also means age), and hardly can change this language to anything else. My version of Pascal is BP and so far I had very less problems with BP-GPC compatibility. But when I started to submit programs, I had received many "Compile Error" and WA, until l...

Go to advanced search