Search found 2 matches

by Dvorak
Thu Sep 16, 2004 11:20 am
Forum: Volume 100 (10000-10099)
Topic: 10066 - The Twin Towers
Replies: 35
Views: 19484

Argh how silly am I :oops:

Should have done the bound check BEFORE the dynamic one hehehe... silly me.
by Dvorak
Thu Sep 16, 2004 10:53 am
Forum: Volume 100 (10000-10099)
Topic: 10066 - The Twin Towers
Replies: 35
Views: 19484

10066 WA

The following code returns WA:

[cpp]
#include <cstdio>
#include <cstdlib>
#include <algorithm>

using namespace std;

//functor for solving the problem
struct Solve
{
int *a, *b;
int lena, lenb;
int dynLen[200][200];

int operator() (int *A, int la, int *B, int lb)
{
lena = la;
lenb = lb;
a ...

Go to advanced search