Submission #260890

# Submission time Handle Problem Language Result Execution time Memory
260890 2020-08-11T07:05:40 Z Evirir Travelling Merchant (APIO17_merchant) C++17
0 / 100
27 ms 5112 KB
#include <bits/stdc++.h>
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace std;
using namespace __gnu_pbds;

#define watch(x) cout<<(#x)<<"="<<(x)<<'\n'
#define mset(d,val) memset(d,val,sizeof(d))
#define setp(x) cout<<fixed<<setprecision(x)
#define forn(i,a,b) for(int i=(a);i<(b);i++)
#define fore(i,a,b) for(int i=(a);i<=(b);i++)
#define pb push_back
#define F first
#define S second
#define pqueue priority_queue
#define fbo find_by_order
#define ook order_of_key
typedef long long ll;
typedef pair<ll,ll> ii;
typedef vector<ll> vi;
typedef vector<ii> vii;
typedef long double ld;
typedef tree<ll, null_type, less<ll>, rb_tree_tag, tree_order_statistics_node_update> pbds;
void amin(ll &a, ll b){ a=min(a,b); }
void amax(ll &a, ll b){ a=max(a,b); }
void YES(){cout<<"YES\n";} void NO(){cout<<"NO\n";}
void SD(int t=0){ cout<<"PASSED "<<t<<endl; }
const ll INF = ll(1e18);
const int MOD = 998244353;

const bool DEBUG = 0;
const int MAXN = 105;
const int MAXM = 9905;
const int MAXK = 1005;

int n,m,K;
vii adj[MAXN];
ll B[MAXN][MAXK],S[MAXN][MAXK];
ll dp[MAXN][MAXK];

int main()
{
	ios_base::sync_with_stdio(0); cin.tie(0);
	
	cin>>n>>m>>K;
	
	forn(i,0,n)
	{
		forn(j,0,K)
		{
			cin>>B[i][j]>>S[i][j];
		}
	}
	
	forn(i,0,m)
	{
		int u,v; ll w; cin>>u>>v; u--; v--;
		adj[u].pb({v,w});
		adj[v].pb({u,w});
	}
	
	cout<<0<<'\n';
	
	return 0;
}
# Verdict Execution time Memory Grader output
1 Runtime error 27 ms 5112 KB Execution killed with signal 11 (could be triggered by violating memory limits)
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 768 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 4 ms 1408 KB Output isn't correct
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 1 ms 768 KB Output isn't correct
2 Halted 0 ms 0 KB -