Search found 8 matches

by powerboy
Sat Jul 05, 2003 9:39 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 47939

Hey, Mauricio
I did the test cases you provided. Thank you.
The answers are the same as the ones you provided.
So i still don't see anything wrong with it.
by powerboy
Sat Jul 05, 2003 2:43 pm
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 47939

Hi, I did take the case into consideration.
Can you give a testing case?
by powerboy
Mon Jun 30, 2003 2:41 pm
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 7753

I cannot declare the array like that because num is not a constant.
by powerboy
Mon Jun 30, 2003 4:33 am
Forum: Volume 100 (10000-10099)
Topic: 10082 - WERTYU
Replies: 57
Views: 7753

10082 O.L why???

why do i get output limited exceeded Output Limit Exceeded (OL): Your program tried to write too much information. This usually occurs if it goes into a infinite loop #include <iostream.h> #include <stdlib.h> #include <stdio.h> [cpp] #include <iostream.h> #include <stdlib.h> #include <stdio.h> int m...
by powerboy
Mon Jun 30, 2003 4:17 am
Forum: Volume 100 (10000-10099)
Topic: 10038 - Jolly Jumpers
Replies: 445
Views: 85784

HELP NEEDED

what is wrong with my program??? Anyone help me [cpp]#include <iostream.h> #include <stdlib.h> int main() { int first = 0; int second = 0; int num; bool * array; bool flag = true; while (cin >> num) { if (num > 1) { array = new bool[num]; int i; for (i = 1; i <= num; i++) { array = false; } cin >> s...
by powerboy
Sat Jun 21, 2003 2:20 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 47939

10137 help plz

I just don't see what is wrong with my program. I converted everything into cents. I then found the average of these costs in cents rounding down. I then found the remaining cents which need to be distributed using remainder = sum mod # of trips. I counted the # of costs larger than the average, den...
by powerboy
Sun Jun 01, 2003 5:27 am
Forum: Volume 1 (100-199)
Topic: 103 - Stacking Boxes
Replies: 200
Views: 22180

103 help

Can anyone give me some hints as to the solution to problem 103, the stacking boxes one
by powerboy
Mon May 19, 2003 8:46 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 193548

problem 100

The input for problem 100 is a series of lines of numbers.
How do i know when the input ends?
In addition, should i print all the output after all the input or
should i follow the format
input
output
input
output
etc...

Go to advanced search