QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#456412#6549. Two Missing NumberspandapythonerAC ✓207ms3916kbC++235.3kb2024-06-27 21:49:092024-06-27 21:49:09

Judging History

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

  • [2024-06-27 21:49:09]
  • 评测
  • 测评结果:AC
  • 用时:207ms
  • 内存:3916kb
  • [2024-06-27 21:49:09]
  • 提交

answer

#pragma GCC optimize("Ofast,unroll-loops,fast-math")

#include <bits/stdc++.h>

using namespace std;

#define ull unsigned long long
#define ulll __uint128_t
#define ll long long
#define flt double
#define all(a) a.begin(), a.end()
#define rall(a) a.rbegin(), a.rend()
#define rep(i, n) for(int i = 0; i < n; i += 1)


const ll inf = 1e18;
mt19937 rnd(234);


ostream& operator<<(ostream& out, ulll x) {
    out << (ull)x;
    return out;
}


istream& operator>>(istream& in, ulll& x) {
    ull a;
    in >> a;
    x = a;
    return in;
}


ulll lg(ulll x) {
    assert(x != 0);
    ull s = (x >> 64);
    if (s > 0) {
        return 64 + __lg(s);
    }
    ull f = x & ((((ulll)1) << 64) - 1);
    return __lg(f);
}


ulll mul(ulll a, ulll b) {
    if (a == 0 or b == 0) {
        return 0;
    }
    ulll c = 0;
    int k = lg(a);
    rep(i, k + 1) if ((a >> i) & 1) c ^= (b << i);
    return c;
}


ulll mod(ulll a, ulll m) {
    assert(m != 0);
    if (m == 1) {
        return 0;
    }
    if (a == 0) {
        return 0;
    }
    int k = lg(m);
    int d = lg(a);
    if (d < k) {
        return a;
    }
    ulll c = a;
    for (int i = d; i >= k; i -= 1) {
        if ((c >> i) & 1) {
            c ^= (m << (i - k));
        }
    }
    return c;
}


pair<ulll, ulll> mod_div(ulll a, ulll m) {
    assert(m != 0);
    if (m == 1) {
        return { 0, a };
    }
    if (a == 0) {
        return { 0, 0 };
    }
    int k = lg(m);
    int d = lg(a);
    if (d < k) {
        return { a, 0 };
    }
    ulll c = a, e = 0;
    for (int i = d; i >= k; i -= 1) {
        if ((c >> i) & 1) {
            c ^= (m << (i - k));
            e |= ((ulll)1 << (i - k));
        }
    }
    return { c, e };
}


ulll mul_mod(ulll a, ulll b, ulll m) {
    return mod(mul(a, b), m);
}


ulll gcd(ulll a, ulll b) {
    while (a != 0) {
        b = mod(b, a);
        swap(a, b);
    }
    return b;
}


array<ulll, 3> gcdex(ulll a, ulll b) {
    if (a == 0) {
        return { b, 0, 1 };
    }
    auto [c, d] = mod_div(b, a);
    auto [g, x, y] = gcdex(c, a);
    return { g, y ^ mul(d, x), x };
}


ulll multiple_square(ulll a, ll cnt, ulll m) {
    ulll c = a;
    rep(i, cnt) c = mul_mod(c, c, m);
    return c;
}


ulll check_irreducible(ulll a) {
    assert(a != 0);
    int k = lg(a);
    assert(k >= 1 and k <= 64);
    for (int i = 1; i <= k / 2; i += 1) {
        ulll f = multiple_square(2, i, a) ^ 2;
        ulll g = gcd(a, f);
        if (g != 1) {
            return false;
        }
    }
    return true;
}


ulll find_irreducible(int k) {
    assert(k >= 1);
    auto gen = [&]() {
        ulll c = (((ulll)1) << k);
        rep(i, k) if (rnd() % 2) c += (((ulll)1) << i);
        return c;
        };
    while (1) {
        ulll x = gen();
        if (check_irreducible(x)) {
            return x;
        }
    }
}


const int base = 64;
const ulll m = find_irreducible(base);


ulll inv(ulll a) {
    assert(a != 0);
    auto [g, x, y] = gcdex(a, m);
    assert(g == 1);
    return mod(x, m);
}


pair<ulll, ulll> find_roots(ulll a, ulll b) {
    // finds roots of x^2 + a*x + b = 0
    // assumes, that there is exactly two different nonzero roots
    ulll power = ((((ulll)1) << base) - 1) / 3;
    auto mul_poly = [&](ulll p0, ulll p1, ulll q0, ulll q1) -> pair<ulll, ulll> {
        ulll t0 = mul_mod(p0, q0, m);
        assert(t0 < m);
        ulll t1 = mul_mod(p1, q0, m) ^ mul_mod(p0, q1, m);
        assert(t1 < m);
        ulll c = mul_mod(p1, q1, m);
        assert(c < m);
        t1 ^= mul_mod(c, a, m);
        assert(t1 < m);
        t0 ^= mul_mod(c, b, m);
        assert(t0 < m);
        return { t0, t1 };
        };
    function<pair<ulll, ulll>(ulll, ulll, ulll)> bin_pow_poly;
    bin_pow_poly = [&](ulll p, ulll q, ulll n) -> pair<ulll, ulll> {
        if (n == 0) {
            return { 1, 0 };
        }
        auto [f0, f1] = bin_pow_poly(p, q, n / 2);
        assert(f0 < m and f1 < m);
        auto [a0, a1] = mul_poly(f0, f1, f0, f1);
        if (n & 1) {
            return mul_poly(a0, a1, p, q);
        }
        return { a0, a1 };
        };
    while (1) {
        ulll r = mul_mod(rnd(), rnd(), m);
        auto [a0, a1] = bin_pow_poly(r, 1, power);
        a0 ^= 1;
        if (a1 != 0) {
            ulll first_root = mul_mod(a0, inv(a1), m);
            ulll second_root = a ^ first_root;
            if (mul_mod(first_root, second_root, m) == b) {
                return { first_root, second_root };
            }
        }
    }
}


ulll cube(ulll a) {
    return mul_mod(mul_mod(a, a, m), a, m);
}

int32_t main() {
    if (1) {
        ios::sync_with_stdio(0);
        cin.tie(0);
        cout.tie(0);
    }
    int q, n;
    cin >> q >> n;
    ulll a = 0, b = 0;
    if (q == 2) {
        cin >> a >> b;
    }
    rep(i, n) {
        ulll x;
        cin >> x;
        a ^= x;
        b ^= mul(x, mul_mod(x, x, m));
    }
    b = mod(b, m);
    if (q == 2) {
        ulll sum = a;
        ulll prod = mul_mod(cube(a) ^ b, inv(a), m);
        auto [x, y] = find_roots(sum, prod);
        cout << x << " " << y << "\n";
    } else {
        cout << a << " " << b << "\n";
    }
    return 0;
}

/*
2 2 0 0
100 10


*/

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3660kb

First Run Input

1 5
5 1 4 4 5

First Run Output

1 1

Second Run Input

2 3 1 1
9 9 3 

Second Run Output

1 3

result:

ok correct

Test #2:

score: 100
Accepted
time: 0ms
memory: 3648kb

First Run Input

1 1
0

First Run Output

0 0

Second Run Input

2 1 0 0
1

Second Run Output

1 0

result:

ok correct

Test #3:

score: 100
Accepted
time: 1ms
memory: 3640kb

First Run Input

1 1
10625130587464985929

First Run Output

10625130587464985929 9982784104347457398

Second Run Input

2 1 10625130587464985929 9982784104347457398
1167154569617655189

Second Run Output

10625130587464985929 1167154569617655189

result:

ok correct

Test #4:

score: 100
Accepted
time: 1ms
memory: 3652kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 2 0 0
14205293878974412429 14539925169898881927 

Second Run Output

14205293878974412429 14539925169898881927

result:

ok correct

Test #5:

score: 100
Accepted
time: 1ms
memory: 3864kb

First Run Input

1 2
6710336009326057226 6575759325380514973

First Run Output

458853999611790231 17103987082980066842

Second Run Input

2 0 458853999611790231 17103987082980066842

Second Run Output

6710336009326057226 6575759325380514973

result:

ok correct

Test #6:

score: 100
Accepted
time: 2ms
memory: 3600kb

First Run Input

1 100
164 209 59 177 234 45 59 9 241 79 200 49 60 225 85 191 170 29 89 1 182 29 186 16 161 0 12 52 3 190 1 3 21 147 25 71 6 216 211 48 78 49 42 240 240 42 9 253 186 247 21 164 202 196 11 54 172 253 30 144 197 213 102 192 80 187 222 236 64 47 28 8 182 193 252 60 193 45 62 86 158 192 86 39 215 236 98 ...

First Run Output

117 839561

Second Run Input

2 100 117 839561
142 56 197 213 127 238 12 56 166 234 170 101 134 209 171 200 39 101 218 227 113 181 47 227 78 25 207 100 216 100 147 151 181 207 177 241 77 158 238 115 57 53 43 8 218 136 172 48 11 247 139 144 115 85 139 252 179 89 120 246 116 163 215 64 166 191 57 127 71 225 79 196 27 54 211 142 12...

Second Run Output

128 116

result:

ok correct

Test #7:

score: 100
Accepted
time: 1ms
memory: 3644kb

First Run Input

1 100
97 186 80 160 153 60 161 226 46 83 255 30 150 248 92 241 71 169 186 228 3 114 203 14 98 183 210 10 215 205 236 137 97 159 175 178 181 43 32 210 156 18 43 176 89 241 220 212 147 197 55 230 155 71 98 223 46 112 92 138 119 207 204 151 155 214 89 132 65 56 220 110 104 83 246 19 111 212 243 237 75 ...

First Run Output

203 3458061

Second Run Input

2 100 203 3458061
110 91 132 69 112 90 179 134 160 237 69 5 178 93 195 106 100 32 60 62 191 156 91 169 223 56 5 59 200 111 52 59 138 2 251 181 55 195 235 24 24 147 137 248 2 106 153 200 204 76 150 226 207 116 104 175 47 80 149 214 242 94 244 93 100 236 116 224 244 75 14 90 149 158 48 242 94 176 233 ...

Second Run Output

233 183

result:

ok correct

Test #8:

score: 100
Accepted
time: 1ms
memory: 3896kb

First Run Input

1 100
148 122 2 166 205 214 37 126 13 3 156 204 193 224 74 122 185 45 239 11 154 249 213 161 212 14 202 73 217 194 199 193 166 18 199 254 41 19 98 145 8 218 41 130 15 239 121 162 163 168 184 135 37 177 161 160 138 126 2 176 249 142 116 65 165 136 220 138 147 65 81 177 228 90 116 164 91 250 165 204 1...

First Run Output

111 1020181

Second Run Input

2 100 111 1020181
214 26 11 211 45 80 57 156 23 79 66 173 8 73 76 163 90 212 80 79 15 58 182 145 234 16 49 32 201 194 110 147 167 230 121 39 39 162 143 110 3 32 78 238 201 232 228 153 226 142 217 136 224 206 154 197 164 226 74 184 242 182 160 168 58 149 220 173 254 148 206 186 218 111 143 19 197 98 ...

Second Run Output

190 130

result:

ok correct

Test #9:

score: 100
Accepted
time: 1ms
memory: 3900kb

First Run Input

1 100
206 8 126 199 147 158 81 206 96 10 38 44 236 139 221 232 190 82 240 100 161 157 201 121 190 139 177 11 94 161 236 121 187 97 191 59 58 98 4 224 27 8 93 56 204 84 67 12 227 87 154 187 94 215 16 61 241 38 113 128 10 157 16 86 71 61 119 36 195 96 208 149 68 155 57 199 231 201 0 246 42 58 50 247 5...

First Run Output

170 3517234

Second Run Input

2 100 170 3517234
111 69 207 40 184 241 99 182 194 12 191 186 34 44 98 74 128 115 135 36 240 41 150 119 42 68 111 27 175 227 0 1 39 247 158 100 117 82 39 122 194 184 114 117 93 208 109 52 106 214 159 224 40 246 214 204 4 177 52 162 182 207 223 11 71 223 154 97 195 230 59 54 34 122 57 84 88 228 231 2...

Second Run Output

232 88

result:

ok correct

Test #10:

score: 100
Accepted
time: 1ms
memory: 3668kb

First Run Input

1 100
61 32 42 83 213 11 125 63 221 135 71 188 222 56 198 90 95 151 231 238 218 196 45 51 156 48 82 252 113 15 232 42 50 194 236 53 60 125 65 45 247 95 8 1 52 97 145 52 182 148 39 137 242 163 218 157 90 97 152 173 83 221 39 187 211 82 198 161 87 61 16 0 248 21 16 75 8 216 207 137 65 152 229 222 104 ...

First Run Output

25 728825

Second Run Input

2 100 25 728825
87 194 145 144 183 164 207 60 165 96 71 14 251 197 187 122 73 182 1 188 248 243 100 147 30 11 75 224 113 14 107 230 175 211 58 30 238 17 10 247 240 96 206 50 231 19 232 213 148 242 19 161 164 173 51 124 73 212 53 206 165 124 17 31 246 122 123 31 0 224 56 251 63 151 18 229 108 196 123...

Second Run Output

147 10

result:

ok correct

Test #11:

score: 100
Accepted
time: 1ms
memory: 3852kb

First Run Input

1 100
145 61 171 134 48 87 115 254 4 147 122 233 217 200 227 111 110 101 105 186 104 119 136 185 31 249 226 168 206 66 251 42 191 38 40 145 3 19 238 23 129 163 56 67 51 216 195 82 61 69 252 179 82 101 94 163 127 251 51 53 238 23 123 127 212 45 50 32 169 157 37 241 197 68 12 27 174 41 133 252 31 220 ...

First Run Output

179 2408291

Second Run Input

2 100 179 2408291
249 33 42 118 32 88 128 118 195 95 152 216 147 33 234 135 68 131 241 245 12 254 96 157 131 13 104 86 55 4 171 162 206 168 141 183 225 98 19 186 36 94 50 36 183 169 219 174 11 114 245 70 48 185 70 220 114 20 123 134 27 41 225 37 232 76 233 56 197 141 226 67 128 119 219 162 126 55 10...

Second Run Output

189 45

result:

ok correct

Test #12:

score: 100
Accepted
time: 2ms
memory: 3652kb

First Run Input

1 100
28 166 241 232 241 46 116 216 245 246 50 163 119 128 250 203 105 93 53 75 195 171 203 56 168 81 207 176 4 179 53 85 234 237 70 244 148 151 108 255 51 174 10 195 87 189 145 236 177 56 133 47 50 222 225 20 117 219 83 150 122 150 86 122 228 31 210 115 28 182 128 85 64 33 29 118 104 77 70 44 172 1...

First Run Output

78 1697552

Second Run Input

2 100 78 1697552
255 245 31 227 210 171 183 189 118 178 165 212 181 192 35 16 115 45 135 16 182 178 183 20 163 35 246 165 63 10 179 64 47 77 209 139 81 4 174 116 231 243 222 135 218 248 216 60 29 164 237 93 63 155 139 90 87 104 228 86 8 181 166 176 32 225 191 243 192 41 32 191 75 248 172 14 236 206 ...

Second Run Output

60 212

result:

ok correct

Test #13:

score: 100
Accepted
time: 1ms
memory: 3648kb

First Run Input

1 100
205 77 207 109 79 210 39 229 110 176 73 64 191 196 19 187 220 176 184 7 241 34 194 35 81 153 213 100 224 19 81 97 146 53 128 190 41 110 73 146 158 205 173 75 207 6 210 26 21 222 72 49 169 253 227 180 208 118 27 9 221 59 22 187 88 112 38 57 3 253 164 58 224 68 57 201 179 128 72 21 208 191 39 22...

First Run Output

71 1998275

Second Run Input

2 100 71 1998275
168 201 77 165 54 45 105 79 149 151 88 61 145 94 228 199 122 213 34 27 123 229 22 124 68 158 94 233 24 193 54 6 165 221 45 199 112 132 179 26 160 60 130 61 227 30 46 111 41 164 38 215 124 145 160 84 149 35 180 241 46 9 64 245 130 220 163 245 7 102 248 78 24 14 3 58 97 100 163 118 16...

Second Run Output

248 50

result:

ok correct

Test #14:

score: 100
Accepted
time: 1ms
memory: 3664kb

First Run Input

1 100
212 103 154 96 172 136 247 10 180 112 218 69 141 218 177 23 194 107 220 179 249 155 248 29 189 61 11 105 51 141 205 19 252 162 249 115 230 61 96 172 140 164 19 7 25 87 174 184 79 68 55 81 230 103 91 196 140 171 28 243 47 128 215 62 92 238 205 23 248 179 244 226 49 35 184 166 151 51 112 213 213...

First Run Output

245 2417787

Second Run Input

2 100 245 2417787
161 138 253 208 164 150 228 62 226 71 138 115 20 255 247 92 7 254 67 107 255 81 99 232 127 223 69 127 128 212 156 49 168 214 233 13 68 161 148 55 238 189 136 129 47 79 162 53 148 233 25 29 170 208 232 34 244 254 151 180 121 220 170 53 135 150 174 156 253 58 66 155 42 215 113 37 105...

Second Run Output

32 91

result:

ok correct

Test #15:

score: 100
Accepted
time: 1ms
memory: 3820kb

First Run Input

1 100
148 244 183 59 237 16 71 109 66 13 188 6 90 240 181 185 211 70 43 230 115 147 116 119 120 35 227 136 148 178 161 86 136 244 250 152 192 145 171 52 212 34 216 192 237 241 159 96 154 254 6 115 58 153 239 150 229 105 145 226 168 234 54 236 42 75 120 52 224 188 172 236 13 140 157 99 169 137 165 10...

First Run Output

2 1781540

Second Run Input

2 100 2 1781540
177 252 39 161 183 227 105 85 238 69 200 102 250 153 171 42 102 18 85 57 57 90 106 108 139 18 8 147 155 154 194 138 50 155 35 117 43 67 185 196 162 201 169 101 197 51 197 216 22 224 172 87 23 226 196 96 137 23 70 116 109 238 198 69 19 140 165 194 160 150 241 159 51 240 200 119 99 201...

Second Run Output

8 254

result:

ok correct

Test #16:

score: 100
Accepted
time: 3ms
memory: 3608kb

First Run Input

1 100
71 40 7 142 91 200 152 168 159 37 74 181 212 137 94 138 126 210 197 235 153 17 72 62 116 117 231 186 142 36 240 201 117 36 244 102 42 184 197 65 133 180 77 126 194 38 233 152 84 174 84 80 144 225 2 62 32 202 159 161 136 255 147 162 60 161 45 185 243 174 43 111 52 25 248 43 29 220 138 68 116 17...

First Run Output

137 3359755

Second Run Input

2 100 137 3359755
72 156 216 220 188 94 252 50 25 111 1 102 22 50 100 156 248 239 8 184 6 165 201 37 181 89 235 83 34 165 233 99 96 7 252 112 77 188 2 143 185 255 99 58 74 80 136 162 13 83 21 57 190 147 76 210 89 33 180 29 60 144 143 177 231 32 212 97 253 216 158 21 240 34 91 57 133 207 137 52 40 25...

Second Run Output

38 243

result:

ok correct

Test #17:

score: 100
Accepted
time: 2ms
memory: 3816kb

First Run Input

1 100
28 61 46 181 27 216 183 50 139 64 12 62 5 163 187 201 21 92 158 58 97 178 224 20 221 116 32 19 93 92 22 247 107 6 90 156 60 238 116 68 243 122 180 70 81 241 36 93 50 241 103 135 232 180 26 96 14 216 78 188 167 109 85 68 88 179 221 174 6 238 151 81 252 74 132 145 220 205 143 32 108 195 3 231 19...

First Run Output

212 2497144

Second Run Input

2 100 212 2497144
64 209 107 203 9 48 167 203 27 44 243 160 74 39 118 102 90 26 190 161 28 108 25 84 190 103 149 61 5 25 158 46 60 142 45 22 105 174 170 229 231 84 201 9 249 45 191 229 232 126 181 163 247 62 205 170 58 20 105 179 12 145 89 191 188 149 151 21 109 118 249 59 11 48 187 36 122 143 88 21...

Second Run Output

160 161

result:

ok correct

Test #18:

score: 100
Accepted
time: 1ms
memory: 3700kb

First Run Input

1 100
166 37 192 191 81 159 251 70 89 245 151 127 49 148 6 18 170 50 37 165 97 206 84 168 38 251 138 230 116 39 94 139 85 165 89 109 255 240 244 128 71 204 6 41 138 76 97 2 245 31 134 36 191 66 152 76 224 215 64 2 71 240 31 132 148 49 94 224 134 129 228 70 142 204 80 64 156 114 42 128 39 66 116 81 1...

First Run Output

84 1152228

Second Run Input

2 100 84 1152228
159 42 200 227 163 58 168 87 238 206 163 216 144 90 68 58 85 28 180 198 68 129 136 193 210 209 244 140 180 172 82 190 59 84 108 170 114 190 215 144 192 59 199 122 229 226 124 164 186 142 28 69 186 73 140 216 210 209 156 119 29 50 228 193 103 238 41 227 253 117 109 32 29 154 24 24 23...

Second Run Output

73 127

result:

ok correct

Test #19:

score: 100
Accepted
time: 1ms
memory: 3600kb

First Run Input

1 100
207 144 83 94 93 83 93 233 65 71 137 64 50 88 164 213 5 162 136 140 132 75 190 2 55 249 100 116 19 88 232 34 230 71 160 137 75 4 143 84 181 79 25 30 236 215 196 86 53 74 113 70 111 66 184 27 184 203 170 33 153 27 206 66 54 246 207 241 43 161 143 132 218 4 168 135 123 33 158 190 111 141 16 197 ...

First Run Output

75 139023

Second Run Input

2 100 75 139023
30 55 168 64 19 213 80 158 54 95 43 31 38 123 49 128 165 160 204 38 148 2 79 148 49 145 149 221 185 149 232 254 140 128 144 10 235 135 226 118 94 74 242 172 193 118 246 198 136 25 170 53 226 134 249 113 86 39 1 91 139 198 31 95 126 164 26 45 45 236 197 180 235 180 165 215 5 141 84 22...

Second Run Output

167 218

result:

ok correct

Test #20:

score: 100
Accepted
time: 1ms
memory: 3912kb

First Run Input

1 100
82 255 167 135 187 80 247 245 96 192 15 246 44 35 21 244 132 22 26 219 55 8 237 247 155 56 6 72 4 31 198 81 135 17 4 45 240 116 142 165 58 40 91 101 35 118 207 174 178 246 36 70 43 11 254 39 11 216 6 207 173 92 200 118 80 205 108 78 131 217 241 143 205 210 60 15 216 51 67 164 125 254 165 241 1...

First Run Output

68 317720

Second Run Input

2 100 68 317720
43 154 218 51 224 96 56 116 163 17 157 45 142 5 217 67 106 198 26 232 36 119 157 140 16 218 140 228 187 255 222 1 240 212 93 91 7 90 1 19 22 178 3 239 101 19 192 173 203 103 42 232 131 57 93 210 104 174 90 155 239 81 163 219 115 38 72 5 38 250 104 224 42 231 132 231 60 222 16 71 143 ...

Second Run Output

250 115

result:

ok correct

Test #21:

score: 100
Accepted
time: 1ms
memory: 3656kb

First Run Input

1 100
192 137 78 126 98 237 6 131 143 103 178 130 245 70 65 247 248 0 100 166 227 92 118 94 183 199 251 87 101 13 154 12 252 67 198 148 73 152 232 253 2 24 126 42 98 196 53 48 255 54 139 230 32 238 155 27 128 247 53 119 4 3 186 100 212 13 246 198 223 143 248 192 3 157 56 187 66 4 226 249 142 241 157...

First Run Output

16 394096

Second Run Input

2 100 16 394096
24 199 165 111 201 252 118 146 30 27 253 56 149 238 50 183 52 186 232 237 137 214 86 203 244 96 249 65 50 70 165 244 182 5 96 166 226 131 32 0 142 148 101 173 185 187 30 69 203 146 156 156 255 155 69 181 182 119 149 161 91 6 66 245 181 114 174 130 227 152 241 154 48 251 67 26 68 161 ...

Second Run Output

212 52

result:

ok correct

Test #22:

score: 100
Accepted
time: 1ms
memory: 3816kb

First Run Input

1 100
207 133 134 162 121 99 171 97 238 77 199 125 53 6 239 152 45 104 49 173 196 158 92 9 192 30 201 61 124 11 236 100 180 53 154 135 21 36 163 47 111 6 239 137 141 171 154 91 85 104 131 189 102 91 186 13 146 245 246 1 168 111 33 156 235 30 137 18 118 66 42 100 244 78 114 192 60 52 13 238 180 141 2...

First Run Output

180 2717770

Second Run Input

2 100 180 2717770
42 72 130 99 235 221 173 15 133 85 70 189 153 54 54 33 156 130 25 190 165 51 162 52 145 134 50 254 164 1 39 78 25 21 158 168 2 201 131 26 77 199 26 186 200 142 241 4 164 145 94 110 47 166 126 68 32 152 114 166 5 60 66 92 126 170 181 94 163 51 207 68 254 181 124 251 153 4 36 135 15 ...

Second Run Output

18 5

result:

ok correct

Test #23:

score: 100
Accepted
time: 1ms
memory: 3608kb

First Run Input

1 100
23 219 47 226 53 212 33 182 156 235 72 66 75 133 160 218 204 159 210 42 70 52 31 16 6 159 212 178 220 230 234 91 181 176 65 143 249 175 113 13 108 176 192 52 139 103 243 31 224 200 23 89 165 65 201 246 153 243 213 233 117 42 6 116 66 94 234 203 109 207 233 175 180 155 99 251 53 55 80 204 60 14...

First Run Output

55 2066681

Second Run Input

2 100 55 2066681
99 166 117 56 167 155 68 169 143 106 215 224 240 41 113 170 170 232 248 139 169 231 4 12 121 120 178 215 8 182 83 37 47 108 13 110 59 121 133 246 35 92 181 95 109 101 165 71 95 203 231 172 120 110 205 248 41 78 210 16 56 198 218 201 166 240 172 249 80 200 180 167 35 37 207 160 219 7...

Second Run Output

232 12

result:

ok correct

Test #24:

score: 100
Accepted
time: 1ms
memory: 3648kb

First Run Input

1 100
141 73 3 98 199 45 2 220 22 34 131 9 189 70 211 134 28 7 98 67 6 84 87 43 58 32 10 217 50 52 234 103 41 135 28 45 66 193 231 254 183 8 17 0 151 183 46 158 73 96 162 181 162 27 103 20 114 254 160 3 246 31 22 138 68 12 50 109 204 245 246 208 32 114 248 61 185 151 199 125 0 232 230 168 133 243 23...

First Run Output

106 466646

Second Run Input

2 100 106 466646
10 41 226 100 243 106 248 134 65 12 91 171 253 159 55 104 46 132 201 132 112 193 198 236 104 112 113 58 6 116 113 189 171 201 52 84 1 43 48 135 69 109 131 185 106 166 127 91 234 229 80 237 226 205 2 232 217 159 133 99 158 20 65 125 181 143 31 155 240 96 231 25 1 67 237 245 166 198 1...

Second Run Output

141 70

result:

ok correct

Test #25:

score: 100
Accepted
time: 1ms
memory: 3604kb

First Run Input

1 100
143 66 145 157 35 1 103 228 214 169 201 251 41 252 26 139 209 55 120 108 109 179 124 57 140 252 123 209 57 87 154 216 195 98 210 215 134 254 126 103 163 153 135 246 122 183 108 150 176 134 156 66 161 214 25 82 17 68 254 202 62 136 131 189 132 195 192 90 221 30 13 143 162 238 152 43 17 192 210 ...

First Run Output

241 2416375

Second Run Input

2 100 241 2416375
203 141 160 68 13 37 237 223 174 81 129 132 238 226 215 217 126 141 109 201 80 24 160 19 123 25 152 19 112 184 156 217 148 222 213 136 82 41 239 145 183 228 129 62 37 47 131 31 176 169 29 244 222 157 162 148 120 223 216 110 77 208 189 239 48 98 48 202 112 124 35 87 246 154 229 81 2...

Second Run Output

30 24

result:

ok correct

Test #26:

score: 100
Accepted
time: 1ms
memory: 3648kb

First Run Input

1 100
56 130 16 237 199 145 172 5 132 234 105 234 235 60 145 216 97 152 63 126 241 161 19 198 219 95 255 33 240 157 199 198 226 120 180 200 18 90 241 91 168 85 245 74 120 67 143 222 82 9 90 68 200 158 158 152 127 15 53 18 78 37 105 102 37 78 148 216 25 144 77 209 159 170 33 245 19 64 95 129 122 22 1...

First Run Output

142 2991462

Second Run Input

2 100 142 2991462
5 51 65 253 206 122 68 206 231 167 22 239 231 174 155 246 157 85 38 107 15 26 174 46 67 4 222 167 210 220 147 225 63 235 97 72 65 176 74 249 165 207 240 202 207 55 155 26 226 55 220 221 30 190 38 132 130 178 249 123 4 165 144 148 51 168 170 126 225 176 190 27 72 161 91 102 71 183 5...

Second Run Output

246 147

result:

ok correct

Test #27:

score: 100
Accepted
time: 1ms
memory: 3652kb

First Run Input

1 100
11 223 19 136 192 207 35 249 49 35 11 28 248 165 113 25 86 133 215 163 136 108 160 165 132 203 97 59 190 251 203 110 13 108 212 206 71 103 138 129 156 23 215 119 102 119 49 236 217 164 63 249 4 0 187 225 139 163 252 90 160 193 23 65 5 84 226 101 34 76 176 183 238 216 187 87 227 217 58 63 91 80...

First Run Output

15 446975

Second Run Input

2 100 15 446975
121 70 8 139 97 103 251 98 146 0 213 238 230 10 214 172 172 252 153 197 6 101 45 183 174 38 38 181 70 158 121 76 153 164 28 234 218 228 133 113 13 218 193 144 212 234 129 10 102 91 223 240 71 69 45 145 111 236 232 225 232 4 174 132 65 176 3 90 156 146 111 128 34 80 197 216 181 5 3 26...

Second Run Output

122 191

result:

ok correct

Test #28:

score: 100
Accepted
time: 1ms
memory: 3644kb

First Run Input

1 100
204 218 184 190 204 138 37 220 122 144 14 189 81 101 177 95 109 226 219 241 226 186 191 37 129 2 170 241 177 102 243 250 160 80 109 19 218 144 129 255 50 217 216 91 78 143 189 122 115 61 17 247 59 217 160 71 244 2 185 54 216 40 53 215 69 149 55 59 30 205 192 191 103 27 86 105 173 85 45 1 250 2...

First Run Output

213 2812463

Second Run Input

2 100 213 2812463
126 106 223 223 153 246 225 19 74 17 45 153 149 165 192 225 61 82 58 47 203 121 175 170 66 184 169 28 77 115 255 103 106 77 150 80 175 27 243 239 200 53 221 215 247 203 78 135 249 65 74 47 67 186 55 208 167 101 102 169 150 244 167 7 99 1 161 50 165 90 58 90 161 54 69 154 205 14 91 ...

Second Run Output

173 86

result:

ok correct

Test #29:

score: 100
Accepted
time: 1ms
memory: 3856kb

First Run Input

1 100
3 85 31 51 204 71 23 224 32 112 95 114 246 100 67 49 228 5 60 170 147 148 149 27 16 225 40 27 178 250 70 150 232 170 129 71 42 245 235 96 127 60 51 12 23 166 1 229 100 114 115 81 166 16 238 29 198 42 204 4 14 3 230 5 4 150 40 77 127 198 182 155 67 14 75 155 144 158 199 89 233 219 213 244 229 1...

First Run Output

226 3268296

Second Run Input

2 100 226 3268296
10 128 76 181 199 252 213 139 220 62 144 115 38 249 143 36 206 186 49 123 1 226 89 228 48 149 152 29 225 245 61 15 222 246 250 232 129 53 226 207 173 249 53 177 182 131 85 43 81 93 180 2 222 87 139 77 122 235 62 131 220 158 207 210 2 95 186 255 123 76 38 181 48 148 10 252 32 247 23...

Second Run Output

224 126

result:

ok correct

Test #30:

score: 100
Accepted
time: 2ms
memory: 3832kb

First Run Input

1 100
19 186 180 191 42 62 76 255 75 250 79 108 54 165 66 37 134 169 88 39 164 234 82 13 197 170 139 173 188 61 204 100 201 250 138 95 97 239 14 12 145 141 193 158 130 218 248 188 49 145 33 69 102 29 238 193 239 69 55 149 169 42 252 207 200 14 2 84 102 160 17 139 170 141 210 180 85 203 146 243 204 2...

First Run Output

67 17885

Second Run Input

2 100 67 17885
97 181 143 107 22 105 255 192 50 54 65 192 152 126 126 138 165 0 179 59 130 45 137 49 73 79 105 73 80 4 12 101 62 134 200 66 112 234 146 183 96 76 158 80 248 101 0 7 4 179 114 173 210 55 95 142 176 100 88 44 198 218 198 112 39 144 2 147 212 238 142 195 195 50 150 152 61 19 176 75 114 ...

Second Run Output

82 103

result:

ok correct

Test #31:

score: 100
Accepted
time: 1ms
memory: 3700kb

First Run Input

1 100
95 1 242 145 162 105 59 54 92 29 78 53 168 69 112 157 239 158 148 122 85 6 74 236 239 129 68 40 19 127 125 129 246 238 14 245 245 179 233 107 244 126 69 163 131 153 45 168 232 90 227 58 79 44 86 24 241 54 174 1 196 126 115 30 179 90 232 10 153 127 131 20 108 227 212 117 190 238 216 187 35 149 ...

First Run Output

81 1874651

Second Run Input

2 100 81 1874651
115 208 144 35 140 164 216 149 157 92 78 147 29 104 6 100 234 244 137 5 229 150 41 14 94 100 114 20 208 213 234 45 180 158 21 187 206 26 41 148 49 250 21 188 236 190 70 94 58 108 74 147 205 137 176 188 114 122 117 242 85 172 110 86 24 172 130 26 243 145 246 30 213 205 249 229 212 16...

Second Run Output

31 19

result:

ok correct

Test #32:

score: 100
Accepted
time: 1ms
memory: 3644kb

First Run Input

1 100
60 121 215 198 202 9 160 82 123 240 103 252 253 174 109 0 200 15 216 200 236 219 47 223 175 139 204 148 211 223 151 63 174 28 38 61 16 47 99 246 92 91 206 126 96 38 254 68 15 40 178 141 118 215 30 43 106 181 154 192 118 239 91 242 201 51 36 209 21 155 248 192 36 205 141 25 202 69 30 206 246 10...

First Run Output

199 2993799

Second Run Input

2 100 199 2993799
205 250 151 123 67 252 101 128 12 210 63 154 115 160 228 43 251 147 0 68 228 227 170 40 248 10 175 109 242 219 106 84 178 10 103 236 180 147 196 33 204 77 227 196 111 104 21 145 133 216 169 128 181 229 110 60 54 121 70 225 12 105 16 211 9 28 166 112 77 61 170 198 69 240 126 67 99 1...

Second Run Output

110 225

result:

ok correct

Test #33:

score: 100
Accepted
time: 1ms
memory: 3644kb

First Run Input

1 100
160 69 34 111 132 191 225 10 203 216 206 12 167 182 96 225 7 51 54 174 74 41 4 114 5 124 180 9 47 72 97 7 236 94 8 170 34 128 226 242 198 191 128 138 104 86 245 48 17 149 153 13 74 110 62 81 39 153 122 29 167 112 10 244 234 246 8 48 119 36 132 201 195 18 57 72 165 249 114 122 39 149 43 195 120...

First Run Output

198 2400540

Second Run Input

2 100 198 2400540
84 143 41 37 203 245 226 141 169 62 144 112 97 123 159 244 175 131 4 146 182 120 57 234 69 138 13 66 239 249 193 240 170 146 159 5 239 123 30 107 66 156 33 144 210 107 50 9 85 58 201 103 124 110 210 29 174 165 17 43 60 180 81 104 47 242 206 131 94 198 18 238 28 54 103 115 93 232 36...

Second Run Output

60 229

result:

ok correct

Test #34:

score: 100
Accepted
time: 1ms
memory: 3900kb

First Run Input

1 100
219 39 6 101 172 243 90 96 179 25 244 176 115 53 101 85 164 237 248 48 22 134 220 179 149 187 216 112 225 237 38 250 220 139 22 125 227 24 78 226 241 141 112 202 89 134 54 229 177 120 217 241 107 124 92 21 252 29 66 136 20 7 74 172 171 215 210 69 73 161 114 250 193 161 201 62 143 16 110 54 210...

First Run Output

177 4091431

Second Run Input

2 100 177 4091431
38 150 231 150 160 49 77 103 78 177 199 243 215 66 46 84 139 187 235 162 153 115 90 120 110 202 43 49 251 85 170 147 249 197 103 227 199 98 160 43 39 21 138 196 104 74 127 9 62 197 92 249 203 236 84 70 151 16 20 153 217 148 229 25 114 138 104 9 235 6 244 89 125 141 149 46 251 203 2...

Second Run Output

231 143

result:

ok correct

Test #35:

score: 100
Accepted
time: 1ms
memory: 3660kb

First Run Input

1 100
184 216 225 121 106 139 121 130 61 17 155 198 25 34 64 184 41 112 6 65 70 109 213 159 230 243 111 63 147 87 89 246 23 141 149 243 210 141 198 118 233 129 212 131 210 125 161 6 75 182 8 118 50 103 85 106 109 125 119 123 220 89 116 11 220 25 19 142 66 51 155 152 208 128 212 37 223 84 116 222 237...

First Run Output

118 2078992

Second Run Input

2 100 118 2078992
31 164 81 218 97 235 63 185 150 8 97 114 126 23 206 87 126 193 237 102 150 40 242 112 161 159 156 50 129 239 169 149 54 64 14 65 148 41 147 114 171 31 242 105 51 240 225 130 214 81 214 222 182 218 113 231 145 145 123 80 207 32 233 216 235 252 240 17 223 213 246 164 148 103 14 105 7...

Second Run Output

231 207

result:

ok correct

Test #36:

score: 100
Accepted
time: 4ms
memory: 3672kb

First Run Input

1 10000
18766 15855 23032 13563 31049 11059 23957 27890 30245 30715 4528 7814 3574 4300 27687 11702 20803 22861 12643 19429 20691 3255 2685 8077 22482 16851 27038 11015 31340 18919 18192 29037 13798 14281 12047 384 24435 20568 25454 32007 18824 7806 7901 1211 12998 23128 29768 20066 1975 23256 17204...

First Run Output

28219 4550541436223

Second Run Input

2 10000 28219 4550541436223
1986 13194 16564 6225 21529 1067 21049 16806 4278 18014 13144 14479 14517 28594 27219 16072 16224 23304 20647 26843 27441 16541 4395 30806 24307 11630 9313 15184 16258 20239 11898 27574 22205 24661 242 9589 12110 3166 4544 26509 8859 27109 31832 8916 11104 23893 19339 243...

Second Run Output

30143 27602

result:

ok correct

Test #37:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
26926 29119 8301 7702 18334 13443 9961 496 2819 21881 2208 20735 2149 10659 30076 14743 32193 8643 21146 28261 24427 11159 1947 13547 32014 12705 13843 30503 1991 18403 16704 10728 2238 30148 15557 17694 20374 6065 23944 4758 636 6238 5278 2625 31651 4257 24223 29986 3071 18023 18396 21234 1...

First Run Output

2417 1066828445505

Second Run Input

2 10000 2417 1066828445505
10715 27080 5595 1637 16343 6785 11894 15974 3261 3980 17216 10664 17847 20204 24850 5745 2103 333 29763 12117 8369 25733 15995 11923 10245 25943 19117 11292 12196 15257 27943 5056 16354 21554 10067 14157 4033 29960 26604 16232 4628 349 25983 3319 2467 27258 32404 3580 852...

Second Run Output

14207 18187

result:

ok correct

Test #38:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
5307 23348 19208 4822 25251 18201 25987 24261 11469 22862 27778 8610 12461 15878 1013 31886 2488 1862 30405 25212 2789 27205 812 18415 27640 22907 32287 28634 11103 14687 4772 18123 1993 15630 11562 9072 18566 5282 25705 13435 5969 25476 6453 14537 20770 9342 26065 4075 9376 18430 7536 26338...

First Run Output

21323 6484236987523

Second Run Input

2 10000 21323 6484236987523
26390 26155 19901 16188 22615 6528 12537 26587 1927 159 17751 13082 25959 16750 8336 21844 11913 1074 27675 3791 1718 27351 31349 7378 29468 25087 12793 13885 29943 29681 5915 22973 13348 12433 14041 19185 26730 28042 6288 23289 8998 16777 1687 7141 16827 7067 5344 1579 2...

Second Run Output

31998 24733

result:

ok correct

Test #39:

score: 100
Accepted
time: 4ms
memory: 3912kb

First Run Input

1 10000
131 4369 8032 18505 25506 23304 27216 3737 21267 1143 32539 25989 19251 29449 2670 9900 15215 13403 22389 32641 29994 6096 13003 22119 2640 29280 6398 13177 5853 2118 1189 11511 7443 167 12836 2669 22245 18132 7708 17873 31275 1643 17088 12588 2594 6703 12404 25103 8234 10384 15678 11874 912...

First Run Output

11211 2647186312385

Second Run Input

2 10000 11211 2647186312385
25905 13220 26091 19818 15648 25025 10432 21139 28812 30462 26150 23042 23327 5297 19564 30709 11893 7145 1472 7893 3842 4397 17429 4938 19260 26694 22543 26043 5882 26425 25908 15223 28382 27517 15975 10617 22628 19188 27658 22802 1170 3245 3559 8807 18864 18349 10107 84...

Second Run Output

32581 30641

result:

ok correct

Test #40:

score: 100
Accepted
time: 3ms
memory: 3608kb

First Run Input

1 10000
26030 10957 30113 223 144 17779 20970 5167 31120 5220 32328 16547 11350 31758 9296 27212 12165 31965 9350 7919 13288 4910 29557 27244 21425 7979 22922 21583 30607 24636 20440 29104 5876 5011 32155 21218 28522 27214 30071 1136 28451 30259 18818 16960 17525 31418 29651 23301 25034 16127 18613 ...

First Run Output

6732 708380585328

Second Run Input

2 10000 6732 708380585328
18060 27503 1862 2936 6860 26801 6717 4559 8185 20599 8177 19896 7278 22157 19160 9398 13118 32169 27275 6779 29679 3308 4898 3415 16581 9586 20231 10118 14334 9852 9683 21391 15081 8593 2720 3434 29311 20208 29037 16252 19879 5612 28015 10345 10945 30708 12144 6629 23097 1...

Second Run Output

25308 18616

result:

ok correct

Test #41:

score: 100
Accepted
time: 2ms
memory: 3688kb

First Run Input

1 10000
16928 27178 8610 19215 6190 27182 3377 29977 9448 5972 7343 3048 7535 24089 32528 25364 29528 16033 13364 21934 6285 9188 5840 32491 26736 19053 22542 4167 7024 7272 12221 1193 21501 31692 1459 12963 22967 21880 11905 8817 20539 9294 28260 25719 20964 30314 29264 28001 4827 21320 2875 12600 ...

First Run Output

5339 1390158635901

Second Run Input

2 10000 5339 1390158635901
23406 17853 15928 13330 31750 25791 17291 9035 6909 8839 9265 30835 12206 10710 30322 23170 31279 4346 12323 1232 13787 29404 25919 27840 28856 27896 1762 13913 12219 5421 25499 11592 29254 8172 3482 17239 19865 28711 32325 4470 25444 14341 29595 7963 31833 17050 28794 249...

Second Run Output

8082 13556

result:

ok correct

Test #42:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
12922 29718 10160 12713 27530 13460 28024 9488 10028 784 17946 31959 18610 19487 19433 21873 30794 25695 5855 21642 27713 29151 9038 30195 31499 22692 10947 10181 1548 27744 7435 1603 10560 16280 18390 7205 18393 26394 6262 22522 24765 2710 746 22183 16557 15212 22344 18413 20416 25569 24410...

First Run Output

12567 544478942699

Second Run Input

2 10000 12567 544478942699
25198 16027 9435 23042 24300 6131 16943 15066 17721 30687 29834 14938 14476 828 22922 16348 32543 23273 28691 27848 14153 15906 8422 22343 18332 8838 20620 13063 23147 21738 13924 23513 6568 17578 31366 596 29420 5896 6167 23046 19626 403 15778 22318 11663 27112 12743 2145...

Second Run Output

9097 2708

result:

ok correct

Test #43:

score: 100
Accepted
time: 3ms
memory: 3652kb

First Run Input

1 10000
2839 1424 784 13072 23320 6487 31696 14095 26343 8786 15781 16278 16390 22497 22672 17110 29176 15110 12855 28162 15689 14093 4646 15630 6087 30762 12299 26123 22497 27983 17072 29528 14103 15019 32597 16619 14918 2313 29806 30709 31039 21472 19602 30458 18355 9261 23495 21036 13077 15434 23...

First Run Output

4697 311398817239

Second Run Input

2 10000 4697 311398817239
23044 13203 31366 19712 18477 14024 24037 25102 8255 1908 15897 10384 10632 8590 18544 14518 20560 17837 4964 2801 27003 9776 18741 16986 25152 23525 16313 30823 29261 23859 17301 31898 9499 21143 5292 629 9207 20749 21105 23361 28369 4633 27783 24695 27158 50 21658 13409 1...

Second Run Output

1887 29184

result:

ok correct

Test #44:

score: 100
Accepted
time: 2ms
memory: 3668kb

First Run Input

1 10000
26906 4784 13876 19042 25895 23792 12895 158 15693 27657 18983 30828 12970 6459 27769 9997 24450 9749 17309 13448 15556 25092 28637 9167 7296 15952 392 206 3636 22797 14157 1844 8609 15477 28099 17457 8498 30039 759 8058 21434 5595 4523 15118 1066 21797 22160 20389 7951 21796 21328 6783 2870...

First Run Output

21166 7139649428006

Second Run Input

2 10000 21166 7139649428006
19621 6747 22800 32756 16139 8130 11644 30591 5302 23145 1083 11962 2463 15271 32241 14312 10616 27743 13726 3002 25066 19748 19429 26713 15857 3154 32367 8324 32080 23801 11137 21115 18583 27795 8515 13448 29377 1620 21801 19318 31991 21879 22895 13675 18175 27293 15074 ...

Second Run Output

9881 7216

result:

ok correct

Test #45:

score: 100
Accepted
time: 3ms
memory: 3868kb

First Run Input

1 10000
617 17075 1763 22430 21418 32068 2448 5537 5810 29985 4446 24498 18801 21575 11769 20863 18314 19325 12346 3305 14017 1746 18098 10270 31817 20564 23660 19994 9113 24277 592 13720 31374 24908 26908 30031 21943 11125 31750 32391 15415 9124 6039 25620 10736 29119 11581 1926 12989 1650 32492 14...

First Run Output

25722 4834890138056

Second Run Input

2 10000 25722 4834890138056
20413 8013 14177 22726 4168 5206 22912 20421 2321 26058 1242 10466 2188 17117 14234 19073 6344 26004 18888 1854 4006 4445 1690 15407 11059 19546 17622 16817 18458 1058 8530 3802 23662 13506 32236 6205 19401 31824 13469 14822 25936 29264 22884 32090 19457 2323 17986 5443 1...

Second Run Output

13909 15184

result:

ok correct

Test #46:

score: 100
Accepted
time: 3ms
memory: 3660kb

First Run Input

1 10000
12090 5394 12588 26445 23281 30807 31830 12433 20775 1391 2906 28983 15849 21179 10415 25786 31069 9992 9747 25706 19332 29603 12653 22830 20343 4706 24515 17715 11133 21401 19025 6459 20445 10570 109 28494 22780 8766 16599 7124 1009 22255 32175 492 32271 22634 13698 22823 23510 19860 3187 1...

First Run Output

29986 5928038931910

Second Run Input

2 10000 29986 5928038931910
26707 31749 5497 11238 12938 166 7425 49 4647 11031 16869 26484 890 28539 21967 28316 17350 28356 4104 20808 16364 12121 30751 14159 11958 5460 9014 20075 27025 27866 23529 12585 4439 23925 26406 25022 4140 15192 21574 26469 9109 23274 16886 27522 22379 13162 2328 24049 2...

Second Run Output

18921 2159

result:

ok correct

Test #47:

score: 100
Accepted
time: 3ms
memory: 3824kb

First Run Input

1 10000
8149 11771 19595 13944 398 24379 3395 29924 10681 27753 9942 6290 24999 6834 298 11275 31198 330 31605 19842 31850 9150 16234 2211 4034 7126 11736 25771 22596 21213 19845 6790 16481 16265 20554 23365 32275 2018 242 19487 5784 13640 21937 17545 7713 8329 11125 280 15143 29656 25924 8399 15288...

First Run Output

14307 2940216189995

Second Run Input

2 10000 14307 2940216189995
383 10026 4419 27715 22746 16672 5186 1368 6847 27743 23029 1254 32267 29881 26987 20012 29257 28364 10179 27751 23694 14927 25867 5221 10838 20833 17538 5761 11740 20563 12282 19311 19575 13491 26057 325 24260 7038 12702 1343 19096 2266 5552 161 23312 1807 24940 22516 23...

Second Run Output

7367 19540

result:

ok correct

Test #48:

score: 100
Accepted
time: 3ms
memory: 3680kb

First Run Input

1 10000
4407 24328 28357 26775 31827 3518 5646 8253 3767 12719 20452 17864 30038 30702 12900 30819 19765 29498 22249 8132 15954 24351 32602 17671 10997 21972 20910 27506 28640 27616 7053 32377 21846 17596 22898 16030 20660 2367 7527 30296 13440 12645 1607 12110 13401 11130 15181 21935 15048 20096 97...

First Run Output

17070 8651153753820

Second Run Input

2 10000 17070 8651153753820
4568 19748 13618 3156 27477 21053 4939 10555 23429 10431 31763 30824 20099 15631 19193 12606 3800 16012 1328 5125 32593 6246 22535 13723 15278 21596 16338 14662 8838 17127 20864 11022 21544 21087 15639 9184 28414 15271 4539 28333 26503 4113 15502 1553 19149 4990 25084 158...

Second Run Output

7306 8439

result:

ok correct

Test #49:

score: 100
Accepted
time: 3ms
memory: 3664kb

First Run Input

1 10000
2399 21293 25945 14259 5919 26095 18473 27071 7412 23420 11911 8044 30870 24057 31315 16037 27427 22294 28880 1401 16534 27528 7070 1506 17200 26332 10890 28908 32689 26631 31487 10424 2823 25432 19521 28412 25605 28697 13555 21671 25540 14069 1868 19176 7776 8504 24867 19348 6115 27714 2026...

First Run Output

31496 6083759772680

Second Run Input

2 10000 31496 6083759772680
26514 30001 1290 10542 4731 13119 11431 12468 12009 1051 15280 13987 15810 3516 16571 31059 1229 729 7652 21670 2513 12429 14046 5721 5449 26902 8952 10559 14745 24649 17977 27536 7104 31063 19733 16956 21986 3223 20112 21374 13747 2829 6718 258 9642 3012 26081 17424 4851...

Second Run Output

28193 1097

result:

ok correct

Test #50:

score: 100
Accepted
time: 3ms
memory: 3656kb

First Run Input

1 10000
2190 28253 11776 22857 22626 10210 17758 12880 21268 3229 8977 8207 23532 5460 20077 29473 12193 12552 17770 13190 24863 12205 25279 31609 16319 4489 32443 17458 8495 8451 21391 24297 7174 24800 11642 26956 24346 21125 20098 207 29115 7289 12363 29336 11570 12147 24336 28096 11157 3119 24829...

First Run Output

16227 2274227296209

Second Run Input

2 10000 16227 2274227296209
12540 27582 28317 2967 12601 9988 25840 8340 6393 30917 20031 7374 16193 28842 2011 5657 3393 23634 27553 23137 2353 28021 3183 32194 24429 7536 4974 6860 14918 6645 4688 16260 21866 25606 8400 7768 29361 27847 4709 22276 24306 961 27769 9079 26815 30091 20776 853 5810 31...

Second Run Output

22597 32146

result:

ok correct

Test #51:

score: 100
Accepted
time: 3ms
memory: 3868kb

First Run Input

1 10000
25016 14758 5968 4715 13453 16628 2985 30967 9561 26708 14638 16027 27278 16285 10656 11312 23043 29583 14482 27885 30877 11921 6280 21978 2255 29682 27490 21660 14324 26018 6432 2090 7655 26611 18789 1201 7079 10281 6823 1591 4273 9920 12858 13018 5178 13595 25137 30882 24110 12919 8571 682...

First Run Output

22788 6079047753826

Second Run Input

2 10000 22788 6079047753826
25918 19678 22904 23575 25001 27619 28607 20742 1031 6772 5728 21360 12287 27584 17762 1711 28197 20276 30384 32141 2920 15259 16088 22323 9003 21986 20098 9952 24236 23086 9951 49 27538 8135 8586 27503 21463 23972 23443 3346 17198 30935 10216 241 25420 21828 22467 20885 ...

Second Run Output

5508 31213

result:

ok correct

Test #52:

score: 100
Accepted
time: 2ms
memory: 3912kb

First Run Input

1 10000
24871 12623 13611 18424 6204 28243 13225 4108 3403 32513 15935 20617 26743 27152 5457 29497 20594 11590 13586 27009 26734 8918 4730 30024 13092 10889 32514 27891 5164 8557 8491 23245 29591 26991 4858 11110 9126 25911 32106 26978 7030 11062 25518 11841 20510 28508 3733 32755 26593 22854 17722...

First Run Output

30796 5775590316568

Second Run Input

2 10000 30796 5775590316568
6477 22741 4488 14817 14157 10330 24020 12170 3633 3156 3029 18185 1259 22907 10122 2367 8450 19231 4545 7927 19144 27239 16312 31531 8891 22533 24664 4671 29723 32511 31957 29556 30331 4132 8127 15288 26708 1411 17742 30877 23884 32557 30786 26365 16900 30885 21168 21075...

Second Run Output

19163 8024

result:

ok correct

Test #53:

score: 100
Accepted
time: 3ms
memory: 3612kb

First Run Input

1 10000
18914 17378 4154 6620 29676 14260 31119 23310 9786 13189 2790 25044 9216 14216 8620 4276 31599 611 5443 26955 24233 1582 21450 18954 20439 23830 4570 25398 21786 28803 2101 29618 32202 10700 28350 23469 10395 20758 1406 30274 18426 11796 6636 8848 2230 32317 13566 13079 18900 4488 16670 1228...

First Run Output

31392 6270783934922

Second Run Input

2 10000 31392 6270783934922
4060 12636 4233 6438 15985 5704 18028 19023 9974 28705 3335 19981 30899 8980 10142 15485 427 30355 6715 1677 13136 13138 19122 11961 16349 28750 27206 23856 11718 22409 6475 12478 21971 20614 18041 3475 26857 23406 4604 22924 8579 5174 19423 7596 19583 13675 26231 3009 36...

Second Run Output

31690 9020

result:

ok correct

Test #54:

score: 100
Accepted
time: 3ms
memory: 3840kb

First Run Input

1 10000
22592 6538 23421 31160 3629 18468 17751 25377 16837 11065 5174 26701 1383 31047 22913 27047 12389 19669 12057 4889 23144 13349 13275 27812 24194 8836 16269 10627 27857 14793 10609 6190 31931 18431 29435 5994 24291 6220 6919 12528 32701 18871 27316 15781 12702 21464 13085 12540 8906 10070 194...

First Run Output

1521 1598278265007

Second Run Input

2 10000 1521 1598278265007
6358 5217 17354 14183 1584 26594 10315 11345 14112 9701 19039 3694 25827 32335 7479 19389 29011 24852 30005 9091 7141 10852 17320 14772 11320 11667 5419 7951 9969 22937 5864 16113 11357 7679 18774 18636 29246 9503 16176 26258 5871 10917 20995 1695 9002 22146 18849 31227 10...

Second Run Output

3186 11600

result:

ok correct

Test #55:

score: 100
Accepted
time: 3ms
memory: 3652kb

First Run Input

1 10000
29244 5100 18062 20788 23376 10126 10875 12723 1537 30560 24078 5906 10780 8136 24849 10668 17693 31341 14256 19256 2962 21477 31405 22728 23688 18178 9920 219 1016 8175 27317 12759 31699 31734 22729 23923 29907 29445 3256 30182 28115 17972 1191 6084 9035 3068 14839 3172 27596 6028 3548 1204...

First Run Output

19701 6346523232685

Second Run Input

2 10000 19701 6346523232685
21006 27454 6123 11354 12559 17635 21346 10894 13617 31121 15784 17110 2354 606 29087 29105 12539 31510 25789 20132 23768 19298 3204 20364 13286 10689 7736 2831 20601 21248 3961 14724 21746 2742 511 16688 27911 5170 1923 13325 10517 2348 12063 22671 1203 1234 23467 29502 ...

Second Run Output

1305 8765

result:

ok correct

Test #56:

score: 100
Accepted
time: 2ms
memory: 3696kb

First Run Input

1 10000
20168 3456 15240 18836 6700 582 31779 4957 6805 3408 19711 3962 3010 22241 32459 19272 5166 13004 22034 16263 1651 23224 5339 18293 5595 2018 17916 20167 12629 24109 29323 9163 22365 18778 7389 19658 26512 2298 23540 167 2641 5121 12104 23726 3794 17491 23898 17541 28341 22946 352 11445 1087...

First Run Output

26762 7022157657126

Second Run Input

2 10000 26762 7022157657126
11502 16154 1738 18027 29892 2708 26498 30956 8012 20265 22825 16880 20528 9852 797 21306 2953 22192 6819 10854 22242 8976 25986 12126 3018 7493 19912 19965 31124 20337 13117 32390 626 25531 10697 26617 10804 19215 6215 18430 8743 11685 20869 184 6912 7533 31432 32033 290...

Second Run Output

1039 10171

result:

ok correct

Test #57:

score: 100
Accepted
time: 3ms
memory: 3908kb

First Run Input

1 10000
23096 5629 23337 4112 11050 7883 22504 3627 16598 24726 27706 7031 8086 3874 7286 28547 15099 18022 26075 10434 14334 18705 15577 13608 23766 24386 18623 10009 654 29178 31061 1756 12584 27083 12670 3818 11022 19840 14072 28564 4388 32160 18752 6614 27281 10618 11627 16579 11919 28397 30747 ...

First Run Output

1854 3511802359424

Second Run Input

2 10000 1854 3511802359424
6639 13323 27594 16454 3867 28703 32381 24340 18838 24370 14609 27820 6091 200 21612 28594 7604 24957 26776 25847 2625 28533 11770 2359 30380 21207 9889 20561 22070 28729 16336 24371 20806 2214 11548 5386 21347 28719 5909 8205 23734 20644 30020 31089 4562 21924 23811 26322...

Second Run Output

15955 9152

result:

ok correct

Test #58:

score: 100
Accepted
time: 3ms
memory: 3892kb

First Run Input

1 10000
10281 5247 1470 18885 10458 13272 27689 12333 20450 15779 25541 12461 7840 17796 9509 17959 26088 23444 11279 23679 8060 25587 26069 11530 10301 26681 14682 17476 295 3310 27733 14030 15677 25552 28679 30377 31485 19163 20437 30909 6269 28161 15824 19196 21080 2548 19780 2195 27256 15 19258 ...

First Run Output

28110 7308130103670

Second Run Input

2 10000 28110 7308130103670
3001 9512 20771 27067 20539 2626 483 12759 15942 7619 4375 2153 18162 18336 3731 6709 7733 1620 29447 4440 29692 22172 11703 30209 23950 22965 17478 18426 5090 21743 27349 27281 20679 26711 22379 637 1264 9057 31860 18328 28563 8126 12704 17239 2903 383 15841 23452 30131 ...

Second Run Output

17262 5777

result:

ok correct

Test #59:

score: 100
Accepted
time: 3ms
memory: 3612kb

First Run Input

1 10000
103 29715 14159 30300 10553 18655 25860 18626 28706 8896 31107 11614 10436 31151 27971 14997 29236 25145 13575 17711 6845 882 9112 10366 3220 30526 26391 4476 15762 11523 20882 32174 14513 13482 29569 9406 32537 25671 22545 16997 24867 30843 30252 31595 5249 3789 20094 846 22442 933 30180 95...

First Run Output

30084 4761058122690

Second Run Input

2 10000 30084 4761058122690
6421 8055 19680 13722 6461 27162 14931 8898 14544 29180 25887 28115 10872 16720 16661 26917 12818 11847 23495 1437 16297 24542 27307 3790 9601 31873 17174 23323 10615 1548 28311 910 610 27743 11920 7021 18756 31219 12029 12576 22172 28146 10647 8983 12404 14592 23620 3146...

Second Run Output

22299 12867

result:

ok correct

Test #60:

score: 100
Accepted
time: 3ms
memory: 3604kb

First Run Input

1 10000
11678 28179 11461 10391 9411 1552 19163 14423 32380 8842 6698 31037 18874 27822 9248 31760 878 15380 13881 32232 20314 1751 32082 21142 28375 10398 26650 32030 766 26743 10854 3931 14804 17629 28771 7478 2128 30444 25444 23158 23086 4202 5744 22057 23611 24550 29186 17830 20226 23194 7713 48...

First Run Output

8983 2184067066663

Second Run Input

2 10000 8983 2184067066663
9522 25284 5677 31292 4894 16158 18820 32078 6843 28480 19144 15606 481 20284 7590 1084 6308 17019 81 17937 24947 3310 9692 21928 9050 6796 7629 9707 5846 14407 17784 2397 23688 12778 20499 1629 23609 16761 496 25043 7471 24683 16548 19073 18719 19301 32361 7323 28826 1692...

Second Run Output

7894 31227

result:

ok correct

Test #61:

score: 100
Accepted
time: 3ms
memory: 3672kb

First Run Input

1 10000
23499 30789 27599 11455 21469 21082 5096 23188 26503 27517 12403 14046 6574 11582 3671 2302 11589 28081 9582 29516 19969 21831 22293 25491 15173 20536 15814 16506 26490 4320 8302 31300 2556 2833 20088 13391 1212 20661 22171 28682 32204 6890 32226 21500 24009 7601 25287 19229 12874 32501 1657...

First Run Output

17552 5027129473734

Second Run Input

2 10000 17552 5027129473734
25348 11441 16207 17200 9146 7661 2334 11983 861 859 118 6953 3187 709 23737 31350 31350 15578 1384 32702 23764 6820 741 1464 22817 14147 24366 23208 26462 6742 13906 19668 26862 21971 21715 12067 4517 8600 13375 12482 666 13736 20666 1271 8452 8916 5207 29951 2311 9018 5...

Second Run Output

26826 23908

result:

ok correct

Test #62:

score: 100
Accepted
time: 3ms
memory: 3688kb

First Run Input

1 10000
9711 22103 24907 5741 3522 29013 19792 25230 374 19815 19534 8655 1149 29669 23118 12921 7526 31749 26780 7011 15187 8488 9331 31546 23885 4108 31872 26354 12438 17723 17753 4912 1457 13702 160 25184 2663 11729 10706 27017 6169 31406 16652 18097 23517 25675 8903 5489 31718 11475 1587 8322 33...

First Run Output

25358 6119610116466

Second Run Input

2 10000 25358 6119610116466
5082 30200 9644 13106 26993 1687 29544 9925 28055 6162 10205 24689 28266 10358 12956 24759 9848 14073 10301 13061 3170 12357 17593 29151 21516 31451 4322 27707 23894 25004 140 12251 30239 7446 21278 46 25353 10788 6187 9623 4977 1378 20182 26553 19311 482 29868 11194 1346...

Second Run Output

24831 2867

result:

ok correct

Test #63:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
10070 21820 17776 18128 10095 13485 815 32307 8953 421 5136 30061 8880 11732 17527 9912 26527 28803 1003 25749 11736 30001 16371 26519 25440 25289 552 19475 17628 4306 21783 3827 24965 1699 26667 15477 31008 28066 8104 30712 1996 9289 10560 13526 28223 16866 15536 23163 17137 19191 30697 330...

First Run Output

1077 2074024572113

Second Run Input

2 10000 1077 2074024572113
12199 22735 20011 16869 16326 9689 20476 20103 16198 16062 9696 19079 699 1854 2986 18604 11257 23159 17518 32592 30713 22672 4557 31754 30505 9424 19113 8746 23670 13613 2801 17596 24158 23823 16559 13660 26984 11661 19264 3039 31469 26294 3347 14383 27076 13869 29681 117...

Second Run Output

7718 31644

result:

ok correct

Test #64:

score: 100
Accepted
time: 3ms
memory: 3644kb

First Run Input

1 10000
2644 31158 30443 16317 24904 9297 8060 3415 26049 28207 4307 15932 3354 22261 4809 8165 1922 32398 28850 17285 7970 9044 11600 3441 19434 20665 16520 26874 8179 24857 22157 27827 12485 32001 17799 16073 23275 17618 10805 9237 26781 10543 30305 27016 25347 22117 20885 29704 31247 20040 3077 7...

First Run Output

24024 5460584266050

Second Run Input

2 10000 24024 5460584266050
8756 29400 2824 13824 27494 886 10118 27423 24508 30935 19313 6221 12808 5301 32738 16168 31254 24909 6600 1977 21451 22593 12848 29269 27173 15571 6039 20325 28213 31380 12199 346 26368 26841 27687 13589 24938 17816 26084 25042 25548 24220 25067 20452 25618 28998 4243 14...

Second Run Output

7036 7878

result:

ok correct

Test #65:

score: 100
Accepted
time: 3ms
memory: 3916kb

First Run Input

1 10000
489 17669 7781 14258 13747 13303 16977 23358 17361 26124 22349 31140 5842 31492 18385 28868 27669 22857 27647 11040 5155 21381 23255 3165 28383 7326 27346 24233 25341 3842 10063 1026 12426 3019 11466 1372 18300 23768 27201 9398 5257 12040 6979 22482 5583 4941 14784 23688 23032 26208 6496 548...

First Run Output

14007 1896837562261

Second Run Input

2 10000 14007 1896837562261
11790 17102 21804 20749 31134 232 24541 25273 5906 10890 23455 19805 30851 17128 25623 28965 21153 8368 22198 25224 32179 5243 2961 10102 31361 12579 15766 30084 910 26547 20879 20712 16658 28804 484 8213 4635 12191 31004 27723 2297 21640 30462 30289 31673 12480 6285 3032...

Second Run Output

25444 12090

result:

ok correct

Test #66:

score: 100
Accepted
time: 4ms
memory: 3608kb

First Run Input

1 10000
60226 39246 56446 50771 63961 54990 53309 41741 50205 50433 19104 51813 47370 19158 56118 32873 19784 34888 40976 9209 6618 30548 50167 20597 12570 28219 36935 39085 32486 40637 64534 21404 37832 37928 8910 42492 38448 37981 52886 28914 18366 25728 17546 5618 42700 16745 7666 13565 50102 331...

First Run Output

12370 26061176620452

Second Run Input

2 10000 12370 26061176620452
31545 48813 16096 59625 28075 33443 37970 3761 21852 38504 51214 23751 23276 26328 56676 64589 22138 34430 41860 3537 51262 10538 31592 49820 4917 18678 20600 819 2638 1810 62896 50397 36912 47319 50303 16752 27072 44881 5408 53658 45851 63687 25837 8360 33539 17722 3244...

Second Run Output

30413 37047

result:

ok correct

Test #67:

score: 100
Accepted
time: 3ms
memory: 3624kb

First Run Input

1 10000
44966 43685 37807 23689 63543 41390 53496 7043 22478 2455 29754 49688 20214 55000 48839 45477 2127 57985 26046 16963 17596 42656 8535 43647 35761 24456 44874 61963 42609 38194 16174 3370 61313 35524 5157 8833 60212 5272 13202 40197 27491 44624 57268 61363 20811 88 50928 3933 42503 59540 3301...

First Run Output

38566 64872456387912

Second Run Input

2 10000 38566 64872456387912
52390 41841 3369 57317 35415 31650 26439 42932 11350 28723 15173 11098 5061 50999 36761 17056 63960 42333 23053 46441 1970 60230 44276 52049 584 2504 37240 23875 60542 9694 20080 13970 57433 15060 57719 43894 11707 4643 62039 23711 28389 7276 64805 39886 47662 58599 5121...

Second Run Output

62863 9501

result:

ok correct

Test #68:

score: 100
Accepted
time: 3ms
memory: 3704kb

First Run Input

1 10000
198 16093 20915 43960 25489 46190 55135 54961 36046 30143 7522 16713 30149 48005 35693 51375 4099 50997 63486 15473 35512 20687 62825 49677 59665 46216 30447 52079 46363 26573 65264 15950 63699 51996 2209 8932 39316 19247 64006 63701 29076 42868 10494 26102 14204 11500 29825 64645 19126 5751...

First Run Output

27392 31660497225474

Second Run Input

2 10000 27392 31660497225474
45475 53774 40932 13145 34805 16750 27549 54632 8516 61536 1656 35016 49623 60945 42788 40169 62959 31899 7485 51415 28612 57512 11992 15252 27846 65190 52135 63864 30203 53879 5127 33961 36112 57303 51309 19186 37817 37247 34438 36196 30474 34835 47178 17986 19071 56368...

Second Run Output

2501 14968

result:

ok correct

Test #69:

score: 100
Accepted
time: 3ms
memory: 3860kb

First Run Input

1 10000
3476 27947 55847 21004 34647 60248 22921 49110 49857 31333 61327 19034 36238 49554 1942 49197 1298 58557 25025 23771 1649 65327 10842 7903 5904 26227 19274 59743 33469 47011 3937 43782 16425 34588 62687 8494 17871 54946 49632 23179 14742 50474 14735 16842 17512 63926 12887 61737 1936 43348 4...

First Run Output

37250 60235701996830

Second Run Input

2 10000 37250 60235701996830
1427 25180 44383 37799 4817 22263 58898 53867 41310 64751 12002 32455 64347 22092 43132 38161 16987 63710 35001 45498 36222 61273 12467 46165 9064 65255 15126 23557 60039 51421 19165 33478 45442 23056 58139 41840 58118 10889 5160 47978 51468 29678 57119 19037 29702 7741 ...

Second Run Output

38485 61698

result:

ok correct

Test #70:

score: 100
Accepted
time: 3ms
memory: 3900kb

First Run Input

1 10000
23501 44327 4773 340 65099 6849 46772 13567 432 47186 15428 15694 566 6256 49834 43199 23198 9949 61256 10769 31553 12403 49910 60045 246 46520 39336 54515 48679 14427 10434 32591 8712 1062 5472 55143 22054 61805 633 60 818 58076 58229 507 18372 6548 48478 5378 22728 10040 54897 31928 34912 ...

First Run Output

63118 44988365834400

Second Run Input

2 10000 63118 44988365834400
44502 17769 13942 3375 61206 36485 11566 48055 29115 35338 5227 45513 22347 27913 1900 39531 1551 10233 36835 32820 60275 62171 42599 42389 5288 60578 15707 61499 35580 47847 7328 6670 8761 52958 35672 52113 9995 6394 6417 22320 56450 51346 10322 1359 45375 63206 24329 3...

Second Run Output

3723 59488

result:

ok correct

Test #71:

score: 100
Accepted
time: 3ms
memory: 3660kb

First Run Input

1 10000
23976 6018 30894 13553 8775 35258 57555 26839 5962 4909 22685 1342 7124 45169 63356 6833 36831 50164 42471 65484 12901 19430 21584 28575 15291 7906 48957 22471 280 2666 38106 19875 1351 15721 62375 23266 58995 58089 21335 20932 40105 57422 62538 30157 8662 53215 27036 32160 37020 53955 33613...

First Run Output

6023 34034757329695

Second Run Input

2 10000 6023 34034757329695
14949 17068 7174 63519 55483 45775 39192 50429 48833 58722 56240 8292 30235 51386 8063 38238 19497 527 9598 16966 61169 19284 5067 62519 45383 47326 11559 56298 62537 57453 10779 42345 29611 3504 23874 47772 44822 50657 53451 18502 27575 18740 33964 7367 12219 15313 6398 ...

Second Run Output

7572 54466

result:

ok correct

Test #72:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
47657 51777 56500 24875 17065 17353 41420 51830 28179 15284 12555 33552 22647 40115 2758 31254 28128 136 18225 33700 37772 25411 50252 42353 62387 59446 28231 45487 39925 27014 58518 47094 44967 11144 30594 14807 19958 27070 15832 39758 40000 14549 29854 32360 2264 22757 47913 12504 9400 880...

First Run Output

52442 60442313876472

Second Run Input

2 10000 52442 60442313876472
11994 19770 8328 31246 5247 17691 41196 20880 32145 7740 10334 23296 12551 48518 11936 2129 33177 25170 43444 53793 28746 48211 52802 21599 37405 54590 9768 51371 37624 56140 12733 45041 48678 53750 46512 52476 35656 31104 11055 58553 36358 58354 18306 54419 35152 23184 ...

Second Run Output

42173 28940

result:

ok correct

Test #73:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
55375 4084 44259 52850 13648 33263 58785 14197 31213 52250 45476 50918 12949 30642 29347 39779 18781 52935 1390 14867 57962 61479 11031 54820 48887 43965 25373 38699 37116 55676 35350 55680 554 50127 18199 61359 21640 37059 54449 24035 10899 12202 59289 58412 52499 24241 53710 28310 65338 50...

First Run Output

59485 68348617288579

Second Run Input

2 10000 59485 68348617288579
61891 11158 25270 64116 60001 55560 50351 55693 4241 41273 46519 6382 41549 30272 52459 49481 34942 51790 42435 5272 47411 40559 49312 50315 9042 2865 29751 35368 56624 29689 3769 59487 47664 28032 14884 41126 31003 35144 22027 29599 54549 49593 19346 24359 4196 41645 27...

Second Run Output

1858 22295

result:

ok correct

Test #74:

score: 100
Accepted
time: 3ms
memory: 3688kb

First Run Input

1 10000
36848 49070 7328 29161 28472 42216 8738 10136 49593 3734 28502 11858 10975 60703 53872 22721 57622 26501 51291 23664 49601 52668 62561 43176 35140 6321 9604 22801 6097 16479 3745 41198 24857 24502 33375 60815 7049 1541 44571 46799 21432 11710 27468 10441 51686 9427 60507 33406 13286 30725 22...

First Run Output

12420 8837796950898

Second Run Input

2 10000 12420 8837796950898
15428 57288 58040 38366 61657 60147 12507 42771 4785 48938 14874 55620 56360 41298 39368 27699 511 56492 46632 50167 48390 1748 37257 32196 58388 64602 28484 61139 3934 31097 20712 4299 47206 62029 25129 61430 4709 38392 52335 41047 12138 315 57906 4355 24993 58732 5240 2...

Second Run Output

46477 47498

result:

ok correct

Test #75:

score: 100
Accepted
time: 3ms
memory: 3904kb

First Run Input

1 10000
20143 56551 8176 54343 34703 36256 25445 4597 504 50677 64831 36927 14882 56581 13734 60816 49811 64427 15602 4600 44608 19064 27924 33151 23106 37638 7708 14744 13981 11523 18450 24670 44742 31567 21702 54344 58347 24659 54652 20638 13584 11852 17894 10336 36686 18861 8691 34976 38798 48792...

First Run Output

59742 59715681451952

Second Run Input

2 10000 59742 59715681451952
47110 166 1310 30973 17510 8006 58803 19807 18511 37939 11280 60387 56826 32143 42609 5072 51959 20674 41566 50866 28912 6153 33259 16388 7754 29398 58780 39665 35122 22578 21588 1284 53762 48430 11778 48745 19167 55114 62906 57320 3015 28940 10078 10277 17715 41204 7009...

Second Run Output

14823 50651

result:

ok correct

Test #76:

score: 100
Accepted
time: 3ms
memory: 3704kb

First Run Input

1 10000
62939 52295 34171 23025 27753 46562 61114 31048 20230 64568 1867 36828 48980 64151 64665 27039 760 13809 57622 16110 60723 38489 45276 6079 8367 33402 5216 1336 18049 271 31584 64178 4768 64010 57674 60228 57841 38165 12259 3324 54964 50773 50840 64798 36117 23316 24106 52449 34370 42377 397...

First Run Output

47905 54517646920733

Second Run Input

2 10000 47905 54517646920733
62869 43136 6897 45296 45492 971 12508 42770 46342 62050 8826 33664 49188 64466 17249 49495 35004 59239 42921 50304 13191 27868 5550 61281 27753 43151 23842 58284 16960 12001 52648 1877 8479 58625 60379 4379 50190 37727 24972 4084 39067 5558 41462 46049 20055 2270 4552 3...

Second Run Output

63735 27621

result:

ok correct

Test #77:

score: 100
Accepted
time: 3ms
memory: 3912kb

First Run Input

1 10000
51651 3499 39743 47079 11637 13711 3907 7509 25633 16025 23 56333 13628 39313 19007 62517 10958 9796 55723 53707 63721 14605 41371 41112 51697 10640 53215 34932 22440 36595 31134 5739 38244 23471 42509 6085 35551 48196 35724 63470 38245 24583 39742 36766 17753 64170 9843 23538 6807 20946 132...

First Run Output

33368 64180571634872

Second Run Input

2 10000 33368 64180571634872
4217 27543 12215 2734 18942 42988 5420 47412 58029 7642 50919 54184 64682 46533 38472 41284 39780 17185 20175 4932 53364 29759 23946 53675 65020 8798 61844 42258 8366 387 46273 50837 49639 50111 52604 21784 7990 43204 19981 20655 33853 8683 19065 9348 62487 1226 12574 83...

Second Run Output

35522 18378

result:

ok correct

Test #78:

score: 100
Accepted
time: 4ms
memory: 3680kb

First Run Input

1 10000
43287 46504 19669 10799 52302 43738 58723 47506 6525 55672 64715 3811 38728 49559 257 44383 35903 45685 5943 49403 25359 52971 47844 11883 5625 30936 122 2850 14659 43119 50950 10868 12614 13950 36069 44066 55946 47305 33029 596 13690 38645 51030 53749 9581 27534 61984 6299 7034 19289 49049 ...

First Run Output

61581 62180508021609

Second Run Input

2 10000 61581 62180508021609
33419 7644 6410 63838 81 17366 50204 24278 36271 24760 25040 45851 59367 3921 18621 3181 49396 53332 3575 48200 11032 38024 36746 40203 5672 1865 41074 28185 58264 28475 62855 7374 49345 2029 62872 11736 10122 41292 24168 51742 2616 38503 36865 500 38122 54899 18109 3795...

Second Run Output

23623 28210

result:

ok correct

Test #79:

score: 100
Accepted
time: 3ms
memory: 3592kb

First Run Input

1 10000
8961 17994 61726 61110 3216 31541 3538 6570 62958 36 31294 41069 49861 7413 9058 56267 959 34098 11059 29571 10683 1504 9505 19996 43194 36097 50229 46231 28883 20685 55888 43013 48193 23486 33692 44788 5061 4908 4210 65237 31337 46085 44233 20097 977 54530 29963 20625 44644 8913 21456 15688...

First Run Output

37463 38397247131449

Second Run Input

2 10000 37463 38397247131449
64629 48381 38177 814 60073 24009 42249 59899 22430 32567 8337 22422 19476 28764 1394 20116 30666 26473 55192 36 38379 56298 22156 58196 60072 22342 59968 61114 57654 8283 17156 62971 8459 31373 41605 50393 1724 15777 21295 12899 36351 11506 24377 44995 18259 40508 46301...

Second Run Output

48698 2069

result:

ok correct

Test #80:

score: 100
Accepted
time: 3ms
memory: 3660kb

First Run Input

1 10000
55578 54955 58679 64425 24736 52549 14825 44823 54477 41962 20635 24338 13441 47 34570 47242 41874 14821 54024 37750 44655 4053 58614 65094 50084 11294 31794 41170 305 56790 61220 31168 39641 4852 52628 27658 59770 41950 58425 28134 27781 41040 53632 22486 8359 50015 64886 23655 41758 62391 ...

First Run Output

45034 50185575796110

Second Run Input

2 10000 45034 50185575796110
14000 22737 45196 22271 53328 43572 45214 8833 38792 46455 3746 49871 20347 38136 18187 15341 2129 19454 46598 23406 4951 25291 31960 55373 53765 40349 17669 21231 39397 44446 2737 21694 10604 57896 43803 18112 23570 14468 5804 41682 20065 25013 41889 5942 22820 7775 176...

Second Run Output

18300 61879

result:

ok correct

Test #81:

score: 100
Accepted
time: 3ms
memory: 3640kb

First Run Input

1 10000
34306 54520 65294 40819 38744 15713 32749 32736 7416 30298 35064 42996 4374 50254 64251 48003 31416 37808 44624 31544 9592 13076 56101 24307 16359 58772 50396 5055 61195 46061 46710 49192 13625 44633 28080 15739 45140 37280 46052 35470 34981 37117 43780 7099 38537 22152 9493 45761 2279 51696...

First Run Output

21035 18221336078895

Second Run Input

2 10000 21035 18221336078895
37206 4063 57953 51965 2693 14472 64649 6711 50503 38604 63659 52025 16420 13641 62723 17874 30367 63299 47941 46579 6633 47862 13904 63747 39026 38841 48965 3550 13936 13876 37066 34538 61791 1694 22239 56895 60663 54928 35631 61200 2716 15575 40148 35244 52097 35529 42...

Second Run Output

13946 39206

result:

ok correct

Test #82:

score: 100
Accepted
time: 3ms
memory: 3916kb

First Run Input

1 10000
47506 30024 59420 14106 17889 34087 29285 35120 5116 10802 14686 10355 63106 62259 25668 1808 32620 50836 38068 47443 12184 59997 38237 32611 26703 57601 2548 61005 46076 26061 44332 32726 50512 36808 47514 61714 17123 54593 29057 14499 48220 52474 57121 46254 44725 36922 21907 18798 38999 4...

First Run Output

47245 52113557431503

Second Run Input

2 10000 47245 52113557431503
65428 22208 63591 404 1979 62372 10103 7847 45092 31985 54091 14160 4214 55263 13987 30636 17709 34266 50448 10032 57109 28525 23525 24798 12574 32089 48251 4378 43676 34921 36723 28660 64629 38824 39124 5312 58023 8375 50549 46886 51103 41398 51981 43295 20941 57078 169...

Second Run Output

55447 6968

result:

ok correct

Test #83:

score: 100
Accepted
time: 3ms
memory: 3608kb

First Run Input

1 10000
63817 54882 45027 63057 51142 16311 61712 12941 62193 36257 626 36151 44811 21254 60513 6086 22696 7825 21184 45344 41752 14371 31030 41563 56426 24205 6491 41519 34776 53792 37798 41913 33077 36932 62694 54040 21909 39590 20965 54394 483 44475 17548 56569 15170 9338 58433 53067 44874 6228 4...

First Run Output

15267 27191975229527

Second Run Input

2 10000 15267 27191975229527
21703 26692 11145 42122 61158 12205 17810 47358 37893 64883 4724 12548 49208 54589 4322 20040 315 17928 12343 9199 21800 9609 44265 40524 14090 48592 40897 30783 12944 20682 14183 12397 26600 2826 26448 47895 3917 144 25092 52179 4749 32059 16116 18251 34104 60844 65275 ...

Second Run Output

5012 22344

result:

ok correct

Test #84:

score: 100
Accepted
time: 4ms
memory: 3608kb

First Run Input

1 10000
9193 47304 44871 64431 3249 46064 53447 13524 10446 54641 63390 30447 13582 47948 11581 52106 24577 38561 58985 26965 64175 51352 53663 46747 57621 33049 7867 19806 57167 35579 46356 16934 21849 45165 48050 12894 46246 39399 7586 62886 42619 60055 53604 40747 50860 15248 64939 32824 32786 13...

First Run Output

58727 45654154448477

Second Run Input

2 10000 58727 45654154448477
43554 12518 31261 10452 60053 9877 58999 29068 59174 45537 43912 26650 48357 30273 20320 38625 42855 34403 23256 52906 44368 50626 4832 18789 9184 60364 57966 15852 9849 36747 3298 21808 18565 60951 52323 29245 2375 62189 56786 25560 1082 65257 62982 55578 53693 50435 61...

Second Run Output

207 15211

result:

ok correct

Test #85:

score: 100
Accepted
time: 3ms
memory: 3608kb

First Run Input

1 10000
51734 15137 48078 52834 5782 48672 27974 28190 47651 22112 41551 35017 20346 16802 62587 57263 39842 4902 26591 23952 37358 58977 55642 50973 51980 31425 900 4306 18479 11632 55243 49420 49089 52351 15860 30221 58372 29759 32334 56141 45551 16377 57660 24865 16704 54254 32265 22370 31166 510...

First Run Output

39249 60287333474135

Second Run Input

2 10000 39249 60287333474135
52249 51685 31448 21613 30505 62887 37911 57942 15567 34250 52883 43351 44105 9337 15799 27181 41848 25914 44386 51673 63959 7278 11593 45435 813 64599 50743 16334 23592 62655 6433 19897 39689 22979 60865 61171 40217 10544 62396 6315 32534 64371 59726 58430 38468 63597 1...

Second Run Output

57773 12650

result:

ok correct

Test #86:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
34254 51567 36065 45123 48627 50527 64049 31621 2205 56468 17686 7600 6849 19869 52670 46045 42920 65167 4660 1004 59000 47191 14560 28770 28970 46748 6960 59187 55262 10888 10068 16164 1418 51396 60069 63842 24125 23938 36126 57784 59661 52240 44060 34676 55760 6787 30409 57810 23422 26299 ...

First Run Output

32825 60922626239289

Second Run Input

2 10000 32825 60922626239289
60132 60896 31593 54755 52051 13079 29692 64957 3878 21904 16044 14500 27682 29061 11462 29601 19949 4487 28564 45933 52586 16202 27339 58420 61435 13976 50352 11619 64922 39165 4679 9860 64852 19171 17534 49218 30587 60951 6935 54751 29794 14859 7186 60513 41236 10831 2...

Second Run Output

32453 49123

result:

ok correct

Test #87:

score: 100
Accepted
time: 3ms
memory: 3912kb

First Run Input

1 10000
39880 9534 35453 62136 10089 19532 10230 49793 57795 60190 37207 56327 7526 7590 48378 56853 46679 41136 33517 28009 51286 39071 5695 18995 31713 49396 981 47246 14618 57937 6865 29808 22041 44597 61068 35966 26022 34428 31488 10884 55288 22759 5808 16415 20870 59904 17410 51174 43923 53725 ...

First Run Output

33519 52717355716663

Second Run Input

2 10000 33519 52717355716663
5784 25088 46157 56939 22386 28298 10048 22786 21254 52134 19352 38400 11110 64910 61507 57739 55444 6836 22410 32318 46702 61888 20843 33928 32557 20202 10986 17834 54012 7715 46217 15811 60379 9329 39714 4271 17781 46163 32941 24367 62336 49649 51961 58088 53421 2619 5...

Second Run Output

11992 36339

result:

ok correct

Test #88:

score: 100
Accepted
time: 4ms
memory: 3692kb

First Run Input

1 10000
30760 57524 26064 15699 45590 8310 19245 12162 19715 65338 1641 25201 49261 57432 24484 3673 16547 37679 52054 48252 56479 21530 23998 22086 19593 49327 39599 46616 9025 36427 42331 15430 59851 59616 45278 19903 42383 30875 58763 45434 5063 33995 13531 8841 10491 21114 35901 26222 64280 4263...

First Run Output

14284 14627197492616

Second Run Input

2 10000 14284 14627197492616
57863 34523 5177 44538 2465 7268 40680 37065 1686 43182 9901 60775 31405 62674 60297 8384 13194 56301 44490 22499 8384 63489 63302 19002 58080 48379 60083 55204 54567 19958 41079 8927 15094 11796 14158 36264 63383 34330 42914 44847 60262 3503 41444 64701 43868 4320 61975...

Second Run Output

1617 19699

result:

ok correct

Test #89:

score: 100
Accepted
time: 3ms
memory: 3660kb

First Run Input

1 10000
37515 26193 6922 60596 60945 49158 39918 14245 52034 22458 35685 549 42757 62542 32628 50491 62115 56117 44880 44920 38128 12238 5756 41244 45942 47218 31747 4901 29947 62419 46405 8131 4432 15782 13824 55894 8934 19941 14054 1695 38133 63732 41117 55414 4755 45898 50068 17677 48477 36681 48...

First Run Output

59064 66305953731236

Second Run Input

2 10000 59064 66305953731236
64888 16182 59121 19923 54114 27273 10033 28217 40036 17858 24785 10941 50620 30834 4642 42016 30330 7023 36550 61019 38889 49272 15919 55866 12150 35927 36716 43168 1407 10508 54453 7342 60204 35848 3493 8675 23753 25060 33504 41372 65527 56691 21028 23205 52166 32071 3...

Second Run Output

20987 65452

result:

ok correct

Test #90:

score: 100
Accepted
time: 4ms
memory: 3912kb

First Run Input

1 10000
61334 18947 20278 344 46546 55516 10940 6110 18800 49318 5048 23901 58826 49628 52247 5840 46862 23887 52282 52724 4148 26244 3355 52573 20880 58534 30519 26132 62843 45255 5293 35565 61817 35447 63406 63982 15450 6725 13035 18451 26764 27551 652 4924 20599 1550 7415 22601 43565 51026 60875 ...

First Run Output

58575 39829000237647

Second Run Input

2 10000 58575 39829000237647
48314 45014 29760 48192 24759 3463 7128 32519 21490 49134 24407 35295 23408 61545 44641 42714 7795 51635 1778 3057 40375 9246 8938 10973 22669 34501 60250 30350 42246 9473 62100 44316 24121 50626 50420 35801 3036 9560 3647 33395 1811 1108 32613 29715 7069 57995 50161 260...

Second Run Output

29779 47168

result:

ok correct

Test #91:

score: 100
Accepted
time: 3ms
memory: 3668kb

First Run Input

1 10000
6138 28857 43334 25620 61151 60404 25884 33505 9090 49332 51575 48359 60263 2181 12468 61083 26367 45786 52010 54225 16328 49724 20640 56073 59565 17050 55103 16041 28836 18974 65418 43041 65496 38621 25523 41162 56170 26244 7844 22243 44188 25814 53743 55781 41711 43416 28728 53802 39399 34...

First Run Output

49185 49385253043321

Second Run Input

2 10000 49185 49385253043321
60139 8079 11055 57755 15797 3859 4134 25035 18708 15288 37179 64102 52307 46712 1877 48827 14041 16296 47899 40753 2286 34102 4842 56805 31181 23988 54949 32607 2814 46770 13567 57878 3243 39547 57044 6403 11374 56313 13080 20402 5366 7355 29437 16751 15088 7844 28287 2...

Second Run Output

19220 19119

result:

ok correct

Test #92:

score: 100
Accepted
time: 3ms
memory: 3868kb

First Run Input

1 10000
15277 27167 17972 9367 28749 1255 48181 50785 13816 11646 45140 1954 61490 56968 12711 1584 22370 7198 41469 28000 8405 13995 27039 62120 52731 40028 64729 14720 37686 13236 11408 1601 50362 41356 35173 49994 59493 15949 35605 56505 48711 52025 65255 11007 65404 30909 21441 20060 9650 46850 ...

First Run Output

17518 24444581079180

Second Run Input

2 10000 17518 24444581079180
64943 35888 3419 41854 50425 51333 24668 58986 28993 41338 22684 15157 48740 60710 50048 230 26733 17502 34126 34749 34308 50966 34124 34616 34315 27413 12406 11045 5737 48762 13642 3156 62909 51864 28909 46875 45928 37752 16718 50515 15127 35861 17555 62723 62163 2969 5...

Second Run Output

62370 53623

result:

ok correct

Test #93:

score: 100
Accepted
time: 5ms
memory: 3868kb

First Run Input

1 10000
49544 58758 12249 23342 6444 64401 18640 42154 50541 60023 8070 39226 21573 47666 49946 19572 22589 28049 26089 12350 21681 11733 35853 24721 54594 7891 49207 54024 2485 31068 23076 32082 25175 55641 50397 55652 9761 34915 23607 519 51920 63667 35919 44391 14367 36326 56106 12715 17520 65005...

First Run Output

34785 54178083732903

Second Run Input

2 10000 34785 54178083732903
27716 60354 11193 26670 16928 46590 17988 60071 7509 22434 63746 52502 16428 47858 5725 19972 57806 51966 26278 28934 25265 44636 1980 58828 2564 50558 18300 60778 64477 45540 45384 1440 24310 29740 32926 1993 12603 27896 37790 39012 47013 50291 59463 17429 61560 57670 5...

Second Run Output

20174 55389

result:

ok correct

Test #94:

score: 100
Accepted
time: 3ms
memory: 3664kb

First Run Input

1 10000
60946 44901 33177 2061 57353 28915 50582 45367 20839 29537 44490 607 56337 26458 39222 5575 2391 6060 3935 43324 19607 53519 58799 22433 23910 49375 9654 42318 47851 62499 48834 14942 4538 34384 4555 24013 1136 35986 63964 30989 41352 52939 27260 43492 23327 13392 35037 2505 28972 39622 6068...

First Run Output

63890 46659539699168

Second Run Input

2 10000 63890 46659539699168
48888 59411 35086 11046 874 64930 193 18511 60460 55946 30855 53729 46909 28920 9085 46484 10642 41218 60531 53877 8045 47968 64201 2391 27937 35461 43361 60083 22152 58153 25351 27527 30655 509 59345 35605 13954 27866 15766 64266 17175 61173 63987 60156 31836 55224 6516...

Second Run Output

7089 6967

result:

ok correct

Test #95:

score: 100
Accepted
time: 3ms
memory: 3836kb

First Run Input

1 10000
16838 64949 42626 9601 57604 30073 31623 45950 7366 24571 16903 57804 47055 7364 13844 30632 50876 60675 50067 62410 39159 442 38674 48255 53797 64941 60261 38079 13058 765 26429 13531 41835 44083 55438 44440 51152 3434 62536 11132 38065 12668 28627 10280 16205 58162 37172 25726 52835 40172 ...

First Run Output

25276 34109574848296

Second Run Input

2 10000 25276 34109574848296
44527 4347 27278 58379 34925 35094 21343 28205 18204 18109 35054 18879 56569 26871 53053 36110 37131 41005 41693 13800 63069 22832 43394 41049 20224 63203 2229 54119 41975 2272 38323 57248 11883 49191 25040 58091 25177 49493 40828 53654 44194 58696 40568 51111 17601 4383...

Second Run Output

48921 53618

result:

ok correct

Test #96:

score: 100
Accepted
time: 77ms
memory: 3672kb

First Run Input

1 200000
2911773921 1240151319 2922621463 4212913987 654516022 1346159023 2958179392 3636238438 2595585873 2309818937 56587602 2502306891 947859502 3542716709 564725654 244565600 2217649111 1929780914 706421496 1964385979 198060838 3204399930 3215388445 1243703190 1046422218 712459057 942897472 2048...

First Run Output

466487015 11394094369837554246

Second Run Input

2 200000 466487015 11394094369837554246
115849595 2325577109 342518985 194331921 2906529419 1796399230 483687034 1124252417 1215226040 2304689479 2029566595 2370469495 2499207427 1622594141 4165495932 1586676458 531672678 997813539 2336637886 2747148397 1908390951 2855267164 268488713 3553374072 365...

Second Run Output

1757129094 1224797059

result:

ok correct

Test #97:

score: 100
Accepted
time: 79ms
memory: 3688kb

First Run Input

1 200000
4101383982 3949422907 608129160 780342349 2690964481 811635758 3789847555 1414003911 401398573 741873624 305514443 842800619 86876319 737431589 1043139683 2167299889 2138825275 3017742896 587102788 810762141 2424710696 4220734871 1554705279 836096722 2144380219 2397634281 21107005 123964490...

First Run Output

2819795978 9967133815047987502

Second Run Input

2 200000 2819795978 9967133815047987502
3578308907 4016051000 436209582 2322186702 888119781 3197569233 4152550219 773301965 2218145777 3743418351 3045083695 342948724 1379142615 1563011698 3954957758 3666379662 3676516895 3965570543 1939627324 413257858 635215584 3856535105 4104262860 3545333834 35...

Second Run Output

4077965128 796504802

result:

ok correct

Test #98:

score: 100
Accepted
time: 76ms
memory: 3624kb

First Run Input

1 200000
3332301264 2074022087 2895872988 711480107 1763430195 2044386182 4125819835 1034410838 1680557415 772452912 3673351330 3120400156 4292460715 3061326031 2492841911 4110539634 923437172 355807887 1082488999 3049167137 2941192941 1717492922 3554667472 1622296126 3369534626 2952841982 369406992...

First Run Output

945871505 2855582212831359917

Second Run Input

2 200000 945871505 2855582212831359917
2499846429 1754318680 122929519 2322218903 333601670 3452247963 4056424772 1387112890 3057202711 2885994471 2834858554 3833881240 1122373490 3710139909 2688652237 2828656108 2632926119 2745541165 1383332168 122607678 2537506592 1394509688 502689300 2917365466 2...

Second Run Output

972937894 1781725473

result:

ok correct

Test #99:

score: 100
Accepted
time: 76ms
memory: 3872kb

First Run Input

1 200000
829637356 2792708033 3376250840 3620882002 975461471 2988637507 2744159846 3197115380 1495132015 919398321 2786971130 3932848065 1872377917 3336946633 1146925061 662383087 1536034539 1775713600 782520573 1435091187 2817858973 3572751235 3529421331 724565030 80502535 1745990395 2640608247 79...

First Run Output

1916754260 12955528898843027903

Second Run Input

2 200000 1916754260 12955528898843027903
1109780171 2721831133 965342781 887478040 3252217118 3369326281 1280017200 2353268618 889852469 3725789525 3141069187 2740932038 2746020081 1877042812 2104230669 180584646 2394367512 2099333463 487444863 541177472 2563350405 1619086798 1633967904 2296404748 2...

Second Run Output

1880050648 2362810

result:

ok correct

Test #100:

score: 100
Accepted
time: 76ms
memory: 3904kb

First Run Input

1 200000
1729853245 2899165965 1140670532 1925889744 1624690895 2134216768 3348198615 317573914 4153450387 797472982 890743426 3923251330 2156473283 106124863 1899272833 833422644 4292894002 670634966 77076658 306039584 1771856521 4031342081 4193870056 456943436 2557713689 2785258738 3296877411 1150...

First Run Output

2668419771 10755796405742289025

Second Run Input

2 200000 2668419771 10755796405742289025
3254961852 1090462702 3416767746 3992917296 2588949390 3267952969 556613021 3938062422 2304396491 790750284 1295660427 926415585 4113567520 35109444 512196124 3876515719 2783586856 1744891964 1382686067 1268427930 1424915567 1556374745 1691319874 2665128799 1...

Second Run Output

2046242975 1433874347

result:

ok correct

Test #101:

score: 100
Accepted
time: 77ms
memory: 3624kb

First Run Input

1 200000
2255682024 2009640816 2594205346 1247437441 3061825196 1915636480 3545501001 1514690572 278658344 428908490 4117686454 739921212 1713709520 1640138944 1785311178 627939495 2580391653 2653424280 731968267 3968625249 3843665083 3835861598 4105726270 4294532878 3069375530 3052962001 3417520674...

First Run Output

1009938784 14645456524623104990

Second Run Input

2 200000 1009938784 14645456524623104990
1145089497 2780409792 2985691977 1949817601 967078330 2161831009 1069462450 777394748 457772567 3429023386 1234618083 1916756128 3024595102 821439783 1985597356 2441853838 1615134508 229012871 765951174 1098148615 3738463431 2424770874 2274990499 2227867823 3...

Second Run Output

2623933832 1241003583

result:

ok correct

Test #102:

score: 100
Accepted
time: 77ms
memory: 3648kb

First Run Input

1 200000
4032229240 3900892660 3339392595 3171430781 1253646263 986104279 2807096129 2424834041 4269604173 1592068722 2750594014 153606638 285376473 389175558 2282277820 2764173207 3977502259 449687211 1255838979 304914059 677093089 1560255827 4268760201 2667911206 2099965266 3586660568 1818735865 1...

First Run Output

3635494198 11474854792097878984

Second Run Input

2 200000 3635494198 11474854792097878984
2296408771 381514178 557585555 1652051601 520089987 3988643762 3528834659 2164166259 1163946054 2979205763 3901340572 876257890 2227652030 2658807522 523973539 2963028996 2877678135 780257984 631993664 3364638764 256522160 2382949589 91975565 3977494713 25689...

Second Run Output

1614739120 244709571

result:

ok correct

Test #103:

score: 100
Accepted
time: 76ms
memory: 3652kb

First Run Input

1 200000
2318878148 437663238 2139018140 787768422 2162017036 1796469270 2629304764 4085966593 2582631451 692639804 1919327971 1651079527 330762234 358126538 1616090421 2418626356 3852082841 3420114911 3343286194 3723462270 324674974 3526439211 176130962 2754535773 3777443182 3815516002 4048521975 2...

First Run Output

3383961077 12005784196736742452

Second Run Input

2 200000 3383961077 12005784196736742452
1386542449 50956547 2278619193 2641182476 3780239929 3124488788 2902880845 1186558109 856013617 2417479725 666270615 2056660079 2333177405 3417387419 3273003397 3400057691 263623663 759046250 3166308054 1525122783 258450529 991961713 2035805155 3664682039 117...

Second Run Output

3535888776 2284778452

result:

ok correct

Test #104:

score: 100
Accepted
time: 77ms
memory: 3900kb

First Run Input

1 200000
66425853 343780146 4147077079 1512683852 684961768 3337034797 1012022694 2854771590 3203030889 717271594 739037149 565282077 3944679965 3843321160 3271806591 2951234769 3488701065 3680396477 884332238 816285829 2155458285 924404656 34073794 3625598220 43524057 3829477989 646323688 341580811...

First Run Output

2791308366 5061985889453441763

Second Run Input

2 200000 2791308366 5061985889453441763
1304979089 779937116 2043294858 1015534659 1251275324 585319539 1852675592 955111440 1835386450 3430900956 4131570766 2844609594 846401803 1994770081 2995990701 2205226452 770461653 562492665 2170266605 2274950543 1774408711 1471442671 523215785 3755980803 992...

Second Run Output

3083989649 199374311

result:

ok correct

Test #105:

score: 100
Accepted
time: 80ms
memory: 3888kb

First Run Input

1 200000
3972896954 3086983971 1704182044 1931145677 1019518472 2986891959 4061936132 914281234 1501070101 2190641150 1668730158 3967246692 3981950304 83766325 3756654349 123856468 73271343 3054168141 1076737488 3792979724 3087019584 2655565802 3724516483 117063880 1125367745 93491324 2764974177 424...

First Run Output

2439166866 6650181215479466931

Second Run Input

2 200000 2439166866 6650181215479466931
2469553404 3597376650 2925697202 3062820155 1433033367 3728156022 4079852303 2036323128 4051107004 3112433621 3116432689 151413990 1191373125 1390445051 2590154473 2920410691 3887382947 3405544737 3360693388 3834183600 512321105 3713424251 2696101942 199312552...

Second Run Output

2631847990 941341743

result:

ok correct

Test #106:

score: 100
Accepted
time: 77ms
memory: 3904kb

First Run Input

1 200000
1844269714 3602287275 136166488 151293703 1521448692 2341160331 3978225668 2103863873 942047573 246603125 3219143529 129193618 3045928859 86892034 1965167783 3497410047 4010934032 310960889 2547922383 3543224040 3500548561 1441203628 988354315 1653810940 783582236 4007581469 3049948710 3110...

First Run Output

4164451538 8190730889188535192

Second Run Input

2 200000 4164451538 8190730889188535192
1862069837 3962822891 1440529861 3873499199 1538284284 3209996169 712206048 2573355216 2008497021 2812798155 1278874497 581141112 1077631070 1214544703 3272526799 1723512692 3805658569 1253171778 2417861657 873430152 510858541 421421343 1119277421 14678907 399...

Second Run Output

3126807884 1005430766

result:

ok correct

Test #107:

score: 100
Accepted
time: 77ms
memory: 3836kb

First Run Input

1 200000
1254204505 2230626062 2411075078 739167307 2472564191 1468959876 1939233606 1932362617 1902777121 1528787606 3953818782 2108789338 667636814 3770863897 1860486106 196574825 3043703229 3334344341 159254732 3903244476 176990024 1631519492 3755024522 717047492 791661807 860110290 1555508808 35...

First Run Output

866544727 5646687008417759866

Second Run Input

2 200000 866544727 5646687008417759866
1017708301 1315962411 2014357923 4276623378 2508934418 3245783299 653090574 3297512841 1030342880 2516323928 4275898472 811745749 2762563809 3330609569 3841854673 3676170912 2214793925 3067745997 1321342210 1183530732 3871417501 1428073860 1746400466 2680280727...

Second Run Output

3947577333 2387903240

result:

ok correct

Test #108:

score: 100
Accepted
time: 78ms
memory: 3872kb

First Run Input

1 200000
1520453855 4085810874 1482614940 3849166426 3606194301 98984242 1868546543 1202524432 4013010153 2544503990 1861701213 2466633838 1424917274 2110014230 3393977896 2351691302 1470293668 2071179336 2640791016 1902072542 74915820 1315506484 1895343994 433646910 3211533628 4085731252 1049248639...

First Run Output

2106484503 8575153456474660829

Second Run Input

2 200000 2106484503 8575153456474660829
4108327569 1426012552 4243151927 151043942 1167896755 3480764762 2004229481 1099943066 2948934667 2003481070 1700317174 3038407540 2434057284 4008593870 3510366027 2565418963 4105506513 3965251655 1757279072 1434539864 963963154 1493310528 443299323 1525142235...

Second Run Output

2037198178 1314083257

result:

ok correct

Test #109:

score: 100
Accepted
time: 76ms
memory: 3820kb

First Run Input

1 200000
3807442348 3877341056 860096156 2635119273 2937879530 4269729013 1181681960 2981548783 1138849679 1702097181 720634456 3759855962 2511424945 2977732207 2452147976 1550962332 1329312834 2240994792 1244982541 4111609016 1541541365 4040538053 3644692502 2141429796 1031392720 958516477 17837261...

First Run Output

3991168518 1219144602754044670

Second Run Input

2 200000 3991168518 1219144602754044670
3512069715 247224005 4225920858 2670970681 1402732500 2309412961 948551525 2367851426 3618621891 2937121548 395489496 2318983493 2127828733 515505913 2299491048 3636744716 2122130462 1905320684 748566495 2794703767 555959935 141615135 962226475 3431148967 2648...

Second Run Output

718353058 180242502

result:

ok correct

Test #110:

score: 100
Accepted
time: 76ms
memory: 3904kb

First Run Input

1 200000
1296305124 1090386113 3988706735 3597742090 2514293417 2156634722 1267435963 112200129 3759407852 729757316 191728047 3445712514 2079496832 3819860692 3810517025 3016909744 1163082664 3842655573 2934823764 3095795166 2825813424 2536776775 2139624519 3589369450 1533467944 437238953 279435339...

First Run Output

2859507168 11764574716097999722

Second Run Input

2 200000 2859507168 11764574716097999722
702115195 1827642237 1647193164 342993817 2620244027 4196651280 3859251182 1291274257 3420269802 1129690650 244485418 812570858 1033685800 2689297346 708246623 2362724811 3395159788 205759320 785851884 3222391222 4081495508 2051503187 3419398112 380105187 509...

Second Run Output

1521963145 4099029136

result:

ok correct

Test #111:

score: 100
Accepted
time: 77ms
memory: 3868kb

First Run Input

1 200000
560324173 698348747 2099369568 3320808643 2367081268 3895183339 2544373878 1861063268 3187951384 255161824 1299069242 1240326426 1984163110 2239953854 2998539807 561692073 1078421408 2007267013 2284701662 3731329712 976215362 2332985119 3595505636 4152778890 2071561624 456906344 3894794173 ...

First Run Output

523044820 947224341321273610

Second Run Input

2 200000 523044820 947224341321273610
2979932851 2686775548 2528684285 4039811062 528172511 1690577198 3261754441 361939114 3411516009 2699420942 1936674687 3179951050 2767710983 3425872061 2301877890 1221454418 3256020494 1963441363 962524167 3998372952 3449506554 406235622 1517469491 3113951393 40...

Second Run Output

688966270 1434013278

result:

ok correct

Test #112:

score: 100
Accepted
time: 76ms
memory: 3868kb

First Run Input

1 200000
2272597132 1406088412 3925912283 3923246126 2325389193 3848431213 3433935886 2501721042 1119276324 189931564 3086340457 2944354747 2665329739 3004959516 1462002005 430508021 2509075481 1047356314 3210929466 3386059407 3602276656 3944590337 2663372610 2551637060 2541086500 2206608873 1401288...

First Run Output

1020371523 2434419666933984348

Second Run Input

2 200000 1020371523 2434419666933984348
1118234353 3880132958 3616513687 3185933053 1670601152 2227458746 870942199 4044511461 347618333 2737261315 271412794 3760060331 2345835000 1950222781 2910766847 3675798748 1671570289 2241242870 581817915 458967540 2189738949 310897029 848996414 610728797 2404...

Second Run Output

1498216168 2836616730

result:

ok correct

Test #113:

score: 100
Accepted
time: 76ms
memory: 3604kb

First Run Input

1 200000
837942485 3776655245 164710738 3760314059 1186743275 2138867560 1955420104 2455892151 2038770974 718639404 412355372 3663260929 4182543987 2364176625 199558380 1691362868 2952941250 3089548250 2985265111 3414462894 3453580167 4106620400 3248981518 3064804651 442249512 1838439596 3353294915 ...

First Run Output

1000131725 2839347946312962814

Second Run Input

2 200000 1000131725 2839347946312962814
2814612742 1892916231 1413248538 3102915621 2804815957 3714723183 3975765607 2454407458 2357930769 3832449814 2169213748 1670831714 153716952 3335776857 1912565189 1193521581 190601962 1224668336 1256807855 4080156655 1839013865 3123139633 3139410634 395495020...

Second Run Output

3590698668 1899709043

result:

ok correct

Test #114:

score: 100
Accepted
time: 76ms
memory: 3628kb

First Run Input

1 200000
3757889055 785721019 358444336 233962459 3858037588 767076329 459932072 2420413944 1529727006 3620865213 3141974090 1050755900 211782719 4078635891 4259447412 3741812102 3439619895 655049657 560866603 24546001 1789849450 1391943951 2600211637 735244544 1181626723 2945545414 2306453909 20919...

First Run Output

4052813432 3765199920117703225

Second Run Input

2 200000 4052813432 3765199920117703225
1676762319 3420943190 3852600631 64388973 1245634149 1135592590 3123861132 1625366174 373822294 2838011694 3107219702 305538936 3074530542 4057088489 769254921 4111199268 2455676804 3830298438 3090893942 4173851152 306526706 531030162 145137633 645938600 33491...

Second Run Output

4187622078 2870050198

result:

ok correct

Test #115:

score: 100
Accepted
time: 73ms
memory: 3604kb

First Run Input

1 200000
3044579603 2787372791 4089621998 1120496705 1234167995 3112244892 4018941339 4195010240 2280501029 3948422735 331427016 2410399002 3253221268 3076733189 835500305 3064852159 281334232 3678212682 3225603054 2906376663 3787681060 3796186096 4011784481 3827833353 3518582546 1196119464 17182043...

First Run Output

178941766 8911041722000267491

Second Run Input

2 200000 178941766 8911041722000267491
2351645589 2887404584 3991915870 59935099 785869404 4215698026 465280656 2918934860 3277883007 290648229 3227267578 3955154248 3393349300 4222561943 3733231911 623966897 632077787 2413192514 3812891044 2985197521 1292683010 1303082140 1784613898 976247250 32943...

Second Run Output

2028874750 2737972457

result:

ok correct

Test #116:

score: 100
Accepted
time: 76ms
memory: 3836kb

First Run Input

1 200000
2431896889 1229145858 2717755403 1901975295 402293698 3432277528 3782688082 3151720654 621791892 1731075269 4286124402 3266417540 2195973409 3256984509 2220171285 1461592308 1484640536 1666664493 4188248074 1782992332 1550511457 1149438920 733748528 37104123 2393831551 3631575691 1780761573...

First Run Output

3246584958 11410739070517031831

Second Run Input

2 200000 3246584958 11410739070517031831
3062102683 838888878 1820268083 2250324339 2644385527 2641730696 146197692 373084211 4178746257 1925410408 2593736279 3215367996 2130267620 2341077705 3474696130 842920642 3733180167 1173578936 3349614476 3472840451 630374614 975798268 1187228143 2816285372 1...

Second Run Output

3707804051 2508513001

result:

ok correct

Test #117:

score: 100
Accepted
time: 77ms
memory: 3660kb

First Run Input

1 200000
3067642662 1423099995 157326509 3784597202 280542363 1931962865 959736350 962400990 3728932481 989069751 1129665596 1237403334 1024318193 3590089121 3429800208 4255773705 3044170582 1554920383 1367028146 4188914014 1266458250 708086948 1589661434 3436460801 3032322941 323660135 3078421724 2...

First Run Output

1107100099 6465492530677542656

Second Run Input

2 200000 1107100099 6465492530677542656
4208391125 313051871 830216934 1139875037 4157175946 1767684238 1791866514 1980381838 3355029976 2294801146 2883324012 1385505509 147958666 2752399282 1996229690 3784189172 864722600 213087498 1920450703 2181951953 1091125532 3947332565 2460355614 843335279 16...

Second Run Output

222340632 2777552838

result:

ok correct

Test #118:

score: 100
Accepted
time: 77ms
memory: 3896kb

First Run Input

1 200000
3464729209 2068195158 1133163748 4091420441 919256111 171536307 3656062780 2055709248 1282311157 3372543269 677599310 238588529 4193670910 2990434580 2451440908 924428765 3382202435 2621333076 3629054853 3234430428 2382575043 940658969 1696652676 4027501387 1197616882 1027120232 760797832 1...

First Run Output

3380207662 4493301943338607294

Second Run Input

2 200000 3380207662 4493301943338607294
1638548335 3469741643 2747757890 4220313076 697667169 487326927 3262455266 509743054 3046190241 1135324992 2694304265 944059116 1869752561 3002712051 1473555054 4113816014 160084365 520423061 1667421871 1887214461 3230768612 4267106856 2727645093 4070485540 12...

Second Run Output

2568360730 1806163091

result:

ok correct

Test #119:

score: 100
Accepted
time: 77ms
memory: 3640kb

First Run Input

1 200000
3177971068 2259466701 4229888506 1148135490 3138571688 2210565097 3662655302 174029668 1906352424 2297210140 1078339016 1868485948 3093112699 3303338409 2576539926 2115789720 3820494465 754093182 967169722 1641041901 1797238245 826246769 562392143 3005186903 3540706390 3707931201 3778006617...

First Run Output

1528916943 11612474031047503282

Second Run Input

2 200000 1528916943 11612474031047503282
3500963708 600363285 2006178826 3200033547 3143434527 3189002190 2865553841 3174231258 3078163197 3092877719 3195999081 3676773064 3074686466 887755661 2694645302 713301827 958956694 824015413 4210027293 3332957865 229075253 2689436098 1181127128 2269268090 1...

Second Run Output

3547855890 3996782955

result:

ok correct

Test #120:

score: 100
Accepted
time: 76ms
memory: 3704kb

First Run Input

1 200000
3553447197 4062034226 2931920624 2086010970 3136637977 2820575384 3372476064 2105898157 1033899022 1974935876 4174792848 1951308040 572097209 1510383214 2378037385 3291802295 3443587092 3640723202 2849620999 2826127912 836359603 3287965696 1359521519 28380491 2113039349 737887840 1424842524...

First Run Output

1078368592 5323170269346884034

Second Run Input

2 200000 1078368592 5323170269346884034
11648227 1938956589 2526281928 2493762448 823099134 1280959442 1042562693 2475798947 635432819 1046642354 2797750768 2731161611 2896589932 3296748109 702297524 1724225875 1849396204 3965674017 2777668607 228105765 183030444 1044059428 4190315770 1287782060 429...

Second Run Output

28422814 2889175979

result:

ok correct

Test #121:

score: 100
Accepted
time: 77ms
memory: 3664kb

First Run Input

1 200000
2147329587 2096475296 613238081 2145057047 1796956823 4011556478 4181707641 1284788296 2565142797 1941837732 858495656 108587405 3678862668 1901002073 3506940064 3526188348 1180041368 1425870691 4138436322 2080210497 2129706033 580597369 2937550038 3157367228 10018536 1055254794 3113063256 ...

First Run Output

4105043477 8817390066253239308

Second Run Input

2 200000 4105043477 8817390066253239308
1655735052 3042006272 1103900129 3336297530 1484009521 2637895311 1609777678 3411790585 2458226231 2800909282 1226400196 3547609096 3610241201 2641737784 3041371975 1900406533 3175001316 2834520031 415015249 1978380566 3314130480 3910780531 2155208520 25399298...

Second Run Output

2261645837 328490172

result:

ok correct

Test #122:

score: 100
Accepted
time: 78ms
memory: 3656kb

First Run Input

1 200000
2970209182 1784597644 3279079245 2338079781 2422052340 2087597232 1529526510 1701324692 422223659 1732979603 2777689761 2130586475 958239854 3231686528 3188692273 3892946627 140230525 3473699137 689843721 2244984994 595788647 1111355430 3025853626 1990741970 602200950 671352552 635238213 37...

First Run Output

4261967389 10952919513453592902

Second Run Input

2 200000 4261967389 10952919513453592902
1062740517 2351563610 774066073 3913649999 568572976 3328846474 2484017678 1997644798 3374738302 934850587 3691593126 3969438376 2223815470 4254764683 478399726 1312836258 4028434726 3402629346 3515760693 3084793492 134226597 3088749713 3924138913 1707595040 ...

Second Run Output

1661994981 1230191133

result:

ok correct

Test #123:

score: 100
Accepted
time: 76ms
memory: 3668kb

First Run Input

1 200000
2849256582 1000894850 4011619228 3430699988 843949270 3843466179 2901382521 3971792438 4072274726 2509649163 3919208953 1913823581 3350138714 4246553328 1208325330 945956667 1014323648 797412431 2781195782 2065170682 1494093182 2418132631 2938752811 3582427731 1201884012 4202014626 27190829...

First Run Output

3182285177 4871328751479269595

Second Run Input

2 200000 3182285177 4871328751479269595
2769961122 2671105152 2839991148 2887904296 4272812058 936027826 4158027850 449323274 2379454738 1245658563 3334440314 3299108666 3754807935 2013520381 418432884 2693343052 844635249 1933609027 293084847 2530311922 2715860002 3045873149 3685881637 2905898337 2...

Second Run Output

3689141490 2956790153

result:

ok correct

Test #124:

score: 100
Accepted
time: 77ms
memory: 3648kb

First Run Input

1 200000
3233220125 3960905782 3287295099 2848053972 3336109145 1226873390 4207041713 1073425928 2695331773 611638259 3140874533 791476780 3797120262 4133421615 3745205255 3964833678 4270951668 2056909461 3760003323 552188018 2157324828 1761891706 1518316137 427468 1114154165 856357460 883297365 295...

First Run Output

1777742974 5109613915229309523

Second Run Input

2 200000 1777742974 5109613915229309523
3988836660 2160755584 3892155381 2988963835 3257940873 29910335 3195467614 509011002 1423930091 3797125139 690612239 1644607482 3089251810 591195365 2901507583 772388195 1000659091 3508210301 1943462466 368729632 482052440 1043723800 386581171 2991804115 66127...

Second Run Output

1533010852 2138394993

result:

ok correct

Test #125:

score: 100
Accepted
time: 77ms
memory: 3640kb

First Run Input

1 200000
1280589052 663627943 301420608 3931710249 301299216 2144088156 499425673 1308542588 1779267682 4085251638 859429394 40687452 2195222120 1245226000 4235738788 1757359790 1701449355 1575184635 3697040409 3308453311 659115530 1542185318 2518605451 2849034275 1322383010 499208650 3264341543 279...

First Run Output

47249281 1435316384400207054

Second Run Input

2 200000 47249281 1435316384400207054
1650832819 98907865 4142441224 869703704 833535237 1409376472 1720494806 126418026 2667347272 323681983 2530645757 3077948779 2608507443 4215504090 535654356 1763702567 4204943957 2170628472 3311528182 2306077046 2070579321 855079533 9966872 3123569415 107077515...

Second Run Output

1435655973 1617813607

result:

ok correct

Test #126:

score: 100
Accepted
time: 204ms
memory: 3676kb

First Run Input

1 200000
3558026423727162951 38179215270195564 6686885509946878423 9592477835859175008 3178331448842580948 6438575875865712922 15287972858028424484 759699708069124544 6420190604305483204 11571203747109215173 14332874967910617048 5478448408239285957 5126717829449395187 17347937322667200501 5209428559...

First Run Output

12709692127926644777 10024373772100478221

Second Run Input

2 200000 12709692127926644777 10024373772100478221
14499048244594535600 15011373364972069133 690517720295009923 8063531182353493813 7878950707765399586 9880521763603736790 3982083939127138294 14426884229058237504 1824888342218955765 8440830383041841757 10226312705827588645 1614409615262356575 135211...

Second Run Output

8637536678387532212 11823528224542639376

result:

ok correct

Test #127:

score: 100
Accepted
time: 204ms
memory: 3868kb

First Run Input

1 200000
7857074502133940516 18347420113382631829 789947195417249526 6790833168424920819 2726190859247218824 3452666057736056015 12983636786300434942 5262556619134925804 2752905833451699813 8978222396603119673 14616228670894288273 7848373337559909768 12688964783718666830 14947887180878940999 1427630...

First Run Output

9376041835213151844 11713852116056996760

Second Run Input

2 200000 9376041835213151844 11713852116056996760
15229160192723245858 11664157862915027416 6781763468936894849 12866879874215344505 9785624474562358588 8331158046007734006 13268535148756538099 14144979509209626063 664564021817206246 15749092304149805557 16869190982781838841 2115812730960976666 1138...

Second Run Output

3809000818663513009 13168472702762706116

result:

ok correct

Test #128:

score: 100
Accepted
time: 205ms
memory: 3656kb

First Run Input

1 200000
18031960683849934628 11756503225295220533 11612153500923627314 11470218874228921193 5098212304027626286 10452678820003168533 14948307850209061819 3331169451004777459 4507958435050530911 17132425223850690709 12870259283504255410 1363824272972824217 9640393012181895317 2263914394002224626 318...

First Run Output

12354940907075950451 13837485243031858217

Second Run Input

2 200000 12354940907075950451 13837485243031858217
12083405108549348302 14548048112529444376 17733140352181385883 4426461728681858248 3051043666143443806 12038274601722402014 4074378446130360101 3702136976605462913 759735499243215764 513434456398087989 13780993832699477184 696179683521314576 1608955...

Second Run Output

18012692109615862416 4849622471684963144

result:

ok correct

Test #129:

score: 100
Accepted
time: 203ms
memory: 3836kb

First Run Input

1 200000
1141423409264138008 3444825022527415583 17796687312383232602 6052257390309018555 1542786416401374314 4168815539068445708 3204320964510534926 1281189488132183448 6394715172850744250 14232159516475422549 17145805999187442263 3151753756971003690 5166448173349022097 6466287450632922073 88218884...

First Run Output

10479789471211016518 8354186552617651201

Second Run Input

2 200000 10479789471211016518 8354186552617651201
13724613555245450787 8250063661860867526 3710228546830024444 1942932459703361818 2130880405199230412 589763336077238916 8056931456839752846 2983171034618965317 1159329705730181761 10654397397427406685 8372432857191366887 16119775867270816463 51373363...

Second Run Output

17089422047705738855 4627480930004382318

result:

ok correct

Test #130:

score: 100
Accepted
time: 206ms
memory: 3856kb

First Run Input

1 200000
13589229663151184573 9259880804894763992 3575941698994018394 7988290730826279311 18346985840512723695 452764451037928850 15169199593999961752 6370680794214749648 13002042199468324755 12139270372472013311 14673288010586112622 13880439689368059674 17153244149362332905 2017391264885314341 1155...

First Run Output

15942961401740612215 9916541607878151447

Second Run Input

2 200000 15942961401740612215 9916541607878151447
13186967292294602563 15120543265978292725 17769998965619109441 14461976652558819432 15620027274304519893 13180152196192380730 10242581623931208456 974140940819178686 8273639785566892075 5743293256129534632 14728169713691954521 15509639828595630805 35...

Second Run Output

5699213283487364873 13931960444127512933

result:

ok correct

Test #131:

score: 100
Accepted
time: 203ms
memory: 3604kb

First Run Input

1 200000
14370358533284743918 12843824607542232173 1711765239981379186 7040497101532876421 13689027842780218559 955400159004989966 14106911247759940315 2256570425672721861 7561185983952468207 3124601339478870232 16104773972786587317 5723318206583685922 2401274337557607499 12764897633419021794 135865...

First Run Output

16749301434211579173 7719844174510748362

Second Run Input

2 200000 16749301434211579173 7719844174510748362
6695446188831058716 14851364743726585233 17684711406033860616 17364666213067857296 11558241919707914660 14284243118843011873 10444148537639523491 15130014305758198680 16744513054734930062 8831959831688445961 708510663580445226 16630658159804479768 75...

Second Run Output

12475468433502409659 4759107258601857162

result:

ok correct

Test #132:

score: 100
Accepted
time: 202ms
memory: 3912kb

First Run Input

1 200000
4740444472589187731 2471797774374998627 16882725691430748484 1309851100866409888 12155780805665614912 14682718843610205436 12673827959275238918 6624343847978996016 3935622139688816305 4027631752014167521 13212170641961131163 3724893345448818903 4714183907830504266 3921304776739974038 106975...

First Run Output

16488671911969425432 9875312722022718661

Second Run Input

2 200000 16488671911969425432 9875312722022718661
2938279253454391963 14352102709977517695 16199094564091235354 1933937272215352858 2581646432996632393 14385336214185688958 16026433817962482619 5682898052720616829 10925864010278299848 17087686448381770106 15307793736119093749 17344821575763237196 11...

Second Run Output

14999119849608278243 15492440031542639706

result:

ok correct

Test #133:

score: 100
Accepted
time: 205ms
memory: 3900kb

First Run Input

1 200000
14901469913174154322 5532989312454269690 3066000436202416217 15926254330420348578 10957177806965411809 398398373179309344 9241026055495546863 12371865837705802641 17879697295653212290 384435981601884026 8033276541597067096 5648548789791893861 674056959287759729 4703735982052244498 170507612...

First Run Output

11925990267752478414 16497627110828571495

Second Run Input

2 200000 11925990267752478414 16497627110828571495
13617937221870623309 8517384992571806454 15889636721987510369 18316178230203220021 4247226135876444533 3371792998695462188 12666016403508307791 6339085856068859396 8842768128041271685 7558640168247251431 11638260403440503919 5331988878410056977 2345...

Second Run Output

14686731107748644890 2803833185209315668

result:

ok correct

Test #134:

score: 100
Accepted
time: 204ms
memory: 3656kb

First Run Input

1 200000
2393145851593881145 2304696268391939545 17022883177680675458 2713156417058176171 1996726339093721539 6689048514920499621 4663637069023639546 6920179325228543550 16929145028254003622 13430954076739036021 17756528508419693732 11965251676163919010 9913664632943590930 17708374286491299578 10947...

First Run Output

1460611381472447417 13954584506524855495

Second Run Input

2 200000 1460611381472447417 13954584506524855495
3278723825749706451 17159708498878423333 13368962377332477750 13597686998807997761 13409041655681238434 17753348275802089942 13444947116367966356 11834576345388239170 1530649919126682781 14931439670791366591 2923400464880622705 5194888824948269896 11...

Second Run Output

13369141373115545158 7792848780789599683

result:

ok correct

Test #135:

score: 100
Accepted
time: 203ms
memory: 3640kb

First Run Input

1 200000
930609044444116122 14386102330003177877 17460068235443339875 18356238956797543332 2755694187721599914 77054512935219696 948157512565504915 5281231005667522027 15936087801436227498 2679505125379049917 12672358752432184833 4676502343997541577 441285900449016249 13658134030331401002 5126241730...

First Run Output

4490583671561079542 12966170278003997126

Second Run Input

2 200000 4490583671561079542 12966170278003997126
12522122621087382444 10266142727466881642 5299397684198418570 13316101269981321136 6764744018847310007 782082771797820492 1745534996710670371 7129972694889401534 7454567421498477762 2112256544548932119 18262640629117723601 13957796730637467197 368856...

Second Run Output

15763681230506105971 18255941272823178183

result:

ok correct

Test #136:

score: 100
Accepted
time: 201ms
memory: 3696kb

First Run Input

1 200000
11680483494071608110 3564625687258505631 11429038149165837397 18331270808085884128 14257077979841298432 17781888875271986937 9217534148233793211 7656394727404988817 17293123078387096687 15430417297688286050 3914206458997981455 2321471070316397220 9416034099745622671 14514886431076774970 106...

First Run Output

12364368010477873422 17574917239869875115

Second Run Input

2 200000 12364368010477873422 17574917239869875115
14906115505671798395 13683558478338813281 17311350550188336162 4021471826722708177 6600901976321778346 9676288166058977530 16145590275441716074 15904532973412204448 16571455589399788567 5636365485264948580 306734414323659196 8658438042975522307 3601...

Second Run Output

10760905037443589779 12849197758275364979

result:

ok correct

Test #137:

score: 100
Accepted
time: 203ms
memory: 3656kb

First Run Input

1 200000
6668991131356242232 2387773857501773253 12097812861340966616 10745244679604342940 14729602577823078613 11701897659336178103 13927635716117551987 10869749480003196753 8967424878652673265 18338521314626401533 288451696169779568 10375103723333517041 8160804022191741538 8048125197525244831 9800...

First Run Output

16642106570450255580 1796087230693182388

Second Run Input

2 200000 16642106570450255580 1796087230693182388
10863188778919524210 6271684776908485826 6112207711900779503 16576640661711590068 6902949381594722162 13901455872578853458 13779730319183249252 3028308977423144426 16845727742522655740 12235037017008386906 2329572064227166870 10936089107427731382 179...

Second Run Output

11383409530495553516 392900606729400202

result:

ok correct

Test #138:

score: 100
Accepted
time: 204ms
memory: 3608kb

First Run Input

1 200000
17686343823146494673 4885189054695714844 11435484997398355005 8773174853309414756 17535160821240468997 4712009068164628159 14175467565207176177 16255390637271202346 8085542711423372841 15852372385845411705 13392594783019115861 939115374916304883 14200224249704912772 14581918534679476097 114...

First Run Output

624757380859780628 8696492266243276477

Second Run Input

2 200000 624757380859780628 8696492266243276477
16521626770926645807 9258699670145020157 3082999189341098642 9696370937656478179 16001935505659751311 6665861599288450787 14431052563317292438 5987483323478234049 2240088126168441713 15725967597765589858 14434100273967579254 3356419077977882764 3593535...

Second Run Output

10035917029438905387 1580739278397685558

result:

ok correct

Test #139:

score: 100
Accepted
time: 206ms
memory: 3868kb

First Run Input

1 200000
16701338771848022095 15254666647717866360 3481615395657192991 17526861576973106271 9613907291310760166 253283927233725497 9500917635505871168 17132788174436084354 14153742448741489622 1670912107033941804 2056920575479247699 518417431148224263 9280334096197693915 1419683165771740793 71365651...

First Run Output

17148580586630629570 8876416453151620697

Second Run Input

2 200000 17148580586630629570 8876416453151620697
4539525491301055764 9033467626027070150 3315149816655880764 8785784599174914936 1566605863007529871 16962032662109574106 1562866807537715753 10037690424245012279 14082923402750230076 16597714752167958785 3201960247769233522 3182006869705636807 123194...

Second Run Output

4260835386068571312 11452500237960504032

result:

ok correct

Test #140:

score: 100
Accepted
time: 203ms
memory: 3832kb

First Run Input

1 200000
6112624608902430961 4481908264190238887 12626589406753188759 16175072577520210271 14134573322477992504 17419706062034794989 12137835200921497773 4608528337230847824 6413060974367278841 4914444889538722326 13102691617352768100 17067744239236374609 8831640124611336485 15517765731686823010 104...

First Run Output

1056252314989981866 801815509647649424

Second Run Input

2 200000 1056252314989981866 801815509647649424
11069270925988726357 15650392606422859696 2090420604592081727 7305464156670377602 14819761711278473185 6135388702034573188 10199541691382789074 7300092413483457974 14974944488083742593 15848965573711030511 17728530494606917759 8393354789039831053 14841...

Second Run Output

2613514466886915667 17550103116721576403

result:

ok correct

Test #141:

score: 100
Accepted
time: 203ms
memory: 3872kb

First Run Input

1 200000
668269693060783339 17974661516335692772 2128729269507242999 1195594160933943533 11986685609430022751 7436171356887508547 1065362858656990235 16625608071762596984 13469005164821288316 10156692364712902618 4593611598061266683 17725482240626830412 9146462625920796832 5273598837237737914 639343...

First Run Output

5085846453539413394 16093409160806899817

Second Run Input

2 200000 5085846453539413394 16093409160806899817
10689493208396568131 3068726377168920174 13808482012745900878 7730909090513647106 6089724492576848954 5410389011247194501 15885685240346044468 17321088109130440018 7038702632779516306 5051584177510531707 12044836772448919789 7905898926347920620 19685...

Second Run Output

13200920050472808862 6074779145632498557

result:

ok correct

Test #142:

score: 100
Accepted
time: 203ms
memory: 3904kb

First Run Input

1 200000
4846595617802160358 17910841273345977240 6770000083376472350 6010366177777912987 16720137187067217714 14039449904981267714 14334534759069929284 15654977483024922895 7308768334026245688 3941876595727118881 15596084548281378760 11685484007975841624 16349063513390785052 17664341084706952303 49...

First Run Output

6879075009493332141 12830023356623460396

Second Run Input

2 200000 6879075009493332141 12830023356623460396
16776599275487767531 15834949742496754051 3033534126468450077 9744403250349112332 11027379206321680973 2474508513898029134 18431179702706880892 6515917037562989006 15451581117124359795 2229656120459877931 2811334415731782873 15372224909331244094 1398...

Second Run Output

17127964042025936064 10516529422703812919

result:

ok correct

Test #143:

score: 100
Accepted
time: 207ms
memory: 3652kb

First Run Input

1 200000
13055145149306852633 15252709181747827042 15558536648392641258 13566136477234137075 11046340429462073706 12743695727576888167 864933913278122345 14935458109842488454 7987220444849437366 12338794552222691815 9769063232778615245 10573210382986332375 10411313569916830419 17850221114530298218 1...

First Run Output

5239948732416044258 3128439768461106492

Second Run Input

2 200000 5239948732416044258 3128439768461106492
13875635543370172232 159068779024310284 2470850951264852438 406665467015473530 8569731298174653331 2129341369582463390 4880520644093825698 4778655447523612857 1998215678251256091 12437302350555462905 16655827672010473037 6943450832402130579 1604143527...

Second Run Output

3358550221244604736 466419082348605013

result:

ok correct

Test #144:

score: 100
Accepted
time: 204ms
memory: 3708kb

First Run Input

1 200000
6707607068985613679 2043382734092522350 16197172330226160142 7207606490300633404 11015185219876712042 13607778530035684764 8606712618574824450 3813688454698650363 2182081210015898145 16985134691834151166 16080127168870106961 11633454898027746232 9005343204628238239 4723027348376229146 18275...

First Run Output

14172669402757486543 13096545257282279366

Second Run Input

2 200000 14172669402757486543 13096545257282279366
16104488447322753774 9840979989883768872 15306811570347631879 18112641927191131930 8078742917463670745 3290761884028892285 12051124144125880593 9624221833717963447 4232288514777456857 10940911524646103529 4052376915331748622 2345554068103630278 9832...

Second Run Output

17610239804375257340 14563818467251889980

result:

ok correct

Test #145:

score: 100
Accepted
time: 206ms
memory: 3832kb

First Run Input

1 200000
9615031118191507224 40199534029398396 3576302705758654884 10342581282561126785 16157050995021062736 6563003224338244533 13736356744363721477 12079886993152319905 13077658928632552192 10115298199305332480 10653645510302494673 3705163012515169973 8339411227099493004 17497381858725351716 95301...

First Run Output

10362045793229711268 4199582607896751913

Second Run Input

2 200000 10362045793229711268 4199582607896751913
7096868433858429470 1337297964956818279 6233241168849665383 12391353046246953628 5516054812156257739 2435043263297006351 18295066136187958923 7995752606235180292 16093448016462967842 14546822834681890548 10878620860947795204 3399049446380466215 86964...

Second Run Output

4759322412497813603 6597516147560315099

result:

ok correct

Test #146:

score: 100
Accepted
time: 204ms
memory: 3856kb

First Run Input

1 200000
4208938789226186646 10839807495099018683 3095167057892959113 4644262539289524466 5094573948324898767 1774951615284287935 9653615108821514882 433892447561581212 13981864329304642837 11182601689349141889 7518733779707459055 15594142186308696506 1168738155147561277 2522768034251254657 17269849...

First Run Output

8648469684393605303 3660641583201172074

Second Run Input

2 200000 8648469684393605303 3660641583201172074
14669497548690999021 495436143178766315 9557692924864380950 8677144756408163269 9826458267302914909 15827400256908984554 3278742368985259170 8812064563503900036 10879219118517632584 10918773607463685355 13021639238638363593 7026401214992809086 7130465...

Second Run Output

16670700890712111760 16594133238102230308

result:

ok correct

Test #147:

score: 100
Accepted
time: 205ms
memory: 3840kb

First Run Input

1 200000
8981541925225691095 8280637999361023392 7145257807309531273 10213335143711104557 18315590132735437769 10773503018525378204 17555701665358323919 12810411257460141758 7277111889354614808 6851384206255542753 2747572366385436419 8672553929492474866 14647152266240875410 17460600374826269747 1052...

First Run Output

14332108686886471721 9352980060076095200

Second Run Input

2 200000 14332108686886471721 9352980060076095200
14566454795654944809 17292795918902803311 11117230915532441115 18135852741797142921 2330822264053833198 9175451698770726957 4050443858088513245 2281524710798950135 15826755191403820390 10968183615712496086 15967290034194822459 13659370916645984842 14...

Second Run Output

17663454045348836699 8169759504780225080

result:

ok correct

Test #148:

score: 100
Accepted
time: 204ms
memory: 3852kb

First Run Input

1 200000
5154391982138451034 605921656964067323 3175968101148646499 2140532663713488550 8704833423400887244 6061269528666630757 16334065337649775596 7728874015642779800 17313883759919764506 17401476695008837971 15919193688628874564 16017228140801664775 6324026905742592455 15315459471011887536 139764...

First Run Output

2767141454757332488 7025420076788554268

Second Run Input

2 200000 2767141454757332488 7025420076788554268
16651138285040265067 3399570443156993483 16574400090450869966 1107313132303346917 11064728144392857670 9463824592721406755 15405247586062042574 6152696325797305718 5855985567247226350 12275435409552589494 13565553947882413149 13710389731584437414 1751...

Second Run Output

2249172259004173558 797387894141311414

result:

ok correct

Test #149:

score: 100
Accepted
time: 203ms
memory: 3640kb

First Run Input

1 200000
1187067644346026344 5459375329933293052 8162409860150079136 11085560902574592224 1060174281936804036 17583051187906481283 17991575735829452216 17152310252275014317 17449876953568436681 8851339996221526942 6123582924122543944 1018664895505342611 15317462973381684932 10977765448137763391 1778...

First Run Output

1974720207794841392 11389897893032641113

Second Run Input

2 200000 1974720207794841392 11389897893032641113
8556564204126481765 9195311984544014278 14704423673164765195 6604902180768242917 14940328553081847308 13623617405167211647 1888564431828802426 11208732962856681052 10696192935009456294 3378827292186708720 6966132835596851817 6043900694513921789 16486...

Second Run Output

8405087382790907117 6373943974222996660

result:

ok correct

Test #150:

score: 100
Accepted
time: 204ms
memory: 3904kb

First Run Input

1 200000
13720359928157370506 5012054419499751997 14172311981233811135 11322551440035464452 12825200546066319592 13881253981504113782 7946370359943298820 4406068800354728903 7195595219442763300 12332015972971128676 7726120804776325323 14267016306644084944 15475707239555465689 16701868459624630080 37...

First Run Output

13063248172093330285 6766965149931252526

Second Run Input

2 200000 13063248172093330285 6766965149931252526
3385996811535820664 1202150190867766028 15687494165378157924 9211960299233581855 8300183969122113824 12516590454472779931 9168556129348339072 1362180822898653916 10014822985441503192 7909678373651209302 682692433509029298 7818908737362139334 14420476...

Second Run Output

10530306414652623879 5669533654569106501

result:

ok correct

Test #151:

score: 100
Accepted
time: 207ms
memory: 3664kb

First Run Input

1 200000
5915858792706240916 16871718053764554576 13691190736836531644 7752526905407060192 853185138810898541 10409180407741817311 7232745405757235889 2350492181207258618 4070754034043034125 15030503043292855204 8107911600594884343 1403635545091870072 9828517153229099936 14872817646128129950 2799832...

First Run Output

6577651939797986698 10860863462069687734

Second Run Input

2 200000 6577651939797986698 10860863462069687734
11531779593688476649 10002803613464006240 5322907998068611428 16874397043200595301 2326676475324093618 10118160531154635842 8145150203469200397 6341129339537792108 15317008810775113090 5859607507572506800 13103986861045072602 16726471151204131189 463...

Second Run Output

4554797822567227473 1663868956389941346

result:

ok correct

Test #152:

score: 100
Accepted
time: 204ms
memory: 3656kb

First Run Input

1 200000
8742995261578158051 7859977614710038127 14151249481294735622 9811834154646919268 17417608992324835873 3841384016039099180 10667285853962094141 10855655972023315275 4583030931100084054 1996934671103200952 3696800303544962278 15246769623006364446 9190514284414469132 7912497840007310689 438945...

First Run Output

4037454363538763304 1325133303532709335

Second Run Input

2 200000 4037454363538763304 1325133303532709335
14450105020970157488 11478271044069742615 7127699508493257420 4543125321255128753 11703228515025765139 13563213496589601379 16328418516876457191 15251211061863922315 8193569033396581378 17034513630222669948 12789615323559055753 3122915772552361652 514...

Second Run Output

7689516494610556964 11930912208048736137

result:

ok correct

Test #153:

score: 100
Accepted
time: 203ms
memory: 3652kb

First Run Input

1 200000
6914377610967901266 13274943711955007822 9067909631771032984 6974934083899629991 7497443764820977015 11871281165805944311 8854957958802562240 1607257561343953866 14193164522110380307 15380430959756677606 14640757176719399852 1508957577637114960 4406549796000043620 15146369371768848441 31181...

First Run Output

10287594348569512917 14932591155785073565

Second Run Input

2 200000 10287594348569512917 14932591155785073565
8512843352471969576 13873416562616593525 11466515098966771314 16136971141430033729 18388603650166583583 16166128430036966633 15701199473117135236 7820274181146832561 16606185978853908415 13295934978203679731 11857785727604829256 7275497405947703842 ...

Second Run Output

9599549902893684081 14658380765484023074

result:

ok correct

Test #154:

score: 100
Accepted
time: 203ms
memory: 3664kb

First Run Input

1 200000
8805131318796587611 8950723651896066293 10416746640230583050 7766482492829742945 12193801280202013484 17855381216587985324 5518526560566138481 8116602329481438640 5678818394862755845 6884881168233187711 11010827437769382646 17977201536807618236 1458864546344499116 10334649017079741061 13323...

First Run Output

11866267934770104930 15076837179763354563

Second Run Input

2 200000 11866267934770104930 15076837179763354563
7956158022939493652 6507683676278204098 9461393559204155361 8728676645384229910 12594673948222025351 16010102432785991547 5161542942403390192 18140298499031614675 1153708108386783251 5225588421900474860 17760277489605281897 10570132626467425446 6580...

Second Run Output

5264431365645390714 5092746195639316878

result:

ok correct

Test #155:

score: 100
Accepted
time: 204ms
memory: 3884kb

First Run Input

1 200000
12949732348869765950 15163314432139269587 16483515839547787869 11035751295092467322 10318696141094317400 7387496229266986930 15042477115372593944 6117757971972894894 16259058145323210030 17450564410416620295 9976126300078860289 4994308329337622099 4543019873890984733 12380862369240457875 16...

First Run Output

8476609972311499005 7760494898713579167

Second Run Input

2 200000 8476609972311499005 7760494898713579167
1767104914417502637 4691937397823122343 18342373433165034171 1648040164318178736 13206241682183973417 4731220006554981320 7438690906395367577 1095379564993236761 7566113970185418223 12399744590794720961 18288133606838617683 7098106941593359057 1208136...

Second Run Output

8608782470978375956 17998522890488238

result:

ok correct

Test #156:

score: 100
Accepted
time: 201ms
memory: 3912kb

First Run Input

1 200000
832933880068512203 3651235866288153894 5978568093668945126 9014679692686663975 5453647037661841742 6761266508594629277 5616841663762582795 4885094584511313849 1767525224914425010 3487488959573642228 3714495297690558414 2083940003752907900 3658121487495221338 1683527566350257572 873114467116...

First Run Output

6736015203931212940 11940479186040047746

Second Run Input

2 200000 6736015203931212940 11940479186040047746
7539159504363186603 2843557847310001255 7992229783743515509 5926792560280029038 9121569817677630892 1455682864864208737 6047992594083878414 6102686037090072485 1267449060764443630 4762850409810812639 5470901433824158344 5065665531331958037 3579664398...

Second Run Output

4161786602509340693 3738849488984239568

result:

ok correct

Test #157:

score: 100
Accepted
time: 201ms
memory: 3612kb

First Run Input

1 200000
6848198995440204041 818694173949002495 8311623126023527344 3098589133708193254 254442626738337762 7859071206974190394 7207678744336884180 3045201648920403039 7850900649301414923 6821738639903380282 401111849198162725 4761752911418533199 4683979703435188238 5506328528380089248 10874980225630...

First Run Output

2621125867155492583 17264623090846886079

Second Run Input

2 200000 2621125867155492583 17264623090846886079
3262725871458590277 243984111557067224 3060294214391712682 8096599998065246485 4315428078831434317 8662190642537327919 151539037802363226 8932552991185967774 2238593529105359032 3196803694506945676 5486121461787833522 6919919817141651129 877816350657...

Second Run Output

4854232745735209747 4289824461168673019

result:

ok correct

Test #158:

score: 100
Accepted
time: 198ms
memory: 3664kb

First Run Input

1 200000
8581209075273830913 6366861992813820907 6660553613236866657 7640671760261077094 2545915427469457743 6370895525653103324 8380709185278810923 3834618732332131041 2718320041082926717 7081425633103229240 4966040206544298442 4794214923086515751 46113177675226709 6873899953447279417 4877863708158...

First Run Output

7714237924418868543 14038165863043244586

Second Run Input

2 200000 7714237924418868543 14038165863043244586
2605052643902462888 3387265697200178028 4605309946685796635 214048910256586065 2383657086426576466 2589347848366581781 467078006448917203 4105279352298493391 4845400918805565602 2979396522492224180 8849718014049423812 5206455886962657121 832454519664...

Second Run Output

6025490119531621908 5336973748963434604

result:

ok correct

Test #159:

score: 100
Accepted
time: 200ms
memory: 3884kb

First Run Input

1 200000
3247351520522798127 2157101789030332066 3463571788107734743 592302649928668774 9107869452388721805 4638308888542313307 2456876514587007125 6925072559654853572 7081544487899722460 7316116149947671823 2606520517455249291 7159241925400064003 9174237323551504779 3661134353680088043 923138882550...

First Run Output

813572597146678575 11854033799712894303

Second Run Input

2 200000 813572597146678575 11854033799712894303
4533370949141969318 3473084484840297107 252727597093485571 8143973538474664943 4588521817533421673 1169011016520293855 7500064187500054687 3466665127591351339 6502280530373824080 6385468627333963206 6803092033771870364 3347347742459723190 832180969439...

Second Run Output

8957536709662499667 1292315505951072941

result:

ok correct

Test #160:

score: 100
Accepted
time: 199ms
memory: 3588kb

First Run Input

1 200000
5273120848273170165 3441801696073345048 8346474825277433090 4070437004070325878 7176982928379901019 1991745939872733872 1465981068356491791 5546589969398744900 2425825600530928319 4459416123640855622 592346503901465515 262899478653679113 3251478227304748558 724768107239276550 50529479218322...

First Run Output

2820738711759010650 15505946451886341040

Second Run Input

2 200000 2820738711759010650 15505946451886341040
6685525098676197370 8575791121845028250 2469069699004604457 5684052505384864731 9102341783800627415 1862889376846143743 6230371333306168788 7300155449863185405 4771659328899402170 3475234536324835127 5978241953751617153 1713073385951392287 5077044826...

Second Run Output

104871194536134379 7862459837909304808

result:

ok correct

Test #161:

score: 100
Accepted
time: 198ms
memory: 3604kb

First Run Input

1 200000
4266521890559576003 7224282818668855239 7143041608573015883 1997657963608834513 494958761422166924 5568877742921534104 8379830172410903909 15269801087166314 6968575513263630125 3672920581999149122 4307829106291689411 2726468871084787263 4613464693294527397 6275157941914649553 36891114169257...

First Run Output

2516242896587209410 12648986925331447591

Second Run Input

2 200000 2516242896587209410 12648986925331447591
4690858653291210619 2276484460761135875 5076071732030766605 3716462821431070513 1182262598728346174 910209873394881816 288993803727387838 572930223490196501 1157558438702878310 4886572277123008560 8342504208933284569 9207247970631027615 6804580054080...

Second Run Output

197557313883163715 1120142586622965880

result:

ok correct

Test #162:

score: 100
Accepted
time: 199ms
memory: 3884kb

First Run Input

1 200000
434882850557308986 5115764284457515000 2928109684057719806 3818244729652506332 2417623510819687490 4424996818772231209 1109648443372778424 331862006504724364 6432886978802627180 5112361481297442009 8423863474224012334 684275474141498897 2125426978380746879 2362486485227038697 42396101564868...

First Run Output

1861601548406903102 12770710905941199198

Second Run Input

2 200000 1861601548406903102 12770710905941199198
4994387573041889734 1213010745939493470 7194902491521183970 6875353563271323481 6456889023981843256 7473944018381467247 3056047727393472620 6053256756121747809 5957205910469551420 8301273469374678352 2213631806498351014 4430298216166839488 7732642900...

Second Run Output

2680244980415375756 9034238354516899941

result:

ok correct

Test #163:

score: 100
Accepted
time: 199ms
memory: 3664kb

First Run Input

1 200000
6747900016732456174 7185770332889696382 7967106665596113559 7090109311453769592 8587898202879416528 1848698017551749434 7640799935335368036 719367982523744458 2472671783595442067 2411721006929449418 7194047108651151998 408883084070278127 3100092647787374824 5853990955095132128 6408004329667...

First Run Output

7160431655696527153 6434800652211290598

Second Run Input

2 200000 7160431655696527153 6434800652211290598
7071972687396154685 7507667363770504737 8525817845817978439 2433600153704738005 224340592200982301 1512654437790480510 349851490503537719 1240162833250374478 3399385434508198872 2823811376101901602 2892385071471845727 7099392627942914712 2504835334074...

Second Run Output

5927278667194079567 146682420303429574

result:

ok correct

Test #164:

score: 100
Accepted
time: 198ms
memory: 3696kb

First Run Input

1 200000
664104793342138413 7431233717558487535 8485531756581643467 4084404687650086747 3761674828387002385 8259497230071601875 2839043388384371075 2185284389272745906 4085917547431061433 6435809729007835936 2607082320513927466 3217703065252165870 2793655119755077006 5021088547670722384 593293890982...

First Run Output

3366860802878882298 16738629682523753602

Second Run Input

2 200000 3366860802878882298 16738629682523753602
4924084851136426383 7679760505174143499 7235499883124073993 602689254936683958 2879773779255568530 7123561833181861053 1614533411431656873 4422628488857110712 7222527532877191142 2822162351882106734 7302954916827346891 8990099148824800142 16757945129...

Second Run Output

5531872931358909247 5845164680875937067

result:

ok correct

Test #165:

score: 100
Accepted
time: 199ms
memory: 3892kb

First Run Input

1 200000
2824101282988362181 8138195932412231159 5719267215339656404 3655253532100715572 1041850664624967482 2463231552660706886 5333427881990061817 2827170603668070816 5725899833226145638 6396318141654521697 6734906233257902002 8340216456745618794 3174222101060832948 5817565582161393638 47162415828...

First Run Output

2932179698024428800 6535770055558552898

Second Run Input

2 200000 2932179698024428800 6535770055558552898
97854202581780821 1220940660777889168 7310837411415528231 622400853277995842 8608573249648175767 3840115497422945344 8048572816656810581 6085281860482234769 6963333815929669968 6900126802468417278 717952357876148680 3908856258045195488 227860794018234...

Second Run Output

974066564506361744 2611159291939355872

result:

ok correct

Test #166:

score: 100
Accepted
time: 200ms
memory: 3900kb

First Run Input

1 200000
839565911265443656 8414537496858434472 1459793030911120582 3321521437391879376 4738538136022641625 2656561086552571881 7737383920821123716 2267768939494084928 3044521666863175641 2961255227377006796 6660779173970633462 800178661313052324 789183445449511812 7380288643247400828 45952841070878...

First Run Output

7129282294387692083 11367313775345086570

Second Run Input

2 200000 7129282294387692083 11367313775345086570
8660132451997025327 8487673239831123931 5006772830476875005 3960415391235792032 3363688882890916201 2694746226391658971 7046166714022847091 6529229779925591444 7593282709135320621 4288269766270324589 7516357008063348981 4580978842306941431 1660859889...

Second Run Output

7772802048877921985 925121291608612904

result:

ok correct

Test #167:

score: 100
Accepted
time: 198ms
memory: 3652kb

First Run Input

1 200000
3551006270786834571 6562853816835732184 6381702643720358527 6412015104901963909 7386846075126366743 7485762622879199470 2801215064476145220 9137081909837096526 5276770225460545860 16339533673906616 4947192685636710184 5620295783745688205 1207367030179762858 88709660345723845 690468095188527...

First Run Output

593721001744777540 15868656866742607805

Second Run Input

2 200000 593721001744777540 15868656866742607805
7328695568746897017 3005379324821130386 8696955628848469448 3980980301486873476 1714167547611952814 2149874977186545985 4866036142773873274 6003114129296385476 6158989469100217651 8081267092096815249 53250951789421838 8603514062525996858 5707774243179...

Second Run Output

6699307703704067522 7208138215422189279

result:

ok correct

Test #168:

score: 100
Accepted
time: 201ms
memory: 3820kb

First Run Input

1 200000
999911327383938291 5846250182254795251 4112436169852893748 3145945270096036124 8924347687043984157 6181764788420040398 6587644008658877422 6902732602362592992 7127790316778331084 5433454601040944370 289573633118089629 2590476746094510847 8907579685735096042 1227129586925430247 6035837588023...

First Run Output

3471241822132207595 1519186328107823702

Second Run Input

2 200000 3471241822132207595 1519186328107823702
6409537577444361644 6103603262798035746 8380519886821651597 3690926978895027603 553459731244039698 5286196758981892171 2453319086816055803 8082059599488517966 7770180786319399788 3857791401612745246 5968837641923386339 1946628590859632940 232994019915...

Second Run Output

2296550755916775519 6993859106485064640

result:

ok correct

Test #169:

score: 100
Accepted
time: 200ms
memory: 3660kb

First Run Input

1 200000
563487336982477401 9128575888525455097 178581671841555454 968709987817279176 2944099403338811159 7925278269877289480 3498829977900141399 2572768680817047054 2335887641162367988 7961319561366084586 6023906721616754519 4303897988343080149 7163076856036568717 3020420558764135842 65354762809195...

First Run Output

6068622538899816015 17371424504563838101

Second Run Input

2 200000 6068622538899816015 17371424504563838101
7998996690940545326 3156319014782625720 2234192683800622569 1151723795743891768 6393646209400186787 2722247796509252709 4712596331395464361 1016841142678588915 2186389944376438019 3046253487817023679 5618835494015136258 777668421455204939 35892729563...

Second Run Output

1777258537516785747 326039851081944044

result:

ok correct

Test #170:

score: 100
Accepted
time: 200ms
memory: 3916kb

First Run Input

1 200000
4542154410494040031 897301133178801716 7173472730706307072 3168634699236764966 4286458051124214656 3066614333067231914 7592246900488680167 7499623800476112619 516863529669298400 1818553009601971498 2813771326593177892 2632193042715160175 5438929994348990077 7010353497678071109 7123208897593...

First Run Output

2036315549636551862 4103743684308044685

Second Run Input

2 200000 2036315549636551862 4103743684308044685
6396148152859031032 8552630114007901033 7205775325163544437 5392001566167892922 3394495164684543099 4031423265040885193 2721272901925689322 1567974701844575191 5019399693727820861 7784732244123282272 5267967069927161791 520324926888160584 898116792171...

Second Run Output

5340179156301304137 6492245206122456018

result:

ok correct

Test #171:

score: 100
Accepted
time: 199ms
memory: 3596kb

First Run Input

1 200000
1355905813083154105 2798514277859368173 5872447231907431398 6308509547227204488 4189449453906943232 5800643778042835975 1729053298747634766 7731825130189402857 7454644168943883172 7056742005168013778 3697203028210255284 6251004858872261438 7023282242573213 6545382675638471337 38870684260363...

First Run Output

4953368362021916043 13216311469578192634

Second Run Input

2 200000 4953368362021916043 13216311469578192634
2830578601290822051 7540311356718033300 3572144184696119575 405164770789871783 3238397443406439608 5000192013755209945 514276853862880904 6956938815925552772 6883920499130918571 5998478375712834434 2470756148303717140 8814997239476024535 649694488997...

Second Run Output

3013453334519266049 4717223860744033256

result:

ok correct

Test #172:

score: 100
Accepted
time: 199ms
memory: 3608kb

First Run Input

1 200000
6185577999670277646 3420276491481983357 2602387503974790085 3227546735898458579 2433449871263368779 4134983276158548758 7636036211507655710 7179365578712886609 6355224178183865808 4527412038446951824 9145930775919128081 6982612984993629123 6708683162049779179 2881477937349158149 56395314551...

First Run Output

461405091608715616 17261716338756158658

Second Run Input

2 200000 461405091608715616 17261716338756158658
2830155146422536455 4681840799312133962 1094890138804022112 2891406973327365327 4433137171834205752 1797172049161175678 5492626530466810990 4714639886871519460 3496745819169762761 316252898402510368 6714410449055962564 8260229954691267694 310611115676...

Second Run Output

6378704354790306548 4654128844166979788

result:

ok correct

Test #173:

score: 100
Accepted
time: 200ms
memory: 3652kb

First Run Input

1 200000
1158158468465748411 4107628558998227191 2753824641205935502 8117165483679292683 1252723601981528904 1119669549805712452 4692834852031104778 6587650955422175860 8552313163025714684 7771139894015504554 6850271802660372975 5209330579679240248 2100283455052522203 6356331822400991998 27573443260...

First Run Output

4923253812690157974 11061313349430182609

Second Run Input

2 200000 4923253812690157974 11061313349430182609
2196101349242634153 3690612967298874097 6150582468523653587 8545872805971258066 1474314334921229163 4226732858877152574 2034480171114284291 6112414592055687700 2137697054166829562 8129947789171973288 8670261033181244158 7500414439462102561 8787261564...

Second Run Output

609225910705266432 1561066411772139777

result:

ok correct

Test #174:

score: 100
Accepted
time: 200ms
memory: 3832kb

First Run Input

1 200000
3730914987217242759 5445438980485654899 485356330860578640 6189937363884194754 8697711228918575154 5069339641188776601 2053218438801607400 1054896484018920338 5544250144465189553 8128399061741002084 3031687006370725656 1438065899464462441 1154309398257189282 8762630342297317005 683627240864...

First Run Output

7740097128442111140 3470669392661190891

Second Run Input

2 200000 7740097128442111140 3470669392661190891
1558890614174306583 2806507436439448850 5566873814123818673 3216875063380810776 1266485067230624734 7193883083345549796 2325325947362988979 6753969611843213073 3253780406423106254 1867136998088576833 5541751598027157550 7173869718701106591 22867053971...

Second Run Output

3080478578010212176 6530498662916133274

result:

ok correct

Test #175:

score: 100
Accepted
time: 201ms
memory: 3688kb

First Run Input

1 200000
9082282401857546964 4891764495629522497 3764493345922152131 236236125952825237 2229391960506593877 7107850102429753324 1551133917986905885 1858522147032516188 3513433378370960593 7039126424233118989 9021395668340689132 7014168374032254296 2645391353715583108 6566874290873254229 599329853233...

First Run Output

3486187213299060529 5364897242473530892

Second Run Input

2 200000 3486187213299060529 5364897242473530892
2758647617038069135 8693253594503059159 8746519551142972619 2779198403477027842 4923714258834722553 5690405809995100422 3445990741670184208 7217782339069443970 625494198001833931 402617257453337196 4425960967569638939 6193911893812173735 6309126653087...

Second Run Output

78474977383773628 3964728538622549880

result:

ok correct

Test #176:

score: 100
Accepted
time: 202ms
memory: 3912kb

First Run Input

1 200000
9166419846726184963 3948142663860257736 3610467883934383120 6881373927624061813 248690079085707206 2994676812896758262 6524130573236622011 5510157201774791157 1739748913438295121 5781787889670889002 3071672291192334986 4177821136411182107 1151987098556085435 8695464377740965773 678863932260...

First Run Output

2261731752857006201 5376631481513651101

Second Run Input

2 200000 2261731752857006201 5376631481513651101
5257207815266416649 4554294836925025977 2886061252688448220 7039474574431556315 387699343526301043 2570421697459384421 7799559191274081314 1766056623601323146 8376586455563371384 1728955806497429509 6883433545324948113 8054174357875556201 123330190841...

Second Run Output

1657666674476253862 6299130368238484863

result:

ok correct

Test #177:

score: 100
Accepted
time: 199ms
memory: 3912kb

First Run Input

1 200000
2386133554076219492 4807165728720003863 7459998992655422350 559779645137277523 912419633809062266 2630363435182340047 127191057140059602 5464922046162424529 5370082893209124117 1087637942030974129 8715229889931892441 645650844855031777 6117232374258619440 952788752867393078 8740869092558927...

First Run Output

1422671402627059802 16513572043807116596

Second Run Input

2 200000 1422671402627059802 16513572043807116596
8782388514569078763 171988348402394941 3780938461349633552 1860012447303295256 3489755708567511729 6925834095442064832 5599285673841035628 4258556609998842312 4054624458611234545 1944815197385571852 8879337930000775097 5632530664603084481 25291819421...

Second Run Output

5377496806774288386 7053473058499282641

result:

ok correct

Test #178:

score: 100
Accepted
time: 199ms
memory: 3708kb

First Run Input

1 200000
6504221707907185756 2167081591231971058 2291650975004696125 4348104849256052040 9001493936894740638 3352714569495906173 4121620602045044248 7308044227875388468 5742593486898336979 6442864767380160774 25514049608378378 5784171985912063802 7050355817961897011 2624088205149926841 7536145859059...

First Run Output

3809206565970525832 3366158319060533498

Second Run Input

2 200000 3809206565970525832 3366158319060533498
2194317864614436785 7972604834375576098 3676575108012568487 3692120074916244719 854130318210524692 6771533072277259639 6493789164952604299 7499258038617556908 3349837024313818238 4255752240516006163 7559610307904775943 8509354729009299339 722121555357...

Second Run Output

9199632716871970098 8992772212381937485

result:

ok correct

Test #179:

score: 100
Accepted
time: 199ms
memory: 3860kb

First Run Input

1 200000
4071254047019221786 4982946183471178825 6361848244608728074 5233681799504740198 6057810352271018273 4202451717062898328 7397031041739803985 2613383450113691794 7892340025094623324 7125595840255591498 921349571814568685 210638152003504228 3449127523249232840 7147013951412011023 8562908048883...

First Run Output

6458646641632844922 11499471638485297069

Second Run Input

2 200000 6458646641632844922 11499471638485297069
8874043970224187970 202039427617422683 8806478354085516431 6122578941553225122 154373548079566 3930331764439164603 6447141912668016835 5437704905317762445 5741479442756617004 4458179565132952288 5430857658423060712 5388320302815375605 854899499120537...

Second Run Output

3476217429790092210 8456588245580409577

result:

ok correct

Test #180:

score: 100
Accepted
time: 199ms
memory: 3604kb

First Run Input

1 200000
8385610541308145229 7038562532639426232 8964596424696191712 8922496121260125529 450251816801990237 4225787979818707288 1973146858932798325 4564760794543753579 471164945749457576 7446716332432226863 3307203341205463673 2971793426007688274 1532210353958165602 4208626375218347132 3648716517503...

First Run Output

4819898336805097964 15558629014688535798

Second Run Input

2 200000 4819898336805097964 15558629014688535798
7843395827079263130 8418444734007939096 1800020984104478085 2431631597478812115 1213625567761889302 5368425713584656625 8158302628605620060 7922104284264349997 2748678608264902396 250511616948091873 5940274642094013593 5217310892276922960 46832535087...

Second Run Output

2142363403224201569 9208800360676983094

result:

ok correct

Test #181:

score: 100
Accepted
time: 200ms
memory: 3668kb

First Run Input

1 200000
6404629742535625609 346166524966547 2301524965428311441 4978393344451500059 2685863228902158561 1083840689410176204 5782146514674358534 3280168091556873377 3625430137779625396 1705444946749371402 6232625749093171053 1887680674338135337 1233627916609822329 4340914556245086101 601949232757062...

First Run Output

129327460776088002 2624825584470516255

Second Run Input

2 200000 129327460776088002 2624825584470516255
6540227407667548286 2517589904722514712 3367810091994353721 8500045893124401744 6048555847153660556 5487133327197039343 6447632517604260366 7491332747362597133 3698618860952997710 7298058433795172978 996706020534292129 7329190959071524496 7813021937236...

Second Run Output

2284877490131321591 584019324410710054

result:

ok correct

Test #182:

score: 100
Accepted
time: 200ms
memory: 3632kb

First Run Input

1 200000
5900780743328009477 259947480199882188 3977885737263221699 1080461381052771168 870813293091765174 846802054949475849 1480295037933151705 1519942238665873156 7142698563440253377 2545755530550455992 8303296893005695901 3951494546113833984 93768536140318885 1114293288961031658 4208601478967550...

First Run Output

1446892055852158589 2827041568728888028

Second Run Input

2 200000 1446892055852158589 2827041568728888028
8417474023837310110 1791516059394322926 876841785465833115 8390209074898484311 9126852304198305123 2098678849427160012 6850712536628151197 521066838114685244 6792247773961995601 1025779516233327944 3363194957743803931 8360174996994885652 8147412420469...

Second Run Output

4093866059526632285 3961365876285995438

result:

ok correct

Test #183:

score: 100
Accepted
time: 200ms
memory: 3672kb

First Run Input

1 200000
5565881072913662672 1734590066549274411 8126544679527916620 4694328860952328769 6490605758995884072 1048681593547177530 2296665443736821446 3423968136642826598 8361558321054504999 4666170033714203389 4764601038988023949 9016659446420161897 621917903425622357 8425852873115596494 806486200947...

First Run Output

9201377672501686315 15799549711683960796

Second Run Input

2 200000 9201377672501686315 15799549711683960796
6072289223662147331 5261368223538053852 2133751618777727472 5777075552844703397 523068123544800834 7893341164725367918 507228572619320255 4872780861201400820 449668919849541926 6635330029411466864 351387760466888801 5501607783038002776 46587289788330...

Second Run Output

2010807854540884400 5379359972518324330

result:

ok correct

Test #184:

score: 100
Accepted
time: 200ms
memory: 3668kb

First Run Input

1 200000
4941896950370895017 5949270475514433379 5986700951962370550 3924729834149128005 1910917220576693952 2368593740676354592 2622011471975198554 1698134426038967757 5777828141300905386 1937118024972852027 7153633326848886410 2953648713815196630 5650510983570641056 4420302433261854871 13899200023...

First Run Output

1156690883831848810 8699387727832590322

Second Run Input

2 200000 1156690883831848810 8699387727832590322
1028958515453477142 7509883370860758337 3621303089588120603 5717928425716894914 5417773007539696546 3356690012644175652 4350885069453043636 3192585640048984341 2879565628473142543 6286818320245379762 4976790828680153062 8057307518247481286 92124774275...

Second Run Output

811698186033896419 3351765520028549355

result:

ok correct

Test #185:

score: 100
Accepted
time: 200ms
memory: 3668kb

First Run Input

1 200000
6410901845117700315 5183271775945077996 6332183793871698670 8116225500607928996 4772167655710683460 1295491500506354434 3286800786044426188 1259219736315111424 7348575629674728343 6221418238923162462 1353034732465336839 4143502865159001779 1238975189500203811 8448713546133463349 83766299430...

First Run Output

433559407506664985 14665628593721872432

Second Run Input

2 200000 433559407506664985 14665628593721872432
5568189735344815876 2746838150191059858 3734695610470692901 653571617643243133 3315927864301658418 2949190190775409374 5903184789945865988 3771600052534927840 4489280414852415534 5406083070230956654 7179453064865995373 8810606641848996346 858900970128...

Second Run Output

4425402289611220377 371198539089048262

result:

ok correct

Test #186:

score: 100
Accepted
time: 204ms
memory: 3852kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 200000 0 0
14588131969843466123 16624534505230828518 18275553249242274048 18328336605223174096 15272334439406745510 12352787944058822400 16473798047307967928 10303682891560004733 12926015553066553341 15855299217759039144 15379672809526282734 14428629301176302060 14763931476439907794 12667100407931...

Second Run Output

16930230178876452568 10732890380193253662

result:

ok correct

Test #187:

score: 100
Accepted
time: 202ms
memory: 3912kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 200000 0 0
10221271493190891093 15907575200719935014 11755071622117573778 17795612158035320289 10462003559675300854 17771005035148633396 12761441259738200994 13306548993077696775 14930003197068760303 12929699527917290210 14976910747492041509 11868765602088587001 14989361686990447409 12868630184947...

Second Run Output

17885364576113094535 18186218083628222427

result:

ok correct

Test #188:

score: 100
Accepted
time: 202ms
memory: 3704kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 200000 0 0
15930834720837903938 12100130127475126800 11219028090808233248 15817218193587252734 16627751793461760404 14058622571491392480 9606601114191952779 10373040337011161582 10316795208116300452 17992999924359846720 15085447224847523494 10344906651117512220 17770372549664639956 121900178241007...

Second Run Output

17921797594510121318 16342844549708792867

result:

ok correct

Test #189:

score: 100
Accepted
time: 203ms
memory: 3872kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 200000 0 0
16055487262445042991 17026820144568342062 11171553504632443443 17103170172702191361 10303690132402944456 11682507502889609003 16095097113921437522 15242693965473105136 14644999562831014833 9421040016590916007 16032798882813364834 14849823485187825878 9837970877977024626 1619322622406845...

Second Run Output

14025542817225729251 14698805255647574528

result:

ok correct

Test #190:

score: 100
Accepted
time: 202ms
memory: 3716kb

First Run Input

1 0

First Run Output

0 0

Second Run Input

2 200000 0 0
16101997028803700855 10621901717426237326 12448563385420768532 15594536308970030924 10247310280809584349 12932125450819263544 14495439328572972794 9797876456265038618 17859716996021819378 16537785315136583631 12943011311020310644 10292888911115531305 18317221636158336433 171628452486071...

Second Run Output

14981378270267245861 17857567399377734800

result:

ok correct

Test #191:

score: 100
Accepted
time: 199ms
memory: 3860kb

First Run Input

1 200000
17613567243384078677 13808519879381402803 11998590905163126727 16071661546246403617 17541368879716610950 15044890019541115074 13423129693991672436 12961429550072650582 10425095846210675993 9570101345242986092 14816452539286771142 13765764865308791963 13630743856497106503 1728944759295443744...

First Run Output

2099609589515098313 13787441047178336188

Second Run Input

2 0 2099609589515098313 13787441047178336188

Second Run Output

15512527524423782972 14584025946021612277

result:

ok correct

Test #192:

score: 100
Accepted
time: 202ms
memory: 3864kb

First Run Input

1 200000
12620319847519230648 10667974983408443668 17043304145133599036 16475078867675698944 10014357215747534140 11168509261974154511 17731921689962426699 16492036342085848501 16278737778342863936 9863014319764255741 10974214138854007656 12474444578597525106 17014214895430202509 1745021741616032715...

First Run Output

1459384437670454893 3209821900936375099

Second Run Input

2 0 1459384437670454893 3209821900936375099

Second Run Output

14255261771473119661 15101725567911251904

result:

ok correct

Test #193:

score: 100
Accepted
time: 202ms
memory: 3860kb

First Run Input

1 200000
16925042253013792283 15977100055082151342 17496598708145495479 17043590128841758630 12181373046285363871 15215343906947220127 17304161383640186774 13452921356141467001 13465154007039042228 9245289567048631029 11804210060128518845 12743996011062100030 10273985705907182186 1033659238720664283...

First Run Output

4510120562593758675 13700854219524214314

Second Run Input

2 0 4510120562593758675 13700854219524214314

Second Run Output

11289183281273873139 11690243610255449888

result:

ok correct

Test #194:

score: 100
Accepted
time: 202ms
memory: 3600kb

First Run Input

1 200000
9839414842789556891 14504496330269617471 11606797689554644511 15888071970455615947 16774551085812863886 17958325196293819450 16660512776071990198 13742254870437291505 15340067914257172731 14932554231152461874 10380083325448257896 12539549983489580795 12633377753501898364 1643394147001414963...

First Run Output

4255575196900070952 2912334725828467820

Second Run Input

2 0 4255575196900070952 2912334725828467820

Second Run Output

17038494640585008970 15526779299712889186

result:

ok correct

Test #195:

score: 100
Accepted
time: 203ms
memory: 3600kb

First Run Input

1 200000
15303803668448134240 17135514771654892732 16910188484512177898 14869693588743048088 17120427397204997517 15380782476527663346 14228637625039741394 10076152488099140961 12253520612498153636 13206320208540826652 14731299159856927644 13707825388237603159 14914872399742806387 126061270581548022...

First Run Output

9155654464805933074 11784169022582487420

Second Run Input

2 0 9155654464805933074 11784169022582487420

Second Run Output

12130328569109873676 15517432523921232926

result:

ok correct

Test #196:

score: 100
Accepted
time: 199ms
memory: 3896kb

First Run Input

1 200000
8445712985210591799 18344041862415722683 6812009686677253127 2835698910252939033 14464629327705753478 9099785779394435119 946381422296073271 6783630427652155970 13123269212053079413 6186174732117848230 1146949730886586151 13079795397210562282 6371883143888416163 11021998164995120383 1545035...

First Run Output

17199973527729431118 17871932899149810517

Second Run Input

2 20000 17199973527729431118 17871932899149810517
17553644139754338672 12332194174600558786 2608156947738434639 16937371764898670564 16857428403346901336 5795769241528243760 13912189287048022854 13162147682466345326 3550335627875099597 16928670228723982899 1831380387232188493 7717666141167866150 135...

Second Run Output

15244746935160229113 10250923493922584106

result:

ok correct

Test #197:

score: 100
Accepted
time: 21ms
memory: 3904kb

First Run Input

1 20000
4200279466655823112 11906669406095414904 11003428822970756323 15522155860968547300 13183965577083485895 9490645640756156395 12998720310260281604 16129553610096363947 15447986938494957392 2463887585362402487 17298705681637454126 12433375834831985079 4601802132956700116 7202803237838917255 149...

First Run Output

7366215666760089933 12842317670064396570

Second Run Input

2 20000 7366215666760089933 12842317670064396570
13211606477013036358 7596460473024190252 18445982465099403479 14035048602021627063 2357242663517283498 806123693659425944 2334312075929212224 10550832050198921247 2301061655213916292 12500202207583783767 2635387074882233712 7534519207299968308 1787152...

Second Run Output

1009987878386045948 1431910001638883501

result:

ok correct

Test #198:

score: 100
Accepted
time: 203ms
memory: 3824kb

First Run Input

1 200000
9102040803140989230 15265070214602603138 11742872664496786633 15283273459080014104 7611781059431405301 12421067598511858545 5987960614518406201 6670794216271758893 17711700713195030115 13544782853392709830 15566897976523593005 3671728123155118549 6061125525014070810 9920081260905773435 1750...

First Run Output

2630520414885949890 11403823214768185375

Second Run Input

2 2000 2630520414885949890 11403823214768185375
11416539875376197045 4741340869774587759 3259703132232952205 3460482509258260780 11478081995306345897 6322228244256909010 4984403594796984733 16692335420269654290 17244868517575708765 9355500780060110257 519108909193362618 1403758993214719758 131019284...

Second Run Output

4396108241721973671 10180940750267463324

result:

ok correct

Test #199:

score: 100
Accepted
time: 205ms
memory: 3664kb

First Run Input

1 2000
13911202913982463428 8898216651060104381 12231168860504587097 6664611774906088471 6650509176100456802 1857487056564124662 18434244168541679482 6760581583869065572 12544174602210667291 13243279342462446158 9559142750596395345 8208930173168061022 9608725441719691646 16754666665106951133 1479525...

First Run Output

3553954935608029432 16307675574469115364

Second Run Input

2 200000 3553954935608029432 16307675574469115364
17741963239993189143 14243815186620175959 18136329521890579787 1237120899696934337 15802524979642727161 8848720293422390393 6964978819214529834 6711456845012317242 4470173835934086357 11559822664103113834 2507833037962530309 357749556690403123 114953...

Second Run Output

3826404178503534774 9389760849050344116

result:

ok correct

Test #200:

score: 100
Accepted
time: 102ms
memory: 3856kb

First Run Input

1 200000
18446744073709546629 18446744073709436965 18446744073709533647 18446744073709405345 18446744073709540305 18446744073709500866 18446744073709457979 18446744073709528202 18446744073709460845 18446744073709454456 18446744073709516402 18446744073709471948 18446744073709391983 184467440737093551...

First Run Output

35541 8318474864285901815

Second Run Input

2 200000 35541 8318474864285901815
18446744073709395932 18446744073709409250 18446744073709437628 18446744073709496917 18446744073709483968 18446744073709532380 18446744073709406644 18446744073709424706 18446744073709388903 18446744073709517854 18446744073709463388 18446744073709459994 1844674407370...

Second Run Output

18446744073709409379 18446744073709371333

result:

ok correct