getting Runtime Error please help
:(
#include<iostream>
#include<queue>
using namespace std;
long long int arr[100],arr2[100],sorted[100],graph[100][100],compressed[100];
long long int vis[100];
long long int d[100];
long long int node,edges,k;
long long int TTL,coun;
void bfs(int s)
{
queue ...
Search found 2 matches
- Mon Dec 25, 2017 8:23 pm
- Forum: Volume 3 (300-399)
- Topic: 336 - A Node Too Far
- Replies: 121
- Views: 59198
- Tue Nov 24, 2015 12:45 am
- Forum: Volume 101 (10100-10199)
- Topic: 10130 - SuperSale
- Replies: 76
- Views: 35904
Re: 10130 - SuperSale
why this get wrong answer..im getting right output for all input case
here is my code
#include<bits/stdc++.h>
using namespace std;
int n,profit1,profit2;
int dpi[101][101],cost[1000],weight[1000],cap;
int dp(int i,int w)
{
if(i==n+1)
return 0;
if(dpi[i][w]!=-1)
return dpi[i][w];
int profit1 ...
here is my code
#include<bits/stdc++.h>
using namespace std;
int n,profit1,profit2;
int dpi[101][101],cost[1000],weight[1000],cap;
int dp(int i,int w)
{
if(i==n+1)
return 0;
if(dpi[i][w]!=-1)
return dpi[i][w];
int profit1 ...