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