QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#405809 | #4250. Mars | stegatxins0 | 14 | 15ms | 4048kb | C++17 | 2.1kb | 2024-05-06 13:48:09 | 2024-05-06 13:48:09 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
#include "mars.h"
const int dy[4] = {-1,0,1,0};
const int dx[4] = {0,1,0,-1};
void dfs(vector<vector<bool>>& grid, vector<vector<bool>>& visited, int i, int j, int n, int m){
visited[i][j] = 1;
for(int k=0; k<4; k++){
int newi=i+dy[k], newj=j+dx[k];
if(newi >= 0 && newj >= 0 && newi <n && newj <m && !visited[newi][newj] && grid[newi][newj]){
dfs(grid, visited, newi, newj, n, m);
}
}
}
// subtask 2 - string to store the state of island, last bit to represent visited
// last phase process and return binary
std::string process(std::vector <std::vector<std::string>> a, int I, int J, int K, int n)
{
string ans(100,'0');
for(int i=0; i<3; i++){
for(int j=0; j<3; j++){
if(a[i][j][99] == '1'){
// visited before
for(int k=0; k<100; k++){
ans[k] |= a[i][j][k];
}
} else{
// not visited
ans[(I+i)*(2*n+1)+(J+j)] |= a[i][j][0];
// cerr << i << " " << j << " " << " " << i*(2*n+1)+j << " " << a[i][j][0] << endl;
}
}
}
ans[99] = '1';
if(K != n-1)return ans;
vector<vector<bool>> grid(2*n+1, vector<bool>(2*n+1));
vector<vector<bool>> visited(2*n+1, vector<bool>(2*n+1));
int cnt = 0;
for(int i=0; i<(2*n+1); i++){
for(int j=0; j<(2*n+1); j++){
grid[i][j] = (ans[i*(2*n+1)+j]=='1');
}
}
for(int i=0; i<(2*n+1); i++){
for(int j=0; j<(2*n+1); j++){
if(grid[i][j] && !visited[i][j]){
cnt++;
dfs(grid,visited,i,j,2*n+1,2*n+1);
}
}
}
string fans(100,'0');
for(int i=0; i<=log2(cnt); i++){
if((cnt >> i)&1){
fans[i] = '1';
}
}
// cerr << cnt << " "<< fans;
return fans;
}
/*
for each string, if visited - then set the res i-j to it
set to visited
return
string storing
0 indexed
i j = i*(2n+1) + j
*/
详细
Subtask #1:
score: 6
Accepted
Test #1:
score: 6
Accepted
time: 7ms
memory: 4028kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 2 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000001001010000100000000000000000000000000000000000000000000000000000000000000000000000000000001 0110010000011000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 f18fba32-f6de-4dd0-ef1b-ea027937a4aa 010000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 5 934 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011000010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001001010010100000000000000000000000000000000000000000000000000000000000000000000000000000001 1110010000101000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 935 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0010000001001010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0011100001001010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1100000000000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 933 391 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011001010001100000000000000000000000000000000000000000000000000000000000000000000000000001 0000010100111001010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000101001000011100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 3 935 391 626 427 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000011000010000110000000000000000000000000000000000000000000000000000000000000000000000000001 0100000000000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 5 935 391 626 427 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0000000000111001010000100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001000010100110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 4 935 391 626 427 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 1100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000 0111000100011000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0110000000011000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 5 935 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0111000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000010000011001010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010000100111000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #2:
score: 6
Accepted
time: 7ms
memory: 4040kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 7 933 391 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000111001110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0011100111000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011100010001100000000000000000000000000000000000000000000000000000000000000000000000000001 0101001010000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 14 933 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001110011100111000000000000000000000000000000000000000000000000000000000000000000000000001 0011100111001110000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1110011100000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 15 934 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000011100110001110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000011100111000000000000000000000000000000000000000000000000000000000000000000000000001 0111000110011100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 10 933 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000010000111001110000000000000000000000000000000000000000000000000000000000000000000000000001 1110011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000011100000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001010000000101000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000001110000000111000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000011100111001010000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 17 933 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011100110001110000000000000000000000000000000000000000000000000000000000000000000000000001 0000001110011100110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000001110000000101000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000001 0011100111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1110010100111000000000000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #3:
score: 6
Accepted
time: 7ms
memory: 3956kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 7 933 391 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001000100011000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000101001000001000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000111000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000010001100001100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001100000000110000000000000000000000000000000000000000000000000000000000000000000000000001 0111000000011100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 14 933 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001010011000011000000000000000000000000000000000000000000000000000000000000000000000000001 0010100011001100000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1010010100101000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 15 934 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000011100000001110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000011100000000000000000000000000000000000000000000000000000000000000000000000000000001 0110001010001100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 10 933 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000000000001 1100010000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001100001100010000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011100000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000010001100101000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000011000011001010000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 17 933 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001100110001010000000000000000000000000000000000000000000000000000000000000000000000000001 0000001110001000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000100001000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000111000000011100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001100010001100000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0110011000101000000000000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #4:
score: 6
Accepted
time: 7ms
memory: 4028kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 7 933 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000111001010011000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000101001000001000000000000000000000000000000000000000000000000000000000000000000000000000001 0010000011001010000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000001001010011000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000100000000010000000000000000000000000000000000000000000000000000000000000000000000000001 0000001000010100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 14 933 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001010001100110000000000000000000000000000000000000000000000000000000000000000000000000001 0001000010001110000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0010011100010000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 15 934 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000011000011001010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010010100110000000000000000000000000000000000000000000000000000000000000000000000000001 0101001010001100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 10 933 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011000010001110000000000000000000000000000000000000000000000000000000000000000000000000001 1110000000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010011000011000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001000010100010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011000011000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000010100101001100000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 17 933 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001100111001100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000100001000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000001100010100101000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000011001010010100000000000000000000000000000000000000000000000000000000000000000000000000000001 0011100001001010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1100011000001000000000000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #5:
score: 6
Accepted
time: 7ms
memory: 3964kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 7 933 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000101000010011100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000101001000010100000000000000000000000000000000000000000000000000000000000000000000000000001 0010100001001010000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000001001010010100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011000000000110000000000000000000000000000000000000000000000000000000000000000000000000001 0001001110000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 14 933 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001100001100101000000000000000000000000000000000000000000000000000000000000000000000000001 0001100010000010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 1110010000101000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 15 934 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000010000111000010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010010100111000000000000000000000000000000000000000000000000000000000000000000000000001 0101001010000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 10 933 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011000010001110000000000000000000000000000000000000000000000000000000000000000000000000001 0000010000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010010100110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001000010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011001000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 17 933 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000110000100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001100010000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000001001010010100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000100001001010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0100011000000000000000000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #6:
score: 6
Accepted
time: 8ms
memory: 3844kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 7 933 391 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000101001010010100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000010000100001000000000000000000000000000000000000000000000000000000000000000000000000000001 0010100010001010000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000101001010010100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001000010000110000000000000000000000000000000000000000000000000000000000000000000000000001 0101001010000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 14 933 389 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001000010000100000000000000000000000000000000000000000000000000000000000000000000000000001 0001100011000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0100010100010000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 15 934 391 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001000101000100000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010001000101000000000000000000000000000000000000000000000000000000000000000000000000001 0001001010010000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 10 933 390 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000001000101000100000000000000000000000000000000000000000000000000000000000000000000000000001 1010010100101000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000001010010100101000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 0110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001010000000100000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000100001000010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011000110000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 17 933 390 626 424 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000010000011000110000000000000000000000000000000000000000000000000000000000000000000000000001 0000001010010100101000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000100010100010000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 9 934 389 626 424 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 1110111001011000110000110000011011100110001...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000010001010001000000000000000000000000000000000000000000000000000000000000000000000000000000001 0010100101001010000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000011000110000000000000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Subtask #2:
score: 8
Accepted
Test #7:
score: 8
Accepted
time: 8ms
memory: 3952kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 33 935 391 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0110000001010000001100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001000001110000110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0001110000000100000001110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 28 932 387 626 425 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000101000000000000100000000000000000000000000000000000000000000000000000000001 0110000001010000001100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001110000000100000001110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 46 935 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000011100000001000000010100000000000000000000000000000000000000000000000000000000000000000000000001 1100000001000000100000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001100000110000101000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 935 389 626 425 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011000000110000001000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000001110000001000000100000000000000000000000000000000000000000000000000000000000000001 0000000001000000011000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 30 932 388 626 425 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000010000100000010000000000000000000000000000000000000000000000000000000000001 0111000000100001000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000001000011100000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 30 935 387 626 425 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000011000011000001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0010000001100001010000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000001000000010000011000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 43 935 390 626 425 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000001000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000101000011100001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0110000001000000100000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 34 935 389 626 425 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0010100001110000110000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000010100000000000011000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000100000001110000000100000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #8:
score: 8
Accepted
time: 12ms
memory: 4020kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000011000000010000000001000000000000000000000000000000000000000000000001 1110000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001100000000000000001100000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001110000001110000001110000000000000000000000000000000000000000000000000000000000000000000000001 0000000001000000001010000001010000000000000000000000000000000000000000000000000000000000000000000001 0011000000011000000011000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000011000000011000000001000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000001100000000100000011100000000000000000000000000000000000000000000000001 0001110000000000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000111000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0001110000001110000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0100000000010000000101000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000011100000010000000000000000000000000000000000000000000000000000000000000000000001 0000111000000101000000110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001100000001100000001100000000000000000000000000000000000000000000000000000000000001 1010000001010000001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0001100000001100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000011000000001000000010000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000001100000001000000000000000000000000000000000000000000000000000000000001 0111000000000000000011000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001110000001010000001000000000000000000000000000000000000000000000000000000000000001 0000000000010100000001100000010000000000000000000000000000000000000000000000000000000000000000000001 0111000000000000000011000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #9:
score: 8
Accepted
time: 13ms
memory: 4048kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000011000000011000000011000000000000000000000000000000000000000000000001 1100000000110000001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000000100000001010000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001110000000000000001110000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000001010000001010000000000000000000000000000000000000000000000000000000000000000000001 0000000000111000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000111000000000000000111000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000011100000000000000011100000000000000000000000000000000000000000000000001 0001000000001100000001100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011000000011100000011100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000101000000100000000000000000000000000000000000000000000000000000000000000000000000000001 0001100000000110000001010000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0111000000111000000111000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011000000011100000001100000000000000000000000000000000000000000000000000000000000000000001 0000111000000111000000111000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001010000000110000001100000000000000000000000000000000000000000000000000000000000001 0000000001110000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000010000000100000000100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000000000000010100000000000000000000000000000000000000000000000000000001 0000000000000000000011100000011100000011100000000000000000000000000000000000000000000000000000000001 0000000000011000000011000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000000001010000000000000000000000000000000000000000000000000000000000001 0000000000011100000011100000011100000000000000000000000000000000000000000000000000000000000000000001 0000000000111000000111000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #10:
score: 8
Accepted
time: 15ms
memory: 3820kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000000000000010000000000100000000000000000000000000000000000000000000001 0110000000100000001110000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000100000000100000001110000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001010000001110000001000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000110000001000000000010000000000000000000000000000000000000000000000000000000000000000000001 0001000000111000000101000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000111000000101000000100000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000000100000011100000000000000000000000000000000000000000000000000000000001 0000000000001010000001110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0010000000011000000011100000000000000000000000000000000000000000000000000000000000000000000000000001 0000001000000010000000111000000000000000000000000000000000000000000000000000000000000000000000000001 0001000000000100000001010000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011000000010000000010000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000011100000010000000000000000000000000000000000000000000000000000000000000000000001 0000111000000000000000111000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001000000001010000001100000000000000000000000000000000000000000000000000000000000001 1000000001110000000100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001010000000110000001100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000001100000000000000011100000000000000000000000000000000000000000000000000000001 0000000000000000000011100000011000000010000000000000000000000000000000000000000000000000000000000001 0000000000110000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000110000000110000001100000000000000000000000000000000000000000000000000000000000001 0000000000010000000010100000010100000000000000000000000000000000000000000000000000000000000000000001 0111000000000000000011000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #11:
score: 8
Accepted
time: 11ms
memory: 4020kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000011000000001000000011000000000000000000000000000000000000000000000001 1100000000010000000010000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000100000000110000001000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001000000000110000000010000000000000000000000000000000000000000000000000000000000000000000000001 0000000001000000001100000000110000000000000000000000000000000000000000000000000000000000000000000001 0000000000111000000100000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000111000000100000000101000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000001000000010100000010100000000000000000000000000000000000000000000000001 0001110000000000000000110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011100000010000000010100000000000000000000000000000000000000000000000000000000000000000000000000001 0000111000000000000000111000000000000000000000000000000000000000000000000000000000000000000000000001 0001000000001000000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0110000000101000000001000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000011000000010100000001100000000000000000000000000000000000000000000000000000000000000000001 0000110000000100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000010000000010000001100000000000000000000000000000000000000000000000000000000000001 1000000000110000000100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001010000001010000001010000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000010000000001100000010100000000000000000000000000000000000000000000000000000001 0000000000000000000010100000011100000000100000000000000000000000000000000000000000000000000000000001 0110000000001000000101000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000110000001000000000100000000000000000000000000000000000000000000000000000000000001 0000000000001100000001000000010000000000000000000000000000000000000000000000000000000000000000000001 0110000000011000000110000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #12:
score: 8
Accepted
time: 11ms
memory: 4036kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000000000000011000000001000000000000000000000000000000000000000000000001 0100000001010000000100000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000001010000001000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001000000001000000000110000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000001110000001000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000110000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000110000000110000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000010100000000000000011000000000000000000000000000000000000000000000000001 0001100000000100000001110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0011100000000100000011100000000000000000000000000000000000000000000000000000000000000000000000000001 0000101000000101000000111000000000000000000000000000000000000000000000000000000000000000000000000001 0001000000000100000001000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0110000000001000000001000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000010000000011100000000000000000000000000000000000000000000000000000000000000000000000000001 0000110000000100000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001110000000010000001010000000000000000000000000000000000000000000000000000000000001 0000000000000000000110000000000000000000000000000000000000000000000000000000000000000000000000000001 0001100000000000000000110000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000100000001000000001100000000000000000000000000000000000000000000000000000001 0000000000000000000011100000010000000010100000000000000000000000000000000000000000000000000000000001 0010000000010000000111000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001010000001000000001010000000000000000000000000000000000000000000000000000000000001 0000000000001100000001000000001000000000000000000000000000000000000000000000000000000000000000000001 0011000000010000000111000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Test #13:
score: 8
Accepted
time: 8ms
memory: 3952kb
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 65 932 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000000000000000000000011000000011000000000000000000000000000000000000000000000001 1110000001010000001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000000100000001010000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 45 935 385 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000001010000001010000001010000000000000000000000000000000000000000000000000000000000000000000000001 0000000001010000001010000000000000000000000000000000000000000000000000000000000000000000000000000001 0101000000101000000101000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 69 934 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000101000000101000000101000000000000000000000000000000000000000000000000000000000000000000001 0000000000000000000000000000001000000001000000001000000000000000000000000000000000000000000000000001 0000110000000010000000100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 70 935 389 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0010100000000000000010100000000000000000000000000000000000000000000000000000000000000000000000000001 0000110000000011000000101000000000000000000000000000000000000000000000000000000000000000000000000001 0000110000000100000000100000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 59 935 390 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0101000000101000000000000000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000010000000010100000000000000000000000000000000000000000000000000000000000000000000000000001 0000000000000001000000000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 60 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001110000000000000001110000000000000000000000000000000000000000000000000000000000001 0100000000100000000100000000000000000000000000000000000000000000000000000000000000000000000000000001 0001010000000100000001010000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 68 933 386 626 430 1010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 111011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000000000001000000010100000001000000000000000000000000000000000000000000000000000000001 0000000000000000000010100000000000000000100000000000000000000000000000000000000000000000000000000001 0110000000010000000010000000000000000000000000000000000000000...
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 54 933 391 626 430 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 1101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 011011100101100011000011000001101110011000...
output:
f18fba32-f6de-4dd0-ef1b-ea027937a4aa 0000000000000000001010000000100000001010000000000000000000000000000000000000000000000000000000000001 0000000000001000000000000000001000000000000000000000000000000000000000000000000000000000000000000001 0110000000110000000110000000000000000000000000000000000000000...
result:
ok 1 number(s): "1"
Subtask #3:
score: 0
Instance #0 Runtime Error
Test #14:
score: 0
Instance #0 Runtime Error
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 111 934 389 626 431 0010111000011100001101110100011101000000010110011011101010001010000001011000010011000001111011111111 0101011000101100110110100011110010000010000100001010001110101111010000100001110000001110110011001010 11101110010110001100001100000110111001100...
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
input:
224bb858-b13b-5e97-cbba-4a10b0455e79 -1
output:
result:
Subtask #4:
score: 0
Skipped
Subtask #5:
score: 0
Skipped
Subtask #6:
score: 0
Skipped
Subtask #7:
score: 0
Skipped
Subtask #8:
score: 0
Skipped
Subtask #9:
score: 0
Skipped
Subtask #10:
score: 0
Skipped