QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#227073 | #7191. Around the World | PPP# | AC ✓ | 3ms | 4728kb | C++17 | 915b | 2023-10-26 20:56:35 | 2023-10-26 20:56:35 |
Judging History
answer
#ifdef DEBUG
#define _GLIBCXX_DEBUG
#endif
//#pragma GCC optimize("O3")
#include<bits/stdc++.h>
using namespace std;
#define pb push_back
typedef long long ll;
typedef long double ld;
int n, k;
const int maxN = 505;
int g[maxN][maxN];
int h[maxN];
bool used[maxN];
void dfs(int v) {
used[v] = true;
if (h[v] % 2 == 0) cout << v << " ";
for (int p = 1; p <= n; p++) {
if (!used[p] && g[v][p]) {
h[p] = h[v] + 1;
dfs(p);
}
}
if (h[v] % 2 == 1) cout << v << " ";
}
int main() {
ios_base::sync_with_stdio(false);
cin.tie(nullptr);
#ifdef DEBUG
freopen("input.txt", "r", stdin);
#endif
cin >> n >> k;
for (int i = 1; i <= n; i++) {
for (int j = 1; j <= n; j++) {
char c;
cin >> c;
if (c == '1') g[i][j] = 1;
}
}
dfs(1);
return 0;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3672kb
input:
4 3 0100 1010 0101 0010
output:
1 3 4 2
result:
ok
Test #2:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9 3 011001001 100000000 100000000 000001000 000000010 100100010 000000010 000011100 100000000
output:
1 2 3 4 8 5 7 6 9
result:
ok
Test #3:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
9 3 000011010 000001001 000000010 000000010 100000000 110000000 000000010 101100100 010000000
output:
1 5 2 9 6 3 4 7 8
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
9 3 000000100 000100000 000001101 010011000 000100000 001100010 101000000 000001000 001000000
output:
1 3 4 2 5 8 6 9 7
result:
ok
Test #5:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
9 3 010000000 100100000 000010001 010000101 001001000 000010000 000100000 000000001 001100010
output:
1 4 7 3 6 5 8 9 2
result:
ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
9 3 000100001 000001000 000110000 101000000 001001010 010010100 000001000 000010000 100000000
output:
1 3 6 2 7 8 5 4 9
result:
ok
Test #7:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
9 3 001001000 000010001 100000010 000010000 010100000 100000101 000001000 001000000 010001000
output:
1 8 3 7 9 5 4 2 6
result:
ok
Test #8:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
9 3 000011010 001000000 010001001 000000001 100000000 101000000 000000001 100000000 001100100
output:
1 5 3 2 4 7 9 6 8
result:
ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3748kb
input:
9 3 000100001 000000001 000010010 100011000 001100000 000100000 000000001 001000000 110000100
output:
1 5 8 3 6 4 2 7 9
result:
ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
9 3 000100000 000000100 000001000 100011010 000100000 001100101 010001000 000100000 000001000
output:
1 5 6 3 2 7 9 8 4
result:
ok
Test #11:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
9 3 000000100 000010110 000000001 000000010 010000000 000000010 110000000 010101001 001000010
output:
1 2 5 4 6 9 3 8 7
result:
ok
Test #12:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
9 3 000001000 000001000 000001001 000010000 000101000 111010000 000000010 000000101 001000010
output:
1 2 3 8 7 9 5 4 6
result:
ok
Test #13:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
9 3 000010000 000010000 000101011 001010000 110100000 001000100 000001000 001000000 001000000
output:
1 2 4 6 7 8 9 3 5
result:
ok
Test #14:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
9 3 000010000 001000000 010001000 000000100 100001000 001010100 000101011 000000100 000000100
output:
1 6 2 3 4 8 9 7 5
result:
ok
Test #15:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
9 3 000011100 000000100 000100100 001000000 100000010 100000001 111000000 000010000 000001000
output:
1 8 5 9 6 2 3 4 7
result:
ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
9 3 000100010 000010000 000001000 100011000 010100000 001100000 000000001 100000001 000000110
output:
1 5 2 6 3 4 9 7 8
result:
ok
Test #17:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
9 3 010000001 101010000 010000000 000000011 010000000 000000100 000001001 000100000 100100100
output:
1 3 5 2 4 8 7 6 9
result:
ok
Test #18:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
9 3 000011111 000000010 000000010 000000010 100000000 100000000 100000000 111100000 100000000
output:
1 5 6 7 2 3 4 8 9
result:
ok
Test #19:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
9 3 000000001 000101001 000000001 010000000 000000001 010000100 000001000 000000001 111010010
output:
1 2 4 7 6 3 5 8 9
result:
ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
9 3 000000110 000000100 000010000 000010000 001101011 000010000 110000000 100010000 000010000
output:
1 2 7 5 3 4 6 9 8
result:
ok
Test #21:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
9 3 001110011 000001000 100000000 100001000 100000000 010100100 000001000 100000000 100000000
output:
1 3 6 2 7 4 5 8 9
result:
ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
9 3 001010110 000001000 100000000 000001000 100000000 010100011 100000000 100001000 000001000
output:
1 3 5 7 6 2 4 9 8
result:
ok
Test #23:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
9 3 010000000 101000101 010010000 000001000 001001010 000110000 010000000 000010000 010000000
output:
1 3 6 4 8 5 7 9 2
result:
ok
Test #24:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
9 3 010101010 100000000 000000001 100000000 000000101 100000000 000010010 100000100 001010000
output:
1 2 4 6 7 9 3 5 8
result:
ok
Test #25:
score: 0
Accepted
time: 0ms
memory: 3604kb
input:
9 3 000001011 000100000 000100000 011010100 000100001 100000000 000100000 100000000 100010000
output:
1 6 8 5 2 3 7 4 9
result:
ok
Test #26:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
9 3 000000011 000010001 000001000 000010000 010101000 001010000 000000001 100000000 110000100
output:
1 8 2 4 6 3 5 7 9
result:
ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
9 3 001100100 000000101 100001000 100000000 000000010 001000000 110000000 000010001 010000010
output:
1 6 3 4 2 8 5 9 7
result:
ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 3620kb
input:
9 3 000010011 000000001 000101100 001000000 100000100 001000000 001010000 100000000 110000000
output:
1 7 4 6 3 5 8 2 9
result:
ok
Test #29:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
9 3 000000100 000101000 000010000 010000001 001001000 010010000 100000010 000000101 000100010
output:
1 8 4 6 3 5 2 9 7
result:
ok
Test #30:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
9 3 010100000 100011000 000000011 100000100 010000000 010000000 000100010 001000100 001000000
output:
1 5 6 2 7 3 9 8 4
result:
ok
Test #31:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
9 3 001000000 001000000 110100000 001000001 000000011 000000010 000000010 000011100 000110000
output:
1 2 4 5 6 7 8 9 3
result:
ok
Test #32:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
9 3 011100000 100000000 100000000 100011101 000100000 000100010 000100000 000001000 000100000
output:
1 2 3 5 6 8 7 9 4
result:
ok
Test #33:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
9 3 000011000 001000000 010000001 000010000 100100111 100000000 000010000 000010000 001010000
output:
1 4 7 8 9 2 3 5 6
result:
ok
Test #34:
score: 0
Accepted
time: 0ms
memory: 3652kb
input:
9 3 000010000 000100000 000001001 010001100 100001000 001110010 000100000 000001000 001000000
output:
1 6 9 3 2 7 4 8 5
result:
ok
Test #35:
score: 0
Accepted
time: 0ms
memory: 3668kb
input:
9 3 010000010 100000000 000000011 000000010 000001010 000010000 000000001 101110000 001000100
output:
1 2 3 7 9 4 5 6 8
result:
ok
Test #36:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
9 3 000111000 000001000 000001000 100000000 100000000 111000111 000001000 000001000 000001000
output:
1 4 5 2 3 7 8 9 6
result:
ok
Test #37:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
9 3 000000010 001000010 010010000 000000010 001000000 000000010 000000010 110101101 000000010
output:
1 2 5 3 4 6 7 9 8
result:
ok
Test #38:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
9 3 010110000 101001000 010000000 100000110 100000001 010000000 000100000 000100000 000010000
output:
1 3 6 2 7 8 4 9 5
result:
ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
9 3 000000010 000010001 000000100 000000100 010001000 000010110 001101000 100001000 010000000
output:
1 6 2 9 5 3 4 7 8
result:
ok
Test #40:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
9 3 001000001 000000100 100000000 000000101 000001010 000010001 010100000 000010000 100101000
output:
1 3 4 2 7 6 8 5 9
result:
ok
Test #41:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
9 3 000000001 001100100 010001011 010000000 000000001 001000000 010000000 001000000 101010000
output:
1 3 4 7 2 6 8 5 9
result:
ok
Test #42:
score: 0
Accepted
time: 0ms
memory: 3744kb
input:
9 3 000000100 001100100 010000000 010000000 000000010 000000110 110001001 000011000 000000100
output:
1 2 3 4 6 5 8 9 7
result:
ok
Test #43:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
9 3 011010100 100100000 100000000 010000010 100000000 000000101 100001000 000100000 000001000
output:
1 4 8 2 3 5 6 9 7
result:
ok
Test #44:
score: 0
Accepted
time: 0ms
memory: 3680kb
input:
9 3 001000000 001000000 110111101 001000000 001000000 001000010 001000000 000001000 001000000
output:
1 2 4 5 6 8 7 9 3
result:
ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
9 3 000101000 000100000 000100000 111010110 000100001 100000000 000100000 000100000 000010000
output:
1 2 3 5 9 7 8 4 6
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3736kb
input:
9 3 010000000 100000100 000000010 000001000 000000100 000100100 010011011 001000100 000000100
output:
1 7 5 4 6 3 8 9 2
result:
ok
Test #47:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
9 3 010110010 100000001 000000010 100001000 100000100 000100000 000010000 101000000 010000000
output:
1 9 2 6 4 7 5 3 8
result:
ok
Test #48:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
9 3 000000010 000000010 000000010 000000010 000000010 000000010 000000010 111111101 000000010
output:
1 2 3 4 5 6 7 9 8
result:
ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
15 3 000001000000000 000001000000000 000100011001000 001000000000000 000001000000000 110010100010100 000001000000010 001000000000000 001000000100000 000000001000001 000001000000000 001000000000010 000001000000000 000000100001000 000000000100000
output:
1 2 5 7 12 4 8 9 15 10 3 14 11 13 6
result:
ok
Test #50:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
15 3 000100100000100 000000000001000 000000000001000 100000000000000 000000000001000 000000000001000 100000010001000 000000100010000 000000000001000 000000000001000 000000010000000 011011101100011 100000000000000 000000000001000 000000000001000
output:
1 4 8 11 12 2 3 5 6 9 10 14 15 7 13
result:
ok
Test #51:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
15 3 010000001000010 100000000000100 000010000000000 000001000000000 001000100101000 000100000000001 000010000000000 000000000000001 100000000000000 000010000010000 000000000100001 000010000000100 010000000001000 100000000000000 000001010010000
output:
1 13 5 3 7 11 6 4 8 15 10 12 2 9 14
result:
ok
Test #52:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
15 3 000010000000000 000000100000001 000000000100000 000000000000100 100000000100000 000000001000000 010000000000100 000000001000010 000001010010000 001010000000010 000000001000000 000000000000001 000100100000010 000000010100100 010000000001000
output:
1 10 3 8 6 11 9 13 4 2 12 15 7 14 5
result:
ok
Test #53:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
15 3 001000000000001 000000000000010 100101000000000 001000001000000 000000000001000 001000000000010 000000010000000 000000100101000 000100000010000 000000010010000 000000001100000 000010010000000 000000000000010 010001000000100 100000000000000
output:
1 4 11 8 7 5 12 10 9 6 2 13 14 3 15
result:
ok
Test #54:
score: 0
Accepted
time: 0ms
memory: 3700kb
input:
15 3 010000000000000 101100000000101 010000000000000 010010000000000 000100100100000 000000001000000 000010000001000 000000001000001 000001010010010 000010000000000 000000001000000 000000100000000 010000000000000 000000001000000 010000010000000
output:
1 3 4 7 12 10 5 13 15 9 6 11 14 8 2
result:
ok
Test #55:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
15 3 000100000000000 000000010000110 000000000000001 100000001100000 000000000000001 000000000110010 000000000100000 010000000000000 000100000000000 000101100000000 000001000000000 000000000000101 010000000001000 010001000000000 001010000001000
output:
1 9 10 11 14 8 13 15 3 5 12 2 6 7 4
result:
ok
Test #56:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
15 3 000101000111001 000001000000100 000010110100000 100000000000000 001000000000000 110000000000000 001000000000000 001000000000000 000000000100000 101000001000000 100000000000000 100000000000000 010000000000010 000000000000100 100000000000000
output:
1 4 2 14 13 6 3 5 7 8 9 10 11 12 15
result:
ok
Test #57:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
15 3 000000100000000 000000000001000 000001000000000 000000000000001 000000000101000 001000100000000 100001000100100 000000000010000 000000000100000 000010101000010 000000010000001 010010000000000 000000100000001 000000000100000 000100000010100
output:
1 6 3 10 12 2 5 9 14 13 4 11 8 15 7
result:
ok
Test #58:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
15 3 000000000000001 000100000000000 000101001000000 011000010000011 000000000100000 001000000000000 000000000100001 000100000001000 001000000000000 000010100000000 000000000000001 000000010000000 000000000000010 000100000000100 100100100010000
output:
1 4 2 6 9 3 12 8 13 14 7 5 10 11 15
result:
ok
Test #59:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
15 3 000000100000000 000110000001000 000010000000100 010000000000000 011000111110000 000000000000001 100010000000000 000010000000000 000010000000000 000010000000000 000010000000000 010000000000001 001000000000000 000000000000001 000001000001010
output:
1 5 4 12 6 14 15 2 13 3 8 9 10 11 7
result:
ok
Test #60:
score: 0
Accepted
time: 0ms
memory: 3624kb
input:
15 3 000000000000010 000001000010001 000000000000010 000000011000000 000000000000010 010000000000000 000000000100000 000100000100000 000100000010000 000000110000000 010000001000010 000000000000010 000000000000010 101010000011100 010000000000000
output:
1 3 5 11 6 15 2 4 10 7 8 9 12 13 14
result:
ok
Test #61:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
15 3 000000000000010 000010100101000 000100000000001 001000000010010 010000000000000 000000100000000 010001000000100 000000000000010 000000000000010 010000000000001 000100000000000 010000000000000 000000100000000 100100011000000 001000000100000
output:
1 4 15 2 5 6 13 7 12 10 3 11 8 9 14
result:
ok
Test #62:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
15 3 000000000000100 001000000000000 010111001000010 001000000000000 001000000000000 001000100010000 000001000000000 000000000000010 001000000000000 000000000000010 000001000000100 000000000000010 100000000010000 001000010101001 000000000000010
output:
1 11 3 2 4 5 9 8 10 12 15 14 7 6 13
result:
ok
Test #63:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
15 3 000100000100010 000000100000000 000000000000100 100000000010000 000000000000010 000000000000110 010000000100000 000000000001000 000000000100000 100000101001000 000100000000000 000000010100000 001001000000001 100011000000000 000000000000100
output:
1 11 4 7 2 9 12 8 10 5 6 3 15 13 14
result:
ok
Test #64:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
15 3 000000000100010 000100010000000 000000000010010 010011001000001 000100000000100 000100000000000 000000000001010 010000000000000 000100000000000 100000000000100 001000000000000 000000100000000 000010000100000 101000100000000 000100000000000
output:
1 13 4 8 2 6 9 15 5 10 3 11 7 12 14
result:
ok
Test #65:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
15 3 000000000000001 000000100000000 000000100111000 000001000000000 000000000010000 000100000000001 011000000000100 000000001000101 000000010000000 001000000000000 001010000000000 001000000000000 000000110000000 000000000000001 100001010000010
output:
1 6 4 8 9 7 2 10 11 5 12 3 13 14 15
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
15 3 000000001000000 000100000000001 000000101000000 010000000000010 000000000001000 000000000001000 001000000000100 000000000001000 101000000101010 000000001010000 000000000100000 000011011000000 000000100000000 000100001000000 010000000000000
output:
1 3 13 7 10 11 12 5 6 8 14 2 15 4 9
result:
ok
Test #67:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
15 3 010010000000000 100000100011000 000000001000000 000001001000000 100001000000011 000110000000000 010000000000000 000000000100000 001100000000000 000000010000010 010000000000000 010000000000000 000000000000010 000010000100100 000010000000000
output:
1 7 11 12 2 6 9 3 4 14 8 10 13 15 5
result:
ok
Test #68:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
15 3 000100000000010 000000000000001 000000100000000 100000001000000 000000000001000 000000000001010 001000000000001 000000001000000 000100010000001 000000000001000 000000000001000 000011000110100 000000000001000 100001000000000 010000101000000
output:
1 9 8 2 7 3 15 4 6 5 10 11 13 12 14
result:
ok
Test #69:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
10 3 0001000000 0010000010 0100010000 1000000110 0000000010 0010000001 0000000001 0001000000 0101100000 0000011000
output:
1 8 9 3 10 7 6 2 5 4
result:
ok
Test #70:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
10 8 0100001001 1010000100 0100011010 0000100110 0001010000 0010100000 1010000010 0101000000 0011001001 1000000010
output:
1 3 5 8 9 7 10 4 6 2
result:
ok
Test #71:
score: 0
Accepted
time: 0ms
memory: 3648kb
input:
10 3 0100000000 1010000111 0100000000 0000110100 0001000000 0001000000 0000000010 0101000000 0100001000 0100000000
output:
1 3 8 5 6 4 9 7 10 2
result:
ok
Test #72:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
10 6 0011100100 0001011110 1000110000 1101100000 1011001100 0110000000 0100100001 1100100010 0100000101 0000001010
output:
1 5 2 6 10 8 9 7 4 3
result:
ok
Test #73:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
10 3 0100000010 1000000001 0000000101 0000010100 0000000100 0001000000 0000000001 0011100000 1000000000 0110001000
output:
1 10 8 6 4 5 3 7 2 9
result:
ok
Test #74:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
10 8 0010000000 0001000100 1000010101 0101010011 0000010110 0011100001 0000000001 0110100010 0001100101 0011011010
output:
1 6 2 5 10 7 9 8 4 3
result:
ok
Test #75:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
10 3 0000010101 0001100000 0000010000 0100000010 0100000000 1010000010 0000000001 1000000000 0001010000 1000001000
output:
1 3 9 2 5 4 6 8 7 10
result:
ok
Test #76:
score: 0
Accepted
time: 0ms
memory: 3616kb
input:
10 8 0101100111 1011010010 0100000000 1100100100 1001000101 0100001001 0000010010 1001100100 1100001000 1000110000
output:
1 3 4 8 10 7 9 6 5 2
result:
ok
Test #77:
score: 0
Accepted
time: 0ms
memory: 3608kb
input:
10 3 0001000000 0001000000 0001100001 1110000000 0010000000 0000001001 0000010100 0000001010 0000000100 0010010000
output:
1 2 3 5 6 8 9 7 10 4
result:
ok
Test #78:
score: 0
Accepted
time: 0ms
memory: 3672kb
input:
10 8 1010010000 0001110010 1000011100 0101001000 0100000001 1110010000 0011000001 0010000011 0100000101 0000101110
output:
1 6 4 10 5 9 8 7 2 3
result:
ok
Test #79:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
20 3 00000100000000010000 00000010000000000000 00000000000000000010 00000001000100000000 00000000000010010010 10000000000101000000 01000000000000010101 00010000000000001000 00000000000000000010 00000000000010000000 00000000000000000010 00010100000000000000 00001000010000000000 00000100000000000000 0...
output:
1 12 8 17 4 14 6 5 10 13 3 9 11 19 7 2 18 20 15 16
result:
ok
Test #80:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
20 8 00011000001011000100 00100100010010100100 01000000000011000000 10000000010000100010 10000001100000000010 01000000000100000000 00000000100000000000 00001000000100010011 00001010000000100000 01010000000001000000 10000000000000000000 00000101000100011010 11100000000001000001 10100000010010000000 0...
output:
1 10 3 14 20 5 7 15 9 12 6 16 17 19 8 13 18 2 4 11
result:
ok
Test #81:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
20 3 00001100010000000000 00001000000000000000 00000000010000000000 00000010110000000000 11000000000000000100 10000000000000000000 00010000000010000000 00000000000000000010 00010000000100100001 10110000000001001000 00000000000000100010 00000000100000000000 00000010000000000000 00000000010000000000 0...
output:
1 2 18 16 5 6 3 4 13 7 12 15 19 8 11 20 9 14 17 10
result:
ok
Test #82:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
20 18 00010110010000000100 00001000000010000000 00000001000110010100 10000100010100000100 01000010000100001100 10010000010000000000 10001010010000000000 00100000000000000100 00000000000000010001 10010110001000010000 00000000010101000000 00111000001000000000 01100000000001101011 00000000001010000000 ...
output:
1 6 7 2 3 18 8 11 14 12 9 19 17 15 20 16 13 5 10 4
result:
ok
Test #83:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
20 3 00100000100000000010 00000100000100100000 10000000000000000000 00000000001000000100 00000000000000100000 01000000000000000000 00000000010000000000 00000000001000101000 10000000000000000000 00000010000001100010 00010001000000000000 01000000000000000000 00000000000000000100 00000000010000000000 0...
output:
1 3 9 10 7 14 2 6 12 5 8 4 13 20 18 11 17 16 15 19
result:
ok
Test #84:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
20 12 00000000001000100000 00000000011100001000 00001001100000000000 00000000000000001000 00100100001111000010 00001010000000001000 00000100000010100000 00100000000001000000 00100000011000000001 01000000100010001000 11001000101000001000 01001000000001000101 00001010010000001101 00001001000100100001 ...
output:
1 2 9 5 7 17 4 14 8 18 20 12 15 13 6 16 19 3 10 11
result:
ok
Test #85:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
20 3 00000001000100000000 00100010001000000000 01000000000000000000 00000000001001000000 00000000000000001000 00000010000000000010 01000100000000000000 10000000000000100000 00000000000000010000 00000000000010000000 01010000000000001000 10000000000000010001 00000000010000000010 00010000000000000001 0...
output:
1 15 18 8 16 9 20 4 2 3 6 13 10 19 7 17 5 11 14 12
result:
ok
Test #86:
score: 0
Accepted
time: 0ms
memory: 3644kb
input:
20 12 00010000000000000001 00000000000000000100 00000010000000000000 10000000000110000010 00000010000010100000 00000101101001000010 00101000001000100000 00000100000101000101 00000100000000000011 00000000000000100011 00000110000101101011 00010001001001000000 00011000000001000000 00000101001110000000 ...
output:
1 12 6 19 15 7 3 14 13 17 18 2 16 20 11 5 10 9 8 4
result:
ok
Test #87:
score: 0
Accepted
time: 0ms
memory: 3688kb
input:
20 3 00000000000100100001 00000000000000010001 00000000000000101000 00000000101000100000 00000000000000001010 00000000000000000100 00000000000000000001 00000000000000010000 00010000000000000000 00000000001000000000 00010000010001000000 10000000000000000000 00000000000000000001 00000000001000000000 1...
output:
1 12 3 5 19 17 4 9 10 14 11 18 6 15 2 8 16 7 13 20
result:
ok
Test #88:
score: 0
Accepted
time: 0ms
memory: 3632kb
input:
20 14 00010010000001000000 00101000100100000001 01000000000111001010 10000000001000000001 01000100000100100010 00001000000000000100 10000000000000010000 00000000000000001000 01000000001110010001 00000000000000000100 00010000100000000100 01101000100000000010 00100000100000100000 10100000000000001000 ...
output:
1 11 2 12 6 10 18 15 13 19 17 8 14 20 5 3 16 7 9 4
result:
ok
Test #89:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
50 3 00000000000000000000000000000001001001000100000000 00010000000000000000000000000000000000000000000000 00000000000000000000000000000000000000010000000000 01000000000000000000000000000000000000000000100000 00000000000000000000100000000000000000000000000100 0000000000000000000000000000000100000000...
output:
1 6 32 12 37 18 15 19 23 8 49 7 9 36 13 10 31 16 34 11 14 22 21 48 5 29 47 33 30 3 40 24 46 17 27 41 28 39 25 4 2 45 20 44 50 26 35 38 43 42
result:
ok
Test #90:
score: 0
Accepted
time: 0ms
memory: 3696kb
input:
50 16 00000000010000000000000000000000000000000000000000 00010000000000000000100000000100100000000011000000 00000000000000000100000000001000000000100010000000 01000000000000100000000000010100001001000000000000 00000100000000000000000000000001001000000000000000 000010000000000000000000000001100000000...
output:
1 18 29 6 32 11 14 35 2 42 21 26 19 7 8 13 37 24 49 40 43 39 23 12 27 48 34 41 44 46 17 50 47 15 36 45 25 20 33 30 28 38 4 22 9 16 5 31 3 10
result:
ok
Test #91:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
50 3 00000000100000000000000000000000000000000000000000 00000000010000000010000001000000000000000000000000 00000000000000000000000001000010000001000010000000 00000000000000000000000001000000000000000000000000 00000000000000000000000000000000000000000000000010 0000000000000000000000000000000000000000...
output:
1 35 20 15 23 34 26 10 32 19 16 47 14 18 8 2 31 37 38 17 43 25 29 12 40 42 6 48 22 45 44 33 36 3 4 39 30 13 24 50 49 5 7 11 28 21 41 27 46 9
result:
ok
Test #92:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
50 3 00010000000000000000100001000000000000000000000000 00000000000000000000000000000010100000000000000011 00100000000000000000101110000000000000000000010000 10000000000000000001000010000000110000000000000000 00000010000001010000000000000000000001000000000000 0000000000010000000000000000000000000000...
output:
1 20 8 7 14 36 25 21 28 2 17 10 12 45 27 37 32 46 29 39 43 49 47 40 44 19 23 34 38 24 9 15 6 50 16 33 48 41 42 35 31 30 26 3 13 22 5 11 18 4
result:
ok
Test #93:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
50 3 00000010000000001000000000000001000000100000000000 00010000000000000000000000100000000100000000000000 00000000000000000001000000000000000000000010000000 01000000000000000000000000000100000000000000000000 00000000000000000000100000000000000000000000000000 0000000000000000000000000000000000001000...
output:
1 7 35 17 9 18 24 26 29 32 21 5 10 33 43 20 3 45 22 15 42 23 14 12 40 50 16 46 25 19 28 11 4 27 36 2 30 8 34 13 44 38 47 48 41 31 37 6 49 39
result:
ok
Test #94:
score: 0
Accepted
time: 0ms
memory: 3756kb
input:
50 5 00000010000000100000000000000000000000100000000000 00100000000000000000000001000010000000000000010000 01001000000000000000001010000000000000000000000000 00000000000000001000001100000000100011000000000000 00100100000000000000000000000000000001001100000010 0000100000001010000000000000000000001000...
output:
1 30 43 24 17 14 12 18 5 2 46 48 13 15 23 33 36 25 39 49 20 27 11 34 8 16 45 47 28 32 41 50 29 40 37 6 9 26 31 3 38 42 19 35 10 4 22 21 44 7
result:
ok
Test #95:
score: 0
Accepted
time: 0ms
memory: 3764kb
input:
50 3 00000000010000000000000000000000000000000000000000 00000000000000000000010000000001000000000000010000 00000000000000000000000100100000000000000000001000 00000000000010100000000000000000000000000000000010 00000001000000000000000000000000000000000000000000 0000000000000000000000000000000000000000...
output:
1 9 23 16 31 7 36 6 25 50 8 5 26 18 35 29 3 28 42 44 11 33 45 48 40 19 12 4 37 14 38 15 49 13 20 43 24 27 17 39 21 47 22 32 46 2 30 34 41 10
result:
ok
Test #96:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
50 28 00000000000000000000010000000001001000010100000000 00000000000000000100000000000100000000000100000000 00000000000000010000010000000000000100000000100000 00000000000000000000000010000000000100000000000000 00000000000000001000000000000000000100100000100000 000000000010110000010000000000000000000...
output:
1 3 21 6 17 36 25 23 27 28 32 26 15 10 7 24 2 35 48 41 18 42 30 38 49 34 39 20 33 47 44 37 19 43 46 8 40 50 9 45 31 12 29 14 4 5 11 13 16 22
result:
ok
Test #97:
score: 0
Accepted
time: 0ms
memory: 3752kb
input:
50 3 01000000000100000000000010000000000100000000000000 10001000000000000000000000000000010000000000000000 00000000000000000000000000000000000000000000001000 00000100000000000000000000000000100000000000000000 01000000000000000000000000000000000000000000000000 0001000001000000000000000000000000000000...
output:
1 5 34 11 7 40 21 44 24 45 46 41 35 16 13 42 43 49 28 8 39 14 27 4 10 17 29 38 6 33 37 3 22 26 48 20 15 19 31 50 47 30 23 2 9 12 25 32 18 36
result:
ok
Test #98:
score: 0
Accepted
time: 0ms
memory: 3704kb
input:
50 4 00000010000000100100000000000000000000000000000000 00000001100010000000000010000000001010000000000000 00000000000000100000000010000000000000000000000000 00001000000000000000000000000000000000000000000010 00010100000010000000000000100000000000000000010000 0000100000000000100010000000000000000000...
output:
1 40 6 4 12 2 10 20 21 32 18 28 24 22 16 31 39 33 43 45 37 50 3 30 35 29 11 41 23 13 38 46 25 15 42 26 34 44 36 19 47 27 14 8 9 49 5 48 17 7
result:
ok
Test #99:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
100 3 0001000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000 0000000001000000000000000000000000001000000000000000000000000000000000000000100000000000000000000000 00000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 72 11 9 43 32 12 19 59 86 21 46 48 31 26 71 55 99 76 75 97 27 15 35 53 18 69 52 90 79 92 73 57 83 89 36 16 50 5 20 60 77 10 40 37 38 67 7 14 28 30 68 87 65 88 24 51 58 8 2 17 70 22 29 33 84 34 3 94 6 98 25 95 44 54 66 23 82 62 49 93 42 45 64 47 80 56 96 41 13 63 81 61 74 85 91 100 78 4 39
result:
ok
Test #100:
score: 0
Accepted
time: 0ms
memory: 3864kb
input:
100 10 0010000000000000000000000000000000000000010000000000000001000000000000000000000000000000000000000000 0000000000000000000000000000000010000000000000000000000000000000000000000001000000000000000000000000 1000000000000000000000000000000000000000000000000000000000000000000000010000000000000100000...
output:
1 72 16 27 5 15 6 26 34 50 25 37 54 53 22 32 13 2 7 38 4 89 45 58 19 40 23 57 81 74 80 65 87 98 86 93 48 8 79 46 62 66 91 97 100 28 71 12 64 96 63 70 99 94 69 47 14 61 95 35 52 67 20 30 56 84 85 88 43 21 73 49 24 68 77 82 18 29 33 44 76 60 90 10 83 17 36 51 92 41 78 9 75 11 59 31 55 39 3 42
result:
ok
Test #101:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
100 3 0010000000000000000000000000000000000000000000000000000000000000000000100000000000001000000000000000 0000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 3 18 79 25 6 8 40 30 61 2 5 58 77 45 62 29 31 13 75 19 24 53 82 48 70 97 52 98 27 35 20 49 89 32 43 96 33 47 50 69 74 56 12 80 14 60 11 51 17 66 88 21 73 72 36 55 54 16 83 99 42 68 87 44 39 4 57 23 41 93 64 9 34 100 76 7 81 94 38 22 63 46 28 67 95 92 59 65 90 15 10 78 86 84 91 71 37 26 85
result:
ok
Test #102:
score: 0
Accepted
time: 0ms
memory: 3840kb
input:
100 76 0000000000100000000000010001000000000000000000000000000000000000000000001000000000000000000000000000 0000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000100000000000000000000000000000000000000000000000000000010011000...
output:
1 32 41 9 22 3 4 36 6 21 78 7 15 35 16 57 61 94 25 8 45 26 87 68 54 42 93 14 55 53 56 50 73 59 52 43 23 30 58 77 99 97 47 70 39 2 86 91 72 40 34 27 88 92 96 75 76 83 100 98 66 89 95 67 31 20 63 38 65 69 71 85 90 79 82 49 48 13 24 19 12 64 60 74 10 17 46 80 51 62 81 33 37 5 84 29 28 18 44 11
result:
ok
Test #103:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
100 3 0000000000100000000000000000000000000000100000000000000000000000000000000000000000000000000000000000 0000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000...
output:
1 11 65 17 68 8 13 57 51 16 98 14 42 87 23 40 29 66 71 15 53 3 97 43 62 77 86 94 81 7 59 37 49 80 22 88 36 28 91 54 78 95 99 76 79 32 34 48 38 52 27 63 64 47 92 10 19 6 9 46 2 30 73 39 31 55 67 24 89 20 58 5 26 18 45 33 25 61 44 21 100 85 35 60 69 93 83 96 75 12 82 4 72 90 74 50 70 56 84 41
result:
ok
Test #104:
score: 0
Accepted
time: 0ms
memory: 3800kb
input:
100 13 0000000000000000000000000000000000000000000000000000000000000000000000001100000000000000000000000000 0000000010000000000000000000000000000000001000000000000000000000000000000000000001000000000000001000 0000000000000000000001000000000000000000000000000100000000000000000000000000000000000000000...
output:
1 47 6 12 28 43 9 35 46 11 44 26 82 56 19 3 55 89 29 4 15 86 85 42 69 53 30 83 84 67 18 31 76 70 81 39 41 27 51 92 62 79 36 37 38 66 24 91 16 54 59 97 98 99 88 52 57 61 63 64 58 90 75 74 87 40 71 68 77 96 93 20 95 32 80 14 25 100 94 17 7 22 50 10 49 72 48 65 78 5 33 21 60 34 2 13 8 45 23 73
result:
ok
Test #105:
score: 0
Accepted
time: 0ms
memory: 3928kb
input:
100 3 0000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000 0000000000001000000000000000000000001000000000000000000000000000000000000000000000000000000000000000 00000000000000000000000000000000101000000000000000101000000000000000000000001001001000000000...
output:
1 4 48 28 92 14 46 60 79 43 55 26 50 31 91 9 90 95 2 75 82 6 44 84 30 67 37 85 3 54 47 33 5 51 94 53 77 36 89 80 23 42 86 83 18 16 56 73 35 97 98 11 21 63 65 25 70 45 8 68 100 71 69 81 13 57 10 52 39 49 66 74 7 15 27 17 12 20 19 96 34 93 29 40 99 32 72 62 59 76 64 87 61 78 58 38 24 88 22 41
result:
ok
Test #106:
score: 0
Accepted
time: 0ms
memory: 3804kb
input:
100 48 0000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000010000 0000000000000000000000000000000000000000000000000010000000000001000000100000000000000000010000010000 0000000000000100000000000000000000000000000000000010000000011000000000000000000010000000000...
output:
1 23 3 2 48 18 9 21 24 30 78 31 12 5 19 8 13 46 34 29 42 4 40 83 100 82 85 17 52 89 73 56 38 37 68 50 71 92 61 77 95 54 98 55 93 99 10 75 94 22 67 70 96 72 57 90 76 84 80 69 79 33 45 58 28 66 74 63 60 39 41 62 59 81 88 20 32 53 91 43 11 44 87 15 26 6 35 86 7 25 27 49 36 16 47 64 97 51 14 65
result:
ok
Test #107:
score: 0
Accepted
time: 0ms
memory: 3872kb
input:
100 3 0000000000000000001000000000000000000000000010000000000000000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000001000000000000000010100000000000000000000001000 00000000000000000000000000000000000000000000000000000000000000100000000000000100000000000100...
output:
1 6 34 36 56 16 33 85 44 71 77 13 73 94 76 51 5 14 81 61 80 98 23 24 53 58 20 22 69 92 82 100 11 8 42 43 67 70 40 83 30 9 46 65 47 72 55 74 10 48 3 78 90 57 64 91 60 63 89 37 32 52 96 68 35 18 4 87 75 15 38 50 27 28 88 99 49 59 25 41 29 39 93 86 95 12 79 62 97 2 7 31 17 21 26 66 84 54 19 45
result:
ok
Test #108:
score: 0
Accepted
time: 0ms
memory: 3856kb
input:
100 35 0010000000001000000000000010000001000010000000000000000000000000100000000000000000000010000000010000 0000000000000000000000100000000000000000000000000000000000000000100000000000000000000001000001000000 1000000000000000000000000001000000000000000000000010010000110000000000100000000000000000100...
output:
1 28 11 69 19 9 14 4 36 8 48 21 7 20 55 32 61 58 34 66 72 10 77 16 2 47 65 18 13 84 85 89 67 43 83 79 51 29 76 37 41 92 62 56 49 50 73 75 86 97 70 40 44 60 93 74 52 80 68 53 100 82 57 45 96 98 12 59 90 71 91 94 95 42 64 25 87 88 23 24 38 31 30 26 46 27 78 17 5 22 33 35 99 63 81 6 54 15 39 3
result:
ok
Test #109:
score: 0
Accepted
time: 1ms
memory: 3996kb
input:
200 3 00000000000000000000000000000000000000000000000000000000000001000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 151 62 32 152 36 60 19 73 97 29 50 90 24 68 34 27 74 40 49 187 99 33 65 13 77 80 58 20 76 130 115 172 155 135 79 159 144 6 12 132 54 11 69 98 142 118 46 26 37 176 192 86 3 95 113 143 139 63 5 105 15 43 66 138 42 178 129 149 171 44 55 119 197 189 169 103 117 161 136 91 109 174 134 121 2 14 10 48 67...
result:
ok
Test #110:
score: 0
Accepted
time: 0ms
memory: 3976kb
input:
200 159 00000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000001000000000000000000000000001000000000000000000000000000000000000000000000 0000000100000000000000000001100000000000000000000000000000001000000000000000000000000000000...
output:
1 99 8 28 84 9 87 97 95 12 62 17 41 134 112 186 53 101 171 94 6 91 132 29 106 118 4 144 45 40 19 76 59 60 64 102 89 119 22 42 81 34 46 141 83 66 79 125 55 110 126 43 92 109 165 168 96 39 32 178 61 68 170 72 14 120 133 75 121 127 48 184 57 10 149 154 176 177 77 151 183 116 123 200 175 190 189 49 140 ...
result:
ok
Test #111:
score: 0
Accepted
time: 1ms
memory: 4056kb
input:
200 3 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000 000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 106 156 33 102 139 167 25 39 63 164 190 98 130 46 49 3 4 91 101 15 132 178 6 12 96 115 169 109 171 58 196 74 36 159 79 116 179 52 186 185 105 181 194 45 5 68 136 65 140 81 123 135 32 112 118 85 100 137 104 18 34 70 9 95 99 197 176 170 87 111 177 60 21 28 64 75 30 160 89 76 120 77 66 182 154 72 24 ...
result:
ok
Test #112:
score: 0
Accepted
time: 1ms
memory: 4120kb
input:
200 160 00000000000000000000000100000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000010000000000010000000000100000000000000000000000000000000000000000000 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100...
output:
1 11 29 20 23 128 160 81 30 161 83 18 3 10 171 93 9 22 98 139 34 4 59 65 94 26 61 131 110 40 88 17 66 106 118 89 16 8 112 44 140 192 199 37 124 50 27 77 28 19 99 87 79 107 116 21 120 71 75 144 111 5 180 60 97 185 78 136 47 149 69 51 159 57 46 177 121 58 146 113 130 126 105 82 67 138 14 169 184 133 4...
result:
ok
Test #113:
score: 0
Accepted
time: 1ms
memory: 4052kb
input:
200 3 00000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000010100000000000000000000000000100000000000000000000000000000000 000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000...
output:
1 107 158 114 68 151 200 117 52 152 50 78 175 12 25 126 130 66 55 143 83 26 148 118 97 119 64 7 137 46 197 82 186 88 24 159 90 133 155 4 23 38 164 150 104 165 57 190 172 35 70 93 8 34 65 71 15 67 121 109 147 191 181 163 3 30 124 42 122 6 110 123 13 29 32 58 22 73 56 84 45 116 127 79 28 140 177 131 1...
result:
ok
Test #114:
score: 0
Accepted
time: 1ms
memory: 4056kb
input:
200 117 00000000000000000000000000000001000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000100000000000001000000000000000000000000000000000000000000 0000000000001000000000000000000000000000000000000000000000000000000000000000000001000000000...
output:
1 40 117 33 139 22 35 38 51 50 7 10 18 100 69 43 9 11 4 87 144 16 114 70 91 8 107 73 20 178 13 82 25 39 130 131 151 147 76 83 123 127 66 109 95 118 174 122 31 60 59 78 53 36 30 41 15 137 27 184 140 190 19 61 179 99 102 155 195 197 23 185 94 112 77 93 162 103 194 156 65 186 88 153 45 74 133 80 128 11...
result:
ok
Test #115:
score: 0
Accepted
time: 0ms
memory: 4068kb
input:
200 3 00000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 53 107 148 24 82 97 40 48 200 157 186 63 120 96 116 102 195 143 56 122 26 139 187 51 30 71 17 103 39 67 93 61 75 113 192 160 130 100 154 190 109 135 31 124 136 178 117 171 72 38 23 152 37 6 54 191 20 128 55 88 123 140 9 164 15 101 142 163 52 78 86 165 87 196 179 145 21 125 4 121 59 156 161 60 182 ...
result:
ok
Test #116:
score: 0
Accepted
time: 1ms
memory: 4116kb
input:
200 9 00000000010000000000000000000000000100000000000000001000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 165 65 5 7 2 78 3 57 70 143 37 96 92 22 64 137 104 28 63 9 18 45 126 101 113 47 185 95 115 86 135 23 187 147 90 97 41 75 176 193 14 94 48 60 46 31 89 67 83 145 100 196 198 38 142 166 87 175 49 62 80 151 77 136 59 182 66 93 61 195 81 161 141 164 114 171 156 119 133 129 138 43 163 122 157 200 116 18...
result:
ok
Test #117:
score: 0
Accepted
time: 1ms
memory: 4064kb
input:
200 3 00000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 26 70 22 117 108 178 73 14 32 27 64 115 7 99 130 28 34 29 3 65 80 165 174 55 57 86 167 124 175 148 180 140 162 6 188 191 160 168 137 79 126 170 83 49 153 53 23 5 15 50 54 132 125 189 192 200 198 106 76 77 142 149 133 60 90 96 69 128 112 19 17 72 97 158 164 118 136 21 8 66 18 68 42 48 75 74 41 190 ...
result:
ok
Test #118:
score: 0
Accepted
time: 1ms
memory: 4000kb
input:
200 78 00000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 00000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 20 17 44 18 81 55 33 8 10 23 58 110 47 100 19 62 5 16 49 84 101 39 68 72 159 53 107 70 102 43 137 86 104 52 9 45 42 117 31 113 96 103 109 11 132 119 15 129 154 164 193 60 158 187 13 63 120 148 133 76 32 136 95 178 124 195 48 153 99 40 25 181 176 167 74 94 122 139 188 194 156 160 24 155 140 180 112...
result:
ok
Test #119:
score: 0
Accepted
time: 3ms
memory: 4668kb
input:
500 3 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 18 103 65 112 429 73 234 394 357 259 124 407 248 141 196 19 104 293 195 173 312 40 37 430 150 16 189 369 443 449 172 395 411 33 99 406 327 147 188 214 422 459 336 315 397 286 255 447 105 384 158 496 334 175 385 341 499 457 331 500 20 53 43 364 240 343 69 278 47 140 220 56 98 436 12 13 46 139 472 2...
result:
ok
Test #120:
score: 0
Accepted
time: 0ms
memory: 4728kb
input:
500 229 0000000000000000000000000010000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 12 100 39 254 81 28 9 317 161 37 141 186 101 14 201 44 189 63 478 319 299 90 93 74 55 222 282 106 86 103 371 218 147 3 202 36 34 48 275 92 113 173 137 206 311 179 8 121 408 305 290 124 158 77 30 10 84 60 127 119 139 151 54 17 22 480 58 145 334 25 335 421 277 248 73 144 274 31 313 42 288 160 122 48...
result:
ok
Test #121:
score: 0
Accepted
time: 0ms
memory: 4580kb
input:
500 3 000000000001000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 130 248 420 120 444 158 485 215 410 285 491 81 352 11 272 445 131 240 252 301 325 484 299 29 236 46 104 375 30 422 315 344 250 287 329 242 471 495 469 5 343 336 415 203 260 254 49 247 411 388 369 474 150 170 53 246 199 20 185 218 86 94 204 297 384 473 458 75 129 159 25 17 371 198 389 361 475 9 232...
result:
ok
Test #122:
score: 0
Accepted
time: 0ms
memory: 4724kb
input:
500 477 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 37 106 26 43 135 238 103 60 281 88 257 58 160 116 54 75 184 9 154 117 128 248 139 68 18 203 126 36 3 199 208 6 64 256 65 297 180 437 216 78 102 133 90 104 59 51 143 46 250 20 19 28 130 13 480 42 57 461 375 96 142 76 144 271 300 270 146 241 67 95 170 163 231 41 260 214 272 280 101 22 92 44 253 121 ...
result:
ok
Test #123:
score: 0
Accepted
time: 3ms
memory: 4632kb
input:
500 3 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000000000000000000000000000000000...
output:
1 102 357 443 149 34 134 254 359 489 283 155 248 360 2 409 42 43 63 170 161 332 375 107 32 110 128 125 119 140 153 326 406 197 172 428 203 303 21 96 30 10 314 276 369 56 75 335 401 347 73 92 106 28 86 45 20 439 477 382 286 386 333 468 412 500 410 495 280 126 8 309 288 158 120 189 82 64 136 295 57 22...
result:
ok
Test #124:
score: 0
Accepted
time: 3ms
memory: 4600kb
input:
500 334 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000...
output:
1 40 274 55 56 52 35 64 140 5 97 114 165 9 240 102 356 3 111 237 174 53 17 22 266 257 50 13 89 146 124 11 48 207 85 43 160 95 350 291 87 333 104 99 169 26 180 107 67 304 320 20 73 310 49 262 34 15 171 276 224 236 177 289 147 312 63 303 468 25 400 46 260 115 101 358 384 433 94 279 199 406 105 152 198...
result:
ok
Test #125:
score: 0
Accepted
time: 0ms
memory: 4712kb
input:
500 3 000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000100000000000000...
output:
1 61 301 34 194 88 18 223 6 281 290 253 248 377 458 336 493 347 40 90 174 15 334 20 497 434 159 148 373 461 96 452 279 28 473 380 283 12 211 109 125 448 474 360 409 190 499 70 64 92 345 487 393 240 99 331 488 447 466 68 498 145 102 29 107 320 86 176 321 25 351 302 104 95 418 317 202 207 185 456 362 ...
result:
ok
Test #126:
score: 0
Accepted
time: 3ms
memory: 4720kb
input:
500 85 00000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 65 21 32 74 147 102 224 291 251 78 355 121 56 248 3 247 41 348 123 27 103 301 278 127 227 128 85 132 166 412 194 134 205 17 83 284 52 230 182 50 281 108 73 99 191 114 9 80 87 107 40 144 250 360 6 180 484 68 160 44 324 60 427 101 282 105 88 330 70 42 225 135 94 183 118 479 16 196 12 177 297 487 495...
result:
ok
Test #127:
score: 0
Accepted
time: 3ms
memory: 4652kb
input:
500 3 000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 206 36 327 217 112 194 233 440 98 338 73 358 26 451 381 453 136 126 173 221 263 53 305 398 379 11 303 493 249 255 149 60 218 141 84 179 170 433 81 189 495 478 62 457 2 63 148 70 442 447 164 342 281 285 85 7 308 17 166 41 459 156 228 474 328 405 13 204 154 77 292 482 437 499 322 253 169 55 380 114 ...
result:
ok
Test #128:
score: 0
Accepted
time: 3ms
memory: 4660kb
input:
500 461 0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000010000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...
output:
1 88 81 45 32 4 64 117 325 58 84 218 62 75 126 47 297 115 211 355 83 90 299 349 57 98 267 321 28 152 91 219 17 87 106 107 38 246 353 24 139 230 173 49 113 22 23 400 185 499 322 226 421 374 85 9 123 10 170 315 178 71 182 255 63 61 5 318 303 207 336 27 298 21 232 65 99 30 220 148 3 411 60 40 418 373 1...
result:
ok
Extra Test:
score: 0
Extra Test Passed