正文
增加 8 行删除 8 行
25 行未改动2627282930313233343536373839404142434445464748495051523 行未改动565758596061626364656667683 行未改动7273747576777879808182838425 行未改动signed main(){ios_base::sync_with_stdio(false);cin.tie(nullptr);int n;cin >> n;for (int i = 0, x, y; i < n; i++){cin >> x >> y;a.emplace_back(i, point{ x, y });}int lst = -1;if (n & 1){cout << "Beatrice" << endl;cin >> lst, lst--;}elsecout << "Alberto" << endl;auto erase = [&](int x) {for (auto p = a.begin(); p != a.end(); p++)if (p->first == x){3 行未改动};auto cross = [&](point lhs, point rhs) {return 1ll * lhs.x * rhs.y - 1ll * rhs.x * lhs.y;};while (true){erase(lst);int mxp = -1;ll mxs = INF<ll>;for (int i = 0; i < ssize(a); i++){3 行未改动mxs = curv, mxp = a[i].first;}erase(mxp);cout << mxp + 1 << endl;if (ssize(a) <= 3)break;cin >> lst, lst--;}return 0;}```25 行未改动2627282930313233343536373839404142434445464748495051523 行未改动565758596061626364656667683 行未改动7273747576777879808182838425 行未改动signed main(){ios_base::sync_with_stdio(false);cin.tie(nullptr);int n;cin >> n;for (int i = 0, x, y; i < n; i++){cin >> x >> y;a.emplace_back(i, point{ x, y });}int lst = -1;if (n & 1){cout << "Beatrice" << endl;cin >> lst, lst--;}elsecout << "Alberto" << endl;auto erase = [&](int x) {for (auto p = a.begin(); p != a.end(); p++)if (p->first == x){3 行未改动};auto cross = [&](point lhs, point rhs) {return 1ll * lhs.x * rhs.y - 1ll * rhs.x * lhs.y;};while (true){erase(lst);int mxp = -1;ll mxs = INF<ll>;for (int i = 0; i < ssize(a); i++){3 行未改动mxs = curv, mxp = a[i].first;}erase(mxp);cout << mxp + 1 << endl;if (ssize(a) <= 3)break;cin >> lst, lst--;}return 0;}```