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 ...
Search found 7 matches
- Mon Jan 20, 2003 1:10 pm
- Forum: Volume 101 (10100-10199)
- Topic: 10141 - Request for Proposal
- Replies: 44
- Views: 24285
- Mon Jan 13, 2003 1:04 pm
- Forum: Volume 1 (100-199)
- Topic: 152 - Tree's a Crowd
- Replies: 30
- Views: 7058
- Fri Jan 10, 2003 1:07 pm
- Forum: Volume 1 (100-199)
- Topic: 152 - Tree's a Crowd
- Replies: 30
- Views: 7058
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 ...
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 ...
- Fri Nov 22, 2002 1:32 pm
- Forum: Volume 3 (300-399)
- Topic: 375 - Inscribed Circles and Isosceles Triangles
- Replies: 19
- Views: 5143
- Wed Nov 13, 2002 9:56 pm
- Forum: Volume 100 (10000-10099)
- Topic: 10038 - Jolly Jumpers
- Replies: 445
- Views: 153207
- Fri Oct 25, 2002 11:45 am
- Forum: Pascal
- Topic: input problem
- Replies: 12
- Views: 15610
- Wed Sep 11, 2002 9:50 am
- Forum: Other words
- Topic: About new incoming features
- Replies: 47
- Views: 32521
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 ...
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 ...