Search found 2 matches

by saha2
Sat Oct 08, 2016 9:32 pm
Forum: Volume 1 (100-199)
Topic: 116 - Unidirectional TSP
Replies: 226
Views: 65982

Re: 116 - Unidirectional TSP

why Wa??? i have tried different inputs and it gives me correct ans all the time. please anyone help ..plz

#include <cstdio>
#include <iostream>
#include <cstring>
#include <vector>
#include <cmath>
#define max pow(2,30)
using namespace std;
long long int dp[20][121];
long long int save[20][121 ...
by saha2
Fri Oct 07, 2016 10:13 pm
Forum: Volume 9 (900-999)
Topic: 990 - Diving for Gold
Replies: 11
Views: 8862

Re: 990 - Diving for Gold

why WA??? i have tried inputs but find no solution..please anyone help :(
here is my code



#include <cstdio>
#include <iostream>
#include <vector>
#include <cstring>
#include<map>
#define inf 10000007
int dp[1000][1000];
int depth[1000];
int value[1000];
int track[1000][1000];
struct d{
int ...

Go to advanced search