Search found 2 matches

by arh
Thu Oct 13, 2005 2:03 pm
Forum: Volume 3 (300-399)
Topic: 394 - Mapmaker
Replies: 22
Views: 11172

Could you please make a review of my code. I think there should be some trick with an input and output but I can't figure out what exactly should be corrected to get it accepted by judge.


#include <iostream>
#include <string.h>
using namespace std;

typedef unsigned short USHORT;
typedef USHORT ...
by arh
Tue Sep 27, 2005 9:49 am
Forum: Volume 3 (300-399)
Topic: 394 - Mapmaker
Replies: 22
Views: 11172

I have the same problem. I've tried the following input:

4 8
ONE 1500 2 2 0 3 1 5
TWO 2000 4 3 1 4 0 5 5 10
THREE 3000 1 1 1 9
FOUR 5000 3 4 0 4 19 22 22 32 9 12
ONE 2 4
THREE 7
TWO 2 0 6
TWO 3 3 9
FOUR 1 20 23 11
FOUR 4 21 31 9
FIVE
THREE 8


and my solution produced the following results ...

Go to advanced search