| 比赛 | 20161115 | 评测结果 | AWWWAAWWWWWWWWWWWWWW |
|---|---|---|---|
| 题目名称 | 树和机器人 | 最终得分 | 15 |
| 用户昵称 | 祖国栋梁 | 运行时间 | 0.449 s |
| 代码语言 | C++ | 内存使用 | 0.31 MiB |
| 提交时间 | 2016-11-15 10:52:13 | ||
#include<cstdio>
#include<iostream>
using namespace std;
int main()
{
freopen("trobot.in","r",stdin);
freopen("trobot.out","w",stdout);
int n,r,k,ans=0;
cin>>n>>r>>k;
for(int i=1;i<n;i++)
{
int a,b,c;
cin>>a>>b>>c;
ans+=c;
}
cout<<ans;
}