Search found 2 matches

by JoongHo
Mon Jan 01, 2007 10:16 am
Forum: Volume 102 (10200-10299)
Topic: 10252 - Common Permutation
Replies: 150
Views: 73456

10252 (TLE) Help me!!

Who can give advice to me?

-------------------------------------------------------------------------------------

/*
No. 10252 Common Permutation
*/

#include <iostream>
#include <string>

using namespace std;

void quick_sort (char a[], int n)
{
char v, t;
int i, j;
if (n > 1)
{
v = a[n-1 ...
by JoongHo
Wed Jul 19, 2006 9:36 am
Forum: Volume 101 (10100-10199)
Topic: 10137 - The Trip
Replies: 159
Views: 70301

10137

Please help

thanks in advance



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

#define MAX 1000

class Node
{
public:
double money_exchange;


Node *next;
Node *prev;
};

int compare(const void *arg1, const void *arg2)
{
int p1, p2;
p1 = *(int*)arg1;
p2 = *(int*)arg2;
return ...

Go to advanced search