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