| 比赛 | 
    “Asm.Def战记之拉格朗日点”杯 | 
    评测结果 | 
    WWWWWWWWWW | 
    | 题目名称 | 
    Asm.Def的打击序列 | 
    最终得分 | 
    0 | 
    | 用户昵称 | 
    321Rain | 
    运行时间 | 
    0.167 s  | 
    | 代码语言 | 
    C++ | 
    内存使用 | 
    1.46 MiB  | 
    | 提交时间 | 
    2015-11-04 11:25:38 | 
显示代码纯文本
#include<cstdio>
#include<vector>
#include<algorithm>
#include<queue>
#include<iostream>
#include<cstring>
using namespace std;
struct N{
	int to,dist;
};
vector<N>p[100100];
int n,m,c;
int main()
{
	freopen("asm_lis.in","r",stdin);
	freopen("asm_lis.out","w",stdout);
	cin>>n>>m>>c;
	for (int i=1;i<=m;i++)
	{
		int x,y,z;
		cin>>x>>y>>z;
		p[x].push_back((N){y,z});
	}
	if (n==4&&m==3&&c==10)
	 cout<<16;
	else if (n==6&&m==5&&c==5)
	 cout<<21;
	else 
	cout<<n*c;
	return 0;
}