Search found 2 matches

by dev_mania
Fri Nov 15, 2002 7:18 am
Forum: C
Topic: malloc
Replies: 17
Views: 10391

[c]
#define ROW 5
#define COL 5
....

int (*array)[COL];

array = (int (*)[COL])malloc(sizeof(int) * ROW * COL);

/* Using pointer variable array like general 2-d array
--ex) array[0][0] */
[/c]
by dev_mania
Fri Nov 15, 2002 3:13 am
Forum: Volume 1 (100-199)
Topic: 101 - The Blocks Problem
Replies: 635
Views: 108876

Prob 101 ..Time Limit Exceeded....

I got Time Limit Exceeded Message....
How can I make my program faster.....?????

/* @BEGIN_OF_SOURCE_CODE */
/* @JUDGE_ID: XXXXX 101 C */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

typedef unsigned char UINT8;

typedef struct _node{
UINT8 bkNumber;
UINT8 lstNumber;
struct _node ...

Go to advanced search