Search found 9 matches

by idler
Sun Feb 24, 2002 3:24 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 37026

Oh, how silly I am.
I understand the meaning.
But the OJ System is down. :sad:
by idler
Sun Feb 24, 2002 3:23 pm
Forum: Other words
Topic: is the online judge system broken ?
Replies: 6
Views: 3745

Me, too. I agree that the OJ System is down.
I wish it would be repaired soon.
by idler
Sun Feb 24, 2002 8:49 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 37026

Then, in input 2, how can the student get 9?
by idler
Sat Feb 23, 2002 3:42 am
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 30263

Thanks a LOT! :smile:
by idler
Fri Feb 22, 2002 5:11 pm
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 30263

I know the algorithm to solve the problem.
But I DO NOT KNOW how to input the data!
Help!!! :sad:

<font size=-1>[ This Message was edited by: idler on 2002-02-22 16:14 ]</font>
by idler
Fri Feb 22, 2002 7:33 am
Forum: C
Topic: malloc
Replies: 17
Views: 10387

Step 1:
#include <stdlib.h>
#include <malloc.h>

Step 2:
int *array_name[...][...]

Step 3:
array_name = (int *)malloc(sizeof(array_name));
by idler
Fri Feb 22, 2002 6:27 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 71545

623 - 500!

Without pre-calculate, how to solve this problem in 0.000 seconds?
by idler
Fri Feb 22, 2002 6:27 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 71545

This is my code (C, 0.010 seconds)

#include <stdio.h>
#include <memory.h>
#include <stdlib.h>
#include <malloc.h>

#define MODULE_NUM 1000000L
#define LTYPE unsigned int
#define MAX_SIZE 193
#define MAX_N 500

typedef struct
{
unsigned char size;
LTYPE l[MAX_SIZE];
} big;

/* Global variables ...
by idler
Thu Feb 21, 2002 4:27 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 32281

Any better solutions?
I use DFS to solve this problem, and my program ran for a pretty long time.
Here is my program(C++).
#ifndef ONLINE_JUDGE
#define ONLINE_JUDGE
#endif

#include <iostream.h>
#include <stdlib.h>
#include <ctype.h>
#ifndef ONLINE_JUDGE
#include <stdio.h>
#endif

#define MAX_TREE ...

Go to advanced search