## Search found 9 matches

Sun Feb 24, 2002 3:24 pm
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 23038
Oh, how silly I am.
I understand the meaning.
But the OJ System is down.
Sun Feb 24, 2002 3:23 pm
Forum: Other words
Topic: is the online judge system broken ?
Replies: 6
Views: 3068
Me, too. I agree that the OJ System is down.
I wish it would be repaired soon.
Sun Feb 24, 2002 8:49 am
Forum: Volume 1 (100-199)
Topic: 111 - History Grading
Replies: 135
Views: 23038
Then, in input 2, how can the student get 9?
Sat Feb 23, 2002 3:42 am
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 14500
Thanks a LOT!
Fri Feb 22, 2002 5:11 pm
Forum: Volume 1 (100-199)
Topic: 120 - Stacks of Flapjacks
Replies: 118
Views: 14500
I know the algorithm to solve the problem.
But I DO NOT KNOW how to input the data!
Help!!!

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

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

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

### 623 - 500!

Without pre-calculate, how to solve this problem in 0.000 seconds?
Fri Feb 22, 2002 6:27 am
Forum: Volume 6 (600-699)
Topic: 623 - 500!
Replies: 187
Views: 45848
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 */ big *g...
Thu Feb 21, 2002 4:27 pm
Forum: Volume 1 (100-199)
Topic: 112 - Tree Summing
Replies: 137
Views: 15112
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_LEN...