This documentation is automatically generated by competitive-verifier/competitive-verifier
// @brief Sort Points by Argument
#define PROBLEM "https://judge.yosupo.jp/problem/sort_points_by_argument"
#pragma GCC optimize("Ofast,unroll-loops")
#pragma GCC target("tune=native")
#include "cp-algo/geometry/point.hpp"
#include <bits/stdc++.h>
using namespace std;
using namespace cp_algo::geometry;
using point = point_t<int64_t>;
void solve() {
int n;
cin >> n;
vector<point> pts(n);
for(auto &r: pts) {
r.read();
}
ranges::sort(pts, point::ccw_abs);
for(auto r: pts) {
r.print();
}
}
signed main() {
//freopen("input.txt", "r", stdin);
ios::sync_with_stdio(0);
cin.tie(0);
int t = 1;
//cin >> t;
while(t--) {
solve();
}
}
Traceback (most recent call last):
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj_resolve/resolver.py", line 181, in resolve
bundled_code = language.bundle(path, basedir=basedir)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus.py", line 252, in bundle
bundler.update(path)
File "/home/runner/.local/lib/python3.12/site-packages/competitive_verifier/oj/verify/languages/cplusplus_bundle.py", line 327, in update
assert len(lines) == len(uncommented_lines)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AssertionError
Env | Name | Status | Elapsed | Memory |
---|---|---|---|---|
g++ | all_same_00 |
![]() |
46 ms | 7 MB |
g++ | all_same_01 |
![]() |
57 ms | 7 MB |
g++ | all_same_02 |
![]() |
59 ms | 7 MB |
g++ | example_00 |
![]() |
6 ms | 4 MB |
g++ | half_same_00 |
![]() |
62 ms | 7 MB |
g++ | half_same_01 |
![]() |
71 ms | 7 MB |
g++ | half_same_02 |
![]() |
71 ms | 6 MB |
g++ | max_random_00 |
![]() |
75 ms | 7 MB |
g++ | max_random_01 |
![]() |
76 ms | 7 MB |
g++ | max_random_02 |
![]() |
75 ms | 7 MB |
g++ | near_arg_00 |
![]() |
77 ms | 7 MB |
g++ | near_arg_01 |
![]() |
82 ms | 7 MB |
g++ | near_arg_02 |
![]() |
77 ms | 7 MB |
g++ | near_arg_shuffle_00 |
![]() |
76 ms | 7 MB |
g++ | near_arg_shuffle_01 |
![]() |
83 ms | 7 MB |
g++ | near_arg_shuffle_02 |
![]() |
83 ms | 7 MB |
g++ | only_x_axis_00 |
![]() |
6 ms | 4 MB |
g++ | random_00 |
![]() |
51 ms | 5 MB |
g++ | random_01 |
![]() |
63 ms | 6 MB |
g++ | random_02 |
![]() |
25 ms | 4 MB |
g++ | small_all_00 |
![]() |
6 ms | 4 MB |