Search found 18 matches

by lazenca
Fri Apr 08, 2005 3:12 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29582

:-)

Yes, you're right! :wink:

Your idea make my code more shortly...
I was not far-sighted enough to think of that... :oops:

Thanks for your concern to this topic
by lazenca
Thu Feb 24, 2005 7:43 am
Forum: Volume 1 (100-199)
Topic: 121 - Pipe Fitters
Replies: 36
Views: 2747

#121 - Pipe Fitters

hm...Is there some critical test case for this prob...
I still got WA...@_@

This prob seems easy, but confused for floating computation... :o
by lazenca
Tue Feb 15, 2005 10:37 am
Forum: Volume 1 (100-199)
Topic: 124 - Following Orders
Replies: 49
Views: 7515

oops... :roll:
I got AC now... >.<
by lazenca
Tue Feb 15, 2005 4:20 am
Forum: Volume 1 (100-199)
Topic: 124 - Following Orders
Replies: 49
Views: 7515

#124 following orders..

hi.. :o
I tried this prob these days...
But still got WA.
Is there some input cases I missed?
help me~
by lazenca
Sat Jan 08, 2005 3:20 pm
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

maybe, I use O(N^3)... :roll:
by lazenca
Fri Jan 07, 2005 9:32 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

I got AC...
I very much appreciate your helps. :wink:

But It's too slow... :cry: hm...

I'll try to make it faster...
by lazenca
Fri Jan 07, 2005 2:29 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

Thanks for advice... :P
The paper is very helpful to me..

This problem is much complicate than I thought..

I'll try hard to accept this.. :)
by lazenca
Thu Jan 06, 2005 2:21 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

nope..I still got WA..hm...
by lazenca
Wed Jan 05, 2005 10:29 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

oops... :-? I tried to O(N^2)...hm.. #include <iostream.h> #include <limits.h> void init_array2(int array[100]); void main() { int N; int i, x, array[100] = {0}, limits, col; int in_data, sub_cumulative, max_sum; int *table; cin >> N; limits = N*N; table = new int[limits]; for (i = 0; i < limits; i+...
by lazenca
Mon Jan 03, 2005 10:16 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

I modified some part of my code... But still got WA...It seems to be correct. Is my algorithm correct? #include <iostream.h> #include <limits.h> #define ONLINE_JUDGE void main() { int i = 0, N; int in_data, sub_cumulative, sub_max; cin >> N; /* first element must be include.. */ cin >> sub_cumulativ...
by lazenca
Mon Jan 03, 2005 6:07 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

first of all, thanks....

I noticed that my code has many fault...oooooo......
by lazenca
Thu Dec 30, 2004 10:53 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

Thanks! I modified my code...but still WA.. :( what is missing things? or I misunderstood your advice? void main() { int sub_max, sub_cumulative, total_cumulative, total_max; int in_data, i, N, limits; while (cin >> N) { /* initialize... */ sub_max = INT_MIN, sub_cumulative = 0, total_cumulative = 0...
by lazenca
Tue Dec 28, 2004 9:50 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

hm...=_=

sorry...It's my mistake when I wrote this post.... :oops: here are correct codes. #include <iostream.h> #include <limits.h> /* <INPUT> N N: positive integer, size of the square two dimentional array. ..... This is followed by N*N integers separated by white-space(row-major order) ..... <OUTPUT> The ...
by lazenca
Tue Dec 28, 2004 5:59 am
Forum: Volume 1 (100-199)
Topic: 108 - Maximum Sum
Replies: 233
Views: 25195

#108 WA plz help me @_@

I guess my code is correct... what's the problem? :o And I need some test data.. #include <iostream.h> #include <limits.h> /* <INPUT> N N: positive integer, size of the square two dimentional array. ..... This is followed by N*N integers separated by white-space(row-major order) ..... <OUTPUT> The o...
by lazenca
Mon Dec 13, 2004 8:37 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29582

thanks... :-)

thanks for your advice... now, I got AC... It was so hard to me....=_=;;; Finally I rebuild my code..including output part. The main problem was linked list part. hm.. :o well, I have a question about free()... If I use free(), the program run faster or slower? I tested that, but can't find differen...

Go to advanced search