Skip to content

Instantly share code, notes, and snippets.

@logicmd
Created November 1, 2012 03:33
Show Gist options
  • Save logicmd/3991492 to your computer and use it in GitHub Desktop.
Save logicmd/3991492 to your computer and use it in GitHub Desktop.
/*************************************************************************
Author: logicmd
Created Time: 2012/11/1 11:24:29
File Name: PaidRoads.cpp
Description:
************************************************************************/
#include <cassert>
#include <iostream>
#include <vector>
#include <map>
#include <cstdio>
#include <string>
#include <utility>
#include <algorithm>
#define MAX 12
struct Node
{
int a, b, c, p, r, next;
}edge[MAX];
int main()
{
int N, m;
cin >> N >> m;
int a,b,c,p,r;
for(int i=0; i<m; i++)
{
cin >> a >> b >> c >> p >> r;
//edge[i].a = a;
edge[i].b = b;
edge[i].c = c;
edge[i].p = p;
edge[i].r = r;
edge[i].next = a;
}
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment