QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#179920 | #7246. Green Day | mendicillin2# | AC ✓ | 76ms | 3712kb | C++17 | 1.3kb | 2023-09-15 13:27:55 | 2023-09-15 13:27:56 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
template <class T> int sz(T&& a) { return int(size(forward<T>(a))); }
template <class T> using vc = vector<T>;
template <class T> using vvc = vc<vc<T>>;
using ll = int64_t;
using vi = vc<int>;
template <class F>
struct ycr {
F f;
template <class T>
explicit ycr(T&& f_) : f(forward<T>(f_)) {}
template <class... Args>
decltype(auto) operator()(Args&&... args) {
return f(ref(*this), forward<Args>(args)...);
}
};
template <class F>
decltype(auto) yc(F&& f) {
return ycr<decay_t<F>>(forward<F>(f));
}
vector <pair<int, int> > ans[110];
int k;
#define F(i, j, k) for (int i = j; i <= k; ++i)
inline int id(int x, int y) { return (x - 1) * k + y; }
int main() {
ios_base::sync_with_stdio(false), cin.tie(nullptr);
cout << fixed << setprecision(20);
cin >> k;
cout << k * k << '\n';
if (k == 2) {
cout << "1 2" << '\n';
cout << "1 3" << '\n';
cout << "3 4" << '\n';
cout << "4 1" << '\n';
cout << "2 3" << '\n';
cout << "2 4" << '\n';
return 0;
}
F(i, 1, k) {
F(j, 1, k - 1)
cout << id(i, j) << ' ' << id(i, j + 1) << '\n';
F(j, 1, k)
if (j != i)
F(it, 1, k)
cout << id(i, it) << ' ' << id(j, (it + 1) > k ? 1 : it + 1) << '\n';
}
}
这程序好像有点Bug,我给组数据试试?
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3704kb
input:
2
output:
4 1 2 1 3 3 4 4 1 2 3 2 4
result:
ok Both contestant and jury have nice answers with 6 and 6 edges :)
Test #2:
score: 0
Accepted
time: 0ms
memory: 3580kb
input:
3
output:
9 1 2 2 3 1 5 2 6 3 4 1 8 2 9 3 7 4 5 5 6 4 2 5 3 6 1 4 8 5 9 6 7 7 8 8 9 7 2 8 3 9 1 7 5 8 6 9 4
result:
ok Both contestant and jury have nice answers with 24 and 21 edges :)
Test #3:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
25
output:
625 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 1 27 2 28 3 29 4 30 5 31 6 32 7 33 8 34 9 35 10 36 11 37 12 38 13 39 14 40 15 41 16 42 17 43 18 44 19 45 20 46 21 47 22 48 23 49 24 50 25 26 1 52 2 53 3 54 4 55 5 56 6 5...
result:
ok Both contestant and jury have nice answers with 15600 and 8700 edges :)
Test #4:
score: 0
Accepted
time: 63ms
memory: 3584kb
input:
94
output:
8836 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 830490 and 428358 edges :)
Test #5:
score: 0
Accepted
time: 19ms
memory: 3632kb
input:
59
output:
3481 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 205320 and 107793 edges :)
Test #6:
score: 0
Accepted
time: 76ms
memory: 3640kb
input:
98
output:
9604 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 941094 and 484806 edges :)
Test #7:
score: 0
Accepted
time: 66ms
memory: 3580kb
input:
97
output:
9409 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 912576 and 470256 edges :)
Test #8:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
12
output:
144 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 1 14 2 15 3 16 4 17 5 18 6 19 7 20 8 21 9 22 10 23 11 24 12 13 1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 33 9 34 10 35 11 36 12 25 1 38 2 39 3 40 4 41 5 42 6 43 7 44 8 45 9 46 10 47 11 48 12 37 1 50 2 51 3 52 4 53 5 54 6 55 7 56 8 57 9 58 10 59 11 60 1...
result:
ok Both contestant and jury have nice answers with 1716 and 1056 edges :)
Test #9:
score: 0
Accepted
time: 2ms
memory: 3548kb
input:
26
output:
676 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 1 28 2 29 3 30 4 31 5 32 6 33 7 34 8 35 9 36 10 37 11 38 12 39 13 40 14 41 15 42 16 43 17 44 18 45 19 46 20 47 21 48 22 49 23 50 24 51 25 52 26 27 1 54 2 55 3 56 4...
result:
ok Both contestant and jury have nice answers with 17550 and 9750 edges :)
Test #10:
score: 0
Accepted
time: 8ms
memory: 3708kb
input:
39
output:
1521 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 1 41 2 42 3 43 4 44 5 45 6 46 7 47 8 48 9 49 10 50 11 51 12 52 13 53 14 54 15 55 16 ...
result:
ok Both contestant and jury have nice answers with 59280 and 31863 edges :)
Test #11:
score: 0
Accepted
time: 2ms
memory: 3612kb
input:
37
output:
1369 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 1 39 2 40 3 41 4 42 5 43 6 44 7 45 8 46 9 47 10 48 11 49 12 50 13 51 14 52 15 53 16 54 17 55 18 ...
result:
ok Both contestant and jury have nice answers with 50616 and 27306 edges :)
Test #12:
score: 0
Accepted
time: 9ms
memory: 3612kb
input:
52
output:
2704 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 1 54 2...
result:
ok Both contestant and jury have nice answers with 140556 and 74256 edges :)
Test #13:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
10
output:
100 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 1 12 2 13 3 14 4 15 5 16 6 17 7 18 8 19 9 20 10 11 1 22 2 23 3 24 4 25 5 26 6 27 7 28 8 29 9 30 10 21 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9 40 10 31 1 42 2 43 3 44 4 45 5 46 6 47 7 48 8 49 9 50 10 41 1 52 2 53 3 54 4 55 5 56 6 57 7 58 8 59 9 60 10 51 1 62...
result:
ok Both contestant and jury have nice answers with 990 and 630 edges :)
Test #14:
score: 0
Accepted
time: 11ms
memory: 3616kb
input:
51
output:
2601 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 1 53 2 54 3 ...
result:
ok Both contestant and jury have nice answers with 132600 and 70125 edges :)
Test #15:
score: 0
Accepted
time: 6ms
memory: 3648kb
input:
40
output:
1600 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 1 42 2 43 3 44 4 45 5 46 6 47 7 48 8 49 9 50 10 51 11 52 12 53 13 54 14 55 15 ...
result:
ok Both contestant and jury have nice answers with 63960 and 34320 edges :)
Test #16:
score: 0
Accepted
time: 56ms
memory: 3680kb
input:
93
output:
8649 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 804264 and 414966 edges :)
Test #17:
score: 0
Accepted
time: 64ms
memory: 3616kb
input:
100
output:
10000 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53...
result:
ok Both contestant and jury have nice answers with 999900 and 514800 edges :)
Test #18:
score: 0
Accepted
time: 44ms
memory: 3552kb
input:
85
output:
7225 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 614040 and 317730 edges :)
Test #19:
score: 0
Accepted
time: 1ms
memory: 3708kb
input:
19
output:
361 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 1 21 2 22 3 23 4 24 5 25 6 26 7 27 8 28 9 29 10 30 11 31 12 32 13 33 14 34 15 35 16 36 17 37 18 38 19 20 1 40 2 41 3 42 4 43 5 44 6 45 7 46 8 47 9 48 10 49 11 50 12 51 13 52 14 53 15 54 16 55 17 56 18 57 1...
result:
ok Both contestant and jury have nice answers with 6840 and 3933 edges :)
Test #20:
score: 0
Accepted
time: 33ms
memory: 3620kb
input:
75
output:
5625 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 421800 and 219225 edges :)
Test #21:
score: 0
Accepted
time: 2ms
memory: 3556kb
input:
24
output:
576 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 33 9 34 10 35 11 36 12 37 13 38 14 39 15 40 16 41 17 42 18 43 19 44 20 45 21 46 22 47 23 48 24 25 1 50 2 51 3 52 4 53 5 54 6 55 7 56 8 57 ...
result:
ok Both contestant and jury have nice answers with 13800 and 7728 edges :)
Test #22:
score: 0
Accepted
time: 7ms
memory: 3580kb
input:
43
output:
1849 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 1 45 2 46 3 47 4 48 5 49 6 50 7 51 8 52 9 53 10 54 11 55 12 ...
result:
ok Both contestant and jury have nice answers with 79464 and 42441 edges :)
Test #23:
score: 0
Accepted
time: 2ms
memory: 3684kb
input:
29
output:
841 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 1 31 2 32 3 33 4 34 5 35 6 36 7 37 8 38 9 39 10 40 11 41 12 42 13 43 14 44 15 45 16 46 17 47 18 48 19 49 20 50 21 51 22 52 23 53 24 54 25 55 26 5...
result:
ok Both contestant and jury have nice answers with 24360 and 13398 edges :)
Test #24:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
4
output:
16 1 2 2 3 3 4 1 6 2 7 3 8 4 5 1 10 2 11 3 12 4 9 1 14 2 15 3 16 4 13 5 6 6 7 7 8 5 2 6 3 7 4 8 1 5 10 6 11 7 12 8 9 5 14 6 15 7 16 8 13 9 10 10 11 11 12 9 2 10 3 11 4 12 1 9 6 10 7 11 8 12 5 9 14 10 15 11 16 12 13 13 14 14 15 15 16 13 2 14 3 15 4 16 1 13 6 14 7 15 8 16 5 13 10 14 11 15 12 16 9
result:
ok Both contestant and jury have nice answers with 60 and 48 edges :)
Test #25:
score: 0
Accepted
time: 20ms
memory: 3584kb
input:
60
output:
3600 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 215940 and 113280 edges :)
Test #26:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
23
output:
529 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 1 25 2 26 3 27 4 28 5 29 6 30 7 31 8 32 9 33 10 34 11 35 12 36 13 37 14 38 15 39 16 40 17 41 18 42 19 43 20 44 21 45 22 46 23 24 1 48 2 49 3 50 4 51 5 52 6 53 7 54 8 55 9 56 10 57 1...
result:
ok Both contestant and jury have nice answers with 12144 and 6831 edges :)
Test #27:
score: 0
Accepted
time: 31ms
memory: 3648kb
input:
74
output:
5476 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 405150 and 210678 edges :)
Test #28:
score: 0
Accepted
time: 7ms
memory: 3616kb
input:
50
output:
2500 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 1 52 2 53 3 54 4 5...
result:
ok Both contestant and jury have nice answers with 124950 and 66150 edges :)
Test #29:
score: 0
Accepted
time: 37ms
memory: 3576kb
input:
76
output:
5776 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 438900 and 228000 edges :)
Test #30:
score: 0
Accepted
time: 17ms
memory: 3620kb
input:
67
output:
4489 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 300696 and 156981 edges :)
Test #31:
score: 0
Accepted
time: 5ms
memory: 3612kb
input:
38
output:
1444 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 1 40 2 41 3 42 4 43 5 44 6 45 7 46 8 47 9 48 10 49 11 50 12 51 13 52 14 53 15 54 16 55 17 ...
result:
ok Both contestant and jury have nice answers with 54834 and 29526 edges :)
Test #32:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
22
output:
484 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 1 24 2 25 3 26 4 27 5 28 6 29 7 30 8 31 9 32 10 33 11 34 12 35 13 36 14 37 15 38 16 39 17 40 18 41 19 42 20 43 21 44 22 23 1 46 2 47 3 48 4 49 5 50 6 51 7 52 8 53 9 54 10 55 11 56 12 57 1...
result:
ok Both contestant and jury have nice answers with 10626 and 6006 edges :)
Test #33:
score: 0
Accepted
time: 24ms
memory: 3552kb
input:
66
output:
4356 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 287430 and 150150 edges :)
Test #34:
score: 0
Accepted
time: 4ms
memory: 3636kb
input:
34
output:
1156 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 1 36 2 37 3 38 4 39 5 40 6 41 7 42 8 43 9 44 10 45 11 46 12 47 13 48 14 49 15 50 16 51 17 52 18 53 19 54 20 55 21 ...
result:
ok Both contestant and jury have nice answers with 39270 and 21318 edges :)
Test #35:
score: 0
Accepted
time: 15ms
memory: 3648kb
input:
56
output:
3136 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 175560 and 92400 edges :)
Test #36:
score: 0
Accepted
time: 46ms
memory: 3704kb
input:
84
output:
7056 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 592620 and 306768 edges :)
Test #37:
score: 0
Accepted
time: 36ms
memory: 3616kb
input:
78
output:
6084 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 474474 and 246246 edges :)
Test #38:
score: 0
Accepted
time: 22ms
memory: 3684kb
input:
64
output:
4096 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 262080 and 137088 edges :)
Test #39:
score: 0
Accepted
time: 33ms
memory: 3576kb
input:
73
output:
5329 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 388944 and 202356 edges :)
Test #40:
score: 0
Accepted
time: 1ms
memory: 3560kb
input:
15
output:
225 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 1 17 2 18 3 19 4 20 5 21 6 22 7 23 8 24 9 25 10 26 11 27 12 28 13 29 14 30 15 16 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9 40 10 41 11 42 12 43 13 44 14 45 15 31 1 47 2 48 3 49 4 50 5 51 6 52 7 53 8 54 9 55 10 56 11 57 12 58 13 5...
result:
ok Both contestant and jury have nice answers with 3360 and 1995 edges :)
Test #41:
score: 0
Accepted
time: 19ms
memory: 3708kb
input:
61
output:
3721 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 226920 and 118950 edges :)
Test #42:
score: 0
Accepted
time: 0ms
memory: 3576kb
input:
8
output:
64 1 2 2 3 3 4 4 5 5 6 6 7 7 8 1 10 2 11 3 12 4 13 5 14 6 15 7 16 8 9 1 18 2 19 3 20 4 21 5 22 6 23 7 24 8 17 1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 25 1 34 2 35 3 36 4 37 5 38 6 39 7 40 8 33 1 42 2 43 3 44 4 45 5 46 6 47 7 48 8 41 1 50 2 51 3 52 4 53 5 54 6 55 7 56 8 49 1 58 2 59 3 60 4 61 5 62 6 63 ...
result:
ok Both contestant and jury have nice answers with 504 and 336 edges :)
Test #43:
score: 0
Accepted
time: 3ms
memory: 3552kb
input:
33
output:
1089 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 1 35 2 36 3 37 4 38 5 39 6 40 7 41 8 42 9 43 10 44 11 45 12 46 13 47 14 48 15 49 16 50 17 51 18 52 19 53 20 54 21 55 22 ...
result:
ok Both contestant and jury have nice answers with 35904 and 19536 edges :)
Test #44:
score: 0
Accepted
time: 2ms
memory: 3564kb
input:
27
output:
729 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 1 29 2 30 3 31 4 32 5 33 6 34 7 35 8 36 9 37 10 38 11 39 12 40 13 41 14 42 15 43 16 44 17 45 18 46 19 47 20 48 21 49 22 50 23 51 24 52 25 53 26 54 27 28 1 56...
result:
ok Both contestant and jury have nice answers with 19656 and 10881 edges :)
Test #45:
score: 0
Accepted
time: 10ms
memory: 3624kb
input:
48
output:
2304 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 1 50 2 51 3 52 4 53 5 54 6 55 ...
result:
ok Both contestant and jury have nice answers with 110544 and 58656 edges :)
Test #46:
score: 0
Accepted
time: 1ms
memory: 3644kb
input:
18
output:
324 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 1 20 2 21 3 22 4 23 5 24 6 25 7 26 8 27 9 28 10 29 11 30 12 31 13 32 14 33 15 34 16 35 17 36 18 19 1 38 2 39 3 40 4 41 5 42 6 43 7 44 8 45 9 46 10 47 11 48 12 49 13 50 14 51 15 52 16 53 17 54 18 37 1 56 2 57 3 5...
result:
ok Both contestant and jury have nice answers with 5814 and 3366 edges :)
Test #47:
score: 0
Accepted
time: 21ms
memory: 3628kb
input:
63
output:
3969 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 249984 and 130851 edges :)
Test #48:
score: 0
Accepted
time: 10ms
memory: 3644kb
input:
47
output:
2209 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 1 49 2 50 3 51 4 52 5 53 6 54 7 55 8...
result:
ok Both contestant and jury have nice answers with 103776 and 55131 edges :)
Test #49:
score: 0
Accepted
time: 4ms
memory: 3616kb
input:
35
output:
1225 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 1 37 2 38 3 39 4 40 5 41 6 42 7 43 8 44 9 45 10 46 11 47 12 48 13 49 14 50 15 51 16 52 17 53 18 54 19 55 20 ...
result:
ok Both contestant and jury have nice answers with 42840 and 23205 edges :)
Test #50:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
21
output:
441 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 1 23 2 24 3 25 4 26 5 27 6 28 7 29 8 30 9 31 10 32 11 33 12 34 13 35 14 36 15 37 16 38 17 39 18 40 19 41 20 42 21 22 1 44 2 45 3 46 4 47 5 48 6 49 7 50 8 51 9 52 10 53 11 54 12 55 13 56 14 57 1...
result:
ok Both contestant and jury have nice answers with 9240 and 5250 edges :)
Test #51:
score: 0
Accepted
time: 60ms
memory: 3620kb
input:
91
output:
8281 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 753480 and 389025 edges :)
Test #52:
score: 0
Accepted
time: 54ms
memory: 3580kb
input:
92
output:
8464 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 778596 and 401856 edges :)
Test #53:
score: 0
Accepted
time: 54ms
memory: 3620kb
input:
86
output:
7396 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 635970 and 328950 edges :)
Test #54:
score: 0
Accepted
time: 8ms
memory: 3708kb
input:
46
output:
2116 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 1 48 2 49 3 50 4 51 5 52 6 53 7 54 8 55 9 ...
result:
ok Both contestant and jury have nice answers with 97290 and 51750 edges :)
Test #55:
score: 0
Accepted
time: 2ms
memory: 3552kb
input:
28
output:
784 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 1 30 2 31 3 32 4 33 5 34 6 35 7 36 8 37 9 38 10 39 11 40 12 41 13 42 14 43 15 44 16 45 17 46 18 47 19 48 20 49 21 50 22 51 23 52 24 53 25 54 26 55 27 5...
result:
ok Both contestant and jury have nice answers with 21924 and 12096 edges :)
Test #56:
score: 0
Accepted
time: 7ms
memory: 3644kb
input:
44
output:
1936 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 1 46 2 47 3 48 4 49 5 50 6 51 7 52 8 53 9 54 10 55 11 ...
result:
ok Both contestant and jury have nice answers with 85140 and 45408 edges :)
Test #57:
score: 0
Accepted
time: 13ms
memory: 3632kb
input:
58
output:
3364 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 195054 and 102486 edges :)
Test #58:
score: 0
Accepted
time: 27ms
memory: 3612kb
input:
68
output:
4624 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 314364 and 164016 edges :)
Test #59:
score: 0
Accepted
time: 31ms
memory: 3560kb
input:
71
output:
5041 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 357840 and 186375 edges :)
Test #60:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
5
output:
25 1 2 2 3 3 4 4 5 1 7 2 8 3 9 4 10 5 6 1 12 2 13 3 14 4 15 5 11 1 17 2 18 3 19 4 20 5 16 1 22 2 23 3 24 4 25 5 21 6 7 7 8 8 9 9 10 6 2 7 3 8 4 9 5 10 1 6 12 7 13 8 14 9 15 10 11 6 17 7 18 8 19 9 20 10 16 6 22 7 23 8 24 9 25 10 21 11 12 12 13 13 14 14 15 11 2 12 3 13 4 14 5 15 1 11 7 12 8 13 9 14 10...
result:
ok Both contestant and jury have nice answers with 120 and 90 edges :)
Test #61:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
14
output:
196 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 1 16 2 17 3 18 4 19 5 20 6 21 7 22 8 23 9 24 10 25 11 26 12 27 13 28 14 15 1 30 2 31 3 32 4 33 5 34 6 35 7 36 8 37 9 38 10 39 11 40 12 41 13 42 14 29 1 44 2 45 3 46 4 47 5 48 6 49 7 50 8 51 9 52 10 53 11 54 12 55 13 56 14 43 1 58 2 59 ...
result:
ok Both contestant and jury have nice answers with 2730 and 1638 edges :)
Test #62:
score: 0
Accepted
time: 52ms
memory: 3712kb
input:
87
output:
7569 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 658416 and 340431 edges :)
Test #63:
score: 0
Accepted
time: 8ms
memory: 3576kb
input:
45
output:
2025 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 1 47 2 48 3 49 4 50 5 51 6 52 7 53 8 54 9 55 10 ...
result:
ok Both contestant and jury have nice answers with 91080 and 48510 edges :)
Test #64:
score: 0
Accepted
time: 11ms
memory: 3620kb
input:
55
output:
3025 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 166320 and 87615 edges :)
Test #65:
score: 0
Accepted
time: 50ms
memory: 3712kb
input:
88
output:
7744 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 681384 and 352176 edges :)
Test #66:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
7
output:
49 1 2 2 3 3 4 4 5 5 6 6 7 1 9 2 10 3 11 4 12 5 13 6 14 7 8 1 16 2 17 3 18 4 19 5 20 6 21 7 15 1 23 2 24 3 25 4 26 5 27 6 28 7 22 1 30 2 31 3 32 4 33 5 34 6 35 7 29 1 37 2 38 3 39 4 40 5 41 6 42 7 36 1 44 2 45 3 46 4 47 5 48 6 49 7 43 8 9 9 10 10 11 11 12 12 13 13 14 8 2 9 3 10 4 11 5 12 6 13 7 14 1...
result:
ok Both contestant and jury have nice answers with 336 and 231 edges :)
Test #67:
score: 0
Accepted
time: 44ms
memory: 3620kb
input:
80
output:
6400 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 511920 and 265440 edges :)
Test #68:
score: 0
Accepted
time: 37ms
memory: 3580kb
input:
81
output:
6561 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 531360 and 275400 edges :)
Test #69:
score: 0
Accepted
time: 37ms
memory: 3612kb
input:
79
output:
6241 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 492960 and 255723 edges :)
Test #70:
score: 0
Accepted
time: 69ms
memory: 3624kb
input:
99
output:
9801 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 970200 and 499653 edges :)
Test #71:
score: 0
Accepted
time: 3ms
memory: 3584kb
input:
32
output:
1024 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 1 34 2 35 3 36 4 37 5 38 6 39 7 40 8 41 9 42 10 43 11 44 12 45 13 46 14 47 15 48 16 49 17 50 18 51 19 52 20 53 21 54 22 55 23 ...
result:
ok Both contestant and jury have nice answers with 32736 and 17856 edges :)
Test #72:
score: 0
Accepted
time: 32ms
memory: 3628kb
input:
72
output:
5184 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 373176 and 194256 edges :)
Test #73:
score: 0
Accepted
time: 56ms
memory: 3628kb
input:
89
output:
7921 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 704880 and 364188 edges :)
Test #74:
score: 0
Accepted
time: 31ms
memory: 3704kb
input:
77
output:
5929 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 456456 and 237006 edges :)
Test #75:
score: 0
Accepted
time: 48ms
memory: 3628kb
input:
83
output:
6889 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 571704 and 296061 edges :)
Test #76:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
20
output:
400 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 1 22 2 23 3 24 4 25 5 26 6 27 7 28 8 29 9 30 10 31 11 32 12 33 13 34 14 35 15 36 16 37 17 38 18 39 19 40 20 21 1 42 2 43 3 44 4 45 5 46 6 47 7 48 8 49 9 50 10 51 11 52 12 53 13 54 14 55 15 56 16 57 1...
result:
ok Both contestant and jury have nice answers with 7980 and 4560 edges :)
Test #77:
score: 0
Accepted
time: 24ms
memory: 3612kb
input:
69
output:
4761 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 328440 and 171258 edges :)
Test #78:
score: 0
Accepted
time: 53ms
memory: 3632kb
input:
90
output:
8100 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 728910 and 376470 edges :)
Test #79:
score: 0
Accepted
time: 24ms
memory: 3552kb
input:
65
output:
4225 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 274560 and 143520 edges :)
Test #80:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
16
output:
256 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 1 18 2 19 3 20 4 21 5 22 6 23 7 24 8 25 9 26 10 27 11 28 12 29 13 30 14 31 15 32 16 17 1 34 2 35 3 36 4 37 5 38 6 39 7 40 8 41 9 42 10 43 11 44 12 45 13 46 14 47 15 48 16 33 1 50 2 51 3 52 4 53 5 54 6 55 7 56 8 57 9 58 10 5...
result:
ok Both contestant and jury have nice answers with 4080 and 2400 edges :)
Test #81:
score: 0
Accepted
time: 7ms
memory: 3704kb
input:
42
output:
1764 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 1 44 2 45 3 46 4 47 5 48 6 49 7 50 8 51 9 52 10 53 11 54 12 55 13 ...
result:
ok Both contestant and jury have nice answers with 74046 and 39606 edges :)
Test #82:
score: 0
Accepted
time: 10ms
memory: 3620kb
input:
49
output:
2401 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 1 51 2 52 3 53 4 54 5 55...
result:
ok Both contestant and jury have nice answers with 117600 and 62328 edges :)
Test #83:
score: 0
Accepted
time: 1ms
memory: 3712kb
input:
13
output:
169 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 1 15 2 16 3 17 4 18 5 19 6 20 7 21 8 22 9 23 10 24 11 25 12 26 13 14 1 28 2 29 3 30 4 31 5 32 6 33 7 34 8 35 9 36 10 37 11 38 12 39 13 27 1 41 2 42 3 43 4 44 5 45 6 46 7 47 8 48 9 49 10 50 11 51 12 52 13 40 1 54 2 55 3 56 4 57 5 58 6 59 7 60...
result:
ok Both contestant and jury have nice answers with 2184 and 1326 edges :)
Test #84:
score: 0
Accepted
time: 13ms
memory: 3632kb
input:
54
output:
2916 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 157410 and 82998 edges :)
Test #85:
score: 0
Accepted
time: 20ms
memory: 3708kb
input:
62
output:
3844 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 238266 and 124806 edges :)
Test #86:
score: 0
Accepted
time: 16ms
memory: 3548kb
input:
57
output:
3249 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 185136 and 97356 edges :)
Test #87:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
17
output:
289 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 1 19 2 20 3 21 4 22 5 23 6 24 7 25 8 26 9 27 10 28 11 29 12 30 13 31 14 32 15 33 16 34 17 18 1 36 2 37 3 38 4 39 5 40 6 41 7 42 8 43 9 44 10 45 11 46 12 47 13 48 14 49 15 50 16 51 17 35 1 53 2 54 3 55 4 56 5 57 6 58 7...
result:
ok Both contestant and jury have nice answers with 4896 and 2856 edges :)
Test #88:
score: 0
Accepted
time: 73ms
memory: 3616kb
input:
95
output:
9025 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 857280 and 442035 edges :)
Test #89:
score: 0
Accepted
time: 1ms
memory: 3628kb
input:
9
output:
81 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 1 11 2 12 3 13 4 14 5 15 6 16 7 17 8 18 9 10 1 20 2 21 3 22 4 23 5 24 6 25 7 26 8 27 9 19 1 29 2 30 3 31 4 32 5 33 6 34 7 35 8 36 9 28 1 38 2 39 3 40 4 41 5 42 6 43 7 44 8 45 9 37 1 47 2 48 3 49 4 50 5 51 6 52 7 53 8 54 9 46 1 56 2 57 3 58 4 59 5 60 6 61 7 62 8 63 ...
result:
ok Both contestant and jury have nice answers with 720 and 468 edges :)
Test #90:
score: 0
Accepted
time: 3ms
memory: 3708kb
input:
31
output:
961 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 1 33 2 34 3 35 4 36 5 37 6 38 7 39 8 40 9 41 10 42 11 43 12 44 13 45 14 46 15 47 16 48 17 49 18 50 19 51 20 52 21 53 22 54 23 55 24 5...
result:
ok Both contestant and jury have nice answers with 29760 and 16275 edges :)
Test #91:
score: 0
Accepted
time: 1ms
memory: 3608kb
input:
6
output:
36 1 2 2 3 3 4 4 5 5 6 1 8 2 9 3 10 4 11 5 12 6 7 1 14 2 15 3 16 4 17 5 18 6 13 1 20 2 21 3 22 4 23 5 24 6 19 1 26 2 27 3 28 4 29 5 30 6 25 1 32 2 33 3 34 4 35 5 36 6 31 7 8 8 9 9 10 10 11 11 12 7 2 8 3 9 4 10 5 11 6 12 1 7 14 8 15 9 16 10 17 11 18 12 13 7 20 8 21 9 22 10 23 11 24 12 19 7 26 8 27 9 ...
result:
ok Both contestant and jury have nice answers with 210 and 150 edges :)
Test #92:
score: 0
Accepted
time: 71ms
memory: 3616kb
input:
96
output:
9216 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 884640 and 456000 edges :)
Test #93:
score: 0
Accepted
time: 47ms
memory: 3616kb
input:
82
output:
6724 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 551286 and 285606 edges :)
Test #94:
score: 0
Accepted
time: 6ms
memory: 3684kb
input:
41
output:
1681 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 1 43 2 44 3 45 4 46 5 47 6 48 7 49 8 50 9 51 10 52 11 53 12 54 13 55 14 ...
result:
ok Both contestant and jury have nice answers with 68880 and 36900 edges :)
Test #95:
score: 0
Accepted
time: 4ms
memory: 3584kb
input:
36
output:
1296 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 1 38 2 39 3 40 4 41 5 42 6 43 7 44 8 45 9 46 10 47 11 48 12 49 13 50 14 51 15 52 16 53 17 54 18 55 19 ...
result:
ok Both contestant and jury have nice answers with 46620 and 25200 edges :)
Test #96:
score: 0
Accepted
time: 3ms
memory: 3644kb
input:
30
output:
900 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 1 32 2 33 3 34 4 35 5 36 6 37 7 38 8 39 9 40 10 41 11 42 12 43 13 44 14 45 15 46 16 47 17 48 18 49 19 50 20 51 21 52 22 53 23 54 24 55 25 5...
result:
ok Both contestant and jury have nice answers with 26970 and 14790 edges :)
Test #97:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
11
output:
121 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 1 13 2 14 3 15 4 16 5 17 6 18 7 19 8 20 9 21 10 22 11 12 1 24 2 25 3 26 4 27 5 28 6 29 7 30 8 31 9 32 10 33 11 23 1 35 2 36 3 37 4 38 5 39 6 40 7 41 8 42 9 43 10 44 11 34 1 46 2 47 3 48 4 49 5 50 6 51 7 52 8 53 9 54 10 55 11 45 1 57 2 58 3 59 4 60 5 61 ...
result:
ok Both contestant and jury have nice answers with 1320 and 825 edges :)
Test #98:
score: 0
Accepted
time: 9ms
memory: 3616kb
input:
53
output:
2809 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 148824 and 78546 edges :)
Test #99:
score: 0
Accepted
time: 25ms
memory: 3556kb
input:
70
output:
4900 1 2 2 3 3 4 4 5 5 6 6 7 7 8 8 9 9 10 10 11 11 12 12 13 13 14 14 15 15 16 16 17 17 18 18 19 19 20 20 21 21 22 22 23 23 24 24 25 25 26 26 27 27 28 28 29 29 30 30 31 31 32 32 33 33 34 34 35 35 36 36 37 37 38 38 39 39 40 40 41 41 42 42 43 43 44 44 45 45 46 46 47 47 48 48 49 49 50 50 51 51 52 52 53 ...
result:
ok Both contestant and jury have nice answers with 342930 and 178710 edges :)
Extra Test:
score: 0
Extra Test Passed