报错信息:Wrong Answer.wrong output format Unexpected end of file - int32 expected
代码:
#include <bits/stdc++.h>
#define maxn 10010
using namespace std;
int n, r, u[maxn], v[maxn], ans[maxn];
int main() {
cin >> n;
r = n * (n - 1) / 2;
for (int i = 1; i <= r; i++) {
cin >> u[i] >> v[i];
if (u[i] < v[i]) {
swap(u[i], v[i]);
}
printf("%d\n", u[i] == ++ans[u[i]]);
}
return 0;
}