QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#74313 | #5364. 面国漫步 | Linshey | 24 | 3ms | 3960kb | C++14 | 1.4kb | 2023-01-31 16:44:34 | 2023-01-31 16:44:37 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std; const int maxn = 1e2 + 5, maxK = 1e4 + 5;
int n, K, a[maxK];
inline void Exit() { exit(0 * puts("YouAreFake!")); }
vector<int> G[maxK]; int deg[maxK];
struct edge { int u, v; } E[maxK];
int las[maxn], lv[maxK], vs[maxK], yl[maxK];
bool iq[maxn];
queue<int> q;
int main()
{
scanf("%d%d", &n, &K);
for (int i = 1; i <= K; i++) scanf("%d", a + i);
if (a[1] != 1) Exit();
for (int i = K; i; i--) if (!vs[a[i]]) vs[a[i]] = 1, yl[i] = 1;
iq[1] = 1;
// cerr << check(1, 2) << endl;
// return 0;
for (int i = 2, j = 1; i <= K; i++)
{
while (j < i && (!yl[j] || iq[a[i]])) iq[a[j++]] = 0;
if (i == j) Exit();
iq[a[i]] = 1;
if (las[a[i]]) G[i].push_back(las[a[i]]), deg[las[a[i]]]++; las[a[i]] = i;
E[i - 1] = { j, i }, G[j].push_back(i), deg[i]++;
// cerr << j << ' ' << i << endl;
}
for (int i = 1; i <= K; i++) if (!deg[i]) q.push(i);
int Tl = 0;
while (q.size())
{
int u = q.front(); q.pop(), lv[u] = ++Tl;
// cerr << "u: " << u << endl;
for (int v : G[u]) if (--deg[v] == 0) q.push(v);
}
// cerr << Tl << endl;
puts("YouAreWrite!");
printf("%d\n", K - 1);
for (int i = 1; i < K; i++) printf("%d %d %d\n", a[E[i].u], a[E[i].v], lv[E[i].v] - lv[E[i].u]);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 7
Accepted
Test #1:
score: 7
Accepted
time: 2ms
memory: 3836kb
input:
3 1 1
output:
YouAreWrite! 0
result:
ok Accepted
Test #2:
score: 0
Accepted
time: 2ms
memory: 3800kb
input:
3 2 1 2
output:
YouAreWrite! 1 1 2 1
result:
ok Accepted
Test #3:
score: 0
Accepted
time: 2ms
memory: 3816kb
input:
3 2 1 3
output:
YouAreWrite! 1 1 3 1
result:
ok Accepted
Test #4:
score: 0
Accepted
time: 2ms
memory: 3900kb
input:
3 3 1 2 3
output:
YouAreWrite! 2 1 2 1 1 3 2
result:
ok Accepted
Test #5:
score: 0
Accepted
time: 3ms
memory: 3712kb
input:
3 3 1 2 2
output:
YouAreFake!
result:
ok Accepted
Test #6:
score: 0
Accepted
time: 1ms
memory: 3832kb
input:
3 3 1 3 2
output:
YouAreWrite! 2 1 3 1 1 2 2
result:
ok Accepted
Test #7:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
3 4 1 2 3 2
output:
YouAreWrite! 3 1 2 3 1 3 1 3 2 1
result:
ok Accepted
Test #8:
score: 0
Accepted
time: 2ms
memory: 3772kb
input:
3 5 1 2 3 2 3
output:
YouAreFake!
result:
ok Accepted
Test #9:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
3 3 1 3 3
output:
YouAreFake!
result:
ok Accepted
Test #10:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
3 5 1 2 3 2 2
output:
YouAreFake!
result:
ok Accepted
Test #11:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
3 5 1 2 3 3 2
output:
YouAreFake!
result:
ok Accepted
Test #12:
score: 0
Accepted
time: 2ms
memory: 3652kb
input:
3 4 1 3 3 2
output:
YouAreFake!
result:
ok Accepted
Test #13:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
3 4 1 3 3 3
output:
YouAreFake!
result:
ok Accepted
Test #14:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
3 4 1 2 2 2
output:
YouAreFake!
result:
ok Accepted
Test #15:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
3 5 1 3 2 3 3
output:
YouAreFake!
result:
ok Accepted
Subtask #2:
score: 8
Accepted
Test #16:
score: 8
Accepted
time: 0ms
memory: 3812kb
input:
85 78 1 46 49 66 12 47 36 28 44 17 48 34 5 82 20 40 69 52 75 27 14 43 53 83 33 55 38 77 58 56 76 81 6 84 19 80 67 3 50 25 26 21 29 62 70 22 68 63 74 37 7 73 78 42 32 2 64 8 39 71 59 18 23 24 9 51 85 11 57 41 45 16 54 30 35 61 72 4
output:
YouAreWrite! 77 1 46 1 1 49 2 1 66 3 1 12 4 1 47 5 1 36 6 1 28 7 1 44 8 1 17 9 1 48 10 1 34 11 1 5 12 1 82 13 1 20 14 1 40 15 1 69 16 1 52 17 1 75 18 1 27 19 1 14 20 1 43 21 1 53 22 1 83 23 1 33 24 1 55 25 1 38 26 1 77 27 1 58 28 1 56 29 1 76 30 1 81 31 1 6 32 1 84 33 1 19 34 1 80 35 1 67 36 1 3 37 ...
result:
ok Accepted
Test #17:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
85 69 1 49 5 82 85 42 74 37 44 12 78 53 25 45 76 65 41 24 3 28 57 54 59 84 11 32 21 68 35 64 50 17 39 26 46 38 15 10 30 9 23 81 43 19 56 61 60 58 48 63 66 22 27 14 69 72 13 18 47 71 6 70 34 31 29 77 40 33 62
output:
YouAreWrite! 68 1 49 1 1 5 2 1 82 3 1 85 4 1 42 5 1 74 6 1 37 7 1 44 8 1 12 9 1 78 10 1 53 11 1 25 12 1 45 13 1 76 14 1 65 15 1 41 16 1 24 17 1 3 18 1 28 19 1 57 20 1 54 21 1 59 22 1 84 23 1 11 24 1 32 25 1 21 26 1 68 27 1 35 28 1 64 29 1 50 30 1 17 31 1 39 32 1 26 33 1 46 34 1 38 35 1 15 36 1 10 37...
result:
ok Accepted
Test #18:
score: 0
Accepted
time: 1ms
memory: 3852kb
input:
37 20 1 13 9 4 15 5 26 25 10 31 12 28 32 24 23 18 17 33 20 37
output:
YouAreWrite! 19 1 13 1 1 9 2 1 4 3 1 15 4 1 5 5 1 26 6 1 25 7 1 10 8 1 31 9 1 12 10 1 28 11 1 32 12 1 24 13 1 23 14 1 18 15 1 17 16 1 33 17 1 20 18 1 37 19
result:
ok Accepted
Test #19:
score: 0
Accepted
time: 2ms
memory: 3956kb
input:
80 69 1 3 26 13 22 60 70 64 37 35 43 20 49 32 68 6 40 4 44 29 10 47 66 52 34 31 36 73 19 45 69 71 75 77 55 67 78 2 38 15 59 54 63 8 41 24 21 42 25 16 61 7 51 14 23 50 48 33 27 46 17 56 5 80 9 74 28 53 76
output:
YouAreWrite! 68 1 3 1 1 26 2 1 13 3 1 22 4 1 60 5 1 70 6 1 64 7 1 37 8 1 35 9 1 43 10 1 20 11 1 49 12 1 32 13 1 68 14 1 6 15 1 40 16 1 4 17 1 44 18 1 29 19 1 10 20 1 47 21 1 66 22 1 52 23 1 34 24 1 31 25 1 36 26 1 73 27 1 19 28 1 45 29 1 69 30 1 71 31 1 75 32 1 77 33 1 55 34 1 67 35 1 78 36 1 2 37 1...
result:
ok Accepted
Test #20:
score: 0
Accepted
time: 2ms
memory: 3888kb
input:
77 28 1 8 74 32 68 50 29 63 12 10 36 42 38 26 58 21 13 24 64 53 28 45 66 22 20 60 61 75
output:
YouAreWrite! 27 1 8 1 1 74 2 1 32 3 1 68 4 1 50 5 1 29 6 1 63 7 1 12 8 1 10 9 1 36 10 1 42 11 1 38 12 1 26 13 1 58 14 1 21 15 1 13 16 1 24 17 1 64 18 1 53 19 1 28 20 1 45 21 1 66 22 1 22 23 1 20 24 1 60 25 1 61 26 1 75 27
result:
ok Accepted
Test #21:
score: 0
Accepted
time: 2ms
memory: 3960kb
input:
39 4 1 28 18 12
output:
YouAreWrite! 3 1 28 1 1 18 2 1 12 3
result:
ok Accepted
Test #22:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
76 28 1 40 67 5 44 73 31 32 11 38 56 66 24 7 29 6 26 22 23 12 4 33 21 36 65 34 43 47
output:
YouAreWrite! 27 1 40 1 1 67 2 1 5 3 1 44 4 1 73 5 1 31 6 1 32 7 1 11 8 1 38 9 1 56 10 1 66 11 1 24 12 1 7 13 1 29 14 1 6 15 1 26 16 1 22 17 1 23 18 1 12 19 1 4 20 1 33 21 1 21 22 1 36 23 1 65 24 1 34 25 1 43 26 1 47 27
result:
ok Accepted
Test #23:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
61 6 1 46 45 6 34 7
output:
YouAreWrite! 5 1 46 1 1 45 2 1 6 3 1 34 4 1 7 5
result:
ok Accepted
Test #24:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
70 57 1 60 56 34 51 40 55 53 28 42 29 8 10 39 26 4 41 31 62 57 2 11 3 46 66 37 33 61 47 24 32 69 30 70 43 49 17 68 59 67 18 44 15 45 19 7 22 25 52 20 38 58 14 23 48 54 6
output:
YouAreWrite! 56 1 60 1 1 56 2 1 34 3 1 51 4 1 40 5 1 55 6 1 53 7 1 28 8 1 42 9 1 29 10 1 8 11 1 10 12 1 39 13 1 26 14 1 4 15 1 41 16 1 31 17 1 62 18 1 57 19 1 2 20 1 11 21 1 3 22 1 46 23 1 66 24 1 37 25 1 33 26 1 61 27 1 47 28 1 24 29 1 32 30 1 69 31 1 30 32 1 70 33 1 43 34 1 49 35 1 17 36 1 68 37 1...
result:
ok Accepted
Test #25:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
62 28 1 30 14 31 37 21 61 23 9 42 11 27 10 49 17 60 15 46 22 57 62 6 48 32 44 25 41 54
output:
YouAreWrite! 27 1 30 1 1 14 2 1 31 3 1 37 4 1 21 5 1 61 6 1 23 7 1 9 8 1 42 9 1 11 10 1 27 11 1 10 12 1 49 13 1 17 14 1 60 15 1 15 16 1 46 17 1 22 18 1 57 19 1 62 20 1 6 21 1 48 22 1 32 23 1 44 24 1 25 25 1 41 26 1 54 27
result:
ok Accepted
Test #26:
score: 0
Accepted
time: 2ms
memory: 3836kb
input:
13 9 1 2 6 4 10 13 12 11 5
output:
YouAreWrite! 8 1 2 1 1 6 2 1 4 3 1 10 4 1 13 5 1 12 6 1 11 7 1 5 8
result:
ok Accepted
Test #27:
score: 0
Accepted
time: 2ms
memory: 3892kb
input:
95 52 1 83 55 65 6 4 33 44 95 84 58 93 25 73 76 47 74 24 78 2 82 10 28 87 14 64 12 11 94 42 71 79 43 77 50 61 29 60 54 9 15 40 92 56 37 48 27 70 34 63 51 16
output:
YouAreWrite! 51 1 83 1 1 55 2 1 65 3 1 6 4 1 4 5 1 33 6 1 44 7 1 95 8 1 84 9 1 58 10 1 93 11 1 25 12 1 73 13 1 76 14 1 47 15 1 74 16 1 24 17 1 78 18 1 2 19 1 82 20 1 10 21 1 28 22 1 87 23 1 14 24 1 64 25 1 12 26 1 11 27 1 94 28 1 42 29 1 71 30 1 79 31 1 43 32 1 77 33 1 50 34 1 61 35 1 29 36 1 60 37 ...
result:
ok Accepted
Test #28:
score: 0
Accepted
time: 2ms
memory: 3820kb
input:
48 16 1 26 20 32 44 48 25 46 13 34 38 9 23 18 35 47
output:
YouAreWrite! 15 1 26 1 1 20 2 1 32 3 1 44 4 1 48 5 1 25 6 1 46 7 1 13 8 1 34 9 1 38 10 1 9 11 1 23 12 1 18 13 1 35 14 1 47 15
result:
ok Accepted
Test #29:
score: 0
Accepted
time: 2ms
memory: 3740kb
input:
79 66 1 53 79 36 33 74 56 57 67 59 22 38 68 18 8 6 3 10 13 37 65 4 78 45 35 70 15 11 19 20 73 25 23 16 76 64 54 7 30 40 41 12 28 75 17 42 61 47 24 62 63 71 44 49 27 26 31 32 60 21 50 72 5 52 69 46
output:
YouAreWrite! 65 1 53 1 1 79 2 1 36 3 1 33 4 1 74 5 1 56 6 1 57 7 1 67 8 1 59 9 1 22 10 1 38 11 1 68 12 1 18 13 1 8 14 1 6 15 1 3 16 1 10 17 1 13 18 1 37 19 1 65 20 1 4 21 1 78 22 1 45 23 1 35 24 1 70 25 1 15 26 1 11 27 1 19 28 1 20 29 1 73 30 1 25 31 1 23 32 1 16 33 1 76 34 1 64 35 1 54 36 1 7 37 1 ...
result:
ok Accepted
Test #30:
score: 0
Accepted
time: 2ms
memory: 3600kb
input:
30 16 3 10 7 15 8 5 9 29 13 25 21 11 1 22 16 12
output:
YouAreFake!
result:
ok Accepted
Subtask #3:
score: 9
Accepted
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Test #31:
score: 9
Accepted
time: 0ms
memory: 3900kb
input:
57 28 1 57 9 34 21 20 13 19 47 4 10 46 39 18 16 14 23 38 41 31 12 41 27 53 28 35 55 29
output:
YouAreWrite! 27 1 57 1 1 9 2 1 34 3 1 21 4 1 20 5 1 13 6 1 19 7 1 47 8 1 4 9 1 10 10 1 46 11 1 39 12 1 18 13 1 16 14 1 14 15 1 23 16 1 38 17 1 41 27 1 31 18 1 12 19 31 41 2 31 27 3 31 53 4 31 28 5 31 35 6 31 55 7 31 29 8
result:
ok Accepted
Test #32:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
45 3 1 22 22
output:
YouAreFake!
result:
ok Accepted
Test #33:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
95 23 1 31 90 14 36 94 9 55 30 84 65 13 15 62 30 63 47 85 7 77 78 53 89
output:
YouAreWrite! 22 1 31 1 1 90 2 1 14 3 1 36 4 1 94 5 1 9 6 1 55 7 1 30 22 1 84 8 1 65 9 1 13 10 1 15 11 1 62 12 84 30 5 84 63 6 84 47 7 84 85 8 84 7 9 84 77 10 84 78 11 84 53 12 84 89 13
result:
ok Accepted
Test #34:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
55 19 1 3 50 14 36 8 52 22 25 10 35 48 31 33 38 12 12 30 15
output:
YouAreFake!
result:
ok Accepted
Test #35:
score: 0
Accepted
time: 2ms
memory: 3828kb
input:
61 37 1 22 59 24 41 16 53 17 11 36 58 4 25 54 31 6 46 26 21 33 19 3 18 48 44 15 49 28 9 12 20 41 13 43 45 50 60
output:
YouAreWrite! 36 1 22 1 1 59 2 1 24 3 1 41 36 1 16 4 1 53 5 1 17 6 1 11 7 1 36 8 1 58 9 1 4 10 1 25 11 1 54 12 1 31 13 1 6 14 1 46 15 1 26 16 1 21 17 1 33 18 1 19 19 1 3 20 1 18 21 1 48 22 1 44 23 1 15 24 1 49 25 1 28 26 1 9 27 1 12 28 1 20 29 16 41 26 16 13 27 16 43 28 16 45 29 16 50 30 16 60 31
result:
ok Accepted
Test #36:
score: 0
Accepted
time: 1ms
memory: 3828kb
input:
45 22 1 8 32 12 2 31 41 18 27 16 3 34 39 35 34 40 42 4 19 36 13 44
output:
YouAreWrite! 21 1 8 1 1 32 2 1 12 3 1 2 4 1 31 5 1 41 6 1 18 7 1 27 8 1 16 9 1 3 10 1 34 21 1 39 11 1 35 12 39 34 2 39 40 3 39 42 4 39 4 5 39 19 6 39 36 7 39 13 8 39 44 9
result:
ok Accepted
Test #37:
score: 0
Accepted
time: 2ms
memory: 3836kb
input:
15 6 1 6 4 2 6 7
output:
YouAreWrite! 5 1 6 5 1 4 1 1 2 2 4 6 2 4 7 3
result:
ok Accepted
Test #38:
score: 0
Accepted
time: 2ms
memory: 3672kb
input:
58 23 1 2 18 44 7 7 46 52 34 48 10 31 25 55 41 11 51 45 33 16 20 4 14
output:
YouAreFake!
result:
ok Accepted
Test #39:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
78 4 1 68 68 5
output:
YouAreFake!
result:
ok Accepted
Test #40:
score: 0
Accepted
time: 2ms
memory: 3628kb
input:
28 4 1 15 15 17
output:
YouAreFake!
result:
ok Accepted
Test #41:
score: 0
Accepted
time: 2ms
memory: 3664kb
input:
47 8 1 41 41 33 27 47 21 25
output:
YouAreFake!
result:
ok Accepted
Test #42:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
31 32 1 19 28 22 20 15 4 5 5 10 6 18 23 9 14 21 26 11 31 30 13 12 27 24 25 16 17 29 7 3 8 2
output:
YouAreFake!
result:
ok Accepted
Test #43:
score: 0
Accepted
time: 2ms
memory: 3892kb
input:
23 23 1 20 21 18 2 23 22 7 12 9 4 6 11 13 5 14 17 5 3 19 10 16 8
output:
YouAreWrite! 22 1 20 1 1 21 2 1 18 3 1 2 4 1 23 5 1 22 6 1 7 7 1 12 8 1 9 9 1 4 10 1 6 11 1 11 12 1 13 13 1 5 22 1 14 14 1 17 15 14 5 2 14 3 3 14 19 4 14 10 5 14 16 6 14 8 7
result:
ok Accepted
Test #44:
score: 0
Accepted
time: 2ms
memory: 3796kb
input:
99 68 1 14 2 51 93 72 54 49 8 33 67 18 84 87 44 90 64 38 82 63 10 69 15 36 95 3 29 28 32 50 9 88 80 39 43 60 65 19 59 37 94 5 99 91 75 21 42 96 30 61 31 83 47 57 66 44 25 4 16 81 55 23 58 24 20 22 11 53
output:
YouAreWrite! 67 1 14 1 1 2 2 1 51 3 1 93 4 1 72 5 1 54 6 1 49 7 1 8 8 1 33 9 1 67 10 1 18 11 1 84 12 1 87 13 1 44 67 1 90 14 1 64 15 1 38 16 1 82 17 1 63 18 1 10 19 1 69 20 1 15 21 1 36 22 1 95 23 1 3 24 1 29 25 1 28 26 1 32 27 1 50 28 1 9 29 1 88 30 1 80 31 1 39 32 1 43 33 1 60 34 1 65 35 1 19 36 1...
result:
ok Accepted
Test #45:
score: 0
Accepted
time: 2ms
memory: 3644kb
input:
52 3 24 12 12
output:
YouAreFake!
result:
ok Accepted
Test #46:
score: 0
Accepted
time: 2ms
memory: 3812kb
input:
99 97 1 59 47 83 22 2 36 58 23 39 53 84 61 71 62 42 54 56 46 31 80 32 38 74 28 93 17 91 37 14 67 33 50 51 55 29 27 10 81 21 24 12 78 92 70 34 77 7 85 65 87 98 60 63 90 52 8 57 88 48 72 64 3 20 19 6 89 45 76 11 69 5 86 97 51 68 4 40 79 94 35 49 75 25 96 99 30 82 13 26 18 16 9 43 41 73 15
output:
YouAreWrite! 96 1 59 1 1 47 2 1 83 3 1 22 4 1 2 5 1 36 6 1 58 7 1 23 8 1 39 9 1 53 10 1 84 11 1 61 12 1 71 13 1 62 14 1 42 15 1 54 16 1 56 17 1 46 18 1 31 19 1 80 20 1 32 21 1 38 22 1 74 23 1 28 24 1 93 25 1 17 26 1 91 27 1 37 28 1 14 29 1 67 30 1 33 31 1 50 32 1 51 96 1 55 33 1 29 34 1 27 35 1 10 3...
result:
ok Accepted
Test #47:
score: 0
Accepted
time: 1ms
memory: 3856kb
input:
30 19 1 15 3 17 20 30 29 28 5 10 21 4 9 26 27 14 5 8 2
output:
YouAreWrite! 18 1 15 1 1 3 2 1 17 3 1 20 4 1 30 5 1 29 6 1 28 7 1 5 18 1 10 8 1 21 9 1 4 10 1 9 11 1 26 12 1 27 13 1 14 14 10 5 7 10 8 8 10 2 9
result:
ok Accepted
Test #48:
score: 0
Accepted
time: 2ms
memory: 3876kb
input:
43 18 1 22 7 8 12 38 25 9 21 39 43 30 29 18 32 30 5 35
output:
YouAreWrite! 17 1 22 1 1 7 2 1 8 3 1 12 4 1 38 5 1 25 6 1 9 7 1 21 8 1 39 9 1 43 10 1 30 17 1 29 11 1 18 12 1 32 13 29 30 3 29 5 4 29 35 5
result:
ok Accepted
Test #49:
score: 0
Accepted
time: 0ms
memory: 3952kb
input:
62 28 1 45 6 60 17 19 61 54 58 16 28 26 3 31 29 57 4 5 44 4 13 37 46 39 53 24 2 12
output:
YouAreWrite! 27 1 45 1 1 6 2 1 60 3 1 17 4 1 19 5 1 61 6 1 54 7 1 58 8 1 16 9 1 28 10 1 26 11 1 3 12 1 31 13 1 29 14 1 57 15 1 4 27 1 5 16 1 44 17 5 4 2 5 13 3 5 37 4 5 46 5 5 39 6 5 53 7 5 24 8 5 2 9 5 12 10
result:
ok Accepted
Test #50:
score: 0
Accepted
time: 2ms
memory: 3804kb
input:
51 5 1 25 2 38 38
output:
YouAreFake!
result:
ok Accepted
Test #51:
score: 0
Accepted
time: 1ms
memory: 3936kb
input:
68 66 1 10 2 55 12 47 51 31 64 29 59 58 14 52 27 18 39 4 7 44 62 21 11 17 24 65 25 27 36 15 42 3 45 20 34 5 68 37 56 50 41 63 60 43 61 30 13 66 28 26 40 35 22 23 19 9 67 16 6 33 54 8 38 49 53 57
output:
YouAreWrite! 65 1 10 1 1 2 2 1 55 3 1 12 4 1 47 5 1 51 6 1 31 7 1 64 8 1 29 9 1 59 10 1 58 11 1 14 12 1 52 13 1 27 65 1 18 14 1 39 15 1 4 16 1 7 17 1 44 18 1 62 19 1 21 20 1 11 21 1 17 22 1 24 23 1 65 24 1 25 25 18 27 12 18 36 13 18 15 14 18 42 15 18 3 16 18 45 17 18 20 18 18 34 19 18 5 20 18 68 21 ...
result:
ok Accepted
Test #52:
score: 0
Accepted
time: 2ms
memory: 3836kb
input:
34 24 1 27 16 20 31 22 21 10 26 28 22 2 11 25 33 24 4 12 8 18 19 17 30 34
output:
YouAreWrite! 23 1 27 1 1 16 2 1 20 3 1 31 4 1 22 23 1 21 5 1 10 6 1 26 7 1 28 8 21 22 4 21 2 5 21 11 6 21 25 7 21 33 8 21 24 9 21 4 10 21 12 11 21 8 12 21 18 13 21 19 14 21 17 15 21 30 16 21 34 17
result:
ok Accepted
Test #53:
score: 0
Accepted
time: 2ms
memory: 3868kb
input:
49 14 1 33 12 19 35 24 36 27 34 22 26 34 23 43
output:
YouAreWrite! 13 1 33 1 1 12 2 1 19 3 1 35 4 1 24 5 1 36 6 1 27 7 1 34 13 1 22 8 1 26 9 22 34 2 22 23 3 22 43 4
result:
ok Accepted
Test #54:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
72 12 1 12 23 21 55 35 12 22 39 13 42 67
output:
YouAreWrite! 11 1 12 11 1 23 1 1 21 2 1 55 3 1 35 4 23 12 4 23 22 5 23 39 6 23 13 7 23 42 8 23 67 9
result:
ok Accepted
Test #55:
score: 0
Accepted
time: 0ms
memory: 3836kb
input:
11 6 1 2 7 6 9 7
output:
YouAreWrite! 5 1 2 1 1 7 5 1 6 2 1 9 3 6 7 2
result:
ok Accepted
Test #56:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
67 34 1 56 54 17 50 19 29 18 8 40 61 28 59 43 2 14 21 48 6 31 57 22 11 12 43 47 58 30 62 5 64 45 51 49
output:
YouAreWrite! 33 1 56 1 1 54 2 1 17 3 1 50 4 1 19 5 1 29 6 1 18 7 1 8 8 1 40 9 1 61 10 1 28 11 1 59 12 1 43 33 1 2 13 1 14 14 1 21 15 1 48 16 1 6 17 1 31 18 1 57 19 1 22 20 1 11 21 1 12 22 2 43 10 2 47 11 2 58 12 2 30 13 2 62 14 2 5 15 2 64 16 2 45 17 2 51 18 2 49 19
result:
ok Accepted
Test #57:
score: 0
Accepted
time: 2ms
memory: 3844kb
input:
35 20 1 33 25 26 9 21 2 35 14 23 8 19 29 27 10 30 7 3 22 35
output:
YouAreWrite! 19 1 33 1 1 25 2 1 26 3 1 9 4 1 21 5 1 2 6 1 35 19 1 14 7 1 23 8 1 8 9 1 19 10 1 29 11 1 27 12 1 10 13 1 30 14 1 7 15 1 3 16 1 22 17 14 35 11
result:
ok Accepted
Test #58:
score: 0
Accepted
time: 2ms
memory: 3744kb
input:
73 36 1 39 22 70 9 48 65 53 23 49 54 73 67 52 57 8 42 37 13 14 50 18 63 12 11 15 20 6 24 27 71 33 18 32 26 47
output:
YouAreWrite! 35 1 39 1 1 22 2 1 70 3 1 9 4 1 48 5 1 65 6 1 53 7 1 23 8 1 49 9 1 54 10 1 73 11 1 67 12 1 52 13 1 57 14 1 8 15 1 42 16 1 37 17 1 13 18 1 14 19 1 50 20 1 18 35 1 63 21 1 12 22 1 11 23 1 15 24 1 20 25 1 6 26 1 24 27 1 27 28 1 71 29 1 33 30 63 18 10 63 32 11 63 26 12 63 47 13
result:
ok Accepted
Test #59:
score: 0
Accepted
time: 2ms
memory: 3840kb
input:
49 13 1 37 39 31 43 23 16 39 2 27 12 22 25
output:
YouAreWrite! 12 1 37 1 1 39 12 1 31 2 1 43 3 1 23 4 1 16 5 31 39 4 31 2 5 31 27 6 31 12 7 31 22 8 31 25 9
result:
ok Accepted
Test #60:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
48 24 1 35 7 43 10 24 48 29 33 42 25 15 15 27 22 21 26 2 4 14 41 32 19 5
output:
YouAreFake!
result:
ok Accepted
Subtask #4:
score: 0
Wrong Answer
Dependency #2:
100%
Accepted
Test #61:
score: 23
Accepted
time: 2ms
memory: 3816kb
input:
4 6 1 3 2 4 3 4
output:
YouAreWrite! 5 1 3 3 1 2 1 1 4 5 2 3 1 3 4 2
result:
ok Accepted
Test #62:
score: 0
Accepted
time: 2ms
memory: 3764kb
input:
86 115 1 24 86 24 60 15 66 59 50 45 20 61 17 4 40 67 38 46 36 10 62 22 76 3 73 6 69 56 28 31 82 43 18 49 8 13 21 76 57 32 79 36 51 28 51 14 20 5 72 48 77 62 71 11 3 70 84 30 14 60 29 25 2 26 43 27 47 84 53 19 30 58 15 63 47 6 46 81 17 64 12 16 7 78 74 37 54 65 82 32 29 27 55 26 19 33 37 68 4 50 55 7...
output:
YouAreFake!
result:
ok Accepted
Test #63:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
84 119 1 25 55 40 78 31 37 39 20 13 29 73 62 38 66 70 36 19 76 26 49 71 34 47 79 55 63 64 12 29 52 8 10 14 35 23 19 73 45 7 16 41 15 40 3 52 76 63 16 59 64 74 67 79 27 39 27 48 37 21 46 59 49 50 54 56 81 22 20 42 32 61 70 2 30 57 17 65 72 17 8 75 69 69 80 71 78 24 58 11 7 84 44 44 28 54 4 77 61 42 2...
output:
YouAreFake!
result:
ok Accepted
Test #64:
score: 0
Accepted
time: 1ms
memory: 3716kb
input:
60 91 1 40 20 2 49 29 23 21 27 55 52 9 57 41 53 53 44 40 25 10 16 9 13 48 38 30 31 56 20 17 27 30 59 32 51 37 54 21 22 17 45 47 4 3 18 38 45 36 58 50 35 54 41 15 29 5 12 14 46 11 56 7 57 50 8 42 26 11 25 36 24 31 19 12 23 43 35 26 28 48 28 34 32 2 46 22 15 6 16 55 37
output:
YouAreFake!
result:
ok Accepted
Test #65:
score: 0
Accepted
time: 2ms
memory: 3808kb
input:
90 127 1 88 7 42 11 89 45 77 51 20 29 81 84 80 67 41 71 66 10 29 31 47 24 79 3 34 25 90 22 76 12 24 12 2 57 63 16 66 51 17 38 67 8 52 64 39 57 15 35 20 72 52 59 16 81 62 55 36 61 41 49 23 5 61 27 69 53 27 7 9 23 38 13 35 65 26 40 28 71 49 13 58 14 48 43 87 89 84 30 69 88 87 59 44 30 9 21 10 70 40 83...
output:
YouAreFake!
result:
ok Accepted
Test #66:
score: -23
Wrong Answer
time: 2ms
memory: 3844kb
input:
72 99 1 4 6 5 60 18 28 45 26 49 66 31 65 62 53 20 24 3 42 9 20 10 71 56 4 32 17 64 23 37 27 44 26 31 19 50 24 64 69 39 44 43 8 29 16 38 2 72 50 16 61 63 67 40 45 52 51 6 15 29 12 58 14 41 3 34 70 60 65 35 33 57 70 33 43 19 14 66 13 57 25 5 11 27 21 63 68 54 46 13 30 35 28 25 36 8 58 7 21
output:
YouAreWrite! 98 1 4 20 1 6 53 1 5 83 1 60 56 1 18 1 1 28 94 1 45 52 1 26 24 1 49 2 1 66 77 1 31 29 1 65 58 1 62 3 1 53 4 1 20 19 1 24 30 1 3 55 1 42 5 1 9 6 42 20 2 42 10 3 42 71 4 42 56 5 42 4 6 42 32 7 42 17 8 42 64 27 42 23 9 42 37 10 42 27 84 42 44 28 42 26 11 42 31 12 42 19 70 42 50 45 42 24 13...
result:
wrong answer Wrong Answer on the Second line of output
Subtask #5:
score: 0
Skipped
Dependency #1:
100%
Accepted
Dependency #2:
100%
Accepted
Dependency #3:
100%
Accepted
Dependency #4:
0%