QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#131711#2674. Vision programsomethingnew#52 67ms55264kbC++207.9kb2023-07-27 22:08:012024-07-04 01:00:26

Judging History

你现在查看的是最新测评结果

  • [2024-07-04 01:00:26]
  • 评测
  • 测评结果:52
  • 用时:67ms
  • 内存:55264kb
  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2023-07-27 22:08:01]
  • 提交

answer

//  ↘ ⬇ ⬇ ⬇ ⬇ ⬇ ↙
//  ➡ @roadfromroi ⬅
//  ↗ ⬆ ⬆ ⬆ ⬆ ⬆ ↖
#include <iostream>
#include "vector"
#include "algorithm"
#include "numeric"
#include "climits"
#include "iomanip"
#include "bitset"
#include "cmath"
#include "map"
#include "deque"
#include "array"
#include "set"
#include "vision.h"
#include "random"
#define all(x) x.begin(), x.end()
using namespace std;
vector<int> getka(int n, int m) {
    int res = 0;
    vector<int> capa(n + m + 1);
    for (int i = 0; i < n; ++i) {
        for (int j = 0; j < m; ++j) {
            vector<int> beb(n + m + 1);
            for (int i1 = i; i1 < n; ++i1) {
                for (int j1 = j+1; j1 < m; ++j1) {
                    if (beb[abs(i-i1) + abs(j-j1)] == 0) {
                        capa[abs(i - i1) + abs(j - j1)]++;
                        beb[abs(i-i1) + abs(j-j1)] = 1;
                    }
                }
            }
        }
    }
    return capa;
}
int cn1, cn2;
int my_and(vector<int> a) {
    cn2 += a.size();
    cn1 += 1;
    return add_and(a);
}
int my_or(vector<int> &a) {
    cn2 += a.size();
    cn1 += 1;
    return add_or(a);
}
mt19937 rnd;
vector<int> toans;
vector<vector<int>> druz;
void genshin(int H, int W, int prob, int beba = 0) {
    vector<int> op1, op2;
    vector<int> typp(H * W, 2);
    if (beba == 0) {
        for (int i = 0; i < H * W; ++i) {
            if (rnd() % prob == 0) {
                typp[i] = 1;
                op1.push_back(i);
            }
        }
    } else {
        typp[0] = 1;
        op1.push_back(0);
    }
    for (int i = 0; i < H * W; ++i) {
        if (typp[i] == 1) {
            for (auto j : druz[i]) {
                if (typp[j] == 2)
                    typp[j] = 0;
            }
        }
    }
    //if (typp[0] + typp[1] == 3)
    //    cout << "DA\n";
    for (int i = 0; i < H * W; ++i) {
        if (typp[i] == 2) {
            op2.push_back(i);
        }
    }
    if (op1.empty() or op2.empty())
        return;
    int x = my_or(op1);
    int y = my_or(op2);
    int res = my_and(vector<int>{x, y});
    toans.push_back(res);
}
void construct_network(int H, int W, int K) {
    druz.assign(H * W, {});
    for (int i = 0; i < H; ++i) {
        for (int j = 0; j < W; ++j) {
            for (int i1 = 0; i1 < H; ++i1) {
                int j1 = j - (K - abs(i-i1));
                if (0 <= j1 and j1 < W) {
                    if (abs(i - i1) + abs(j - j1) == K) {
                        druz[i * W + j].push_back(i1 * W + j1);
                    }
                }
                j1 = j + (K - abs(i - i1));
                if (0 <= j1 and j1 < W) {
                    if (abs(i - i1) + abs(j - j1) == K) {
                        druz[i * W + j].push_back(i1 * W + j1);
                    }
                }
            }
        }
    }
    toans.clear();
    cn1 = 0;cn2 = 0;
    int ctry = 0;
    if (min(H, W) == 1 or max(H, W) <= 100) {
        while (cn2 + toans.size() < 960000 and cn1 < 9990 and ctry * H * W < 2e6) {
            genshin(H, W, K + 5);
            ctry++;
        }
    } else {
        genshin(H, W, K + 5, 1);
    }
    if (toans.empty()) {
        vector<int> t;
        for (int i = 0; i < H * W; ++i) {
            t.push_back(i);
        }
        int beba = my_or(t);
    } else {
        int beba = my_or(toans);
        beba = add_not(beba);
    }
    //cout << toans.size() << ' ' << cn1 << ' ' << cn2 << endl;
}
//#define LOCAL
#ifdef LOCAL

static const int MAX_INSTRUCTIONS = 10000;
static const int MAX_INPUTS = 1000000;

static const int _AND = 0;
static const int _OR = 1;
static const int _XOR = 2;
static const int _NOT = 3;

static inline bool increasing(int a, int b, int c) {
    return a <= b && b <= c;
}

[[noreturn]] static inline void error(string message) {
    printf("%s\n", message.c_str());
    exit(0);
}

class InstructionNetwork {

    struct Instruction {
        int type;
        vector<int> input_indexes;

        inline Instruction(int _type, const vector<int>& _input_indexes):
                type(_type), input_indexes(_input_indexes) {
        }

        inline int apply(int a, int b) const {
            switch (type) {
                case _AND:
                    return a & b;
                case _OR:
                    return a | b;
                case _XOR:
                    return a ^ b;
                default:
                    return 0;
            }
        }

        inline int compute(const vector<int>& memory_cells) const {
            int r = memory_cells[input_indexes[0]];
            if (type == _NOT)
                return 1 - r;
            for (int j = 1; j < (int)input_indexes.size(); j++)
                r = apply(r, memory_cells[input_indexes[j]]);
            return r;
        }
    };

    int input_size;
    int total_inputs;
    vector<Instruction> instructions;

public:

    inline void init(int _input_size) {
        this->input_size = _input_size;
        this->total_inputs = 0;
        this->instructions.clear();
    }

    inline int add_instruction(int type, const vector<int>& input_indexes) {
        if (input_indexes.size() == 0)
            error("Instruction with no inputs");

        if (instructions.size() + 1 > MAX_INSTRUCTIONS)
            error("Too many instructions");

        if (total_inputs + input_indexes.size() > MAX_INPUTS)
            error("Too many inputs");

        instructions.emplace_back(type, input_indexes);
        total_inputs += input_indexes.size();
        int new_index = input_size + (int)instructions.size() - 1;

        for (int input_index : input_indexes)
            if (!increasing(0, input_index, new_index-1))
                error("Invalid index");

        return new_index;
    }

    inline int compute(vector<int> &memory_cells) const {
        for (auto &instruction : instructions)
            memory_cells.push_back(instruction.compute(memory_cells));
        return memory_cells.back();
    }
};


static InstructionNetwork instructionNetwork;

int main() {
    int H, W, K;
    assert(3 == scanf("%d%d%d", &H, &W, &K));

    FILE *log_file = fopen("log.txt","w");

    instructionNetwork.init(H * W);
    construct_network(H, W, K);

    while (true) {
        int rowA, colA, rowB, colB;
        assert(1 == scanf("%d", &rowA));
        if (rowA == -1)
            break;
        assert(3 == scanf("%d%d%d", &colA, &rowB, &colB));

        if ((!increasing(0, rowA, H-1)) ||
            (!increasing(0, colA, W-1)) ||
            (!increasing(0, rowB, H-1)) ||
            (!increasing(0, colB, W-1)) ||
            (rowA == rowB && colA == colB)) {
            printf("-1\n");
            fprintf(log_file, "-1\n");
            fflush(stdout);
            fflush(log_file);
            continue;
        }

        vector<int> memory_cells;
        for (int row = 0; row < H; row++)
            for (int col = 0; col < W; col++) {
                bool active = (row == rowA && col == colA) || (row == rowB && col == colB);
                memory_cells.push_back(active ? 1 : 0);
            }
        int computation_result = instructionNetwork.compute(memory_cells);

        printf("%d\n", computation_result);
        fflush(stdout);

        for(int i = 0; i < (int)memory_cells.size(); i++)
            fprintf(log_file, (i ? " %d" : "%d"), memory_cells[i]);
        fprintf(log_file, "\n");
        fflush(log_file);
    }
    fclose(stdin);
}

int add_and(vector<int> Ns) {
    return instructionNetwork.add_instruction(_AND, Ns);
}

int add_or(vector<int> Ns) {
    return instructionNetwork.add_instruction(_OR, Ns);
}

int add_xor(vector<int> Ns) {
    return instructionNetwork.add_instruction(_XOR, Ns);
}

int add_not(int N) {
    vector<int> Ns = {N};
    return instructionNetwork.add_instruction(_NOT, Ns);
}
#endif

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 3ms
memory: 4192kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 2
1 1 0
0 2 3 4
1 1 0
1 1 2
0 2 6 7
1 1 0
1 1 2
0 2 9 10
1 1 0
1 1 2
0 2 12 13
1 1 0
1 1 2
0 2 15 16
1 1 2
1 1 0
0 2 18 19
1 1 0
1 1 2
0 2 21 22
1 1 2
1 1 0
0 2 24 25
1 1 2
1 1 0
0 2 27 28
1 1 2
1 1 0
0 2 30 31
1 1 0
1 1 2
0 2 33 34
1 1 2
1 1 0
0 2 36...

result:

ok 

Test #2:

score: 10
Accepted
time: 4ms
memory: 4184kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 2 0 2
0 2 3 4
1 1 2
1 1 1
0 2 6 7
1 1 1
1 2 0 2
0 2 9 10
1 1 0
1 1 1
0 2 12 13
1 1 1
1 2 0 2
0 2 15 16
1 1 1
1 2 0 2
0 2 18 19
1 1 0
1 1 1
0 2 21 22
1 1 1
1 2 0 2
0 2 24 25
1 1 2
1 1 1
0 2 27 28
1 1 1
1 2 0 2
0 2 30 31
1 1 1
1 2 0 2
0 2 33 34
1 1 ...

result:

ok 

Test #3:

score: 10
Accepted
time: 5ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 2
1 1 0
0 2 3 4
1 1 0
1 1 2
0 2 6 7
1 1 0
1 1 2
0 2 9 10
1 1 0
1 1 2
0 2 12 13
1 1 0
1 1 2
0 2 15 16
1 1 2
1 1 0
0 2 18 19
1 1 0
1 1 2
0 2 21 22
1 1 2
1 1 0
0 2 24 25
1 1 2
1 1 0
0 2 27 28
1 1 2
1 1 0
0 2 30 31
1 1 0
1 1 2
0 2 33 34
1 1 2
1 1 0
0 2 36...

result:

ok 

Test #4:

score: 10
Accepted
time: 4ms
memory: 4208kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 1 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 2 0 2
0 2 3 4
1 1 2
1 1 1
0 2 6 7
1 1 1
1 2 0 2
0 2 9 10
1 1 0
1 1 1
0 2 12 13
1 1 1
1 2 0 2
0 2 15 16
1 1 1
1 2 0 2
0 2 18 19
1 1 0
1 1 1
0 2 21 22
1 1 1
1 2 0 2
0 2 24 25
1 1 2
1 1 1
0 2 27 28
1 1 1
1 2 0 2
0 2 30 31
1 1 1
1 2 0 2
0 2 33 34
1 1 ...

result:

ok 

Test #5:

score: 10
Accepted
time: 0ms
memory: 4196kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 1 2
0 2 4 5
1 1 0
1 1 3
0 2 7 8
1 1 0
1 1 3
0 2 10 11
1 1 2
1 1 1
0 2 13 14
1 1 2
1 1 1
0 2 16 17
1 1 3
1 1 0
0 2 19 20
1 1 1
1 1 2
0 2 22 23
1 1 0
1 1 3
0 2 25 26
1 1 3
1 1 0
0 2 28 29
1 1 0
1 1 3
0 2 31 32
1 1 1
1 1 2
0 2 34 35
1 1 1
1 1 2
0 2 3...

result:

ok 

Test #6:

score: 10
Accepted
time: 4ms
memory: 4076kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 2 0 3
0 2 4 5
1 1 0
1 2 1 2
0 2 7 8
1 1 1
1 2 0 3
0 2 10 11
1 1 3
1 2 1 2
0 2 13 14
1 1 0
1 2 1 2
0 2 16 17
1 1 0
1 2 1 2
0 2 19 20
1 1 3
1 2 1 2
0 2 22 23
1 1 0
1 2 1 2
0 2 25 26
1 1 0
1 2 1 2
0 2 28 29
1 1 3
1 2 1 2
0 2 31 32
1 1 2
1 2 0 3
0 2 3...

result:

ok 

Test #7:

score: 10
Accepted
time: 0ms
memory: 4328kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 2 3 5
0 2 6 7
1 1 2
1 3 0 3 4
0 2 9 10
1 3 0 1 3
1 1 5
0 2 12 13
1 1 0
1 3 2 4 5
0 2 15 16
1 2 0 4
1 1 2
0 2 18 19
1 2 1 3
1 1 5
0 2 21 22
1 1 5
1 3 0 1 3
0 2 24 25
1 2 0 1
1 1 5
0 2 27 28
1 2 4 5
1 1 0
0 2 30 31
1 1 1
1 2 3 5
0 2 33 34
1 1 4
1 2 ...

result:

ok 

Test #8:

score: 10
Accepted
time: 4ms
memory: 4184kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 3 0 2 4
0 2 6 7
1 1 2
1 3 1 3 5
0 2 9 10
1 2 1 3
1 3 0 2 4
0 2 12 13
1 1 1
1 3 0 2 4
0 2 15 16
1 1 1
1 3 0 2 4
0 2 18 19
1 2 0 4
1 3 1 3 5
0 2 21 22
1 1 5
1 3 0 2 4
0 2 24 25
1 1 4
1 3 1 3 5
0 2 27 28
1 1 4
1 3 1 3 5
0 2 30 31
1 1 3
1 3 0 2 4
0 2 ...

result:

ok 

Test #9:

score: 10
Accepted
time: 4ms
memory: 4092kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 3
1 4 0 1 4 5
0 2 6 7
1 1 2
1 4 0 1 4 5
0 2 9 10
1 1 3
1 4 0 1 4 5
0 2 12 13
1 1 1
1 5 0 2 3 4 5
0 2 15 16
1 2 3 4
1 3 0 1 5
0 2 18 19
1 1 5
1 4 1 2 3 4
0 2 21 22
1 1 1
1 5 0 2 3 4 5
0 2 24 25
1 1 4
1 5 0 1 2 3 5
0 2 27 28
1 1 5
1 4 1 2 3 4
0 2 30 31
...

result:

ok 

Test #10:

score: 10
Accepted
time: 4ms
memory: 4120kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 3 2 4 5
0 2 6 7
1 1 2
1 2 1 5
0 2 9 10
1 3 0 1 3
1 1 4
0 2 12 13
1 1 0
1 3 3 4 5
0 2 15 16
1 2 0 4
1 1 3
0 2 18 19
1 3 3 4 5
1 1 0
0 2 21 22
1 2 1 3
1 1 4
0 2 24 25
1 1 5
1 3 0 1 2
0 2 27 28
1 2 0 1
1 2 4 5
0 2 30 31
1 2 4 5
1 2 0 1
0 2 33 34
1 1 ...

result:

ok 

Test #11:

score: 10
Accepted
time: 4ms
memory: 4200kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 3 0 3 4
0 2 6 7
1 1 2
1 3 0 3 4
0 2 9 10
1 1 1
1 3 0 3 4
0 2 12 13
1 1 1
1 3 0 3 4
0 2 15 16
1 2 0 4
1 3 1 2 5
0 2 18 19
1 1 5
1 3 0 3 4
0 2 21 22
1 1 4
1 3 1 2 5
0 2 24 25
1 1 4
1 3 1 2 5
0 2 27 28
1 1 3
1 3 1 2 5
0 2 30 31
1 1 2
1 3 0 3 4
0 2 33...

result:

ok 

Test #12:

score: 10
Accepted
time: 4ms
memory: 4196kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 2 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 3
1 5 0 1 2 4 5
0 2 6 7
1 1 2
1 5 0 1 3 4 5
0 2 9 10
1 1 3
1 5 0 1 2 4 5
0 2 12 13
1 1 1
1 4 0 2 3 5
0 2 15 16
1 2 3 4
1 3 0 2 5
0 2 18 19
1 1 5
1 4 1 2 3 4
0 2 21 22
1 1 1
1 4 0 2 3 5
0 2 24 25
1 1 4
1 4 0 2 3 5
0 2 27 28
1 1 5
1 4 1 2 3 4
0 2 30 31
...

result:

ok 

Test #13:

score: 10
Accepted
time: 0ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 1 8
1 2 3 6
0 2 9 10
1 3 3 4 6
1 2 2 8
0 2 12 13
1 1 6
1 6 0 1 2 4 5 8
0 2 15 16
1 2 3 7
1 3 1 2 5
0 2 18 19
1 2 0 8
1 3 2 4 6
0 2 21 22
1 2 0 1
1 4 5 6 7 8
0 2 24 25
1 3 1 2 4
1 2 6 8
0 2 27 28
1 1 7
1 5 0 1 2 3 5
0 2 30 31
1 3 5 7 8
1 3 0 1 3
0 2 33...

result:

ok 

Test #14:

score: 10
Accepted
time: 4ms
memory: 4136kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 1 8
1 1 0
0 2 9 10
1 2 4 6
1 4 1 3 5 7
0 2 12 13
1 1 7
1 5 0 2 4 6 8
0 2 15 16
1 1 4
1 4 1 3 5 7
0 2 18 19
1 2 0 4
1 4 1 3 5 7
0 2 21 22
1 2 2 7
1 1 6
0 2 24 25
1 1 1
1 5 0 2 4 6 8
0 2 27 28
1 2 3 8
1 1 0
0 2 30 31
1 2 3 5
1 5 0 2 4 6 8
0 2 33 34
1 2 ...

result:

ok 

Test #15:

score: 10
Accepted
time: 2ms
memory: 4128kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 6
1 6 0 2 3 4 7 8
0 2 9 10
1 1 8
1 6 0 2 4 5 6 7
0 2 12 13
1 2 3 7
1 4 1 4 5 6
0 2 15 16
1 2 0 1
1 3 2 3 4
0 2 18 19
1 2 5 7
1 4 1 3 4 8
0 2 21 22
1 1 7
1 6 1 3 4 5 6 8
0 2 24 25
1 2 5 8
1 3 2 4 7
0 2 27 28
1 2 0 8
1 3 2 4 6
0 2 30 31
1 4 2 5 7 8
1 1 ...

result:

ok 

Test #16:

score: 10
Accepted
time: 5ms
memory: 4120kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
3 3 4
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 7
1 8 0 1 2 3 4 5 6 8
0 2 9 10
1 1 3
1 8 0 1 2 4 5 6 7 8
0 2 12 13
1 2 2 5
1 6 0 1 3 4 7 8
0 2 15 16
1 1 7
1 8 0 1 2 3 4 5 6 8
0 2 18 19
1 2 3 4
1 7 0 1 2 5 6 7 8
0 2 21 22
1 2 0 6
1 5 1 3 4 5 7
0 2 24 25
1 3 5 7 8
1 5 1 2 3 4 6
0 2 27 28
1 3 3 7 8
1 ...

result:

ok 

Test #17:

score: 10
Accepted
time: 56ms
memory: 3784kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1
1 2 0 1

result:

ok 

Test #18:

score: 10
Accepted
time: 53ms
memory: 3720kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1
1 2 0 1

result:

ok 

Subtask #2:

score: 11
Accepted

Test #19:

score: 11
Accepted
time: 5ms
memory: 4068kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 9 3
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 6
1 7 0 1 2 4 5 7 8
0 2 9 10
1 1 8
1 7 0 1 2 3 4 6 7
0 2 12 13
1 2 3 7
1 4 1 2 5 8
0 2 15 16
1 2 0 1
1 5 2 5 6 7 8
0 2 18 19
1 2 5 7
1 4 0 1 3 6
0 2 21 22
1 1 7
1 7 0 1 2 3 5 6 8
0 2 24 25
1 2 5 8
1 6 0 1 3 4 6 7
0 2 27 28
1 2 0 8
1 5 1 2 4 6 7
0 2 30...

result:

ok 

Test #20:

score: 11
Accepted
time: 0ms
memory: 4156kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
9 1 5
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 3 6
1 5 0 2 4 5 7
0 2 9 10
1 1 1
1 7 0 2 3 4 5 7 8
0 2 12 13
1 1 7
1 7 0 1 3 4 5 6 8
0 2 15 16
1 1 7
1 7 0 1 3 4 5 6 8
0 2 18 19
1 1 2
1 7 0 1 3 4 5 6 8
0 2 21 22
1 1 5
1 7 1 2 3 4 6 7 8
0 2 24 25
1 2 2 7
1 7 0 1 3 4 5 6 8
0 2 27 28
1 1 8
1 7 0 1 2 4 ...

result:

ok 

Test #21:

score: 11
Accepted
time: 10ms
memory: 4296kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 5 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 9 1 8 13 15 25 31 36 40 47
1 12 0 10 16 20 22 24 28 29 34 39 44 48
0 2 50 51
1 12 2 8 9 14 25 30 31 33 36 43 45 49
1 11 1 5 10 11 16 17 22 28 34 44 48
0 2 53 54
1 6 6 9 27 32 37 47
1 13 1 4 5 11 14 15 18 20 24 40 44 46 48
0 2 56 57
1 8 5 6 13 17 20 21 3...

result:

ok 

Test #22:

score: 11
Accepted
time: 12ms
memory: 4872kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
5 10 12
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 6 1 12 19 20 32 37
1 42 0 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 38 39 41 42 43 44 45 46 47 48
0 2 50 51
1 4 19 26 33 41
1 44 0 1 2 3 4 5 6 7 8 10 11 12 13 14 15 16 17 18 20 21 22 23 24 25 27 28 29 30 31 32 ...

result:

ok 

Test #23:

score: 11
Accepted
time: 18ms
memory: 4964kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 21 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99
1 41 4 6 10 17 19 21 26 27 28 32 36 37 47 48 58 59 60 61 62 69 70 71 72 73 76 79 80 81 82 83 84 85 86 90 91 92 93 94 95 96 97
0 2 100 101
1 17 4 5 7 13 15 16 19 20 33 40 43 45 53 54 69 82 9...

result:

ok 

Test #24:

score: 11
Accepted
time: 15ms
memory: 4508kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 5
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 10 12 15 28 43 52 65 77 83 88 98
1 31 0 3 7 8 16 18 19 22 25 30 31 39 41 50 58 61 64 68 70 73 76 81 85 86 87 89 90 92 95 96 99
0 2 100 101
1 11 5 19 31 32 37 43 45 77 82 85 87
1 24 1 7 8 10 12 16 18 21 24 29 30 34 42 52 56 61 67 74 88 89 90 92 97 98
0 2...

result:

ok 

Test #25:

score: 11
Accepted
time: 17ms
memory: 5012kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 9
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 17 1 8 13 15 25 40 47 52 58 59 64 75 80 83 86 95 99
1 15 0 24 33 35 42 44 51 53 57 62 66 68 74 77 84
0 2 100 101
1 6 32 37 47 63 71 82
1 61 4 5 7 9 12 13 15 16 18 21 22 23 24 26 27 29 30 31 33 34 35 38 40 41 42 43 44 45 46 48 49 51 52 53 54 55 56 57 62 ...

result:

ok 

Test #26:

score: 11
Accepted
time: 16ms
memory: 5184kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 14
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 7 31 36 37 79 80 89 92
1 78 0 1 4 5 8 9 10 13 14 15 16 19 22 23 24 25 26 27 32 33 34 35 38 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 81 82 83 84 85 86 87 88 90 91 93 94 95 96 97 ...

result:

ok 

Test #27:

score: 11
Accepted
time: 20ms
memory: 5568kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
10 10 18
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 33
1 99 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Subtask #3:

score: 11
Accepted

Dependency #2:

100%
Accepted

Test #28:

score: 11
Accepted
time: 54ms
memory: 6344kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 15
100 198
292 896
132 11
161 406
319 701
460 596
369 959
191 730
128 923
590 1006
31 451
230 575
143 515
149 571
73 554
699 559
302 658
455 1017
252 283
137 380
159 965
260 639
46 527
332 968
57 457
439 686
320 339
157 358
696 620
727 1022
623 949
35 609
7...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
6671
1 51 12 15 28 43 52 77 83 88 98 105 119 132 143 177 182 205 228 233 253 255 258 262 268 289 293 310 326 403 405 444 447 462 465 469 475 479 489 527 532 559 600 627 694 715 725 747 760 807 818 851 872
1 153 2 7 9 14 18 24 36 38 47 49 60 65 67 72 76 78 80 8...

result:

ok 

Test #29:

score: 11
Accepted
time: 8ms
memory: 4412kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 29 15
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 3 12 15 28
1 23 1 2 3 4 5 6 7 8 9 10 11 14 16 17 18 19 20 21 22 23 24 25 26
0 2 29 30
1 2 14 23
1 26 0 1 2 3 4 5 6 7 9 10 11 12 13 15 16 17 18 19 20 21 22 24 25 26 27 28
0 2 32 33
1 2 19 25
1 25 0 1 2 3 5 6 7 8 9 11 12 13 14 15 16 17 18 20 21 22 23 24 2...

result:

ok 

Test #30:

score: 11
Accepted
time: 2ms
memory: 4360kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
29 1 13
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 5 10
1 25 0 1 2 3 4 6 7 8 9 11 12 13 14 15 16 17 19 20 21 22 24 25 26 27 28
0 2 29 30
1 1 7
1 27 0 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 17 18 19 21 22 23 24 25 26 27 28
0 2 32 33
1 5 1 12 18 26 28
1 19 0 2 3 4 6 7 8 9 10 11 16 17 19 20 21 22 23 24 27
...

result:

ok 

Test #31:

score: 11
Accepted
time: 52ms
memory: 7676kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 15 42
32 210
220 359
210 369
204 275
206 353
210 365
254 353
210 355
207 358
223 374
221 352
222 353
211 274
221 274
220 327
211 352
194 275
207 374
220 375
208 275
223 358
211 275
221 275
210 274
207 353
223 353
210 352
220 374
220 358
210 275
220 353
10 11
1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
6365
1 11 15 46 62 111 142 160 256 257 270 304 436
1 437 0 1 2 3 4 5 6 7 8 9 10 11 12 13 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 63 64 65 66 67 68 69 70 71 72 73 74 ...

result:

ok 

Test #32:

score: 11
Accepted
time: 57ms
memory: 6600kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
15 30 2
94 170
33 3
111 73
28 29
312 282
134 224
107 104
93 82
217 222
19 125
436 437
230 231
199 196
298 299
61 50
233 238
362 363
176 146
452 453
491 501
225 195
16 17
241 246
180 181
410 484
450 300
162 163
181 138
446 408
493 482
116 117
164 129
441 447
148 2...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 72 1 8 13 15 25 31 36 40 47 52 58 59 64 75 80 81 83 86 93 95 99 106 109 127 132 137 147 155 156 163 167 170 171 182 189 211 218 222 227 239 248 253 254 258 259 267 284 287 289 297 301 313 320 325 337 347 350 356 362 375 379 381 382 388 391 403 406 432 4...

result:

ok 

Test #33:

score: 11
Accepted
time: 67ms
memory: 8132kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 1
64 184
397 491
205 206
278 279
366 367
566 567
421 387
156 250
528 529
415 400
429 430
748 749
413 507
408 390
68 69
649 759
79 429
1012 1013
79 64
368 369
963 964
64 65
147 241
37 38
336 702
171 137
240 222
239 224
305 306
133 134
688 670
996 998
742 546...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5501
1 166 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194 201 203 205 211 214 216 239 244 248 257 262 273 276 281 287 291 293 300 301 310 313 316 318 327 330 331 345 349 355 364 ...

result:

ok 

Test #34:

score: 11
Accepted
time: 54ms
memory: 6268kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 15
94 198
999 950
457 594
733 622
77 497
395 699
578 902
340 698
110 375
475 651
367 560
633 941
336 644
426 279
320 301
177 485
173 62
271 976
373 258
12 277
358 995
225 148
451 747
4 502
112 362
714 1018
544 1011
368 707
532 914
708 673
757 838
52 435
202...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
6671
1 51 12 15 28 43 52 77 83 88 98 105 119 132 143 177 182 205 228 233 253 255 258 262 268 289 293 310 326 403 405 444 447 462 465 469 475 479 489 527 532 559 600 627 694 715 725 747 760 807 818 851 872
1 153 2 7 9 14 18 24 36 38 47 49 60 65 67 72 76 78 80 8...

result:

ok 

Test #35:

score: 11
Accepted
time: 64ms
memory: 7744kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 29
94 212
85 934
369 600
122 969
208 497
151 594
51 972
739 967
330 903
505 270
436 744
428 853
279 296
239 979
141 761
149 923
249 368
240 479
171 604
441 971
300 551
386 918
305 905
273 1001
298 540
705 964
251 661
536 985
272 930
16 583
651 1021
112 904
...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5846
1 26 1 12 19 83 91 137 154 174 188 216 233 279 285 428 523 529 568 580 583 647 656 701 794 847 860 889
1 448 2 4 10 13 14 15 16 22 24 26 31 33 37 41 42 43 44 45 49 53 55 57 60 62 66 68 71 72 73 74 78 80 84 86 95 97 99 100 102 103 107 108 109 111 115 119 1...

result:

ok 

Test #36:

score: 11
Accepted
time: 44ms
memory: 7604kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 44
94 227
59 866
167 925
78 1006
459 937
110 937
242 968
195 657
149 635
254 738
83 1011
81 660
90 897
186 633
50 567
185 990
250 728
196 925
195 694
209 563
186 571
144 529
213 528
252 724
144 909
425 897
250 635
225 695
484 939
149 914
190 931
173 900
19 ...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
3386
1 20 8 52 137 171 239 248 297 320 337 434 437 500 586 709 732 771 778 852 868 880
1 819 0 1 3 4 5 6 7 10 11 13 14 15 16 17 18 19 20 21 22 23 24 26 27 29 30 32 33 34 35 36 37 39 40 42 43 44 45 46 47 48 49 50 51 53 54 55 57 58 61 62 63 64 65 66 68 69 71 72 ...

result:

ok 

Test #37:

score: 11
Accepted
time: 49ms
memory: 7476kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
30 30 58
12 241
240 882
241 883
237 919
236 918
202 919
236 953
241 916
239 882
241 882
236 919
323 322
323 289

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
3194
1 16 93 99 182 239 287 313 490 494 524 571 586 615 793 827 891 892
1 884 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 ...

result:

ok 

Subtask #4:

score: 0
Wrong Answer

Dependency #3:

100%
Accepted

Test #38:

score: 0
Wrong Answer
time: 42ms
memory: 11880kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 100 50
100 373
2576 5424
552 2444
1090 3586
698 7992
6043 6838
1364 8276
6025 8816
2900 5141
3114 3664
302 2171
3930 5433
2225 7225
6218 8326
1972 9191
1325 1432
5656 8200
5864 8290
4135 6498
3016 6790
8474 9563
6462 8785
2409 7590
6598 7251
1916 4460
276 447...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
602
1 202 98 126 129 177 218 340 386 415 518 652 658 809 818 830 841 883 1090 1165 1197 1223 1239 1257 1259 1278 1346 1377 1458 1537 1567 1606 1641 1719 1721 1732 1807 1809 1830 1903 1943 1989 2028 2133 2139 2229 2265 2296 2347 2363 2365 2376 2475 2522 2523 25...

result:

wrong answer on inputs (58, 70), (71, 7), expected 0, but computed 1

Subtask #5:

score: 12
Accepted

Test #48:

score: 12
Accepted
time: 34ms
memory: 5964kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 38 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194
1 112 3 4 5 6 10 17 18 19 20 21 22 26 27 28 32 36 37 47 48 49 50 51 57 58 59 60 61 62 69 70 71 72 73 74 75 76 77 78 79 80...

result:

ok 

Test #49:

score: 12
Accepted
time: 37ms
memory: 6580kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 18 34
1 195 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #50:

score: 12
Accepted
time: 38ms
memory: 6584kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 5 15 93 127 155 182
1 189 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 ...

result:

ok 

Test #51:

score: 12
Accepted
time: 40ms
memory: 6632kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 198
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 58
1 198 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #52:

score: 12
Accepted
time: 30ms
memory: 6204kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 2
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 35 1 8 13 15 25 31 36 40 47 52 58 59 64 75 80 81 83 86 93 95 99 106 109 127 132 137 147 155 156 163 167 170 171 182 189
1 105 0 2 4 5 7 9 12 14 16 18 19 20 21 22 24 26 28 30 32 35 37 39 41 43 44 46 48 51 53 55 63 65 67 68 69 70 71 72 74 76 87 89 90 92 9...

result:

ok 

Test #53:

score: 12
Accepted
time: 32ms
memory: 6748kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 66
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 178
1 197 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83...

result:

ok 

Test #54:

score: 12
Accepted
time: 34ms
memory: 6832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 133
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 3 58 165 183
1 193 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 8...

result:

ok 

Test #55:

score: 12
Accepted
time: 39ms
memory: 6640kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 197
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 66
1 198 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #56:

score: 12
Accepted
time: 33ms
memory: 6180kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 38 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194
1 113 3 4 5 6 10 17 18 19 20 21 22 26 27 28 32 36 37 47 48 49 50 51 57 58 59 60 61 62 69 70 71 72 73 74 75 76 77 78 79 80...

result:

ok 

Test #57:

score: 12
Accepted
time: 35ms
memory: 6816kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 50
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 4 98 126 129 177
1 189 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 77 78 80 81 82 ...

result:

ok 

Test #58:

score: 12
Accepted
time: 34ms
memory: 6564kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 17 33
1 196 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #59:

score: 12
Accepted
time: 37ms
memory: 6612kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 5 15 93 127 155 182
1 190 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 ...

result:

ok 

Test #60:

score: 12
Accepted
time: 38ms
memory: 6608kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 149
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 95
1 199 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 ...

result:

ok 

Test #61:

score: 12
Accepted
time: 39ms
memory: 6900kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 200 199
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 12
1 199 0 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #62:

score: 12
Accepted
time: 34ms
memory: 5920kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 38 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194
1 113 3 4 5 6 10 17 18 19 20 21 22 26 27 28 32 36 37 47 48 49 50 51 57 58 59 60 61 62 69 70 71 72 73 74 75 76 77 78 79 80...

result:

ok 

Test #63:

score: 12
Accepted
time: 33ms
memory: 6732kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 51
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 6 15 64 95 99 171 182
1 185 0 1 2 3 4 5 6 7 8 9 10 11 12 14 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 45 46 47 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 65 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 8...

result:

ok 

Test #64:

score: 12
Accepted
time: 37ms
memory: 6520kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 99
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 17 33
1 196 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #65:

score: 12
Accepted
time: 37ms
memory: 6628kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 100
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 5 15 93 127 155 182
1 190 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 16 17 18 19 20 21 22 23 24 25 26 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 ...

result:

ok 

Test #66:

score: 12
Accepted
time: 38ms
memory: 6652kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 150
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 43
1 198 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #67:

score: 12
Accepted
time: 35ms
memory: 6608kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 1 199
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 12
1 199 0 1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #68:

score: 12
Accepted
time: 58ms
memory: 3788kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 2 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1
1 2 0 1

result:

ok 

Test #69:

score: 12
Accepted
time: 58ms
memory: 4024kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 1 1
-1

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
1
1 2 0 1

result:

ok 

Subtask #6:

score: 8
Accepted

Test #70:

score: 8
Accepted
time: 0ms
memory: 4072kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 1
3 128
128 129
128 130
128 131

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 1 2
0 2 4 5
1 1 0
1 1 3
0 2 7 8
1 1 0
1 1 3
0 2 10 11
1 1 2
1 1 1
0 2 13 14
1 1 2
1 1 1
0 2 16 17
1 1 3
1 1 0
0 2 19 20
1 1 1
1 1 2
0 2 22 23
1 1 0
1 1 3
0 2 25 26
1 1 3
1 1 0
0 2 28 29
1 1 0
1 1 3
0 2 31 32
1 1 1
1 1 2
0 2 34 35
1 1 1
1 1 2
0 2 3...

result:

ok 

Test #71:

score: 8
Accepted
time: 4ms
memory: 4092kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
2 2 2
3 129
129 128
129 131
129 130

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 1
1 2 0 3
0 2 4 5
1 1 0
1 2 1 2
0 2 7 8
1 1 1
1 2 0 3
0 2 10 11
1 1 3
1 2 1 2
0 2 13 14
1 1 0
1 2 1 2
0 2 16 17
1 1 0
1 2 1 2
0 2 19 20
1 1 3
1 2 1 2
0 2 22 23
1 1 0
1 2 1 2
0 2 25 26
1 1 0
1 2 1 2
0 2 28 29
1 1 3
1 2 1 2
0 2 31 32
1 1 2
1 2 0 3
0 2 3...

result:

ok 

Test #72:

score: 8
Accepted
time: 2ms
memory: 4232kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 1
8 254
254 255
254 227
254 252
254 196
254 224
254 2958
254 2986
254 226

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 2926 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 8...

result:

ok 

Test #73:

score: 8
Accepted
time: 3ms
memory: 4532kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 31
92 284
284 330
284 634
284 598
284 114
284 366
284 966
284 814
284 922
284 510
284 474
284 194
284 930
284 42
284 230
284 1002
284 438
284 526
284 778
284 186
284 6
284 958
284 150
284 562
284 886
284 78
284 402
284 850
284 482
284 222
284 367
284 671
2...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 2899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #74:

score: 8
Accepted
time: 2ms
memory: 4236kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 64
92 317
317 1326
317 1566
317 1090
317 1962
317 1046
317 1890
317 2034
317 1190
317 1934
317 1442
317 1074
317 1846
317 1118
317 1234
317 1298
317 1162
317 1862
317 1398
317 2006
317 1918
317 1470
317 1262
317 1514
317 1370
317 1594
317 1486
317 1414
317...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 2899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #75:

score: 8
Accepted
time: 1ms
memory: 3972kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 95
92 348
348 1738
348 3066
348 1682
348 2058
348 2886
348 3030
348 2830
348 2094
348 2866
348 1774
348 2454
348 2310
348 2546
348 2490
348 2238
348 2258
348 2510
348 2142
348 2394
348 2294
348 2402
348 2202
348 2114
348 2922
348 2430
348 1718
348 2210
348...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 2899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #76:

score: 8
Accepted
time: 1ms
memory: 3980kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
101 29 128
7 381
381 2606
381 2578
381 2573
381 2601
381 352
381 353
381 380

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 2927 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #77:

score: 8
Accepted
time: 0ms
memory: 4216kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 1
8 303
303 302
303 424
303 301
303 33
303 423
303 5660
303 6018
303 425

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 5937 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 8...

result:

ok 

Test #78:

score: 8
Accepted
time: 0ms
memory: 6516kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 45
97 347
347 375
347 6133
347 523
347 4413
347 653
347 1205
347 99
347 4137
347 2885
347 489
347 3097
347 2397
347 1755
347 2519
347 4535
347 229
347 5369
347 2673
347 2121
347 3071
347 5191
347 3585
347 3771
347 3437
347 1075
347 4901
347 4817
347 1465
3...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 5895 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86...

result:

ok 

Test #79:

score: 8
Accepted
time: 3ms
memory: 5476kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 89
97 391
391 479
391 5981
391 1413
391 3439
391 3021
391 1949
391 6099
391 4657
391 2903
391 1697
391 5445
391 5193
391 3557
391 2651
391 2367
391 763
391 1295
391 4491
391 2485
391 1043
391 1161
391 4909
391 4791
391 4373
391 2115
391 4255
391 2233
391 3...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 5895 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #80:

score: 8
Accepted
time: 2ms
memory: 4264kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 133
96 435
435 311
435 5813
435 5939
435 2265
435 2115
435 5193
435 1287
435 3515
435 2895
435 1761
435 4491
435 4689
435 2391
435 3987
435 5469
435 4217
435 2609
435 3113
435 1643
435 4365
435 539
435 1919
435 657
435 3389
435 3861
435 3013
435 3585
435 5...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 5895 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #81:

score: 8
Accepted
time: 1ms
memory: 4036kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
44 135 177
7 479
479 6003
479 5869
479 5868
479 6002
479 344
479 345
479 478

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 5938 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85...

result:

ok 

Test #82:

score: 8
Accepted
time: 30ms
memory: 5908kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 1
3 324
324 325
324 326
324 386

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 38 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194
1 112 3 4 5 6 10 17 18 19 20 21 22 26 27 28 32 36 37 47 48 49 50 51 57 58 59 60 61 62 69 70 71 72 73 74 75 76 77 78 79 80...

result:

ok 

Test #83:

score: 8
Accepted
time: 33ms
memory: 6520kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 60
5 383
383 324
383 323
383 322
383 441
383 382

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 3 70 121 126
1 190 0 1 2 3 4 5 6 7 8 9 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 62 63 64 65 67 68 69 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #84:

score: 8
Accepted
time: 34ms
memory: 6708kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 137
5 460
460 324
460 325
460 326
460 266
460 461

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 59
1 197 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #85:

score: 8
Accepted
time: 41ms
memory: 6596kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
1 199 198
3 521
521 716
521 719
521 520

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 58
1 198 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #86:

score: 8
Accepted
time: 30ms
memory: 5912kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 1
3 324
324 325
324 326
324 386

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 38 1 8 12 13 15 24 30 34 39 40 41 43 45 53 54 55 64 65 67 88 99 104 105 107 113 115 116 119 120 133 140 143 145 153 154 169 182 194
1 112 3 4 5 6 10 17 18 19 20 21 22 26 27 28 32 36 37 47 48 49 50 51 57 58 59 60 61 62 69 70 71 72 73 74 75 76 77 78 79 80...

result:

ok 

Test #87:

score: 8
Accepted
time: 34ms
memory: 6588kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 99
5 422
422 452
422 453
422 450
422 352
422 423

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 2 18 34
1 195 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #88:

score: 8
Accepted
time: 36ms
memory: 6628kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
199 1 198
3 521
521 716
521 719
521 520

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
9992
1 1 58
1 198 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 ...

result:

ok 

Test #89:

score: 8
Accepted
time: 5ms
memory: 5188kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 1
8 424
424 425
424 460
424 426
424 352
424 461
424 20407
424 19476
424 459

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19997 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 ...

result:

ok 

Test #90:

score: 8
Accepted
time: 16ms
memory: 19256kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 100
99 523
523 616
523 9383
523 2364
523 4251
523 8140
523 5966
523 5532
523 8700
523 4879
523 2449
523 7512
523 5221
523 9809
523 7138
523 6215
523 7829
523 3885
523 5617
523 4134
523 4661
523 6526
523 2580
523 5865
523 10221
523 4778
523 8389
523 2053
5...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #91:

score: 8
Accepted
time: 10ms
memory: 8176kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 199
99 622
622 9569
622 20278
622 15777
622 15345
622 10838
622 19321
622 12328
622 12732
622 17420
622 13171
622 17792
622 18637
622 12857
622 15719
622 13294
622 14872
622 16835
622 11775
622 13012
622 16244
622 19220
622 13545
622 14444
622 12113
622 1...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #92:

score: 8
Accepted
time: 6ms
memory: 4032kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 100 298
7 721
721 20330
721 19663
721 19662
721 20333
721 693
721 690
721 720

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19998 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #93:

score: 8
Accepted
time: 8ms
memory: 5140kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 1
8 424
424 425
424 352
424 426
424 56
424 353
424 20407
424 19696
424 367

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19997 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 ...

result:

ok 

Test #94:

score: 8
Accepted
time: 4ms
memory: 13476kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 149
98 572
572 680
572 20405
572 15955
572 11715
572 16539
572 4169
572 3896
572 8043
572 14374
572 13323
572 14156
572 10601
572 13050
572 15024
572 1794
572 18112
572 5411
572 13233
572 1455
572 213
572 18431
572 2378
572 15608
572 8966
572 5695
572 522...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #95:

score: 8
Accepted
time: 0ms
memory: 4244kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
100 200 298
7 721
721 20358
721 19663
721 19662
721 20361
721 537
721 534
721 720

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 19998 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #96:

score: 8
Accepted
time: 16ms
memory: 6840kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 1
8 524
524 525
524 708
524 526
524 924
524 709
524 40499
524 39284
524 715

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39997 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 ...

result:

ok 

Test #97:

score: 8
Accepted
time: 48ms
memory: 55264kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 100
100 623
623 524
623 20279
623 18515
623 8440
623 18429
623 3772
623 9802
623 10628
623 6334
623 9151
623 9859
623 20222
623 6956
623 17344
623 16974
623 10855
623 837
623 9062
623 14900
623 9237
623 10912
623 8497
623 4452
623 14559
623 4085
623 3683
...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39898 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #98:

score: 8
Accepted
time: 29ms
memory: 36664kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 199
96 722
722 532
722 39010
722 8232
722 16314
722 1303
722 34657
722 16754
722 27170
722 863
722 11377
722 19210
722 4736
722 16395
722 11932
722 7298
722 21186
722 20006
722 28382
722 33538
722 13833
722 33164
722 14494
722 38570
722 1253
722 25673
722...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39799 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #99:

score: 8
Accepted
time: 12ms
memory: 9108kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 299
98 822
822 19753
822 39149
822 33026
822 33939
822 34081
822 38890
822 38946
822 39817
822 33012
822 35333
822 25272
822 24618
822 31977
822 24363
822 35933
822 31790
822 31064
822 31377
822 21314
822 24530
822 29086
822 29541
822 19920
822 20788
822 ...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39899 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Test #100:

score: 8
Accepted
time: 11ms
memory: 5076kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 398
7 921
921 39150
921 40871
921 40870
921 39137
921 849
921 862
921 920

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39998 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 8...

result:

ok 

Subtask #7:

score: 0
Wrong Answer

Test #101:

score: 0
Wrong Answer
time: 17ms
memory: 6832kb

input:

c2675211-ade0-44b0-8c15-741dd835f3d2
200 200 1
100 524
24804 34853
20956 34628
18830 29184
28919 32573
11364 24911
2226 5624
3715 30838
2206 17143
21162 27531
20198 27242
5007 12724
27160 32586
3535 7307
17015 25466
626 13891
9132 26194
9198 33073
815 7328
6938 21395
9489 30995
10804 21530
14698 394...

output:

b17553fd-ba5a-4140-836c-491f938c515b
OK
5
1 1 0
1 39997 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 ...

result:

wrong answer on inputs (126, 120), (176, 169), expected 0, but computed 1

Subtask #8:

score: 0
Skipped

Dependency #1:

100%
Accepted

Dependency #2:

100%
Accepted

Dependency #3:

100%
Accepted

Dependency #4:

0%