QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#138735 | #5255. Greedy Drawers | UNos_maricones# | AC ✓ | 1ms | 3888kb | C++20 | 1.1kb | 2023-08-12 09:14:43 | 2023-08-12 09:14:53 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#define ff first
#define ss second
#define pb push_back
typedef long long ll;
typedef pair<int,int> pii;
const int N = 3e5+5;
const int mod = 1e9+7;
int n;
vector <pii> est, lib;
int itX = 1000, itY = 1;
void createGroup () {
est.pb ( {itX, itY} );
est.pb ( {itX, itY} );
est.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
itX--;
lib.pb ( {itX, itY} );
itY++;
est.pb ( {itX, itY} );
itX--;
lib.pb ( {itX, itY} );
itY++;
est.pb ( {itX, itY} );
est.pb ( {itX, itY} );
est.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
}
int main() {
#ifdef LOCAL
freopen("in.txt","r",stdin);
#endif
scanf ( "%d", &n );
for ( int i = 0; i < n/7; ++i ) {
createGroup ();
itX--, itY++;
}
for ( int i = 0; i < n%7; ++i ) {
est.pb ( {itX, itY} );
lib.pb ( {itX, itY} );
}
for ( pii it: lib ) {
printf ( "%d %d\n", it.ff, it.ss );
}
printf ( "\n" );
for ( pii it: est ) {
printf ( "%d %d\n", it.ff, it.ss );
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3660kb
input:
150
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #2:
score: 0
Accepted
time: 1ms
memory: 3652kb
input:
151
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #3:
score: 0
Accepted
time: 1ms
memory: 3740kb
input:
152
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #4:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
153
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #5:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
154
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #6:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
155
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #7:
score: 0
Accepted
time: 1ms
memory: 3672kb
input:
156
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #8:
score: 0
Accepted
time: 1ms
memory: 3744kb
input:
157
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #9:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
158
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #10:
score: 0
Accepted
time: 1ms
memory: 3888kb
input:
159
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #11:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
160
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #12:
score: 0
Accepted
time: 0ms
memory: 3868kb
input:
161
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #13:
score: 0
Accepted
time: 1ms
memory: 3624kb
input:
162
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #14:
score: 0
Accepted
time: 1ms
memory: 3660kb
input:
163
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #15:
score: 0
Accepted
time: 1ms
memory: 3848kb
input:
164
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #16:
score: 0
Accepted
time: 1ms
memory: 3648kb
input:
165
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #17:
score: 0
Accepted
time: 0ms
memory: 3844kb
input:
166
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #18:
score: 0
Accepted
time: 1ms
memory: 3748kb
input:
167
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #19:
score: 0
Accepted
time: 1ms
memory: 3880kb
input:
168
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy
Test #20:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
250
output:
1000 1 1000 1 999 1 998 2 998 3 998 3 998 3 997 4 997 4 996 4 995 5 995 6 995 6 995 6 994 7 994 7 993 7 992 8 992 9 992 9 992 9 991 10 991 10 990 10 989 11 989 12 989 12 989 12 988 13 988 13 987 13 986 14 986 15 986 15 986 15 985 16 985 16 984 16 983 17 983 18 983 18 983 18 982 19 982 19 981 19 980 ...
result:
ok you killed Janko's strategy