i'm trying this problem for a long time now. i'm new in dp. here is my C++ code:
#include<stdio.h>
#include<string.h>
int memo[600][20000];
int que[600],qi;
char side[5][600],ms;
int load(int port_sz,int star_sz,int ci)
{
if(ci>=ms)
{
strcpy(side[1],side[0]);
ms=ci;
}
if((port_sz<0 || star ...
Search found 2 matches
- Wed Feb 16, 2011 12:07 pm
- Forum: Volume 102 (10200-10299)
- Topic: 10261 - Ferry Loading
- Replies: 41
- Views: 26996
- Sun Jul 04, 2010 3:29 am
- Forum: Volume 108 (10800-10899)
- Topic: 10814 - Simplifying Fractions
- Replies: 30
- Views: 21874
10814 - Simplifying Fractions WA
i've used a class for the BigInts and it's operators but i'm getting WA. can anyone help me with any suggestion or any critical input