| 记录编号 | 51859 | 评测结果 | AAAAAAAAAA | ||
|---|---|---|---|---|---|
| 题目名称 | 187.[USACO Oct08] 轮子的旋转 | 最终得分 | 100 | ||
| 用户昵称 | 是否通过 | 通过 | |||
| 代码语言 | C++ | 运行时间 | 0.010 s | ||
| 提交时间 | 2013-01-02 21:08:15 | 内存使用 | 0.31 MiB | ||
#include<iostream>
#include<cstdio>
using namespace std;
int main(){
freopen("rotation.in","r",stdin);
freopen("rotation.out","w",stdout);
int n,sum=0;
int i,s,d,c;
scanf("%d",&n);
for(i=0;i<n-1;i++){
scanf("%d%d%d",&s,&d,&c);
sum+=c;
}
sum%=2;
printf("%d\n",sum);
return 0;
}