QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#71410 | #5255. Greedy Drawers | Sorting# | AC ✓ | 2ms | 3552kb | C++ | 694b | 2023-01-09 22:24:41 | 2023-03-17 01:51:14 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef unsigned long long ull;
#define fi first
#define se second
int n,m,k;
vector<pair<int,int> >v1,v2;
int main(){
ios::sync_with_stdio(false);cin.tie(0);
cin >> n;
for(int i=0; i<25 ;i++){
int iu=n/25+(i<n%25)+1;
int cx=20*i;
int cy=20*(24-i);
for(int i=2; i<=iu-1 ;i++){
v1.push_back({cx+i,cy+iu-i});
v2.push_back({cx+i,cy+iu-i+1});
}
v2.push_back({cx+iu,cy+2});
v1.push_back({cx+1,cy+iu-2});
}
//cout << v1.size() << endl;
for(auto c:v1) cout << c.fi << ' ' << c.se+500 << '\n';
cout << '\n';
for(auto c:v2) cout << c.fi << ' ' << c.se+500 << '\n';
cout << '\n';
}
詳細信息
Test #1:
score: 100
Accepted
time: 2ms
memory: 3344kb
input:
150
output:
2 985 3 984 4 983 5 982 6 981 1 985 22 965 23 964 24 963 25 962 26 961 21 965 42 945 43 944 44 943 45 942 46 941 41 945 62 925 63 924 64 923 65 922 66 921 61 925 82 905 83 904 84 903 85 902 86 901 81 905 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 864 124 863 125 862 126 861 121 865 ...
result:
ok you killed Janko's strategy
Test #2:
score: 0
Accepted
time: 2ms
memory: 3540kb
input:
151
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 965 23 964 24 963 25 962 26 961 21 965 42 945 43 944 44 943 45 942 46 941 41 945 62 925 63 924 64 923 65 922 66 921 61 925 82 905 83 904 84 903 85 902 86 901 81 905 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 864 124 863 125 862 126 861 12...
result:
ok you killed Janko's strategy
Test #3:
score: 0
Accepted
time: 2ms
memory: 3328kb
input:
152
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 945 43 944 44 943 45 942 46 941 41 945 62 925 63 924 64 923 65 922 66 921 61 925 82 905 83 904 84 903 85 902 86 901 81 905 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 864 124 863 125 862 126...
result:
ok you killed Janko's strategy
Test #4:
score: 0
Accepted
time: 2ms
memory: 3436kb
input:
153
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 925 63 924 64 923 65 922 66 921 61 925 82 905 83 904 84 903 85 902 86 901 81 905 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 864 124 863 125 ...
result:
ok you killed Janko's strategy
Test #5:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
154
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 905 83 904 84 903 85 902 86 901 81 905 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 864 124 8...
result:
ok you killed Janko's strategy
Test #6:
score: 0
Accepted
time: 2ms
memory: 3340kb
input:
155
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 885 103 884 104 883 105 882 106 881 101 885 122 865 123 86...
result:
ok you killed Janko's strategy
Test #7:
score: 0
Accepted
time: 0ms
memory: 3552kb
input:
156
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #8:
score: 0
Accepted
time: 2ms
memory: 3388kb
input:
157
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #9:
score: 0
Accepted
time: 2ms
memory: 3340kb
input:
158
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #10:
score: 0
Accepted
time: 2ms
memory: 3332kb
input:
159
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #11:
score: 0
Accepted
time: 2ms
memory: 3340kb
input:
160
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #12:
score: 0
Accepted
time: 2ms
memory: 3424kb
input:
161
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #13:
score: 0
Accepted
time: 1ms
memory: 3336kb
input:
162
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #14:
score: 0
Accepted
time: 2ms
memory: 3372kb
input:
163
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #15:
score: 0
Accepted
time: 2ms
memory: 3436kb
input:
164
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #16:
score: 0
Accepted
time: 1ms
memory: 3432kb
input:
165
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #17:
score: 0
Accepted
time: 2ms
memory: 3428kb
input:
166
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #18:
score: 0
Accepted
time: 2ms
memory: 3348kb
input:
167
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #19:
score: 0
Accepted
time: 2ms
memory: 3384kb
input:
168
output:
2 986 3 985 4 984 5 983 6 982 7 981 1 986 22 966 23 965 24 964 25 963 26 962 27 961 21 966 42 946 43 945 44 944 45 943 46 942 47 941 41 946 62 926 63 925 64 924 65 923 66 922 67 921 61 926 82 906 83 905 84 904 85 903 86 902 87 901 81 906 102 886 103 885 104 884 105 883 106 882 107 881 101 886 122 86...
result:
ok you killed Janko's strategy
Test #20:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
250
output:
2 989 3 988 4 987 5 986 6 985 7 984 8 983 9 982 10 981 1 989 22 969 23 968 24 967 25 966 26 965 27 964 28 963 29 962 30 961 21 969 42 949 43 948 44 947 45 946 46 945 47 944 48 943 49 942 50 941 41 949 62 929 63 928 64 927 65 926 66 925 67 924 68 923 69 922 70 921 61 929 82 909 83 908 84 907 85 906 8...
result:
ok you killed Janko's strategy