Search found 1 match

by straggler73
Wed Dec 01, 2004 8:51 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 29667

105 - The Skyline Problem

I get PE ... Please Help #include <stdio.h> #define MAX 10000 int height[MAX+1]; int main() { int i; int li, hi, ri; for(i=0; i<= MAX; i++) { height = 0; } while (scanf("%d %d %d\n",&li, &hi, &ri)==3){ for(i=li; i < ri; i++) { if (height < hi) height = hi; } } for(i=1; i<= MAX; i++) { if (height[i-1...

Go to advanced search