Search found 10 matches

by Pokemonster
Sat Jul 20, 2002 12:26 pm
Forum: Volume 1 (100-199)
Topic: 100 - The 3n + 1 problem
Replies: 1394
Views: 317759

I guess the problem lies with your "@BEGIN_OF_SOURCE_CODE" and "@END_OF_SOURCE" statements. as far as I know, it's only @END_OF_SOURCE without the '"'.
I guess that's where the string/constant compiler errors come from...
by Pokemonster
Sat Jul 20, 2002 12:19 pm
Forum: Volume 1 (100-199)
Topic: 109 - SCUD Busters
Replies: 96
Views: 36905

Problem 109 - SCUD Busters

Maybe someone can give me this information :D
The wall, eg. the polygon surrounding all the houses, should it be
convex ?
by Pokemonster
Tue Jul 09, 2002 9:20 pm
Forum: Volume 1 (100-199)
Topic: 104 - Arbitrage
Replies: 223
Views: 37132

Input in problem 104

Just wondering if I understand the input correct.
The resulting table for an input like

3.1___0.0023___0.35
0.21__0.00353__8.13
200___180.559_10.339
2.11__0.089____0.06111

is

1.0___3.1_____0.0023___0.35
0.21__1.0_____0.00353__8.13
200__180.559__1.0_____10.339
2.11__0.089___0.06111__1.0

right ...
by Pokemonster
Thu Jul 04, 2002 7:21 pm
Forum: Other words
Topic: Problem Set - Postscript or HTML ?
Replies: 1
Views: 2080

Problem Set - Postscript or HTML ?

I'm wondering, which of the problem sets is up-2-date ?
The HTML version or the PS version ?
I'm asking, because there is some inconsistency in Problem 105 :-?
by Pokemonster
Wed Jul 03, 2002 12:16 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

Thanks alot guys! Works fine now :D
by Pokemonster
Tue Jul 02, 2002 6:24 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

Nope, nothing.
My modified output version looks like that
[cpp]
int iCurrentHeight = 0;
int bFirst = true;
for( i=0; i< 10000; i++ )
{
if( iCurrentHeight != iSkyline )
{
if(bFirst)
{
printf("%i %i", i, iSkyline );
bFirst = false;
}
else
{
printf(" %i %i", i, iSkyline );
}
iCurrentHeight ...
by Pokemonster
Tue Jul 02, 2002 6:12 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

No, I removed that after the first presentation error message :-)
by Pokemonster
Tue Jul 02, 2002 5:50 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

Problem 105 - Presentation Error

Hi!
I'm wondering if anyone else got a presentation error after submitting. The program is accepted, but there's something wrong with the output and I can't figure what !? ( No extra spaces / CRs etc ... )

Sample Input:

1 11 5
2 6 7
3 13 9
12 7 16
14 3 25
19 18 22
23 13 29
24 4 28

Sample Output ...
by Pokemonster
Tue Jul 02, 2002 12:53 am
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

You mean in the judge's input ?
My guess was that the array I allocate is too big ...
by Pokemonster
Mon Jul 01, 2002 11:18 pm
Forum: Volume 1 (100-199)
Topic: 105 - The Skyline Problem
Replies: 160
Views: 51230

105 Help with SIGSEGV Error

Can anyone help ?

I keep getting SIGSEGV errors when submitting and I can't figure out why ...

[cpp]
#include <stdio.h>
#include <string.h>
#include <malloc.h>

main()
{
/* redirect standard input + output if necessary */
#ifndef ONLINE_JUDGE
freopen( "data.in", "r", stdin );
freopen( "data ...

Go to advanced search