QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#180971 | #5255. Greedy Drawers | ucup-team1209# | AC ✓ | 0ms | 3824kb | C++20 | 789b | 2023-09-16 14:48:56 | 2023-09-16 14:48:56 |
Judging History
answer
#include<bits/stdc++.h>
using std::cin;
using std::cout;
using u64 = unsigned long long;
const int mod = 998244353;
using cp = std::complex<int>;
std::vector<cp> A = {
cp(1, 4),
cp(2, 5),
cp(3, 7),
cp(7, 9),
cp(9, 12),
cp(10, 13),
cp(11, 14),
}, B = {
cp(4, 1),
cp(5, 2),
cp(6, 3),
cp(8, 6),
cp(12, 8),
cp(13, 10),
cp(14, 11),
};
cp V(15, 15);
int main() {
#ifdef zqj
//freopen("$.in", "r", stdin);
#endif
std::ios::sync_with_stdio(false), cin.tie(0);
int n;
cin >> n;
const int PB = 1e3 + 1;
for(int i = 0;i < n;++i) {
cp t = V * (i / 7) + A[i % 7];
cout << t.real() << ' ' << PB - t.imag() << '\n';
}
for(int i = 0;i < n;++i) {
cp t = V * (i / 7) + B[i % 7];
cout << t.real() << ' ' << PB - t.imag() << '\n';
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3748kb
input:
150
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #2:
score: 0
Accepted
time: 0ms
memory: 3528kb
input:
151
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #3:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
152
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #4:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
153
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #5:
score: 0
Accepted
time: 0ms
memory: 3488kb
input:
154
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #6:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
155
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #7:
score: 0
Accepted
time: 0ms
memory: 3556kb
input:
156
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #8:
score: 0
Accepted
time: 0ms
memory: 3812kb
input:
157
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #9:
score: 0
Accepted
time: 0ms
memory: 3780kb
input:
158
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #10:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
159
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #11:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
160
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #12:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
161
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #13:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
162
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #14:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
163
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #15:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
164
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #16:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
165
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #17:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
166
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #18:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
167
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #19:
score: 0
Accepted
time: 0ms
memory: 3824kb
input:
168
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy
Test #20:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
250
output:
1 997 2 996 3 994 7 992 9 989 10 988 11 987 16 982 17 981 18 979 22 977 24 974 25 973 26 972 31 967 32 966 33 964 37 962 39 959 40 958 41 957 46 952 47 951 48 949 52 947 54 944 55 943 56 942 61 937 62 936 63 934 67 932 69 929 70 928 71 927 76 922 77 921 78 919 82 917 84 914 85 913 86 912 91 907 92 9...
result:
ok you killed Janko's strategy