| 比赛 | 2024暑假C班集训A | 评测结果 | AAAAAAAAAA |
|---|---|---|---|
| 题目名称 | 轮子的旋转 | 最终得分 | 100 |
| 用户昵称 | 123 | 运行时间 | 0.030 s |
| 代码语言 | C++ | 内存使用 | 3.45 MiB |
| 提交时间 | 2024-07-10 09:32:36 | ||
#include <bits/stdc++.h>
using namespace std;
const int N=1010;
int n;
int main() {
freopen("rotation.in","r",stdin);
freopen("rotation.out","w",stdout);
int ans=0;
scanf("%d",&n);
for (int i=1;i<=n-1;i++)
{
int x,y,z;
scanf("%d%d%d",&x,&y,&z);
ans^=z;
}
cout<<ans;
}