QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#110341 | #2560. Streetlights | AK_Dream | TL | 4978ms | 42476kb | C++14 | 7.9kb | 2023-06-01 16:33:23 | 2023-06-01 16:52:42 |
Judging History
answer
#include <bits/stdc++.h>
#define N 100005
#define B 300
#define pb push_back
#pragma GCC optimize(3)
#pragma GCC target("avx")
#pragma GCC optimize("Ofast")
#pragma GCC optimize("inline")
#pragma GCC optimize("-fgcse")
#pragma GCC optimize("-fgcse-lm")
#pragma GCC optimize("-fipa-sra")
#pragma GCC optimize("-ftree-pre")
#pragma GCC optimize("-ftree-vrp")
#pragma GCC optimize("-fpeephole2")
#pragma GCC optimize("-ffast-math")
#pragma GCC optimize("-fsched-spec")
#pragma GCC optimize("unroll-loops")
#pragma GCC optimize("-falign-jumps")
#pragma GCC optimize("-falign-loops")
#pragma GCC optimize("-falign-labels")
#pragma GCC optimize("-fdevirtualize")
#pragma GCC optimize("-fcaller-saves")
#pragma GCC optimize("-fcrossjumping")
#pragma GCC optimize("-fthread-jumps")
#pragma GCC optimize("-funroll-loops")
#pragma GCC optimize("-fwhole-program")
#pragma GCC optimize("-freorder-blocks")
#pragma GCC optimize("-fschedule-insns")
#pragma GCC optimize("inline-functions")
#pragma GCC optimize("-ftree-tail-merge")
#pragma GCC optimize("-fschedule-insns2")
#pragma GCC optimize("-fstrict-aliasing")
#pragma GCC optimize("-fstrict-overflow")
#pragma GCC optimize("-falign-functions")
#pragma GCC optimize("-fcse-skip-blocks")
#pragma GCC optimize("-fcse-follow-jumps")
#pragma GCC optimize("-fsched-interblock")
#pragma GCC optimize("-fpartial-inlining")
#pragma GCC optimize("no-stack-protector")
#pragma GCC optimize("-freorder-functions")
#pragma GCC optimize("-findirect-inlining")
#pragma GCC optimize("-fhoist-adjacent-loads")
#pragma GCC optimize("-frerun-cse-after-loop")
#pragma GCC optimize("inline-small-functions")
#pragma GCC optimize("-finline-small-functions")
#pragma GCC optimize("-ftree-switch-conversion")
#pragma GCC optimize("-foptimize-sibling-calls")
#pragma GCC optimize("-fexpensive-optimizations")
#pragma GCC optimize("-funsafe-loop-optimizations")
#pragma GCC optimize("inline-functions-called-once")
#pragma GCC optimize("-fdelete-null-pointer-checks")
#pragma GCC optimize(2)
using namespace std;
template <typename T>
inline void read(T &num) {
T x = 0, ff = 1; char ch = getchar();
for (; ch > '9' || ch < '0'; ch = getchar()) if (ch == '-') ff = -1;
for (; ch <= '9' && ch >= '0'; ch = getchar()) x = (x<<3)+(x<<1)+(ch^'0');
num = x * ff;
}
template <typename T>
void write(T num) {
if (num >= 10) write(num/10);
putchar(num%10+'0');
}
int n, Q, a[N];
int X[N*3], H[N*3], srt[N*4];
int q[N], q2[N], bel[N], mdf[N];
int val[N], ql[N], qr[N], cnt;
int head[N], pre[N<<1], to[N<<1], sz;
int fa[N], siz[N], son[N], dfn[N], rnk[N], top[N], tme;
int P[N], pc, pmx[N], smx[N], aa[N], pl[N], pr[N];
set<int> st[N*4];
inline void adeg(int u, int v) {
pre[++sz] = head[u]; head[u] = sz; to[sz] = v;
}
void dfs1(int x) {
siz[x] = 1; son[x] = 0;
for (int i = head[x]; i; i = pre[i]) {
int y = to[i];
fa[y] = x; dfs1(y); siz[x] += siz[y];
if (!son[x] || siz[son[x]] < siz[y]) son[x] = y;
}
}
void dfs2(int x, int tp) {
top[x] = tp; rnk[dfn[x]=++tme] = x;
if (son[x]) dfs2(son[x], tp);
for (int i = head[x]; i; i = pre[i]) if (to[i] != son[x]) dfs2(to[i], to[i]);
}
struct segtree {
int mn[N<<2], tg[N<<2], cc[N<<2];
void build(int p, int l, int r) {
mn[p] = tg[p] = 0; cc[p] = r-l+1;
if (l == r) return;
int mid = (l+r)>>1;
build(p<<1,l,mid); build(p<<1|1,mid+1,r);
}
inline void pushtg(int p, int v) { mn[p]+=v;tg[p]+=v; }
inline void pushdw(int p) {
if (!tg[p]) return;
pushtg(p<<1,tg[p]); pushtg(p<<1|1,tg[p]);
tg[p] = 0;
}
inline void pushup(int p) {
mn[p] = min(mn[p<<1],mn[p<<1|1]);
cc[p] = (mn[p<<1]==mn[p])*cc[p<<1] + (mn[p<<1|1]==mn[p])*cc[p<<1|1];
}
void upd(int p, int l, int r, int x, int y, int v) {
if (x <= l && r <= y) return pushtg(p,v);
pushdw(p); int mid = (l+r)>>1;
if (x <= mid) upd(p<<1,l,mid,x,y,v);
if (mid < y) upd(p<<1|1,mid+1,r,x,y,v);
pushup(p);
}
} T;
void UPD(int x, int v, int add) {
while (x) {
if (fa[top[x]] && val[fa[top[x]]] <= v) {
T.upd(1,1,cnt,dfn[top[x]],dfn[x],add);
x = fa[top[x]];
} else {
int l = dfn[top[x]], r = dfn[x], mid = 0, ok = 0;
while (l <= r) {
mid = (l+r)>>1;
if (val[rnk[mid]] <= v) r = (ok=mid)-1;
else l = mid+1;
}
if (ok) T.upd(1,1,cnt,ok,dfn[x],add);
break;
}
}
}
void initTree() {
for (int i = 1; i <= n; i++) bel[i] = 1;
cnt = 1; sz = 0; int top = 0, t2 = 0;
for (int i = 1; i <= n; i++) if (!mdf[i]) {
while (top && a[q[top]] < a[i]) --top;
if (top && a[q[top]] == a[i]) {
int l = q[top], r = i;
++cnt; val[cnt] = a[i]; ql[cnt] = l; qr[cnt] = r;
head[cnt] = 0;
while (t2 && ql[q2[t2]] > l) {
while (r > qr[q2[t2]]) bel[r--] = cnt;
r = ql[q2[t2]]-1;
adeg(cnt, q2[t2--]);
}
while (r >= l) bel[r--] = cnt;
q2[++t2] = cnt;
}
q[++top] = i;
}
head[1] = 0; val[1] = 1e9+7;
while (t2) adeg(1, q2[t2--]);
dfs1(1); tme = 0; dfs2(1, 1);
T.build(1, 1, cnt);
for (int i = 1; i <= pc; i++) {
int x = P[i];
mdf[x] = bel[x];
UPD(mdf[x], a[x], 1);
}
}
void getLR(int x) {
pl[x] = pr[x] = 0;
auto it = st[a[x]].find(x);
if (it != st[a[x]].begin()) pl[x] = *prev(it);
if (next(it) != st[a[x]].end()) pr[x] = *next(it);
}
void init1000Q() {
P[pc+1] = n+1;
for (int i = 0; i <= pc; i++) {
pmx[P[i]] = 0;
for (int j = P[i]+1; j < P[i+1]; j++) pmx[j] = max(pmx[j-1],a[j]);
smx[P[i+1]] = 0;
for (int j = P[i+1]-1; j > P[i]; j--) smx[j] = max(smx[j+1],a[j]);
aa[P[i+1]-1] = pmx[P[i+1]-1];
aa[P[i]+1] = smx[P[i]+1];
}
for (int i = 1; i <= pc; i++) getLR(P[i]);
}
int calc() {
for (int i = 1; i <= pc; i++) aa[P[i]] = a[P[i]];
int top = 0, ret = 0;
for (int i = 1; i <= pc; i++) {
if (P[i-1]+1 <= P[i]-1) {
int x = P[i-1]+1;
while (top && aa[q[top]] < aa[x]) --top;
q[++top] = x;
}
int x = P[i];
while (top && aa[q[top]] < aa[x]) --top;
if (top && mdf[q[top]] && pl[x] == q[top]) ++ret;
if (pl[x] && !mdf[pl[x]])
if ((!top||q[top]<=pl[x]) && smx[pl[x]+1] < a[x]) ++ret;
q[++top] = x;
}
top = 0;
for (int i = pc; i; i--) {
if (P[i]+1 <= P[i+1]-1) {
int x = P[i+1]-1;
while (top && aa[q[top]] < aa[x]) --top;
q[++top] = x;
}
int x = P[i];
while (top && aa[q[top]] < aa[x]) --top;
if (pr[x] && !mdf[pr[x]])
if ((!top||q[top]>=pr[x]) && pmx[pr[x]-1] < a[x]) ++ret;
q[++top] = x;
}
return ret;
}
void work(int L, int R) {
memset(mdf, 0, sizeof(mdf));
for (int i = L; i <= R; i++) mdf[X[i]] = 1;
pc = 0; for (int i = 1; i <= n; i++) if (mdf[i]) P[++pc] = i;
initTree();
init1000Q();
if (L == 1) write((T.cc[1]-1)+calc()), putchar('\n');
for (int i = L; i <= R; i++) {
int x = X[i];
UPD(mdf[x], a[x], -1);
auto it = st[a[x]].find(x);
int pre = it==st[a[x]].begin()?0:*prev(it);
int nxt = next(it)==st[a[x]].end()?0:*next(it);
if (pre && mdf[pre]) pr[pre] = nxt;
if (nxt && mdf[nxt]) pl[nxt] = pre;
st[a[x]].erase(x);
a[x] = H[i];
UPD(mdf[x], a[x], 1);
it = st[a[x]].insert(x).first;
pre = it==st[a[x]].begin()?0:*prev(it);
nxt = next(it)==st[a[x]].end()?0:*next(it);
if (pre && mdf[pre]) pr[pre] = x;
if (nxt && mdf[nxt]) pl[nxt] = x;
pl[x] = pre; pr[x] = nxt;
write((T.cc[1]-1)+calc()), putchar('\n');
}
}
int main() {
// freopen("ex_data3.in", "r", stdin); freopen("my.out", "w", stdout);
// freopen("overlook.in", "r", stdin); freopen("overlook.out", "w", stdout);
read(n); read(Q); int mx = 0;
for (int i = 1; i <= n; i++) {
read(a[i]); srt[++mx] = a[i];
}
for (int i = 1; i <= Q; i++) {
read(X[i]); read(H[i]);
srt[++mx] = H[i];
}
sort(srt+1,srt+mx+1); mx = unique(srt+1,srt+mx+1)-srt-1;
auto fnd = [&](int x) { return lower_bound(srt+1,srt+mx+1,x)-srt; };
for (int i = 1; i <= n; i++) {
a[i] = fnd(a[i]); st[a[i]].insert(i);
}
for (int i = 1; i <= Q; i++) H[i] = fnd(H[i]);
for (int i = 1; i <= Q; i+=B) {
work(i,min(Q,i+B-1));
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 9ms
memory: 22644kb
input:
6 2 4 2 2 2 4 6 4 6 6 4
output:
3 2 2
result:
ok 3 lines
Test #2:
score: 0
Accepted
time: 2ms
memory: 22684kb
input:
50 100 310081863 722273055 654741011 310081863 654741011 722273055 654741011 722273055 654741011 654741011 654741011 310081863 310081863 722273055 654741011 654741011 654741011 722273055 310081863 654741011 310081863 310081863 310081863 722273055 310081863 654741011 654741011 310081863 722273055 722...
output:
28 28 28 29 30 31 31 31 31 31 31 31 31 32 33 34 34 33 33 33 33 32 32 31 31 31 32 32 31 31 31 31 30 30 30 31 31 31 31 31 31 30 30 29 30 31 32 32 32 32 32 31 32 33 33 33 33 32 32 31 32 33 31 31 32 31 32 31 31 31 30 31 30 29 29 28 28 29 28 28 27 27 27 27 27 27 26 27 28 27 28 29 28 28 28 28 29 29 28 29 28
result:
ok 101 lines
Test #3:
score: 0
Accepted
time: 14ms
memory: 22748kb
input:
50 100 93308794 275481889 130830018 675774101 130830018 93308794 275481889 999873895 275481889 104418887 130830018 275481889 675774101 999873895 130830018 841188804 360486542 104418887 140762403 275481889 275481889 770511267 104418887 140762403 93308794 675774101 104418887 770511267 130830018 933087...
output:
12 12 11 11 11 11 11 11 10 10 10 10 10 10 10 11 11 11 11 12 12 12 12 12 11 10 11 11 11 11 11 12 13 12 12 13 13 14 12 11 11 10 10 10 10 10 9 9 9 9 9 9 8 9 10 10 9 10 9 9 9 10 10 11 12 12 13 13 13 13 14 14 13 13 13 12 12 12 12 13 12 12 12 12 12 12 13 13 13 13 15 15 15 17 18 18 17 17 16 16 15
result:
ok 101 lines
Test #4:
score: 0
Accepted
time: 2ms
memory: 22628kb
input:
50 100 195248019 905127308 129122336 764519854 338556860 795943323 554412442 338556860 217191782 140699690 654772489 386182517 217191782 37485244 795943323 924638428 795943323 820028162 855279832 795943323 129122336 554412442 195248019 764519854 810525122 554412442 201706134 661330059 129122336 2090...
output:
5 5 6 5 5 5 4 4 3 3 3 3 3 2 4 3 3 3 4 5 5 5 5 5 5 5 5 4 4 4 5 6 6 5 5 4 4 4 3 3 3 3 3 3 4 4 4 4 3 3 4 3 3 3 3 3 3 3 3 3 3 3 4 4 4 4 4 5 5 5 5 6 6 6 5 5 5 5 5 6 6 6 6 7 7 7 7 7 7 7 7 7 7 7 7 7 7 8 8 8 7
result:
ok 101 lines
Test #5:
score: 0
Accepted
time: 3ms
memory: 22572kb
input:
50 100 772094573 19576803 263817454 873867094 557813690 952336439 500513802 392057352 305209480 199018938 206776586 514630037 466387810 403552086 50423285 658534934 19576803 404488754 179660945 591777562 262850065 817419372 680762089 591777562 424021147 403552086 718896141 456431927 680762089 595426...
output:
1 1 0 0 0 0 0 0 0 0 0 0 1 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 0 0 0 0 0 1 1 1 1 1 1 0 0 0 0 1 2 2 2 3 3 3 3 3 3 2 2 2 2 2 2 2 1 1 1 0 0 0 0 0 0 0 0 0 1 2 2 3 3 3 3 3 3 2 2 2 3 3 3 3 3 3 3
result:
ok 101 lines
Test #6:
score: 0
Accepted
time: 7ms
memory: 22676kb
input:
50 100 5096114 61078240 254964021 318250156 571031769 256037951 208426954 833646260 732869624 746606948 226729785 151221431 611264696 351005299 205027954 706057630 453231547 874058912 462474957 366832522 823051853 289489922 109072951 103985450 269915659 377686154 809672410 12123621 732787174 9017273...
output:
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
result:
ok 101 lines
Test #7:
score: 0
Accepted
time: 10ms
memory: 22624kb
input:
50 100 976187983 976187983 879080743 976187983 827737130 827737130 827737130 827737130 815905933 811453113 789018592 789018592 681089922 675640665 659464656 635119734 635119734 633485638 633485638 567930339 552957008 484438465 484438465 484438465 387753272 377659696 376161946 976187983 367642977 376...
output:
16 15 14 14 15 16 17 17 18 18 31 30 29 28 27 26 25 24 23 22 21 20 20 19 20 19 18 18 18 18 18 17 17 16 16 16 16 15 15 15 15 14 13 12 12 12 12 11 11 10 9 9 9 8 8 7 7 6 7 6 7 7 7 8 8 7 8 10 10 10 10 10 11 10 10 12 14 15 15 16 16 15 16 18 19 20 26 26 27 28 29 28 28 27 26 25 24 23 23 22 21
result:
ok 101 lines
Test #8:
score: 0
Accepted
time: 12ms
memory: 22656kb
input:
50 100 843864537 245114944 227661173 137675097 918583745 80278395 44678681 37169219 37007425 27167524 4382795 4043558 3655016 3624538 2994987 1979195 1407769 819862 771067 665903 137891 137891 665903 771067 819862 1407769 1979195 2994987 3624538 3655016 4043558 4382795 27167524 37007425 37142735 305...
output:
17 17 16 15 7 7 8 5 5 5 5 5 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 1 0 0 0 1 1 2 3 3 4 4 4 4 5 6 6 7 8 9 10 11 12 13 14 14 14 14 14 15 16 16 16 16 17 18 19 19 20 21 20 19 18 15 14 14 14 13 7 6 6 6 6 6 6 6 6 6 6 5 5 4 4 4 3 3 3 3 3 3 2 2 2 2
result:
ok 101 lines
Test #9:
score: 0
Accepted
time: 5ms
memory: 22628kb
input:
50 100 920202355 768392166 755066475 630812635 617367313 601334965 450742259 367726734 265094786 151773018 77676966 53524889 53524889 77676966 151773018 265094786 205222950 154745305 57476426 57476426 154745305 294856628 367726734 450742259 601334965 617367313 630812635 481253037 481253037 755066475...
output:
19 20 20 19 18 17 16 15 14 13 12 11 10 10 10 10 9 8 7 7 7 8 7 7 7 6 6 5 5 5 5 4 4 3 3 4 3 3 3 3 3 3 3 3 2 2 3 3 3 3 3 4 4 5 5 5 6 6 6 6 8 10 10 11 12 13 13 14 14 15 15 15 20 21 22 21 19 17 17 17 15 14 13 13 13 13 13 12 12 11 10 8 8 8 8 7 7 7 7 7 7
result:
ok 101 lines
Test #10:
score: 0
Accepted
time: 4854ms
memory: 41552kb
input:
100000 250000 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...
output:
99296 99297 99298 99299 99301 99302 99304 99306 99307 99308 99310 99312 99313 99314 99315 99317 99318 99319 99320 99321 99322 99323 99324 99326 99327 99329 99330 99332 99333 99334 99335 99337 99338 99339 99341 99343 99345 99347 99348 99349 99350 99351 99353 99354 99355 99356 99357 99358 99359 99360 ...
result:
ok 250001 lines
Test #11:
score: 0
Accepted
time: 3254ms
memory: 41060kb
input:
100000 250000 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...
output:
99990 99982 99981 99985 99990 99986 99985 99989 99990 99989 99982 99983 99990 99987 99984 99985 99990 99985 99984 99985 99990 99982 99981 99984 99990 99988 99985 99986 99990 99986 99981 99982 99990 99982 99981 99986 99990 99987 99984 99985 99990 99982 99981 99984 99990 99983 99981 99982 99990 99989 ...
result:
ok 250001 lines
Test #12:
score: 0
Accepted
time: 3294ms
memory: 40996kb
input:
100000 250000 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...
output:
99990 99988 99987 99989 99990 99984 99981 99982 99990 99986 99981 99982 99990 99989 99985 99986 99990 99987 99980 99981 99990 99985 99981 99982 99990 99985 99982 99983 99990 99986 99983 99984 99990 99987 99985 99986 99990 99989 99984 99985 99990 99985 99981 99982 99990 99983 99982 99989 99990 99987 ...
result:
ok 250001 lines
Test #13:
score: 0
Accepted
time: 3278ms
memory: 41428kb
input:
100000 250000 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...
output:
99990 99988 99980 99981 99990 99988 99987 99989 99990 99985 99984 99985 99990 99988 99984 99985 99990 99988 99987 99989 99990 99985 99982 99983 99990 99983 99982 99984 99990 99982 99981 99988 99990 99987 99981 99982 99990 99986 99983 99984 99990 99983 99982 99986 99990 99981 99980 99983 99990 99989 ...
result:
ok 250001 lines
Test #14:
score: 0
Accepted
time: 3334ms
memory: 41460kb
input:
100000 250000 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 1...
output:
99990 99985 99980 99981 99990 99983 99982 99983 99990 99983 99982 99989 99990 99983 99982 99983 99990 99989 99985 99986 99990 99989 99985 99986 99990 99985 99980 99981 99990 99984 99981 99982 99990 99984 99983 99987 99990 99989 99981 99982 99990 99989 99984 99985 99990 99985 99984 99989 99990 99989 ...
result:
ok 250001 lines
Test #15:
score: 0
Accepted
time: 1693ms
memory: 40392kb
input:
100000 85453 662004428 662004428 662004428 662004428 285389268 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 662004428 285389268 662004428 662004428 662004428 285389268 662004428 662004428 285389268 662004428 662004428 6620044...
output:
87530 87530 87529 87528 87528 87527 87527 87526 87525 87525 87524 87523 87522 87523 87523 87523 87522 87521 87520 87519 87519 87518 87517 87516 87515 87514 87513 87512 87511 87510 87510 87509 87509 87508 87507 87507 87507 87506 87505 87504 87503 87503 87502 87501 87500 87499 87498 87497 87496 87496 ...
result:
ok 85454 lines
Test #16:
score: 0
Accepted
time: 2604ms
memory: 40976kb
input:
100000 130170 687775446 687775446 687775446 687775446 687775446 687775446 687775446 687775446 687775446 687775446 687775446 687775446 66131936 687775446 687775446 153170868 687775446 687775446 153170868 687775446 153170868 687775446 687775446 687775446 687775446 687775446 687775446 687775446 6877754...
output:
82091 82091 82090 82089 82088 82087 82086 82085 82084 82083 82082 82081 82080 82079 82079 82079 82078 82077 82076 82075 82074 82074 82073 82072 82071 82070 82069 82068 82067 82066 82065 82064 82065 82065 82064 82063 82062 82061 82060 82059 82058 82057 82056 82055 82055 82054 82054 82054 82053 82053 ...
result:
ok 130171 lines
Test #17:
score: 0
Accepted
time: 4600ms
memory: 42476kb
input:
100000 250000 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 986692197 286706529 263144019 263144019 513324265 986692197 986692197 986692197 986692197 263144019 112713891 986692197 986692197 986692...
output:
72113 72112 72111 72110 72110 72109 72108 72107 72106 72106 72106 72106 72105 72104 72104 72103 72103 72103 72102 72101 72101 72100 72099 72098 72097 72096 72095 72094 72093 72092 72091 72090 72090 72090 72089 72089 72088 72088 72088 72088 72087 72086 72085 72084 72083 72082 72081 72080 72079 72078 ...
result:
ok 250001 lines
Test #18:
score: 0
Accepted
time: 4364ms
memory: 40624kb
input:
100000 250000 259412947 915441273 915441273 915441273 915441273 915441273 915441273 915441273 41568879 915441273 41568879 915441273 915441273 915441273 915441273 915441273 915441273 915441273 915441273 915441273 915441273 786625775 915441273 915441273 915441273 915441273 915441273 915441273 91544127...
output:
70293 70292 70291 70291 70290 70289 70288 70287 70287 70286 70286 70285 70284 70283 70282 70281 70280 70279 70278 70278 70278 70277 70276 70276 70275 70275 70274 70274 70273 70273 70273 70272 70271 70270 70269 70268 70267 70266 70265 70264 70263 70262 70261 70260 70259 70258 70257 70256 70256 70255 ...
result:
ok 250001 lines
Test #19:
score: 0
Accepted
time: 4232ms
memory: 40956kb
input:
100000 250000 972766086 972766086 972766086 235311221 972766086 730052587 972766086 194240551 173272584 972766086 832962158 730052587 972766086 972766086 730052587 972766086 972766086 972766086 972766086 173272584 972766086 962996883 972766086 972766086 972766086 972766086 304469796 972766086 972766...
output:
69540 69539 69538 69538 69537 69536 69536 69535 69534 69534 69533 69532 69531 69530 69530 69531 69531 69531 69530 69530 69529 69528 69527 69527 69526 69525 69524 69524 69523 69522 69521 69520 69519 69518 69517 69516 69515 69514 69513 69513 69512 69512 69511 69510 69509 69508 69507 69506 69506 69506 ...
result:
ok 250001 lines
Test #20:
score: 0
Accepted
time: 4068ms
memory: 40684kb
input:
100000 250000 154807547 918756403 953813422 619806450 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 420454628 953813422 866134938 953813422 953813422 953813422 360533231 20081630 953813422 953813422 953813422 953813422 953813422 9538134...
output:
68574 68574 68574 68573 68572 68571 68570 68569 68569 68568 68567 68566 68566 68565 68564 68563 68562 68561 68560 68559 68558 68557 68556 68556 68556 68556 68555 68555 68555 68555 68554 68554 68553 68553 68553 68552 68551 68550 68549 68548 68547 68546 68545 68544 68543 68543 68542 68542 68542 68542 ...
result:
ok 250001 lines
Test #21:
score: 0
Accepted
time: 3934ms
memory: 40080kb
input:
100000 250000 852602535 249311522 976091974 627509820 64210097 976091974 976091974 976091974 617299575 976091974 349688741 118611971 581831340 976091974 555461910 434601718 976091974 976091974 976091974 64210097 976091974 976091974 976091974 765558531 976091974 976091974 976091974 976091974 97609197...
output:
67872 67871 67870 67869 67869 67868 67868 67867 67867 67866 67865 67865 67865 67864 67863 67863 67862 67861 67860 67859 67858 67857 67856 67855 67854 67853 67853 67854 67853 67852 67851 67850 67849 67849 67848 67847 67846 67845 67844 67844 67843 67844 67843 67842 67841 67840 67840 67839 67838 67837 ...
result:
ok 250001 lines
Test #22:
score: 0
Accepted
time: 3819ms
memory: 40216kb
input:
100000 250000 984228313 984228313 984228313 984228313 984228313 984228313 740791129 984228313 984228313 140209594 984228313 984228313 984228313 379857068 984228313 984228313 984228313 867403878 680442778 984228313 680442778 984228313 365412827 965277635 984228313 984228313 984228313 984228313 984228...
output:
67031 67030 67030 67029 67029 67028 67027 67026 67025 67024 67024 67023 67023 67022 67021 67020 67020 67019 67018 67018 67017 67016 67015 67014 67013 67012 67011 67011 67010 67009 67009 67008 67007 67006 67005 67005 67004 67004 67003 67002 67002 67002 67002 67001 67001 67001 67000 66999 66998 66997 ...
result:
ok 250001 lines
Test #23:
score: 0
Accepted
time: 3609ms
memory: 39992kb
input:
100000 250000 715257169 997296570 997296570 542312762 997296570 997296570 27873846 302224626 87347482 997296570 401624705 471054633 829392280 997296570 997296570 846504156 789999894 997296570 745260120 997296570 997296570 772173017 997296570 997296570 11575993 198643972 997296570 997296570 43349906 ...
output:
66442 66441 66441 66440 66439 66438 66438 66437 66437 66436 66435 66435 66434 66433 66433 66432 66431 66430 66430 66429 66428 66427 66427 66427 66426 66425 66424 66423 66423 66422 66421 66420 66420 66419 66419 66419 66418 66418 66417 66416 66416 66415 66414 66413 66412 66411 66411 66410 66410 66409 ...
result:
ok 250001 lines
Test #24:
score: 0
Accepted
time: 3427ms
memory: 40200kb
input:
100000 250000 999986079 999986079 999986079 999986079 103890029 999986079 999986079 999986079 999986079 650871372 999986079 292720648 974802302 999986079 999986079 999986079 999986079 26228771 294305020 290616853 999986079 999986079 999986079 999986079 999986079 461483689 436031264 999986079 9999860...
output:
66681 66680 66680 66679 66679 66678 66677 66677 66676 66675 66674 66674 66674 66673 66673 66672 66671 66671 66671 66671 66670 66669 66668 66667 66666 66665 66664 66664 66664 66664 66663 66662 66661 66661 66660 66660 66659 66658 66657 66657 66656 66656 66655 66654 66653 66652 66651 66650 66649 66648 ...
result:
ok 250001 lines
Test #25:
score: 0
Accepted
time: 3389ms
memory: 40056kb
input:
100000 250000 999956035 999956035 999956035 975343702 276311040 526419381 764599436 999956035 999956035 119568539 999956035 845700142 999956035 321583982 999956035 402892072 314737338 999956035 107619066 807964020 90604722 999956035 999956035 438108578 999956035 999956035 392747420 999956035 4271003...
output:
66891 66891 66890 66890 66890 66890 66889 66888 66887 66887 66887 66887 66886 66885 66885 66884 66883 66883 66882 66882 66881 66880 66880 66879 66878 66877 66876 66875 66874 66873 66873 66872 66871 66871 66870 66869 66868 66867 66867 66867 66866 66865 66864 66863 66863 66863 66862 66862 66861 66860 ...
result:
ok 250001 lines
Test #26:
score: 0
Accepted
time: 3363ms
memory: 40112kb
input:
100000 250000 768126538 337685990 999958418 711799067 999958418 999958418 350680706 999958418 999958418 603135203 999958418 999958418 999958418 158588521 999958418 999958418 999958418 999958418 604529317 725404484 999958418 999958418 999958418 999958418 999958418 999958418 794883357 673444118 561480...
output:
66857 66856 66856 66855 66854 66853 66852 66852 66851 66850 66849 66848 66847 66846 66846 66845 66844 66843 66842 66841 66841 66840 66839 66838 66838 66838 66837 66836 66835 66834 66833 66833 66833 66832 66831 66830 66829 66828 66827 66827 66827 66826 66825 66824 66823 66822 66821 66820 66819 66818 ...
result:
ok 250001 lines
Test #27:
score: 0
Accepted
time: 3334ms
memory: 39976kb
input:
100000 250000 999999981 999999981 999999981 999999981 699071796 873377350 999999981 999999981 999999981 999999981 999999981 410924212 999999981 999999981 959094338 999999981 806122749 225452616 999999981 999999981 999999981 999999981 999999981 999999981 999999981 999999981 999999981 728497588 999999...
output:
66742 66741 66740 66739 66738 66737 66737 66736 66735 66734 66733 66733 66732 66731 66730 66729 66728 66727 66726 66725 66724 66723 66723 66723 66723 66723 66722 66721 66720 66720 66719 66718 66717 66716 66716 66715 66714 66713 66713 66712 66712 66711 66711 66710 66709 66708 66707 66707 66706 66706 ...
result:
ok 250001 lines
Test #28:
score: 0
Accepted
time: 3355ms
memory: 40036kb
input:
100000 250000 999983432 999983432 999983432 999983432 999983432 999983432 599939613 999983432 999983432 999983432 32616393 972407866 999983432 631379484 807942580 686883818 999983432 222015091 751344820 999983432 999983432 999983432 999983432 999983432 999983432 999983432 5814454 149875208 999983432...
output:
66678 66677 66676 66675 66674 66674 66673 66672 66671 66670 66669 66668 66668 66667 66666 66666 66666 66666 66665 66665 66664 66664 66663 66662 66661 66660 66660 66660 66660 66660 66660 66660 66660 66659 66658 66658 66657 66657 66657 66656 66655 66654 66653 66653 66652 66651 66651 66650 66649 66648 ...
result:
ok 250001 lines
Test #29:
score: 0
Accepted
time: 3280ms
memory: 40140kb
input:
100000 250000 999988304 999988304 999988304 999988304 999988304 234551441 714438885 280102669 999988304 70707593 426860644 999988304 107567124 752699322 170585391 289412001 999988304 999988304 333705407 11569488 999988304 628692358 999988304 999988304 999988304 292308423 845803547 999988304 99998830...
output:
66366 66365 66364 66363 66362 66362 66361 66360 66359 66358 66358 66358 66357 66357 66356 66356 66355 66354 66353 66353 66353 66352 66351 66351 66350 66349 66349 66348 66348 66348 66348 66347 66346 66345 66344 66343 66342 66342 66341 66340 66339 66338 66337 66336 66336 66336 66336 66335 66334 66333 ...
result:
ok 250001 lines
Test #30:
score: 0
Accepted
time: 3268ms
memory: 40004kb
input:
100000 250000 664575124 999992401 999992401 999992401 999992401 284065728 999992401 999992401 999992401 999992401 38476082 166909867 697327885 999992401 486301633 999992401 125684772 999992401 114762219 999992401 999992401 999992401 999992401 999992401 326763594 852217607 999992401 372415076 9999924...
output:
66584 66583 66583 66582 66582 66582 66581 66580 66579 66578 66577 66576 66576 66575 66575 66575 66575 66575 66575 66574 66573 66572 66572 66572 66571 66571 66571 66570 66570 66570 66569 66568 66567 66566 66565 66564 66564 66563 66562 66561 66560 66559 66558 66558 66557 66557 66556 66555 66555 66554 ...
result:
ok 250001 lines
Test #31:
score: 0
Accepted
time: 3189ms
memory: 40056kb
input:
100000 250000 999999784 778967601 21139690 910446639 999999784 999999784 510563830 999999784 999999784 758557937 555739811 999999784 999999784 283267924 999999784 999999784 999999784 999999784 999999784 771439298 999999784 787673672 290028462 999999784 999999784 999999784 128066029 999999784 9999997...
output:
66529 66529 66528 66527 66526 66525 66524 66524 66523 66522 66522 66522 66521 66520 66519 66519 66519 66518 66517 66516 66516 66516 66515 66515 66514 66513 66512 66512 66511 66510 66509 66508 66507 66507 66506 66505 66504 66503 66502 66502 66502 66501 66500 66500 66500 66499 66498 66498 66497 66496 ...
result:
ok 250001 lines
Test #32:
score: 0
Accepted
time: 4537ms
memory: 41584kb
input:
100000 250000 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813422 953813...
output:
99161 99163 99164 99166 99168 99169 99171 99173 99175 99176 99178 99180 99182 99182 99183 99185 99186 99188 99190 99192 99194 99196 99198 99200 99201 99202 99203 99205 99207 99209 99211 99212 99214 99215 99217 99219 99221 99222 99224 99226 99229 99230 99231 99232 99234 99236 99238 99240 99241 99242 ...
result:
ok 250001 lines
Test #33:
score: 0
Accepted
time: 4442ms
memory: 41540kb
input:
100000 250000 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091974 976091...
output:
99101 99102 99104 99106 99108 99110 99112 99114 99115 99116 99117 99118 99119 99120 99122 99125 99127 99129 99130 99131 99133 99135 99136 99137 99138 99139 99141 99143 99144 99145 99146 99147 99148 99150 99152 99153 99155 99156 99158 99159 99161 99163 99165 99167 99169 99170 99172 99173 99175 99177 ...
result:
ok 250001 lines
Test #34:
score: 0
Accepted
time: 4644ms
memory: 41412kb
input:
100000 250000 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228313 984228...
output:
98982 98984 98985 98987 98988 98991 98992 98994 98996 98998 99000 99001 99003 99005 99006 99008 99010 99012 99014 99016 99018 99020 99022 99024 99026 99028 99030 99032 99034 99036 99038 99039 99041 99042 99044 99046 99048 99050 99051 99052 99053 99055 99057 99059 99061 99063 99065 99068 99069 99071 ...
result:
ok 250001 lines
Test #35:
score: 0
Accepted
time: 4511ms
memory: 41660kb
input:
100000 250000 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296570 997296...
output:
97711 97713 97715 97717 97719 97721 97723 97725 97727 97729 97731 97733 97735 97736 97738 97740 97742 97744 97746 97747 97749 97751 97753 97755 97757 97761 97763 97765 97766 97768 97770 97772 97774 97776 97778 97781 97783 97785 97787 97790 97792 97795 97797 97799 97800 97802 97804 97806 97808 97810 ...
result:
ok 250001 lines
Test #36:
score: 0
Accepted
time: 4501ms
memory: 42060kb
input:
100000 250000 999986079 999986079 999986079 999986079 999986079 999986079 999986079 999986079 999942321 999986079 999942321 999942321 999942321 999942321 999942321 999942321 999942321 999942321 999942321 999942321 999811704 999811704 999811704 999811704 999811704 999811704 999811704 999732963 999732...
output:
85843 85845 85847 85848 85849 85851 85853 85855 85857 85859 85860 85862 85863 85865 85866 85868 85870 85871 85872 85874 85876 85878 85879 85881 85882 85884 85886 85888 85889 85890 85892 85894 85896 85898 85899 85901 85902 85903 85904 85906 85908 85910 85912 85914 85916 85918 85919 85920 85921 85922 ...
result:
ok 250001 lines
Test #37:
score: 0
Accepted
time: 4638ms
memory: 42148kb
input:
100000 250000 999956035 999956035 999956035 999947364 999947364 999913503 999903682 999903682 999881517 999881517 999881517 999873511 999873511 999873511 999820906 999820906 999662797 999662797 999662797 999662797 999662797 999662797 999638417 999638417 999628555 999615681 999615681 999615681 999611...
output:
67946 67948 67949 67951 67952 67954 67955 67956 67958 67959 67961 67962 67963 67965 67967 67968 67970 67972 67974 67975 67977 67979 67981 67983 67984 67985 67987 67988 67990 67991 67992 67993 67994 67995 67997 67998 68000 68001 68002 68004 68005 68006 68006 68007 68009 68010 68011 68011 68012 68013 ...
result:
ok 250001 lines
Test #38:
score: 0
Accepted
time: 4114ms
memory: 41712kb
input:
100000 250000 999958418 999958418 999919808 999879483 999879483 999879483 999861014 999859848 999859848 999812870 999812870 999770768 999766046 999766046 999739056 999709635 999673047 999667495 999667495 999654148 999654148 999640226 999627397 999627397 999627397 999578714 999578714 999551740 999551...
output:
47725 47725 47727 47727 47728 47729 47730 47732 47732 47732 47733 47733 47734 47734 47735 47735 47736 47736 47737 47738 47739 47741 47743 47743 47743 47743 47743 47744 47745 47746 47748 47749 47749 47751 47751 47751 47753 47753 47754 47755 47756 47756 47758 47760 47761 47762 47764 47765 47766 47768 ...
result:
ok 250001 lines
Test #39:
score: 0
Accepted
time: 3905ms
memory: 39436kb
input:
100000 250000 999986155 999966024 999930846 999929342 999927926 999923439 999923439 999923439 999913255 999909845 999909845 999880522 999876084 999851317 999740061 999740061 999696545 999673393 999609613 999585115 999532841 999529421 999490080 999490080 999448055 999443976 999376882 999322605 999322...
output:
37220 37220 37220 37222 37223 37223 37224 37225 37226 37226 37227 37228 37228 37229 37230 37231 37231 37234 37235 37236 37237 37236 37236 37237 37239 37241 37241 37242 37243 37243 37244 37245 37247 37247 37247 37248 37249 37249 37250 37251 37252 37253 37254 37254 37254 37256 37256 37257 37257 37258 ...
result:
ok 250001 lines
Test #40:
score: 0
Accepted
time: 3826ms
memory: 38936kb
input:
100000 250000 999983432 999979158 999954938 999950683 999915181 999858725 999847219 999847219 999845682 999845682 999843264 999833967 999806398 999795344 999789920 999789920 999789920 999787898 999785529 999761828 999745206 999712122 999712122 999694961 999690553 999673047 999619986 999576656 999527...
output:
29661 29662 29661 29661 29662 29662 29662 29662 29663 29663 29663 29663 29663 29663 29665 29665 29666 29666 29667 29667 29667 29667 29668 29692 29692 29693 29694 29695 29696 29697 29699 29699 29699 29701 29702 29703 29704 29705 29705 29705 29706 29706 29706 29707 29707 29707 29707 29707 29707 29707 ...
result:
ok 250001 lines
Test #41:
score: 0
Accepted
time: 3571ms
memory: 38192kb
input:
100000 250000 999980758 999967618 999937268 999928099 999916021 999916021 999868841 999861667 999861667 999856535 999856535 999835140 999776357 999768553 999768553 999768553 999766690 999713220 999670794 999670794 999639154 999639154 999610839 999610839 999597807 999567805 999567805 999567805 999540...
output:
21361 21361 21361 21362 21363 21363 21363 21364 21364 21364 21365 21365 21365 21365 21366 21366 21366 21367 21368 21368 21369 21369 21370 21370 21371 21371 21372 21373 21373 21374 21374 21374 21375 21376 21377 21377 21377 21377 21377 21377 21378 21378 21378 21378 21378 21378 21378 21378 21378 21378 ...
result:
ok 250001 lines
Test #42:
score: 0
Accepted
time: 2935ms
memory: 34384kb
input:
100000 250000 999955571 999941135 999926131 999913126 999892687 999871266 999861852 999860919 999860911 999858163 999799124 999795162 999793863 999775923 999773184 999743505 999706594 999695939 999681972 999680383 999679245 999676828 999663116 999659202 999649649 999632552 999625225 999619328 999614...
output:
3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3623 3624 3624 3625 3625 3625 3625 3625 3625 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3626 3627 3627 3627 3627 3627 3627 3627 3628 ...
result:
ok 250001 lines
Test #43:
score: 0
Accepted
time: 1712ms
memory: 38532kb
input:
100000 84658 685697951 685697951 777369220 777369220 777369220 685697951 685697951 777369220 777369220 685697951 685697951 685697951 685697951 777369220 685697951 777369220 685697951 777369220 685697951 777369220 685697951 777369220 685697951 685697951 777369220 777369220 777369220 685697951 6856979...
output:
75011 75012 75012 75012 75013 75012 75011 75012 75012 75013 75013 75012 75011 75011 75012 75012 75012 75011 75011 75011 75010 75010 75011 75011 75010 75010 75011 75011 75012 75013 75013 75012 75012 75013 75013 75014 75014 75014 75015 75015 75015 75016 75016 75016 75017 75018 75018 75018 75019 75019 ...
result:
ok 84659 lines
Test #44:
score: 0
Accepted
time: 2537ms
memory: 38964kb
input:
100000 129162 896056043 896056043 104724955 150930649 896056043 896056043 150930649 896056043 896056043 896056043 104724955 104724955 150930649 896056043 896056043 104724955 896056043 896056043 104724955 896056043 896056043 104724955 896056043 104724955 104724955 150930649 104724955 896056043 896056...
output:
66687 66688 66689 66690 66691 66691 66692 66692 66691 66692 66691 66691 66691 66691 66691 66690 66689 66688 66688 66689 66690 66691 66690 66690 66689 66688 66688 66688 66689 66689 66689 66688 66688 66688 66687 66686 66686 66686 66685 66685 66684 66682 66681 66681 66680 66679 66679 66679 66679 66679 ...
result:
ok 129163 lines
Test #45:
score: 0
Accepted
time: 4442ms
memory: 40244kb
input:
100000 250000 222190128 68181961 904699447 904699447 68181961 904699447 904699447 603189307 904699447 594576764 904699447 904699447 68181961 68181961 904699447 515939597 68181961 603189307 904699447 68181961 68181961 904699447 904699447 603189307 68181961 68181961 904699447 68181961 119438914 445657...
output:
52235 52234 52233 52233 52232 52233 52232 52231 52231 52231 52230 52229 52228 52226 52227 52226 52226 52225 52225 52225 52225 52224 52223 52222 52222 52222 52221 52221 52221 52221 52221 52221 52221 52221 52221 52220 52219 52218 52219 52219 52218 52216 52215 52214 52213 52211 52210 52209 52208 52207 ...
result:
ok 250001 lines
Test #46:
score: 0
Accepted
time: 4239ms
memory: 37580kb
input:
100000 250000 687879614 33963896 33963896 33963896 568600067 945495541 804250865 33963896 945495541 33963896 945495541 945495541 33963896 945495541 804295408 33963896 945495541 804250865 33963896 804295408 945495541 568600067 33963896 33963896 463543683 33963896 33963896 945495541 511304756 56860006...
output:
49785 49786 49785 49784 49783 49783 49783 49783 49783 49783 49782 49783 49782 49781 49780 49780 49779 49778 49777 49777 49777 49777 49776 49774 49773 49772 49771 49771 49771 49770 49769 49768 49768 49767 49767 49767 49767 49766 49765 49764 49763 49762 49762 49761 49759 49758 49757 49756 49756 49756 ...
result:
ok 250001 lines
Test #47:
score: 0
Accepted
time: 4181ms
memory: 37540kb
input:
100000 250000 225128531 991886644 652709278 9518219 991886644 991886644 625912030 991886644 655804644 925796557 991886644 9518219 991886644 9518219 991886644 466975429 655804644 991886644 991886644 892693553 991886644 991886644 991886644 991886644 991886644 991886644 991886644 860805952 991886644 95...
output:
48612 48611 48610 48610 48608 48607 48608 48607 48608 48608 48607 48606 48605 48604 48604 48603 48603 48603 48602 48603 48602 48602 48602 48602 48601 48602 48602 48601 48601 48600 48601 48600 48599 48598 48598 48598 48598 48597 48596 48595 48596 48595 48594 48594 48594 48593 48593 48593 48593 48593 ...
result:
ok 250001 lines
Test #48:
score: 0
Accepted
time: 4069ms
memory: 37476kb
input:
100000 250000 91863852 981481916 171670750 981481916 91863852 981481916 981481916 91863852 91863852 341457456 91863852 620398479 981481916 797930420 981481916 981481916 91863852 91863852 91863852 981481916 91863852 650680943 981481916 91863852 91863852 91863852 981481916 409355800 517480662 98148191...
output:
47256 47256 47255 47254 47253 47253 47253 47253 47252 47252 47252 47252 47251 47250 47249 47248 47249 47248 47247 47246 47246 47246 47244 47244 47244 47244 47244 47245 47245 47244 47244 47243 47243 47242 47241 47240 47240 47241 47240 47240 47239 47239 47238 47238 47238 47238 47237 47237 47236 47235 ...
result:
ok 250001 lines
Test #49:
score: 0
Accepted
time: 3877ms
memory: 37364kb
input:
100000 250000 5392568 5392568 997499233 997499233 997499233 5392568 69986580 5392568 191958633 997499233 5392568 997499233 997499233 5392568 509370426 5392568 5392568 997499233 5392568 5392568 997499233 493679670 997499233 5392568 5392568 5392568 5392568 997499233 5392568 997499233 997499233 2108938...
output:
46273 46273 46273 46273 46272 46270 46268 46268 46268 46267 46267 46266 46266 46265 46266 46266 46264 46264 46264 46263 46263 46262 46261 46260 46260 46259 46258 46258 46258 46258 46256 46256 46256 46255 46255 46254 46253 46251 46250 46249 46248 46247 46246 46245 46245 46244 46243 46242 46241 46240 ...
result:
ok 250001 lines
Test #50:
score: 0
Accepted
time: 3801ms
memory: 38420kb
input:
100000 250000 280421180 713313385 27046623 27046623 384006635 986094727 986094727 819930750 113282286 986094727 27046623 27046623 27046623 593331881 970577952 291201285 27046623 729474772 81251274 490248353 986094727 27046623 986094727 27046623 27046623 986094727 986094727 986094727 27046623 9860947...
output:
45235 45234 45234 45233 45233 45233 45232 45231 45230 45229 45229 45228 45229 45228 45227 45227 45226 45225 45225 45225 45225 45224 45224 45224 45223 45223 45223 45223 45223 45223 45223 45222 45221 45220 45220 45219 45218 45218 45217 45216 45216 45215 45214 45213 45213 45213 45212 45212 45211 45210 ...
result:
ok 250001 lines
Test #51:
score: 0
Accepted
time: 3503ms
memory: 38864kb
input:
100000 250000 999255147 3219086 3219086 3219086 318553181 3219086 3219086 3219086 213934412 999255147 761314921 3219086 3219086 999255147 999255147 999255147 999255147 255096783 999255147 3219086 568432518 919293989 999255147 3219086 999255147 999255147 3219086 999255147 3219086 999255147 381810775 ...
output:
44555 44555 44555 44555 44555 44554 44554 44553 44553 44553 44551 44551 44550 44549 44548 44548 44548 44547 44546 44546 44545 44544 44544 44544 44543 44542 44541 44541 44540 44539 44539 44539 44538 44537 44537 44536 44535 44534 44534 44533 44532 44532 44531 44531 44531 44531 44530 44529 44528 44528 ...
result:
ok 250001 lines
Test #52:
score: 0
Accepted
time: 3341ms
memory: 37272kb
input:
100000 250000 173700 999945208 999945208 999945208 999945208 173700 999945208 236987260 173700 999945208 999945208 999945208 70610638 173700 114439968 704044468 161940550 701026604 173700 999945208 146516928 999945208 999945208 551654241 173700 173700 999945208 173700 658774411 173700 847194424 9999...
output:
44296 44296 44296 44296 44296 44296 44295 44295 44294 44293 44292 44292 44291 44290 44290 44289 44288 44287 44286 44286 44286 44286 44286 44285 44284 44284 44283 44282 44282 44282 44282 44281 44280 44280 44278 44277 44277 44277 44277 44277 44277 44276 44276 44275 44274 44273 44272 44270 44270 44270 ...
result:
ok 250001 lines
Test #53:
score: 0
Accepted
time: 3320ms
memory: 37152kb
input:
100000 250000 999972737 999972737 997141773 58647 420284348 642320122 248066332 518286604 999972737 53929220 935624557 532447855 359782637 58647 999972737 58647 999972737 999972737 519315104 999972737 999972737 999972737 999972737 332577831 58647 999972737 999972737 58647 58647 239067934 999972737 5...
output:
44425 44424 44423 44422 44422 44422 44422 44422 44422 44421 44420 44420 44420 44420 44419 44418 44417 44417 44417 44417 44416 44416 44416 44415 44414 44414 44413 44412 44412 44411 44410 44410 44409 44408 44408 44408 44408 44407 44406 44406 44406 44405 44404 44403 44402 44402 44401 44401 44400 44399 ...
result:
ok 250001 lines
Test #54:
score: 0
Accepted
time: 3284ms
memory: 37140kb
input:
100000 250000 1984 1984 100747642 139924544 1984 1984 999986469 1984 1984 999986469 999986469 999986469 1984 999986469 1984 1984 999986469 1984 999986469 1984 179053977 999986469 16297126 643243843 1984 999986469 901227655 999986469 1984 146959133 999986469 1984 679915592 1984 999986469 999986469 99...
output:
44332 44331 44331 44331 44330 44330 44330 44330 44329 44328 44327 44325 44324 44324 44324 44324 44324 44323 44322 44322 44321 44321 44321 44320 44320 44318 44317 44317 44316 44316 44315 44314 44314 44312 44311 44311 44310 44310 44309 44308 44308 44307 44306 44305 44305 44305 44305 44304 44303 44302 ...
result:
ok 250001 lines
Test #55:
score: 0
Accepted
time: 3307ms
memory: 37140kb
input:
100000 250000 43310646 303852511 999969597 664869089 822973329 4573 999969597 4573 999969597 348265872 999969597 999969597 4573 101659625 999969597 4573 201285900 4573 459934980 197699744 4573 4573 999969597 617816768 999969597 4573 972001854 4573 860373871 20481032 999969597 4573 999969597 4573 532...
output:
44624 44624 44623 44623 44622 44621 44621 44621 44621 44620 44620 44620 44619 44619 44619 44618 44618 44617 44617 44617 44617 44616 44615 44615 44614 44614 44614 44613 44612 44612 44611 44610 44609 44607 44606 44605 44605 44603 44602 44602 44602 44601 44601 44601 44600 44600 44600 44600 44598 44597 ...
result:
ok 250001 lines
Test #56:
score: 0
Accepted
time: 3299ms
memory: 37152kb
input:
100000 250000 1125 1125 1125 553144507 1125 1125 1125 1125 999978990 1125 935849311 999978990 1125 999978990 1125 1125 1125 1125 999978990 71516016 999978990 1125 269494600 114073311 1125 498595917 1125 999978990 1125 157861281 500297896 999978990 999978990 770493244 272891666 1125 999978990 1125 75...
output:
44572 44572 44571 44571 44570 44569 44569 44569 44568 44568 44567 44567 44566 44565 44564 44564 44564 44564 44563 44562 44561 44560 44559 44558 44557 44557 44556 44555 44554 44554 44554 44554 44554 44553 44552 44552 44551 44550 44549 44549 44548 44547 44547 44547 44546 44545 44545 44544 44544 44543 ...
result:
ok 250001 lines
Test #57:
score: 0
Accepted
time: 3238ms
memory: 38632kb
input:
100000 250000 4043 999987839 510022165 999987839 925287262 4043 999987839 4043 4043 999987839 999987839 999987839 999987839 4043 4043 999987839 66568874 571103677 210630458 4043 999987839 87987365 48533407 4043 4043 4043 844754082 4043 452894095 579876985 999987839 999987839 4043 999987839 999987839...
output:
44305 44305 44305 44305 44305 44304 44303 44302 44302 44301 44300 44299 44298 44297 44296 44295 44294 44294 44294 44293 44292 44292 44291 44291 44291 44291 44290 44289 44289 44289 44288 44288 44287 44286 44286 44285 44283 44283 44282 44281 44280 44279 44279 44277 44276 44276 44274 44274 44274 44274 ...
result:
ok 250001 lines
Test #58:
score: 0
Accepted
time: 3203ms
memory: 37196kb
input:
100000 250000 8533 44379322 8533 999996580 999996580 999996580 8533 622287765 999996580 8533 316880418 999996580 8533 692278318 999996580 999996580 788806453 999996580 999996580 999854802 8533 832864005 8533 8533 858202864 8533 8533 623844200 999996580 999996580 8533 999996580 999996580 8533 7661978...
output:
44107 44106 44105 44105 44104 44104 44103 44102 44102 44102 44102 44101 44101 44101 44101 44099 44098 44097 44096 44095 44094 44094 44093 44091 44091 44091 44091 44091 44091 44091 44090 44089 44089 44088 44088 44087 44086 44085 44085 44084 44083 44083 44083 44083 44082 44081 44080 44080 44080 44079 ...
result:
ok 250001 lines
Test #59:
score: 0
Accepted
time: 3169ms
memory: 37228kb
input:
100000 250000 1671 999998849 999998849 439314841 999998849 641201707 1671 172419263 999998849 1671 1671 213809722 1671 493118642 1671 1671 1671 999998849 999998849 1671 1671 625020943 1671 1671 274743472 1671 999998849 999998849 1671 999998849 999998849 1671 1671 1671 999998849 51791781 1671 1206158...
output:
44593 44592 44592 44592 44591 44590 44589 44589 44589 44587 44587 44586 44586 44585 44584 44584 44583 44582 44582 44582 44582 44582 44582 44581 44580 44579 44579 44577 44576 44575 44574 44573 44572 44571 44569 44569 44568 44568 44567 44565 44564 44563 44563 44563 44562 44561 44561 44561 44561 44560 ...
result:
ok 250001 lines
Test #60:
score: 0
Accepted
time: 3248ms
memory: 37216kb
input:
100000 250000 516395487 409664786 391609849 391609849 409664786 516395487 934425664 832890194 832890194 934425664 878065459 554315930 119205643 119205643 554315930 480676178 385310371 301636549 265074495 265074495 301636549 305068906 156879621 156879621 305068906 385310371 444998570 326327598 326327...
output:
49944 49945 49946 49947 49950 49951 49952 49953 49954 49955 49957 49958 49959 49962 49963 49964 49965 49966 49967 49969 49970 49972 49974 49975 49977 49978 49985 49986 49987 49991 49992 49997 49998 49999 50000 49999 49998 49997 49993 49992 49991 49989 49987 49986 49985 49984 49983 49982 49979 49978 ...
result:
ok 250001 lines
Test #61:
score: 0
Accepted
time: 3251ms
memory: 37396kb
input:
100000 250000 851584940 586678495 504876719 205396307 205396307 504876719 586678495 851584940 725695820 210233490 177183072 171723515 64068425 51697205 31416477 31416477 51697205 64068425 171723515 177183072 208238823 147202725 147202725 208238823 210233490 725695820 744953440 472792759 248634439 23...
output:
49656 49660 49662 49663 49664 49665 49666 49667 49669 49670 49671 49672 49676 49679 49680 49681 49682 49691 49692 49693 49694 49694 49698 49699 49700 49702 49705 49707 49708 49713 49717 49720 49722 49725 49726 49733 49734 49735 49736 49737 49738 49739 49740 49745 49746 49750 49751 49752 49753 49754 ...
result:
ok 250001 lines
Test #62:
score: 0
Accepted
time: 3223ms
memory: 37236kb
input:
100000 250000 991338905 685419867 652195302 560701768 145891533 98854240 95392905 34771042 34771042 95392905 98854240 145891533 560701768 652195302 382559520 206807841 206807841 382559520 685419867 948811069 792442417 514273528 397863693 146424364 128858364 84156500 58858006 7737934 7737934 58858006...
output:
48785 48788 48789 48790 48796 48797 48798 48805 48810 48812 48813 48820 48822 48826 48827 48829 48832 48833 48839 48843 48844 48847 48852 48860 48861 48880 48889 48891 48892 48893 48894 48898 48899 48904 48911 48912 48913 48914 48916 48920 48921 48935 48943 48948 48950 48951 48952 48953 48958 48959 ...
result:
ok 250001 lines
Test #63:
score: 0
Accepted
time: 2961ms
memory: 37336kb
input:
100000 250000 909139180 899071946 877448099 877160345 854740436 766268913 719946942 706913073 704144733 698325043 680454804 634661652 604720444 470836104 437066580 429568966 422603424 390767003 363373345 331790422 327648217 318308392 315847946 265283379 258540665 219992723 211011389 206255297 201047...
output:
49055 49056 49057 49107 49108 49109 49110 49111 49112 49113 49129 49143 49149 49166 49167 49168 49180 49181 49182 49183 49217 49243 49244 49276 49299 49364 49365 49366 49367 49368 49369 49370 49371 49372 49383 49384 49385 49390 49391 49421 49422 49423 49424 49427 49431 49432 49491 49504 49510 49511 ...
result:
ok 250001 lines
Test #64:
score: 0
Accepted
time: 2880ms
memory: 37352kb
input:
100000 250000 991327601 990686923 982467467 943830644 925907043 916318139 909446071 900813203 900112576 869198369 864992233 855555276 838137909 828418556 821443486 816282586 814137358 811579626 807818531 803759635 794085859 758428962 736559641 704304988 696324303 675286167 652376089 651989542 645229...
output:
47970 47986 47987 47988 47989 48037 48140 48145 48151 48152 48198 48199 48200 48208 48209 48210 48211 48216 48217 48218 48220 48227 48227 48228 48229 48230 48231 48264 48265 48266 48375 48391 48481 48500 48501 48502 48516 48549 48633 48643 48644 48657 48677 48677 48678 48679 48680 48681 48691 48800 ...
result:
ok 250001 lines
Test #65:
score: 0
Accepted
time: 2833ms
memory: 37188kb
input:
100000 250000 981690073 979266627 976378138 973713983 971701696 962382499 954713908 953831229 950416032 944436079 943942996 931295463 930299714 929159981 917565938 913061136 911468626 906619900 902740690 889598371 884587829 877438792 873494685 873482629 862885772 859083523 855969160 844375805 839496...
output:
47528 47529 47530 47531 47565 47600 47601 47657 47783 47891 47964 48112 48136 48171 48172 48263 48264 48465 48653 48655 48682 48739 48766 48767 49000 49022 49278 49279 49280 49357 49358 49359 49360 49472 49504 49505 49704 49705 49706 49707 49708 49709 49758 49759 49796 49807 49988 49987 49971 49970 ...
result:
ok 250001 lines
Test #66:
score: 0
Accepted
time: 2783ms
memory: 37308kb
input:
100000 250000 999742273 994441955 994025434 992505262 992415900 991692833 984495329 973447219 971256419 971155061 969567779 960382456 955413944 954874469 950218291 950150118 949560506 945918908 945618365 941698160 940767343 940694788 929759929 926373752 923658188 920437126 919338450 915815945 913881...
output:
35157 35171 35190 35191 35191 35191 35192 35254 35268 35269 35691 35692 35693 35779 35839 35956 35956 35957 36230 36231 36232 36232 36232 36233 36233 36233 36234 36235 36236 36237 36571 36580 36580 36580 36622 36622 36623 36624 36625 36739 36739 36740 36997 36998 36998 36999 36999 36999 36999 36999 ...
result:
ok 250001 lines
Test #67:
score: 0
Accepted
time: 2668ms
memory: 37552kb
input:
100000 250000 995575903 995235162 995029185 992745868 991831279 991699230 990992905 990447176 988145672 987877826 986047190 985943044 985388729 984107247 983756207 981882591 977874575 977481764 974998283 974648366 973838991 973605552 973483185 973064300 972605488 972522272 970510637 970363086 970283...
output:
30893 30894 30895 30896 30896 30897 31109 31109 31110 31198 31198 31316 31398 31398 31421 31422 31423 31423 31424 31481 31482 31631 31673 31674 31674 31675 31676 31676 31753 31841 31842 31843 31843 31860 31861 31862 31863 31864 31865 31865 31865 31865 31866 31866 31867 31867 31928 31929 31933 31968 ...
result:
ok 250001 lines
Test #68:
score: 0
Accepted
time: 2687ms
memory: 37744kb
input:
100000 250000 999998716 999207807 998881609 998550927 998476168 998471057 998425483 998325328 998014812 997751549 996837426 996603606 994849890 994842719 994672369 994227691 994143798 993933497 993921114 993878165 993713850 993414408 993257341 993242473 992730479 992468696 992391689 992252533 991918...
output:
36052 36053 36053 36054 36055 36056 36812 37841 37842 38058 38059 38060 38730 38731 38732 38732 38732 38733 39321 39496 41106 41107 41108 41108 41109 41110 41110 41149 42693 42694 43000 43661 43661 43662 43985 43986 43987 44128 44129 44130 44224 46354 46355 46355 46356 48602 48603 48604 48605 48606 ...
result:
ok 250001 lines
Test #69:
score: 0
Accepted
time: 2700ms
memory: 38032kb
input:
100000 250000 999974893 999920227 999180274 999171219 999161277 999094512 998992843 998614540 998601254 998382525 997466733 997361778 997042188 996482389 996248314 996047699 995467695 995455339 995063705 994732992 994467700 994341920 994325907 994188819 994024935 993399403 993026471 992937564 992689...
output:
23980 23980 23980 23981 23981 23982 23983 23984 23984 23984 23984 23985 23985 23985 23985 23985 23985 23985 23986 23987 23988 23988 23989 23989 23989 23989 23989 23989 23989 23990 23991 23991 23992 23993 23993 23993 23994 23994 23994 23994 23995 24540 24541 24542 24543 24544 24544 24545 24546 24546 ...
result:
ok 250001 lines
Test #70:
score: 0
Accepted
time: 2703ms
memory: 38820kb
input:
100000 250000 999654047 999624313 999444848 999196214 999191352 999130026 999061922 998984338 998916402 998861995 998777151 998703515 998530084 998490899 998345007 998221328 997955194 997859992 997815407 997750103 997527417 997516256 997509797 997479885 997314752 997187338 997130269 997020395 996866...
output:
30584 30584 31171 31172 31173 31174 31175 32179 32180 32180 32905 32905 32906 32906 32906 32907 32908 32908 32908 32908 33907 34958 34959 34959 34959 34960 34961 34962 34962 34963 37287 37288 37289 39810 39811 39811 39812 40419 40419 40419 40420 40421 40422 40423 46013 46014 46015 46015 46015 46853 ...
result:
ok 250001 lines
Test #71:
score: 0
Accepted
time: 2718ms
memory: 38560kb
input:
100000 250000 999954704 999950397 999831867 999821225 999733320 999725879 999715768 999709262 999701240 999683050 999678699 999660570 999659387 999598654 999564117 999552851 999532231 999479765 999474425 999347358 999301004 999260034 999194456 999159774 999151810 999139412 999136571 998776284 998712...
output:
5880 5880 5880 5880 5880 5880 5880 5880 5881 5881 5881 5881 5882 5883 5883 5883 5883 5883 5883 5924 5924 5925 5925 5925 5925 5925 5925 5925 5925 6253 6254 6254 6254 6254 6254 6254 6254 6254 6254 6254 6254 6254 6254 6268 6268 6268 6268 6269 6269 6270 6270 6270 6270 6270 6270 6271 6271 6272 6272 6272 ...
result:
ok 250001 lines
Test #72:
score: 0
Accepted
time: 2569ms
memory: 37112kb
input:
100000 250000 999930250 999917422 999905167 999878386 999874854 999865654 999832454 999807114 999801507 999757170 999677158 999663492 999663242 999658234 999497431 999415169 999322234 999290436 999279653 999265133 999222386 999163261 999160605 999104898 999095351 999007896 998991133 998984071 998973...
output:
13770 13770 13771 13771 13771 13772 13772 13773 13773 13773 13774 13774 13774 13774 13774 13774 13774 13774 13774 13774 13775 13776 13776 13776 13776 13777 13777 13777 13777 13777 13777 13778 13778 13778 13778 13779 13779 13779 13779 13780 13781 13782 13782 13782 13782 13782 13782 16734 16734 16734 ...
result:
ok 250001 lines
Test #73:
score: 0
Accepted
time: 4849ms
memory: 40316kb
input:
100000 250000 932589818 987127111 932589818 932589818 987127111 932589818 932589818 987127111 932589818 987127111 932589818 932589818 987127111 987127111 932589818 932589818 932589818 987127111 987127111 932589818 932589818 932589818 932589818 987127111 987127111 932589818 987127111 987127111 987127...
output:
75024 75024 75025 75024 75024 75025 75025 75025 75025 75024 75025 75025 75025 75026 75027 75027 75028 75028 75028 75027 75028 75028 75028 75028 75028 75028 75029 75030 75031 75031 75031 75031 75031 75031 75031 75030 75029 75030 75030 75030 75030 75030 75029 75029 75030 75030 75030 75031 75030 75031 ...
result:
ok 250001 lines
Test #74:
score: 0
Accepted
time: 4978ms
memory: 38144kb
input:
100000 250000 314482846 827844089 827844089 827844089 64800057 314482846 314482846 314482846 827844089 64800057 827844089 827844089 64800057 64800057 64800057 827844089 64800057 314482846 314482846 827844089 314482846 64800057 64800057 314482846 827844089 314482846 64800057 827844089 314482846 82784...
output:
60942 60942 60942 60942 60943 60945 60946 60947 60947 60948 60949 60949 60948 60948 60947 60948 60949 60950 60950 60950 60949 60950 60950 60950 60950 60950 60951 60950 60950 60950 60949 60948 60948 60948 60949 60949 60948 60949 60949 60949 60948 60949 60949 60949 60949 60948 60948 60946 60947 60947 ...
result:
ok 250001 lines
Test #75:
score: 0
Accepted
time: 4493ms
memory: 35636kb
input:
100000 250000 902118669 323274917 509290983 755865094 902118669 474378675 306473485 306473485 264687469 902118669 968534807 509290983 509290983 306473485 306473485 246072693 902118669 306473485 968534807 306473485 306473485 474378675 323274917 264687469 264687469 884087940 264687469 968534807 884087...
output:
29375 29374 29375 29374 29373 29372 29372 29371 29371 29372 29372 29371 29371 29370 29370 29371 29370 29369 29370 29369 29369 29369 29368 29368 29368 29368 29368 29368 29368 29368 29368 29369 29369 29368 29368 29368 29368 29368 29368 29369 29369 29368 29367 29366 29367 29366 29366 29364 29365 29365 ...
result:
ok 250001 lines
Test #76:
score: 0
Accepted
time: 4158ms
memory: 35164kb
input:
100000 250000 524381017 524381017 524381017 669925914 1483595 389283375 958070114 820788614 958070114 958070114 138408388 669925914 958070114 524381017 877431893 669925914 647210116 647210116 524381017 224441764 336633259 936408178 389283375 280999761 336633259 18033110 18033110 958070114 389283375 ...
output:
21956 21955 21956 21957 21956 21956 21956 21956 21956 21956 21955 21956 21956 21955 21954 21954 21954 21955 21955 21955 21954 21954 21954 21954 21955 21955 21957 21956 21955 21956 21956 21955 21955 21954 21954 21953 21953 21953 21954 21954 21955 21955 21954 21954 21954 21954 21954 21954 21955 21955 ...
result:
ok 250001 lines
Test #77:
score: 0
Accepted
time: 3924ms
memory: 35012kb
input:
100000 250000 544209072 159389037 39975430 816948536 830186050 159389037 73246251 439701489 289273127 467462236 844653456 186672986 186672986 194477121 830186050 208898831 544209072 844653456 328182098 186672986 655749810 544209072 844653456 830186050 741364213 467462236 655749810 467462236 46746223...
output:
18131 18131 18130 18130 18130 18130 18130 18130 18130 18130 18129 18129 18128 18128 18128 18128 18127 18127 18128 18128 18128 18128 18128 18127 18128 18129 18129 18128 18128 18128 18128 18128 18128 18127 18124 18124 18125 18125 18124 18123 18122 18122 18122 18123 18123 18122 18121 18121 18120 18120 ...
result:
ok 250001 lines
Test #78:
score: 0
Accepted
time: 3732ms
memory: 34504kb
input:
100000 250000 991627684 929266453 224271758 287741222 898967293 26935795 991627684 592778868 53709008 361385026 902797277 233524707 53709008 191766008 902797277 191766008 194501570 991627684 592778868 793630439 890403792 191766008 902797277 890403792 470175932 484700932 929266453 965033513 194501570...
output:
13384 13384 13384 13385 13385 13385 13385 13386 13386 13386 13386 13387 13388 13388 13388 13388 13388 13389 13389 13388 13388 13388 13388 13388 13388 13388 13390 13389 13389 13389 13390 13389 13389 13390 13390 13390 13390 13391 13391 13391 13391 13391 13391 13390 13390 13391 13391 13391 13391 13391 ...
result:
ok 250001 lines
Test #79:
score: 0
Accepted
time: 3639ms
memory: 34280kb
input:
100000 250000 382209667 602494955 623947732 429561966 779173968 109413406 577294809 4043964 946440594 42402446 726944074 410416501 369775602 251488082 408302683 656847917 456523628 78573595 779173968 912044243 78573595 912044243 369775602 102782314 577294809 4043964 946440594 577294809 42402446 4083...
output:
8881 8882 8882 8882 8882 8882 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8881 8880 8879 8879 8879 8878 8878 8878 8877 8877 8877 8877 8877 8878 8878 8877 8877 8877 8877 8876 8876 8876 8877 8877 8878 8878 8878 8878 8878 8878 8878 8878 8878 8878 ...
result:
ok 250001 lines
Test #80:
score: 0
Accepted
time: 3182ms
memory: 33840kb
input:
100000 250000 130622340 540867805 293832155 912937954 634789063 429938993 67409163 3039413 861003851 605799828 463651279 906677078 410200169 863879373 489124491 730188421 767970084 893007640 391295039 282702459 898116453 899899339 605799828 534962664 159995879 509961318 83201529 688631843 898116453 ...
output:
5157 5157 5157 5157 5157 5157 5157 5157 5157 5157 5157 5158 5158 5158 5158 5158 5158 5158 5159 5159 5159 5159 5159 5160 5160 5160 5160 5160 5160 5160 5160 5160 5160 5161 5161 5161 5162 5162 5162 5162 5162 5162 5161 5161 5161 5161 5161 5161 5161 5161 5160 5160 5160 5160 5160 5160 5160 5160 5160 5160 ...
result:
ok 250001 lines
Test #81:
score: 0
Accepted
time: 2764ms
memory: 33384kb
input:
100000 250000 486661746 974486131 646844891 620526856 914082689 35351728 315369569 674342174 844715939 377357320 87009555 888364125 912401152 114349376 12672927 729210066 543003920 396949065 992203093 969896003 525351044 317980260 730810064 984988534 473172384 104920833 319127069 115440238 791193806...
output:
735 735 735 735 735 735 735 735 735 735 735 735 735 734 734 734 733 733 733 733 733 733 733 733 733 733 733 733 734 734 734 734 734 734 734 735 735 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 734 ...
result:
ok 250001 lines
Test #82:
score: 0
Accepted
time: 2624ms
memory: 33416kb
input:
100000 250000 399697071 628544625 546932236 150689277 868983435 296722510 539312908 196904315 483556120 711988462 955545857 551736516 261613490 870064444 139504560 620631902 860645547 402228238 997055315 552306560 966875675 201484318 86890211 380021969 650107316 411323161 289658800 69507379 24237586...
output:
98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 98 ...
result:
ok 250001 lines
Test #83:
score: 0
Accepted
time: 2635ms
memory: 33352kb
input:
100000 250000 477542915 335052407 476601681 938833128 647309155 45549350 505695528 801146363 370185759 792203371 906602065 507301923 452783521 642258165 445094379 742760526 56796784 25074490 737565823 256260649 65042578 455017253 675186862 493596767 625150737 927046473 550776982 896768220 126762118 ...
output:
47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 47 ...
result:
ok 250001 lines
Test #84:
score: 0
Accepted
time: 2587ms
memory: 35324kb
input:
100000 250000 835958799 295772437 179535280 927660365 937223916 892413229 578854044 680775088 133874631 618114241 807277275 569644394 971622665 810406395 782207785 722847847 607650821 586523911 815203492 264628938 585150841 440778467 523911329 628012382 223704482 579474555 814961764 485176016 660869...
output:
31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 ...
result:
ok 250001 lines
Test #85:
score: 0
Accepted
time: 2569ms
memory: 33500kb
input:
100000 250000 647115821 180220100 987160891 717087945 581530575 861194842 66778720 978543099 632662335 654731088 924045789 813328625 662777437 800297651 161195240 487366910 83289146 230851950 562401026 590884755 13298137 178414617 745961965 44013219 663399265 922020742 861648333 651942400 851412934 ...
output:
14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 14 ...
result:
ok 250001 lines
Test #86:
score: 0
Accepted
time: 2550ms
memory: 33492kb
input:
100000 250000 574581421 634217680 625789181 838126069 427244718 309447904 537729655 772065933 56498777 240289895 204581004 638700269 47618846 549611183 369708466 962981964 69154165 28770714 557953516 27442992 226176167 96176299 774165252 70417828 521008160 476219407 103451079 481020037 274933609 144...
output:
10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 10 ...
result:
ok 250001 lines
Test #87:
score: 0
Accepted
time: 2498ms
memory: 33516kb
input:
100000 250000 859821099 320605516 641692530 245731026 752655818 402734221 934536680 96687851 835806171 868553374 964378034 42456332 726400996 726046651 993359321 436490883 83484574 933860693 157294057 457587965 287512211 740998956 601983897 165774112 153941544 78958575 461065041 56521872 921842405 3...
output:
4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 4 ...
result:
ok 250001 lines
Test #88:
score: 0
Accepted
time: 2503ms
memory: 35436kb
input:
100000 250000 379564780 661482922 883419363 952984837 457299182 768594338 512270397 826060659 459786625 839732976 122570894 14770964 664670985 685160280 519462590 306646557 368091980 786328902 73384780 172987862 908271214 896287509 258400134 777842171 564753710 714564049 255934660 460717801 82022713...
output:
7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 7 ...
result:
ok 250001 lines
Test #89:
score: 0
Accepted
time: 2467ms
memory: 33348kb
input:
100000 250000 497285687 910527886 237312342 612140318 540748878 77674147 888746222 493897592 179082411 484120083 241286078 891464799 183780707 367834939 957433964 227182925 227882481 785714466 28854307 985552691 210719824 791402680 822735743 158331804 794331315 184485090 466373444 335241464 25752446...
output:
2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 2 ...
result:
ok 250001 lines
Test #90:
score: 0
Accepted
time: 2363ms
memory: 40620kb
input:
100000 250000 999995656 999938369 999928522 999882398 999878551 999875996 999798274 999795180 999774748 999764230 999698170 999682340 999662917 999655949 999646724 999613654 999610820 999608042 999543770 999493170 999490119 999471625 999454657 999454447 999436338 999435129 999390814 999359865 999352...
output:
49931 49864 47564 47564 49931 21029 21029 21090 49931 37397 21382 21381 49931 388 388 6622 49931 20493 20493 20539 49931 17090 8196 8195 49931 2994 2994 4346 49931 13577 13578 49382 49931 5798 5798 33994 49931 46496 46496 46671 49931 17453 17453 27270 49931 8085 2770 2770 49931 5913 5913 24634 49931...
result:
ok 250001 lines
Test #91:
score: 0
Accepted
time: 2387ms
memory: 40556kb
input:
100000 250000 999964351 999923968 999899733 999890454 999888561 999873267 999869332 999857860 999828769 999816197 999814318 999810022 999783596 999756971 999732346 999714260 999691276 999580889 999568253 999531783 999483385 999440864 999437548 999419601 999402366 999397738 999284752 999284012 999232...
output:
49922 3539 3540 48337 49923 6965 6965 35227 49923 17156 17157 46265 49923 32763 1333 1332 49923 34558 34558 44328 49923 48382 33529 33529 49923 46267 26707 26706 49923 15340 6458 6458 49923 38306 38306 44009 49923 6284 6285 25992 49923 17212 17213 33519 49923 30251 10729 10729 49923 34971 2334 2333 ...
result:
ok 250001 lines
Test #92:
score: 0
Accepted
time: 2522ms
memory: 40568kb
input:
100000 250000 999987866 999981086 999978851 999950943 999916609 999883879 999867273 999861486 999839614 999808790 999781873 999738737 999698537 999675177 999656145 999653229 999642826 999641014 999600782 999591723 999589249 999561508 999555221 999531649 999504759 999499511 999485696 999459054 999444...
output:
49904 14635 14636 26378 49904 45152 2965 2965 49904 45127 27255 27255 49904 885 885 38786 49904 38943 12292 12292 49904 29395 14049 14049 49904 32434 23303 23304 49905 30586 1508 1507 49905 39942 39942 40371 49905 19205 5974 5975 49906 18352 18352 39513 49906 42821 34406 34406 49906 33976 33975 4348...
result:
ok 250001 lines
Test #93:
score: 0
Accepted
time: 2808ms
memory: 40596kb
input:
100000 250000 999988737 999957107 999937444 999916654 999909457 999900490 999897965 999863995 999854790 999818062 999761898 999739356 999731634 999694615 999694067 999677177 999667851 999652696 999650834 999647969 999639611 999633239 999614618 999602061 999523162 999425486 999420034 999336295 999331...
output:
49893 19978 18146 18145 49893 6935 6934 22505 49893 42479 42131 42130 49893 9696 9696 46860 49893 8889 8889 37981 49893 12735 12735 39291 49893 33570 17119 17118 49893 28820 7360 7361 49893 15963 15963 46178 49893 9269 9269 38649 49893 19215 18022 18021 49893 16148 16148 18295 49893 34795 27957 2795...
result:
ok 250001 lines
Test #94:
score: 0
Accepted
time: 2993ms
memory: 40532kb
input:
100000 250000 999947788 999911144 999898276 999896276 999891444 999862388 999832929 999828014 999797312 999788758 999721028 999654812 999585349 999558666 999536022 999492726 999407927 999380099 999377213 999358372 999358088 999344615 999343979 999328475 999264134 999263023 999243994 999226820 999192...
output:
49808 12007 12007 13241 49808 17204 745 744 49807 16995 16041 16041 49807 12407 2529 2530 49808 28359 19260 19259 49808 30771 30770 43164 49808 35988 15737 15738 49809 1931 1931 38586 49810 1969 1969 29899 49811 32627 13011 13011 49811 24912 17900 17900 49811 11571 11572 16865 49810 13944 13944 2140...
result:
ok 250001 lines
Test #95:
score: 0
Accepted
time: 3088ms
memory: 40676kb
input:
100000 250000 999989735 999987294 999986810 999975032 999932788 999906589 999897783 999894103 999821711 999812865 999810314 999795823 999773409 999732220 999731160 999716723 999711002 999692998 999667335 999653640 999621184 999619406 999616754 999608208 999551427 999546401 999533839 999526515 999526...
output:
49701 33574 8470 8470 49702 37290 30491 30490 49701 1937 1936 34513 49700 12915 6214 6214 49700 11291 11289 23772 49700 48012 30789 30788 49699 24573 24573 48385 49699 15579 15580 36516 49699 48773 1006 1008 49699 15465 12821 12821 49699 1778 1777 39447 49699 40746 13923 13923 49700 18991 18990 3698...
result:
ok 250001 lines
Test #96:
score: 0
Accepted
time: 3150ms
memory: 40664kb
input:
100000 250000 999992765 999965123 999955665 999933047 999875607 999866827 999857277 999839824 999837496 999795023 999699717 999689869 999681457 999676297 999657958 999650778 999586627 999577392 999567002 999562310 999553524 999547050 999514418 999499713 999495513 999481181 999461287 999428955 999365...
output:
49467 3253 3252 15798 49467 43510 26926 26926 49467 45299 39142 39142 49467 48506 36579 36579 49468 6994 6993 23596 49468 6666 550 550 49468 28143 28141 42190 49467 47776 41896 41897 49467 42330 16144 16145 49467 41938 34205 34205 49467 48128 16480 16481 49467 120 119 38579 49466 11301 11300 20780 4...
result:
ok 250001 lines
Test #97:
score: 0
Accepted
time: 3236ms
memory: 40560kb
input:
100000 250000 999989651 999977709 999969966 999962104 999961382 999883435 999869847 999857623 999850483 999848997 999847778 999844778 999807121 999800784 999754577 999738070 999701701 999614307 999598222 999591764 999565583 999540435 999516415 999488152 999476311 999465809 999454323 999406054 999382...
output:
49009 18564 18281 18282 49009 47146 26778 26778 49009 4634 4633 39056 49009 17823 17822 32832 49009 7296 7295 31314 49009 745 744 3463 49009 48419 24944 24946 49009 44345 22197 22198 49009 44530 8645 8646 49009 801 800 27291 49009 9629 9629 20847 49010 34768 25150 25151 49010 14742 14742 33300 49010...
result:
ok 250001 lines
Test #98:
score: 0
Accepted
time: 3165ms
memory: 40500kb
input:
100000 250000 999988430 999911661 999891753 999875040 999831586 999831001 999799036 999788778 999786577 999770160 999742957 999694894 999691786 999665898 999657368 999628763 999621781 999599814 999593891 999590451 999564395 999563956 999530141 999527038 999525284 999507242 999473552 999468176 999458...
output:
48526 18712 18711 39307 48526 4503 4502 48171 48526 13555 13553 34406 48527 31855 6868 6869 48527 21335 21334 25374 48527 21497 21496 26796 48527 34560 10871 10872 48527 11288 11287 23406 48526 34440 8203 8203 48526 7030 7030 8849 48526 17239 17238 38096 48526 48283 46644 46646 48526 29386 28345 283...
result:
ok 250001 lines
Test #99:
score: 0
Accepted
time: 3191ms
memory: 40276kb
input:
100000 250000 999979285 999966212 999958462 999956543 999937062 999932567 999918224 999913180 999910195 999907857 999883479 999879996 999862247 999844636 999767061 999754833 999743221 999708624 999702618 999670775 999661637 999643356 999642322 999638193 999633646 999567248 999546529 999533098 999524...
output:
47573 33280 33279 44222 47573 25231 25230 39362 47573 20125 20124 36822 47573 35583 12835 12838 47573 31902 20305 20306 47573 44821 9819 9821 47573 33956 26103 26104 47573 35013 15148 15149 47573 30736 5629 5629 47573 19849 19847 40044 47573 44783 17327 17327 47573 46174 32195 32196 47573 31399 1980...
result:
ok 250001 lines
Test #100:
score: 0
Accepted
time: 3211ms
memory: 40116kb
input:
100000 250000 999984566 999965805 999948710 999924201 999908953 999897911 999888273 999846591 999834985 999822142 999789526 999786427 999757245 999754231 999723564 999686318 999677789 999667162 999623706 999615214 999613185 999586741 999586217 999579257 999569560 999561060 999555766 999506289 999486...
output:
46170 39765 33739 33739 46170 38370 13331 13332 46170 18003 16714 16715 46170 29332 20410 20411 46170 6328 6328 38801 46170 37906 26901 26904 46171 41383 17174 17175 46171 18920 17529 17531 46171 1191 1191 6128 46171 19667 6406 6407 46171 14242 14241 22717 46170 31308 29183 29185 46170 24206 4516 45...
result:
ok 250001 lines
Test #101:
score: 0
Accepted
time: 2782ms
memory: 36140kb
input:
100000 250000 425716446 212156736 212156736 425716446 686449831 686449831 515848269 28952811 16718291 16718291 28952811 515848269 385845103 385845103 982341048 581122832 113270306 93226022 34347867 34347867 93226022 57869043 21539894 11783736 11783736 21539894 57869043 113270306 581122832 982341048 ...
output:
49994 49994 49994 49994 49994 49994 49994 49994 49994 49992 49992 49994 49994 49994 49991 49991 49994 49990 49990 49994 49994 49993 49993 49994 49994 49994 49994 49994 49994 49994 49990 49990 49994 49991 49991 49994 49994 49993 49993 49994 49994 49991 49991 49994 49994 49994 49994 49994 49994 49993 ...
result:
ok 250001 lines
Test #102:
score: 0
Accepted
time: 2405ms
memory: 36196kb
input:
100000 250000 823592337 795585150 704732282 217877860 139180892 77352251 77352251 139180892 217877860 704732282 237083515 26437805 26437805 237083515 795585150 774788346 658624901 128017650 117355188 99685768 27712269 27712269 99685768 117355188 128017650 658624901 774788346 332750785 136993858 2830...
output:
49988 49985 49978 49981 49988 49980 49980 49988 49988 49988 49980 49980 49988 49984 49974 49978 49988 49981 49974 49981 49988 49988 49987 49987 49988 49988 49978 49978 49988 49984 49966 49970 49988 49977 49977 49988 49988 49988 49988 49988 49988 49983 49980 49985 49988 49985 49984 49987 49988 49987 ...
result:
ok 250001 lines
Test #103:
score: 0
Accepted
time: 2043ms
memory: 36312kb
input:
100000 250000 949540256 931644859 848553885 800994774 798800995 757139299 737751667 735899367 731434305 711035509 619952322 593654746 590572445 584907414 546847126 541178933 540097416 519757109 455507376 431019150 388150658 344310132 323649800 310732555 303331155 302556837 293022657 287231155 237964...
output:
49969 49931 49931 49969 49969 49963 49963 49969 49969 49962 49948 49955 49969 49957 49922 49934 49969 49961 49961 49969 49969 49965 49965 49969 49969 49936 49936 49969 49969 49945 49945 49969 49969 49965 49965 49969 49969 49958 49941 49952 49969 49960 49954 49963 49969 49936 49936 49969 49969 49969 ...
result:
ok 250001 lines
Test #104:
score: 0
Accepted
time: 2028ms
memory: 36204kb
input:
100000 250000 994629270 978366892 971829501 961933837 953613682 927708263 923384298 908691979 895426764 887250147 881668171 871074710 851706881 850973512 838592531 827057493 802271232 798906184 796697320 787916108 778459646 763625305 755859021 744599370 718819961 686906530 686348796 660922440 639542...
output:
49942 49848 49846 49940 49942 49942 49907 49907 49942 49927 49927 49942 49942 49940 49940 49942 49942 49938 49936 49940 49942 49941 49888 49889 49942 49942 49927 49927 49942 49902 49902 49942 49942 49942 49927 49927 49942 49925 49925 49942 49942 49869 49854 49927 49942 49935 49924 49931 49942 49934 ...
result:
ok 250001 lines
Test #105:
score: 0
Accepted
time: 2068ms
memory: 36332kb
input:
100000 250000 997541127 995127817 993549115 988736035 986917367 986354535 985468323 983772034 982908962 982307878 976698929 976250176 974752741 971768042 971011788 970048283 966555042 962603004 960716340 956865105 953345440 950222477 948070809 947931929 946475114 945637012 941338858 938183690 936810...
output:
49853 49783 49783 49853 49853 49853 49853 49853 49853 49823 49591 49621 49853 49810 48766 48809 49853 49600 49600 49853 49853 49853 49744 49744 49853 49406 49406 49853 49853 49427 49426 49852 49853 49853 49851 49851 49853 49730 49730 49853 49853 49735 49735 49853 49853 48816 48714 49751 49853 49847 ...
result:
ok 250001 lines
Test #106:
score: 0
Accepted
time: 2087ms
memory: 36528kb
input:
100000 250000 998941317 996922237 996306430 994542300 994062520 993508411 993303818 990554538 990218664 989181913 988532384 988230763 984034234 984019717 983844451 983508891 982648177 980670038 976767654 973559063 972324809 970897591 970851102 969999809 968585259 965554053 965498809 964699172 963004...
output:
49598 49598 49598 49598 49598 49598 49175 49175 49598 49598 49598 49598 49598 49598 49590 49590 49598 49583 49483 49498 49598 49598 49598 49598 49598 49598 49598 49598 49598 49583 48960 48975 49598 49598 49598 49598 49598 49591 49591 49598 49598 49598 49583 49583 49598 49598 49598 49598 49598 49583 ...
result:
ok 250001 lines
Test #107:
score: 0
Accepted
time: 2141ms
memory: 37208kb
input:
100000 250000 999999235 999979567 999654651 999478034 999464657 999452925 999442911 999239213 998950901 998940528 998778997 998215109 998047074 997788305 997689166 997592727 997575062 997485038 997435013 997323468 997193530 996957622 996940705 996812371 995858290 995804483 995692576 995655901 995641...
output:
48519 48519 46338 46338 48519 48089 48089 48519 48519 48370 48358 48507 48519 48107 48063 48475 48519 48519 44786 44786 48519 46470 43031 43863 48519 48517 45913 45915 48519 48131 48131 48519 48519 44543 43211 47187 48519 48519 48519 48519 48519 48513 48500 48506 48519 47990 47262 47791 48519 48519 ...
result:
ok 250001 lines
Test #108:
score: 0
Accepted
time: 2110ms
memory: 37124kb
input:
100000 250000 999964676 999918343 999858035 999692947 999634030 999603066 999451757 998824483 998557661 998527952 998092782 997933984 997608398 997526197 997264610 997170752 997119820 996984333 996878858 996872871 996773686 996579207 996381371 996305254 996144233 995935127 995920768 995464468 995432...
output:
47164 47068 44953 45049 47164 47164 47144 47144 47164 37011 37011 47164 47164 46888 45079 45355 47164 47146 47146 47164 47164 47161 47161 47164 47164 42561 42561 47164 47164 46756 46756 47164 47164 38227 38200 47137 47164 47164 47164 47164 47164 47164 41830 41830 47164 47164 47164 47164 47164 45992 ...
result:
ok 250001 lines
Test #109:
score: 0
Accepted
time: 2021ms
memory: 38076kb
input:
100000 250000 999997786 999997069 999936377 999834026 999790779 999777346 999749333 999683052 999668113 999627290 999589578 999552438 999536785 999509894 999492769 999428639 999367921 999282290 999243676 999201354 999156955 999152558 999152518 999134041 999087451 999078124 999072876 999005239 998926...
output:
44552 44552 43777 43777 44552 44552 44552 44552 44552 38912 37845 43485 44552 44552 44544 44544 44552 44552 38586 38586 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 44552 42650 42650 44552 44552 44552 44552 44552 44552 44552 44552 44552 40106 ...
result:
ok 250001 lines
Test #110:
score: 0
Accepted
time: 3107ms
memory: 36856kb
input:
100000 250000 716708708 648201913 15098381 15098381 648201913 405806439 366146355 236184879 236184879 366146355 405806439 716708708 858444842 553304975 353003628 293275830 33540559 33540559 293275830 49399906 23657797 23657797 30976018 10303121 10303121 30976018 49399906 353003628 553304975 22489532...
output:
49949 49949 49949 49949 49949 49949 49949 49949 49949 49945 49941 49945 49949 49948 49945 49946 49949 49949 49943 49943 49949 49949 49949 49949 49949 49948 49943 49944 49949 49949 49949 49949 49949 49947 49947 49949 49949 49946 49946 49949 49949 49949 49942 49942 49949 49948 49944 49945 49949 49949 ...
result:
ok 250001 lines
Test #111:
score: 0
Accepted
time: 2708ms
memory: 36804kb
input:
100000 250000 981030107 889742824 770600642 726616197 203827962 180590893 45260328 24654107 20477128 4885066 4885066 20477128 24654107 45260328 180590893 203827962 690252231 674990967 563176571 449569646 444210693 37516213 29915782 29915782 37516213 444210693 449569646 563176571 674990967 690252231 ...
output:
49949 49949 49949 49949 49949 49946 49946 49949 49949 49948 49948 49949 49949 49948 49948 49949 49949 49939 49938 49948 49949 49948 49945 49946 49949 49949 49949 49949 49949 49949 49949 49949 49949 49949 49949 49949 49949 49949 49947 49947 49949 49949 49944 49944 49949 49949 49945 49945 49949 49942 ...
result:
ok 250001 lines
Test #112:
score: 0
Accepted
time: 2359ms
memory: 36904kb
input:
100000 250000 982983023 960695723 934315890 912983571 884508963 879351230 854291015 852703590 842809653 829624356 824856021 824541374 810236770 766861534 757411886 743850125 738466208 737411650 718482589 690007415 609476131 557987405 549596469 506278153 497125784 493921098 442154439 416424474 409968...
output:
49924 49924 49907 49907 49924 49909 49909 49924 49924 49924 49922 49922 49924 49924 49924 49924 49924 49924 49924 49924 49924 49922 49922 49924 49924 49913 49913 49924 49924 49906 49905 49923 49924 49922 49922 49924 49924 49922 49922 49924 49924 49924 49898 49898 49924 49902 49867 49889 49924 49924 ...
result:
ok 250001 lines
Test #113:
score: 0
Accepted
time: 2289ms
memory: 36964kb
input:
100000 250000 961409841 951446026 946265512 931204469 921227271 915586089 882575362 862259742 858869186 853371959 834361245 816924619 812727845 810665352 808452284 738688349 716227911 710822057 709944587 685936024 682064251 666827986 661843372 648835405 635696319 635000348 615751184 610314091 602353...
output:
49888 49888 49845 49845 49888 49888 49888 49888 49888 49885 49885 49888 49888 49888 49888 49888 49888 49823 49823 49888 49888 49828 49763 49823 49888 49881 49881 49888 49888 49888 49879 49879 49888 49888 49782 49782 49888 49888 49888 49888 49888 49888 49888 49888 49888 49817 49816 49887 49888 49887 ...
result:
ok 250001 lines
Test #114:
score: 0
Accepted
time: 2309ms
memory: 36872kb
input:
100000 250000 999343585 996930696 988351622 986584039 986206524 983465207 983420286 978560606 978035725 977225299 970102985 964193571 963968240 957482995 956173944 955988203 950581395 949648630 949560316 942376564 938570239 938142085 931811785 929010073 928339852 928063904 927311172 924093499 922522...
output:
49609 49545 49544 49608 49609 49263 49261 49607 49609 49609 49609 49609 49609 49590 49590 49609 49609 49609 49609 49609 49609 49595 49595 49609 49609 49609 49609 49609 49609 49271 49271 49609 49609 49609 49391 49391 49609 49609 49609 49609 49609 49483 49483 49609 49609 49537 49537 49609 49609 49609 ...
result:
ok 250001 lines
Test #115:
score: 0
Accepted
time: 2328ms
memory: 37044kb
input:
100000 250000 998418381 995571642 992509808 989853341 988064154 986838090 986729747 986406188 985958787 985040647 984623892 983394582 980748527 979746007 973682015 972159795 969882539 969330012 968632034 964649260 964391878 957893778 957597964 955773085 954672697 954402418 954032392 953993760 953714...
output:
49586 48998 48973 49561 49586 49586 49546 49546 49586 49586 49029 49029 49586 48513 48476 49549 49586 49556 49556 49586 49586 49586 49243 49243 49586 49031 49028 49583 49586 49472 49361 49475 49586 49205 49205 49586 49586 49371 49350 49565 49586 49518 49518 49586 49586 49586 49498 49498 49586 49528 ...
result:
ok 250001 lines
Test #116:
score: 0
Accepted
time: 2287ms
memory: 37168kb
input:
100000 250000 999984431 999938880 999857239 999692689 999611599 999120224 998302848 998078927 997942710 997747874 997470374 997237266 997168441 997120889 996759425 996272792 995317158 995068289 994874388 994790700 994778095 994124122 994007599 993949182 992659581 992157106 992061207 991558372 991195...
output:
45323 45293 44237 44267 45323 45323 45323 45323 45323 45091 41931 42163 45323 45318 45318 45323 45323 45323 45264 45264 45323 45323 45116 45116 45323 45318 45318 45323 45323 45323 44311 44311 45323 45323 45323 45323 45323 44090 44086 45319 45323 42229 42208 45302 45323 45323 44606 44606 45323 44561 ...
result:
ok 250001 lines
Test #117:
score: 0
Accepted
time: 2306ms
memory: 37480kb
input:
100000 250000 999941267 999923069 999893266 999563595 999429830 999423795 999146498 999111354 998935367 998833506 998634857 998549381 998522609 998480182 998380114 998202830 998193083 998120727 998074742 998063102 997946301 997943512 997871756 997765015 997401624 997395292 996966433 996896428 996562...
output:
44728 44650 44650 44728 44728 41905 41896 44719 44728 44644 38381 38465 44728 40870 40483 44341 44728 44524 44504 44644 44728 44116 44116 44728 44728 44413 44413 44728 44728 44675 44675 44728 44728 44719 44719 44728 44728 44728 44708 44708 44728 44691 44691 44728 44728 44728 42759 42759 44728 44728 ...
result:
ok 250001 lines
Test #118:
score: 0
Accepted
time: 2383ms
memory: 37760kb
input:
100000 250000 999912562 999871238 999769907 999743115 999605737 999591143 999555795 999543388 999541579 999539225 999444356 999424046 999420936 999371996 999179553 999130404 999089563 999047915 999047384 999022370 998935880 998858014 998843505 998731582 998670683 998621249 998584312 998551207 998507...
output:
46327 46326 46293 46294 46328 32933 32917 46312 46328 46328 33613 33613 46328 38270 38270 46328 46328 46323 31366 31371 46328 46294 45941 45975 46328 33907 33907 46328 46328 46323 46323 46328 46328 45972 45967 46323 46328 46328 46294 46294 46327 46326 46310 46311 46327 46327 46327 46327 46327 43862 ...
result:
ok 250001 lines
Test #119:
score: 0
Accepted
time: 3345ms
memory: 37220kb
input:
100000 250000 797748656 741571479 268037582 268037582 741571479 140328489 41274824 36968691 36968691 41274824 140328489 699536686 333563690 66319918 66319918 104343086 104343086 333563690 699536686 797748656 870994902 704776700 379317281 12485 195715075 155857054 128963638 93443715 86716663 86716663...
output:
49496 49496 49496 49496 49496 49490 49490 49496 49496 49496 49496 49496 49496 49495 49495 49496 49496 49496 49496 49496 49496 49496 49496 49496 49496 49496 49495 49495 49496 49496 49496 49496 49496 49494 49494 49496 49496 49496 49496 49496 49496 49496 49496 49496 49496 49495 49487 49488 49496 49493 ...
result:
ok 250001 lines
Test #120:
score: 0
Accepted
time: 2998ms
memory: 37140kb
input:
100000 250000 993066579 983677334 980972278 772251542 524000216 376162829 305635703 305635703 376162829 401588693 52594897 52594897 401588693 213120142 209802849 95094240 16699542 16699542 95094240 209802849 213120142 524000216 743357712 647435792 579847840 481846269 454938328 281629758 94172743 893...
output:
49495 49495 49495 49495 49495 49495 49487 49487 49495 49493 49493 49495 49495 49495 49487 49487 49495 49490 49490 49495 49495 49495 49495 49495 49495 49472 49472 49495 49495 49495 49495 49495 49495 49495 49495 49495 49495 49490 49490 49495 49495 49494 49493 49494 49495 49484 49482 49493 49495 49494 ...
result:
ok 250001 lines
Test #121:
score: 0
Accepted
time: 2622ms
memory: 37316kb
input:
100000 250000 991946481 980265328 946246265 921495055 903233595 894155426 881738499 820368228 765507620 695983575 694764443 560786497 487100121 475688459 456420705 454192542 439023598 403580472 399873224 385886709 367461718 335183608 321061323 288953621 270674070 179659412 146779086 137521372 114854...
output:
49464 49415 49415 49464 49464 49437 49418 49445 49464 49457 49457 49464 49464 49464 49440 49440 49464 49460 49460 49464 49464 49464 49464 49464 49464 49448 49433 49449 49464 49464 49460 49460 49464 49464 49463 49463 49464 49464 49460 49460 49464 49464 49464 49464 49464 49464 49464 49464 49464 49463 ...
result:
ok 250001 lines
Test #122:
score: 0
Accepted
time: 2591ms
memory: 37372kb
input:
100000 250000 995983775 955052964 954781112 943156740 939761837 920488577 855767655 854099720 853678860 851024338 849997197 841411263 827127255 824646433 823273863 820963923 803726503 799037168 789773044 770446126 769179580 747433857 721223537 707037734 700124628 684467633 679275576 654820347 628379...
output:
49419 49414 49256 49261 49419 49358 49353 49414 49419 49411 49367 49375 49419 49419 49419 49419 49419 49400 49389 49408 49419 49311 49311 49419 49419 49374 49374 49419 49419 49355 49355 49419 49419 49419 49419 49419 49419 49411 49411 49419 49419 49417 49416 49418 49419 49419 49416 49416 49419 49226 ...
result:
ok 250001 lines
Test #123:
score: 0
Accepted
time: 2566ms
memory: 37244kb
input:
100000 250000 991057096 989580702 987555642 987338595 985937036 984849999 984508531 984118500 982190215 977131522 975026126 973570165 972104260 972003502 970855368 968152479 966205527 966039100 965890265 965411876 963503882 963169730 962841878 962623143 958466935 958419925 952718336 951815091 951683...
output:
49038 49036 49030 49032 49038 49038 48685 48685 49038 49038 49038 49038 49038 48954 48953 49037 49038 49038 48755 48755 49038 49038 48996 48996 49038 48279 48159 48918 49038 49038 49013 49013 49038 48868 48866 49036 49038 49038 49038 49038 49038 48934 48934 49038 49038 49038 48981 48981 49038 48634 ...
result:
ok 250001 lines
Test #124:
score: 0
Accepted
time: 2618ms
memory: 37312kb
input:
100000 250000 997456496 996896001 996001223 995466086 994631161 993166344 990030834 989480872 989298876 987438318 985822959 984755375 984692374 982675773 981536689 980257439 978714894 977360583 976189265 975774679 974038949 973436521 973255597 972850063 972325915 971447174 970058263 969700355 968886...
output:
49042 49030 49030 49042 49042 48934 48885 48993 49042 48927 47501 47616 49042 48492 48469 49019 49043 48008 47822 48857 49043 49043 48441 48441 49043 48906 48639 48776 49043 48107 46704 47640 49043 48892 48881 49032 49043 49043 49043 49043 49043 49043 49029 49029 49043 49043 48570 48570 49043 49043 ...
result:
ok 250001 lines
Test #125:
score: 0
Accepted
time: 2631ms
memory: 37028kb
input:
100000 250000 999926416 999871647 999115643 998895813 998552938 997997805 997875107 997734033 997511320 997366812 997201554 997102901 997050818 997021590 996841135 996821736 996732885 996644736 996492969 996433336 996200208 996001599 995611003 995506112 995448445 995052304 994944635 994803997 994671...
output:
47360 47360 47360 47360 47360 47360 43139 43139 47360 45068 45068 47360 47360 47360 45502 45502 47360 44332 43474 46502 47360 46641 46641 47360 47360 46458 45346 46248 47360 47360 45550 45550 47360 46877 46850 47333 47360 47240 43651 43771 47360 47269 47242 47333 47360 47224 43874 44011 47361 47361 ...
result:
ok 250001 lines
Test #126:
score: 0
Accepted
time: 2409ms
memory: 36592kb
input:
100000 250000 999816503 999097664 998901668 998730338 998680276 998587232 998551131 998458816 997883116 997881912 997855559 997540722 997469254 997316617 996809579 996526694 996418097 996405112 996238038 996193368 996176236 996121886 995866938 995791898 995474272 995439335 995426323 995144876 995096...
output:
36101 36101 33355 33355 36101 33214 32079 34966 36100 35698 35671 36073 36100 36100 35408 35408 36100 36099 35992 35993 36100 36100 35500 35500 36100 36062 36062 36100 36100 36101 36063 36062 36100 36100 36100 36100 36100 36100 36100 36100 36100 36101 36101 36100 36100 36100 36009 36009 36100 36100 ...
result:
ok 250001 lines
Test #127:
score: 0
Accepted
time: 2763ms
memory: 38792kb
input:
100000 250000 999946062 999904763 999845841 999666105 999608862 999489874 999445425 999419128 999405887 999402138 999397179 999381809 999374614 999269384 999212043 999127162 999121250 999020511 999007463 999004365 998983996 998970400 998942947 998916320 998893179 998885040 998840160 998807747 998767...
output:
48300 48298 48298 48299 48299 48152 48152 48299 48299 48152 48152 48299 48299 48299 48299 48299 48300 48300 48300 48300 48300 48300 48300 48300 48300 48300 47379 47379 48300 48153 48153 48300 48300 48300 47955 47955 48300 48299 48299 48300 48300 48299 47617 47618 48300 30870 18207 35637 48299 48299 ...
result:
ok 250001 lines
Test #128:
score: 0
Accepted
time: 3426ms
memory: 37148kb
input:
100000 250000 581599245 394756651 380338487 380338487 394756651 569260530 165282163 165282163 569260530 76207951 42686165 40457828 3573928 3061694 1297023 1023078 391442 391442 1023078 1297023 3061694 3573928 40457828 42686165 20472146 20472146 76207951 581599245 941343972 847922425 582174145 582174...
output:
47989 47989 47988 47988 47989 47989 47989 47989 47989 47989 47989 47989 47989 47989 47982 47982 47989 47984 47984 47989 47989 47989 47989 47989 47989 47987 47987 47989 47989 47985 47982 47986 47989 47983 47982 47988 47989 47989 47989 47989 47989 47989 47989 47989 47989 47989 47989 47989 47989 47988 ...
result:
ok 250001 lines
Test #129:
score: 0
Accepted
time: 3006ms
memory: 37176kb
input:
100000 250000 935677368 914164666 883799600 711491356 571221469 303961977 243502263 58420927 58420927 243502263 303961977 571221469 711491356 883799600 844083126 811718252 795288832 617867577 574414037 546851936 486858635 241101538 241101538 282863795 321 282863795 486858635 546851936 574414037 6178...
output:
47994 47994 47994 47994 47994 47993 47993 47994 47994 47993 47993 47994 47994 47991 47991 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47993 47993 47994 47994 47990 47989 47993 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 47994 ...
result:
ok 250001 lines
Test #130:
score: 0
Accepted
time: 2697ms
memory: 37112kb
input:
100000 250000 990049956 984512296 958657984 930254333 854295001 837145366 832284726 791593854 774970344 772471520 752962769 730615163 726101645 699693337 675773210 647772798 640037369 621422334 618431740 610731200 517596750 513838178 465348929 423411802 416441629 411979133 405215030 326366308 300416...
output:
47949 47878 47873 47944 47949 47900 47860 47909 47949 47949 47933 47933 47949 47878 47872 47943 47949 47933 47870 47886 47949 47860 47849 47938 47949 47946 47946 47949 47949 47878 47856 47927 47949 47949 47943 47943 47949 47919 47919 47949 47949 47947 47947 47949 47949 47892 47885 47942 47949 47936 ...
result:
ok 250001 lines
Test #131:
score: 0
Accepted
time: 2699ms
memory: 37092kb
input:
100000 250000 977439496 959678401 949530690 927438078 907144304 886287766 874562825 857493031 857318486 851972082 851557632 848538306 836552411 833567248 825590023 753577014 736614027 726334602 708703958 699114773 690872784 682155586 669367162 622228780 589114040 574548339 558839051 537381588 537347...
output:
47953 47953 47951 47951 47953 47953 47953 47953 47953 47953 47855 47855 47953 47933 47840 47860 47953 47953 47932 47932 47953 47953 47953 47953 47953 47945 47935 47943 47953 47850 47850 47953 47953 47873 47873 47953 47953 47914 47914 47953 47953 47949 47802 47806 47953 47909 47812 47856 47953 47773 ...
result:
ok 250001 lines
Test #132:
score: 0
Accepted
time: 2638ms
memory: 37420kb
input:
100000 250000 999963066 995427677 993975898 988088563 984965812 984617143 980516629 979284274 978978779 978427570 977129851 975320002 973986650 973730763 971875646 968858006 964409944 963376615 956289543 948251016 946233667 944525403 942420570 939777193 937537226 934384633 932662860 930663328 928001...
output:
47798 47714 47714 47798 47798 47611 47230 47417 47798 47798 47635 47635 47798 47798 47740 47740 47798 47798 47509 47509 47798 47798 47798 47798 47798 47798 47756 47756 47798 47071 47024 47751 47798 47550 47169 47417 47798 47798 47796 47796 47798 47533 47502 47767 47798 47790 47788 47796 47798 47798 ...
result:
ok 250001 lines
Test #133:
score: 0
Accepted
time: 2679ms
memory: 37276kb
input:
100000 250000 999566229 998527785 998510736 997911905 995116151 993297420 992511410 990427260 988983135 988416324 987790838 986824105 984486482 984272886 983867996 983113695 982100333 981964660 980555607 978656452 977627361 977471818 976783189 973481128 972740923 972588456 972172527 972104959 969793...
output:
47295 47295 47295 47295 47295 47286 47286 47295 47295 46773 46773 47295 47295 47295 47295 47295 47295 47091 47091 47295 47296 47296 47296 47296 47296 47290 45835 45841 47297 46546 46546 47297 47297 47297 46419 46419 47297 47296 46231 46232 47297 46612 46612 47297 47297 47297 47297 47297 47297 47264 ...
result:
ok 250001 lines
Test #134:
score: 0
Accepted
time: 2712ms
memory: 36856kb
input:
100000 250000 999834852 999777010 999773432 999613405 999496623 999354982 999317532 999199445 999057901 999019591 998876213 998832758 998474983 998004901 997968890 997591346 997132339 996981122 996846921 996605998 996563251 996542904 996538981 996376023 996222004 996082811 995940807 995759562 995342...
output:
45386 45386 45386 45386 45386 45386 45363 45363 45386 45377 45377 45386 45386 45386 45385 45385 45386 44415 41155 42126 45386 45386 42507 42507 45386 45385 45385 45386 45386 41501 40957 44842 45385 44705 44705 45385 45385 45357 45357 45385 45385 45129 40301 40557 45385 45384 43637 43638 45384 45309 ...
result:
ok 250001 lines
Test #135:
score: 0
Accepted
time: 2651ms
memory: 36988kb
input:
100000 250000 999958741 999844544 999814388 999751206 999666267 999458289 999397528 999382536 999360798 999360200 999255776 999109893 999066831 998946650 998829861 998665816 998634308 998611230 998603700 998521692 998298780 998275945 998234922 997774950 997501874 997427179 997189047 997009630 996997...
output:
42492 42490 39604 39606 42492 42492 37902 37902 42492 34537 34537 42492 42492 42491 42490 42491 42492 41436 39990 41046 42492 42492 42492 42492 42492 40665 38316 40143 42492 42041 42040 42491 42493 35730 34446 41209 42493 42356 42353 42490 42493 42493 34397 34397 42493 42463 42463 42493 42493 42491 ...
result:
ok 250001 lines
Test #136:
score: 0
Accepted
time: 2266ms
memory: 35600kb
input:
100000 250000 999996958 999989167 999986116 999960527 999924519 999856509 999809776 999803076 999779289 999721852 999591350 999482724 999438233 999317605 999292347 999278101 999155239 999032444 998986596 998860989 998779832 998687160 998625452 998577209 998560718 998531205 998466594 998441358 998423...
output:
28194 28125 28125 28194 28194 28194 27990 27990 28194 28194 28194 28194 28194 28193 27281 27282 28194 25778 17577 19992 28193 24728 24660 28125 28193 25768 25767 28192 28193 28124 19535 19604 28193 26422 26345 28116 28193 21263 21263 28193 28193 28193 28193 28193 28193 28192 28121 28122 28193 28116 ...
result:
ok 250001 lines
Test #137:
score: 0
Accepted
time: 3480ms
memory: 37120kb
input:
100000 250000 977255522 782412949 525200746 525200746 782412949 977255522 532457154 500642746 349886501 292054136 41578779 41578779 292054136 349886501 190732364 158879023 48955480 48955480 158879023 190732364 500642746 305756883 102896539 88454131 39405638 7 39405638 65831430 26663773 4190554 41905...
output:
46004 45998 45993 45999 46004 46002 45997 45999 46004 46004 46004 46004 46004 46003 46003 46004 46004 46004 46002 46002 46004 46003 46003 46004 46004 46002 46002 46004 46004 45998 45997 46003 46004 46004 46004 46004 46004 46004 46004 46004 46004 46004 46004 46004 46004 46001 46001 46004 46004 46004 ...
result:
ok 250001 lines
Test #138:
score: 0
Accepted
time: 3040ms
memory: 37032kb
input:
100000 250000 968341627 845977808 823090532 687016535 557150530 511623627 400034042 267831567 267831567 400034042 511623627 557150530 687016535 823090532 845977808 831539230 767674181 614754242 137483133 7348160 6286906 4903230 4828593 4729814 2375325 2178874 1914793 870165 870165 1914793 2079197 13...
output:
45993 45988 45988 45993 45993 45993 45984 45984 45993 45990 45990 45993 45993 45993 45991 45991 45993 45988 45985 45990 45993 45985 45985 45993 45993 45974 45969 45988 45993 45993 45993 45993 45993 45993 45993 45993 45993 45988 45988 45993 45993 45993 45993 45993 45993 45993 45993 45993 45993 45993 ...
result:
ok 250001 lines
Test #139:
score: 0
Accepted
time: 2792ms
memory: 37060kb
input:
100000 250000 999867626 990897881 948945737 940306886 901278602 851712670 833738838 815847716 772601703 734649729 696065141 679042498 622009709 621819923 599245237 579072931 570477178 545788047 543645910 529803156 494738215 484732539 440442821 346164291 337172427 313292459 309547897 300651701 283921...
output:
45991 45991 45991 45991 45991 45991 45983 45983 45991 45984 45974 45981 45991 45991 45991 45991 45991 45987 45987 45991 45991 45991 45991 45991 45991 45940 45940 45991 45991 45991 45969 45969 45991 45991 45991 45991 45991 45991 45991 45991 45991 45954 45951 45988 45991 45991 45934 45934 45991 45991 ...
result:
ok 250001 lines
Test #140:
score: 0
Accepted
time: 2672ms
memory: 37168kb
input:
100000 250000 974716729 956031744 950063219 905965334 884642724 840827743 813255213 805832482 803157959 795567794 775749312 750208224 694275389 685698327 674916651 668799850 666371629 665339993 664586766 662492437 656202218 651640312 638240498 634114203 622468478 577025678 570944181 569599946 555314...
output:
45981 45981 45981 45981 45981 45961 45958 45978 45981 45927 45854 45908 45981 45981 45981 45981 45981 45980 45968 45969 45981 45871 45866 45976 45981 45914 45809 45876 45981 45978 45978 45981 45981 45976 45971 45976 45981 45981 45981 45981 45981 45838 45827 45970 45981 45974 45974 45981 45981 45981 ...
result:
ok 250001 lines
Test #141:
score: 0
Accepted
time: 2691ms
memory: 37104kb
input:
100000 250000 995659244 995274746 993738205 992725605 979524451 977214598 973440848 965006630 961926576 960547712 958954104 957551198 957357553 956804829 955734030 946144751 944784582 937496320 930260598 929643051 929496442 927571044 927502576 924166502 922726973 913587476 906630800 905658657 905357...
output:
45419 45004 44783 45198 45419 45419 45419 45419 45419 45419 45217 45217 45419 45082 45075 45412 45419 44822 44822 45419 45419 45418 45417 45418 45419 45374 44830 44875 45419 45404 44843 44858 45419 45228 45225 45416 45419 45419 45349 45349 45419 44612 44225 45032 45419 45412 44864 44871 45419 45419 ...
result:
ok 250001 lines
Test #142:
score: 0
Accepted
time: 2693ms
memory: 37204kb
input:
100000 250000 993475117 993131767 991861042 990237926 989223336 989018826 988562190 988030225 987424234 987419320 982554388 981088164 980858327 979948327 976745063 976327837 975408755 975372210 974687684 972641337 971268115 969445636 968837704 968200687 967232347 966925184 966643625 966450023 964809...
output:
45691 45691 45688 45688 45691 45676 45676 45691 45691 45691 45691 45691 45691 45691 45690 45690 45691 45656 45194 45229 45691 45482 45143 45352 45691 45640 45134 45185 45691 45571 45359 45479 45691 45686 45686 45691 45691 45584 45583 45690 45691 45677 45329 45343 45691 45412 45341 45620 45691 45656 ...
result:
ok 250001 lines
Test #143:
score: 0
Accepted
time: 2764ms
memory: 36916kb
input:
100000 250000 999850258 999177732 999136182 998456029 998349774 997735343 997515060 997119319 997027012 995296479 994901124 994584357 994353513 993761267 993620799 993480223 993244234 993231898 993198198 993031329 992604366 991767296 991261492 989439295 989226779 989040378 989025511 988585808 988531...
output:
45306 45306 45305 45305 45306 42804 42697 45199 45306 45306 45274 45274 45306 45214 45213 45305 45305 45306 45305 45304 45305 45305 45035 45035 45305 45301 45055 45059 45305 45305 45305 45305 45305 45271 45271 45305 45305 43013 43013 45305 45305 44433 43103 43975 45305 45305 44985 44985 45305 40062 ...
result:
ok 250001 lines
Test #144:
score: 0
Accepted
time: 2660ms
memory: 36760kb
input:
100000 250000 999982615 999896804 999525346 999461056 998906345 998801386 998661261 998486204 998286898 997732182 997704695 997544596 997098813 996917729 996845345 996797336 996668589 996610765 996610029 996492634 996452276 996398682 996098761 995916656 995598982 995557975 995460322 995324229 995035...
output:
41968 41968 41966 41966 41968 41968 41968 41969 41969 40177 39098 40891 41970 40280 38733 40423 41970 40179 40179 41970 41970 41796 41536 41710 41969 41497 41496 41968 41969 41625 39417 39762 41970 38106 38106 41970 41970 41969 41945 41946 41970 41970 41970 41970 41970 37137 37137 41970 41970 41969 ...
result:
ok 250001 lines
Test #145:
score: 0
Accepted
time: 2140ms
memory: 35104kb
input:
100000 250000 999896613 999806744 999806278 999790638 999783456 999672112 999546217 999421840 999371693 999360661 999345274 999289390 999266392 999148678 999095841 999024973 999013171 998946637 998901239 998878543 998860867 998820533 998760515 998736381 998694736 998658268 998513053 998399357 998337...
output:
21634 17841 14340 18133 21634 21326 20087 20395 21634 20287 20286 21633 21634 21634 20548 20548 21634 21516 19621 19739 21634 21634 21633 21633 21634 20112 20111 21633 21634 13651 13649 21632 21634 20110 19802 21326 21634 20349 20348 21633 21634 21634 18591 18592 21635 21634 13565 13566 21635 21635 ...
result:
ok 250001 lines
Test #146:
score: 0
Accepted
time: 1148ms
memory: 30620kb
input:
40000 100000 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 991919848 9919198...
output:
39500 39502 39503 39504 39505 39506 39509 39510 39513 39515 39517 39518 39519 39520 39522 39524 39525 39526 39527 39528 39530 39531 39530 39532 39534 39537 39538 39540 39542 39544 39545 39547 39548 39549 39551 39553 39553 39555 39557 39559 39561 39562 39563 39565 39567 39568 39570 39572 39573 39575 ...
result:
ok 100001 lines
Test #147:
score: 0
Accepted
time: 1130ms
memory: 30628kb
input:
40000 100000 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 904964159 9049641...
output:
39466 39468 39470 39472 39473 39474 39476 39479 39480 39482 39484 39485 39486 39488 39489 39491 39493 39495 39496 39498 39499 39501 39503 39505 39506 39508 39510 39511 39512 39514 39516 39518 39519 39521 39523 39525 39527 39529 39530 39531 39532 39533 39534 39535 39537 39539 39540 39542 39543 39544 ...
result:
ok 100001 lines
Test #148:
score: 0
Accepted
time: 1108ms
memory: 30492kb
input:
40000 100000 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 995134092 9951340...
output:
39406 39407 39408 39409 39411 39412 39415 39417 39418 39420 39422 39424 39426 39428 39430 39431 39433 39435 39437 39439 39441 39443 39445 39446 39448 39450 39452 39453 39455 39457 39459 39461 39463 39464 39465 39468 39469 39471 39473 39475 39476 39478 39481 39482 39483 39484 39485 39487 39488 39489 ...
result:
ok 100001 lines
Test #149:
score: 0
Accepted
time: 1128ms
memory: 30508kb
input:
40000 100000 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 999756740 9997567...
output:
39311 39313 39315 39317 39319 39320 39322 39324 39326 39327 39329 39331 39333 39335 39337 39338 39340 39342 39342 39344 39345 39347 39349 39351 39352 39353 39355 39357 39359 39361 39363 39365 39367 39368 39370 39372 39374 39375 39377 39378 39380 39381 39383 39384 39386 39388 39389 39391 39393 39395 ...
result:
ok 100001 lines
Test #150:
score: 0
Accepted
time: 1149ms
memory: 30608kb
input:
40000 100000 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 999904782 9999047...
output:
38085 38087 38089 38091 38093 38095 38097 38099 38100 38102 38104 38106 38108 38110 38111 38113 38115 38117 38119 38121 38123 38124 38126 38128 38130 38132 38134 38136 38138 38139 38141 38142 38144 38145 38147 38149 38151 38153 38155 38157 38159 38161 38163 38164 38166 38168 38170 38172 38174 38176 ...
result:
ok 100001 lines
Test #151:
score: 0
Accepted
time: 1119ms
memory: 30744kb
input:
40000 100000 999889918 999561233 999270500 999270500 999245714 999245714 999245714 999245714 999245714 999245714 999048380 999048380 999048380 999048380 998915792 998915792 998915792 998915792 998915792 998854638 998854638 998854638 998854638 998854638 998854638 998830228 998830228 998271950 9982719...
output:
26959 26960 26962 26963 26964 26966 26968 26969 26970 26971 26972 26975 26976 26976 26977 26979 26980 26981 26982 26983 26985 26986 26987 26988 26990 26991 26993 26993 26994 26995 26997 26998 27000 27037 27039 27039 27040 27041 27043 27044 27045 27047 27047 27049 27050 27051 27052 27054 27055 27057 ...
result:
ok 100001 lines
Test #152:
score: 0
Accepted
time: 1086ms
memory: 29904kb
input:
40000 100000 999992973 999992973 999916790 999916790 999916790 999916790 999909828 999909828 999909828 999992973 999896214 999743786 999743786 999740038 999721153 999721153 999721153 999653912 999653912 999493838 999493838 999359881 999359881 999344998 999344998 999344998 999344998 999300184 9992855...
output:
19139 19140 19141 19142 19144 19145 19145 19145 19146 19146 19146 19146 19147 19147 19149 19150 19152 19153 19153 19154 19156 19157 19158 19159 19161 19162 19163 19165 19166 19167 19167 19168 19170 19171 19172 19173 19174 19175 19176 19177 19178 19178 19179 19180 19201 19202 19204 19204 19205 19206 ...
result:
ok 100001 lines
Test #153:
score: 0
Accepted
time: 1062ms
memory: 29476kb
input:
40000 100000 999872654 999861417 999772134 999772134 999734767 999734767 999696791 999688235 999654086 999643050 999643050 999634360 999634360 999634360 999513313 999447375 999447375 999447375 999447375 999409880 999379925 999379925 999300135 999298133 999298133 999166908 999130964 999057442 9987396...
output:
14547 14547 14549 14550 14551 14551 14552 14553 14554 14555 14556 14556 14556 14557 14558 14559 14559 14560 14560 14561 14561 14566 14566 14566 14567 14568 14570 14571 14572 14572 14573 14574 14576 14577 14577 14578 14578 14579 14580 14580 14581 14581 14581 14582 14582 14583 14583 14583 14583 14585 ...
result:
ok 100001 lines
Test #154:
score: 0
Accepted
time: 806ms
memory: 27108kb
input:
40000 100000 999996785 999939002 999920902 999879324 999838309 999831948 999822082 999796869 999790198 999725083 999629864 999556811 999494957 999477355 999464979 999445305 999416670 999404434 999382884 999374227 999354440 999337131 999335516 999313300 999289115 999215908 999744326 998947806 9989180...
output:
588 589 592 592 592 592 592 592 592 592 593 593 593 593 593 593 593 593 593 593 593 593 593 593 593 593 593 593 593 594 594 594 594 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 599 600 600 600 600 600 ...
result:
ok 100001 lines
Test #155:
score: 0
Accepted
time: 4867ms
memory: 40292kb
input:
100000 250000 600764897 454891835 454891835 454891835 600764897 454891835 600764897 600764897 600764897 454891835 454891835 600764897 454891835 454891835 600764897 600764897 454891835 454891835 454891835 600764897 600764897 454891835 600764897 454891835 600764897 454891835 454891835 454891835 454891...
output:
74998 74998 74997 74997 74998 74998 74998 74998 74998 74997 74997 74997 74997 74997 74998 74998 74998 74997 74996 74996 74995 74995 74996 74995 74994 74994 74995 74995 74994 74995 74994 74994 74994 74994 74995 74996 74996 74995 74994 74994 74995 74996 74995 74995 74994 74993 74993 74993 74992 74991 ...
result:
ok 250001 lines
Test #156:
score: -100
Time Limit Exceeded
input:
100000 250000 147808044 503108527 503108527 503108527 503108527 503108527 503108527 503108527 147808044 503108527 503108527 503108527 503108527 194395422 147808044 503108527 147808044 503108527 194395422 147808044 503108527 194395422 147808044 194395422 147808044 194395422 194395422 194395422 194395...
output:
61106 61107 61106 61107 61107 61108 61108 61108 61109 61110 61110 61110 61111 61111 61112 61112 61111 61111 61111 61111 61110 61111 61110 61109 61109 61108 61108 61108 61108 61109 61109 61108 61107 61108 61109 61110 61110 61109 61108 61108 61107 61108 61108 61107 61107 61107 61108 61109 61108 61108 ...