QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#90267 | #5255. Greedy Drawers | chiranko# | AC ✓ | 2ms | 3516kb | C++14 | 795b | 2023-03-22 16:21:16 | 2023-03-22 16:21:18 |
Judging History
answer
#include<bits/stdc++.h>
#define rep(l,r) for(int i=l;i<=r;i++)
#define jrep(l,r) for(int j=l;j<=r;j++)
#define x first
#define y second
#define pb push_back
using namespace std;
typedef long double LD;
typedef long long ll;
typedef pair<int,int> PII;
vector<PII>A,B;
int main()
{
ios::sync_with_stdio(false);
cin.tie(0);
int dx=999,dy=1;
rep(1,15)
{
A.pb({dx-1,dy});
A.pb({dx-1,dy});
jrep(3,10)A.pb({dx-j+2,dy+j-2});
B.pb({dx,dy});
jrep(2,9)B.pb({dx-j+2,dy+j-1});
B.pb({dx-7,dy+8});
dx-=10,dy+=10;
}
int n;
cin>>n;
while(A.size()<n)
{
A.pb({dx,dy}),B.pb({dx,dy});
dx--,dy++;
}
rep(0,n-1)cout<<A[i].x<<' '<<A[i].y<<"\n";
cout<<"\n";
rep(0,n-1)cout<<B[i].x<<' '<<B[i].y<<"\n";
return 0;
}
/*
2
0.707107
0.707107
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3372kb
input:
150
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #2:
score: 0
Accepted
time: 2ms
memory: 3360kb
input:
151
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #3:
score: 0
Accepted
time: 2ms
memory: 3516kb
input:
152
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #4:
score: 0
Accepted
time: 2ms
memory: 3456kb
input:
153
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #5:
score: 0
Accepted
time: 2ms
memory: 3488kb
input:
154
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #6:
score: 0
Accepted
time: 2ms
memory: 3288kb
input:
155
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #7:
score: 0
Accepted
time: 2ms
memory: 3360kb
input:
156
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #8:
score: 0
Accepted
time: 2ms
memory: 3300kb
input:
157
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #9:
score: 0
Accepted
time: 2ms
memory: 3452kb
input:
158
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #10:
score: 0
Accepted
time: 2ms
memory: 3296kb
input:
159
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #11:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
160
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #12:
score: 0
Accepted
time: 2ms
memory: 3456kb
input:
161
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #13:
score: 0
Accepted
time: 2ms
memory: 3448kb
input:
162
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #14:
score: 0
Accepted
time: 2ms
memory: 3376kb
input:
163
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #15:
score: 0
Accepted
time: 1ms
memory: 3356kb
input:
164
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #16:
score: 0
Accepted
time: 2ms
memory: 3388kb
input:
165
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #17:
score: 0
Accepted
time: 1ms
memory: 3300kb
input:
166
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #18:
score: 0
Accepted
time: 2ms
memory: 3336kb
input:
167
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #19:
score: 0
Accepted
time: 2ms
memory: 3360kb
input:
168
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy
Test #20:
score: 0
Accepted
time: 2ms
memory: 3296kb
input:
250
output:
998 1 998 1 998 2 997 3 996 4 995 5 994 6 993 7 992 8 991 9 988 11 988 11 988 12 987 13 986 14 985 15 984 16 983 17 982 18 981 19 978 21 978 21 978 22 977 23 976 24 975 25 974 26 973 27 972 28 971 29 968 31 968 31 968 32 967 33 966 34 965 35 964 36 963 37 962 38 961 39 958 41 958 41 958 42 957 43 95...
result:
ok you killed Janko's strategy