QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#125677 | #5165. 比赛 | Scintilla | 0 | 834ms | 105852kb | C++17 | 3.8kb | 2023-07-17 10:38:48 | 2023-07-17 10:38:51 |
Judging History
answer
// 抽象数据结构,好文明!
#include <bits/stdc++.h>
using namespace std;
#define rep(i, s, e) for (int i = s; i <= e; ++i)
#define drep(i, s, e) for (int i = s; i >= e; --i)
#define file(a) freopen(#a".in", "r", stdin), freopen(#a".out", "w", stdout)
#define pv(a) cout << #a << " = " << a << endl
#define pa(a, l, r) cout << #a " : "; rep(_, l, r) cout << a[_] << ' '; cout << endl
using u64 = unsigned long long;
const int N = 2.5e5 + 10;
int read() {
int x = 0, f = 1; char c = getchar();
for (; c < '0' || c > '9'; c = getchar()) if (c == '-') f = -1;
for (; c >= '0' && c <= '9'; c = getchar()) x = x * 10 + c - 48;
return x * f;
}
struct M {
u64 cx, cy, mxy, mx, my, m;
M() : cx(), cy(), mxy(), mx(), my(), m() {}
M(u64 a, u64 b, u64 c, u64 d, u64 e, u64 f) : cx(a), cy(b), mxy(c), mx(d), my(e), m(f) {}
friend M operator * (M a, M b) {
if (a.cx && a.cy) {
a.m += b.mxy * a.cx * a.cy + b.mx * a.cy + b.my * a.cx + b.m;
}
else if (a.cx) {
a.my += b.mxy * a.cx + b.my;
a.m += b.mx * a.cx + b.m;
}
else if (a.cy) {
a.mx += b.mxy * a.cy + b.my;
a.m += b.my * a.cy + b.m;
}
else {
a.mxy += b.mxy;
a.mx += b.mx;
a.my += b.my;
a.m += b.m;
}
if (b.cx) a.cx = b.cx;
if (b.cy) a.cy = b.cy;
return a;
}
} ;
struct D {
u64 sxy, sx, sy, s, len;
D() : sxy(), sx(), sy(), s(), len() {}
D(u64 a, u64 b, u64 c, u64 d, u64 e) : sxy(a), sx(b), sy(c), s(d), len(e) {}
friend D operator + (D a, D b) {
return D(a.sxy + b.sxy, a.sx + b.sx, a.sy + b.sy, a.s + b.s, a.len + b.len);
}
friend D operator * (D a, M b) {
a.s += a.sxy * b.mxy + a.sx * b.mx + a.sy * b.my + a.len * b.m;
if (b.cx && b.cy) {
a.sxy = b.cx * b.cy * a.len;
a.sx = b.cx * a.len;
a.sy = b.cy * a.len;
}
else if (b.cx) {
a.sxy = b.cx * a.sy;
a.sx = b.cx * a.len;
}
else if (b.cy) {
a.sxy = b.cy * a.sx;
a.sy = b.cy * a.len;
}
return a;
}
} ;
int tc, n, m, p[N], q[N], stp[N], stq[N], tp, tq;
vector <pair <int, int>> qry[N];
u64 ans[N];
#define ls (u << 1)
#define rs (u << 1 | 1)
#define mid ((l + r) >> 1)
D dat[N << 2];
M laz[N << 2];
void down(int u, M k) {
dat[u] = dat[u] * k;
laz[u] = laz[u] * k;
}
void pushdown(int u) {
down(ls, laz[u]), down(rs, laz[u]);
laz[u] = M();
}
void maintain(int u) {
dat[u] = dat[ls] + dat[rs];
}
void build(int u = 1, int l = 1, int r = n) {
if (l == r) return dat[u].len = 1, void();
build(ls, l, mid), build(rs, mid + 1, r);
maintain(u);
}
void modify(int ml, int mr, M k, int u = 1, int l = 1, int r = n) {
if (ml <= l && r <= mr) return down(u, k), void();
pushdown(u);
if (ml <= mid) modify(ml, mr, k, ls, l, mid);
if (mr > mid) modify(ml, mr, k, rs, mid + 1, r);
maintain(u);
}
D query(int ql, int qr, int u = 1, int l = 1, int r = n) {
if (ql <= l && r <= qr) return dat[u];
pushdown(u);
D res = D();
if (ql <= mid) res = res + query(ql, qr, ls, l, mid);
if (qr > mid) res = res + query(ql, qr, rs, mid + 1, r);
return res;
}
#undef ls
#undef rs
#undef mid
int main() {
tc = read(), n = read();
rep(i, 1, n) p[i] = read();
rep(i, 1, n) q[i] = read();
m = read();
rep(i, 1, m) {
int l = read(), r = read();
qry[r].emplace_back(make_pair(l, i));
}
build();
rep(i, 1, n) {
while (tp && p[stp[tp]] < p[i]) --tp;
modify(stp[tp] + 1, i, M(p[i], 0, 0, 0, 0, 0));
stp[++tp] = i;
while (tq && q[stq[tq]] < q[i]) --tq;
modify(stq[tq] + 1, i, M(0, q[i], 0, 0, 0, 0));
stq[++tq] = i;
modify(1, i, M(0, 0, 1, 0, 0, 0));
for (auto [l, id] : qry[i]) ans[id] = query(l, i).s;
}
rep(i, 1, m) printf("%llu\n", ans[i]);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 0
Wrong Answer
time: 4ms
memory: 99804kb
input:
1 30 12 28 21 20 26 9 6 10 27 1 16 19 30 5 2 25 4 3 29 17 7 14 8 22 24 13 23 11 18 15 12 29 4 25 24 18 2 1 26 22 10 14 13 9 21 8 16 11 7 23 27 17 20 5 30 15 6 19 3 28 30 1 30 2 24 1 24 1 23 4 28 6 30 2 23 4 29 5 28 4 29 3 28 4 28 5 26 4 30 1 25 21 26 27 30 8 15 2 23 1 30 17 27 4 20 3 23 18 23 3 4 7 ...
output:
336710 183767 203523 185997 221699 218931 167111 241509 206071 241509 244156 221699 169225 262765 224763 10602 3689 18402 167111 336710 38229 93008 148849 9978 1109 6894 106319 16761 50782 47053
result:
wrong answer 2nd lines differ - expected: '184007', found: '183767'
Test #2:
score: 0
Wrong Answer
time: 9ms
memory: 100444kb
input:
2 30 10 17 6 8 11 25 3 12 18 27 19 24 4 2 22 15 26 21 13 29 1 28 5 9 7 20 23 30 16 14 2 22 19 20 5 14 1 25 30 24 27 18 21 4 23 15 8 12 13 29 9 28 6 10 3 16 17 11 26 7 30 1 30 3 24 2 28 2 27 4 25 5 27 4 28 4 30 7 28 7 28 1 30 8 30 8 29 1 27 1 25 9 28 4 27 13 25 7 30 1 4 1 6 2 23 15 28 6 13 5 26 4 22 ...
output:
342792 179327 273340 252010 179537 197746 234380 277970 180251 180251 342792 199496 181252 271572 231039 146648 214850 58601 218441 2698 6741 177278 68964 22647 180622 131009 318248 6692 57156 148448
result:
wrong answer 3rd lines differ - expected: '273851', found: '273340'
Test #3:
score: 0
Wrong Answer
time: 17ms
memory: 101464kb
input:
3 3000 353 828 1669 1982 2914 2076 2567 1457 1544 2684 2740 1321 2633 2048 2031 56 1523 1005 2808 1297 1259 2494 2270 1413 611 2423 1172 2329 1423 160 2510 944 1952 2500 1032 1072 2149 2883 2301 298 1783 791 1842 2505 147 2430 1098 1361 2044 118 643 2481 631 483 2477 2467 2551 1582 2330 866 835 716 ...
output:
40134083164644 26916253277342 22209681318302 25849506064341 23122632178829 22594205915159 20928521863754 30317379040052 29180707739112 28386328525400 23681748007446 21540919882450 35071504876591 32184282008644 19802308409101 33969108133416 25462990504233 25293750006132 22898014790580 32163602642133 ...
result:
wrong answer 1st lines differ - expected: '40184823834717', found: '40134083164644'
Test #4:
score: 0
Wrong Answer
time: 12ms
memory: 100444kb
input:
4 3000 2638 2598 731 140 1171 2511 1243 2680 1519 1460 2266 2053 2218 597 390 817 2038 1356 2174 2355 2783 42 262 2608 2157 19 703 631 1860 2840 573 1376 213 1058 1783 1188 1901 1785 1734 2141 2556 2376 906 1327 1464 2405 1339 2048 2005 110 1509 2551 431 2716 2652 722 502 1477 686 2319 891 80 1888 4...
output:
40181366296029 31082664809735 22023828384020 29222874063662 23131027709430 28450546733109 30659690664349 22443921179573 30922198238210 30542016570862 35664647246367 26099270042729 22206444496796 26074130272564 27107942591686 26444839553213 22292475791346 21339799306714 34086044116263 31415741612294 ...
result:
wrong answer 1st lines differ - expected: '40206056459952', found: '40181366296029'
Test #5:
score: 0
Wrong Answer
time: 10ms
memory: 99844kb
input:
5 3000 2249 537 2892 2283 2306 2418 31 1660 766 2489 2604 705 274 2387 179 2884 2367 1218 194 2341 1800 2722 2055 1390 2383 691 2560 2590 1612 2061 1830 2375 554 1301 401 450 733 2116 1210 2649 84 1657 1302 2028 1200 1347 793 929 2834 1600 1512 1102 490 649 1329 2403 1246 2312 1363 1736 2045 299 249...
output:
40182635719795 28435735620810 30656134513536 22447996707569 30914037788608 30538620867280 35663770055710 26075859164637 22210488810036 26080416438734 27107132190465 26453097417709 22284105527208 21364183994899 34078440327967 31387707571526 26759731831206 20383855522297 20050537802180 23515773732363 ...
result:
wrong answer 1st lines differ - expected: '40215407189923', found: '40182635719795'
Test #6:
score: 0
Wrong Answer
time: 140ms
memory: 100072kb
input:
6 100000 75396 38259 70632 44693 79241 97717 47646 85325 83810 92620 10842 2833 69920 53424 11573 42594 83445 5481 16123 10436 81601 67126 21529 83632 91675 53146 93935 75478 26177 10079 61996 62220 65571 17854 62571 44120 12071 28594 9282 43761 93433 50961 16593 95861 25192 62665 20974 92691 27730 ...
output:
12534239150240407111 6231202555695765312 1356186096061792468 2134141112046910195 1008709543152428187
result:
wrong answer 1st lines differ - expected: '13088889182779035269', found: '12534239150240407111'
Test #7:
score: 0
Wrong Answer
time: 138ms
memory: 100888kb
input:
7 100000 63014 56265 32171 20204 73218 62 14769 68831 53214 29740 74162 95845 11373 74008 25172 29026 20301 54740 30487 83999 11075 78571 60955 20839 65241 12436 47345 41877 82265 71138 76247 70103 58369 34126 19769 85143 52047 81783 28431 69356 73486 7452 86080 81571 65219 5041 92975 32553 66188 85...
output:
12702393225573672243 8264889591509671681 4975405239492530481 8034806275819007209 20180999967643144
result:
wrong answer 1st lines differ - expected: '13087680263309436773', found: '12702393225573672243'
Test #8:
score: 0
Wrong Answer
time: 378ms
memory: 101400kb
input:
8 250000 102524 204126 191550 136652 234896 111850 90965 123593 106274 56675 82246 19895 57397 55004 46130 155550 39785 60103 122552 214968 216455 48719 166072 172777 104767 92024 32452 230050 103268 158821 178060 45135 204816 161747 91265 241770 97501 21273 203007 171576 242557 36395 161246 236301 ...
output:
7085926144979597469 14596958002578356998 6352201219890832614 11585239129937720293 7376940754081082756
result:
wrong answer 1st lines differ - expected: '15916192476525971552', found: '7085926144979597469'
Test #9:
score: 0
Wrong Answer
time: 380ms
memory: 101172kb
input:
9 250000 200098 97174 28170 173369 98549 34871 116482 220351 141539 159688 93550 139417 45870 191337 186976 147334 195549 152697 174924 168723 223082 182413 225141 21840 44011 60626 230775 79423 153938 5518 29510 41843 2318 10396 122588 34595 66572 245685 47998 67755 240326 101564 5965 202014 26201 ...
output:
14170330813386747826 16754063744119709286 16173280534980686921 1835821807750911753 3411573956095470573
result:
wrong answer 1st lines differ - expected: '15912983582252787007', found: '14170330813386747826'
Test #10:
score: 0
Wrong Answer
time: 146ms
memory: 100684kb
input:
10 100000 99999 99997 38376 6647 99995 45264 99994 60797 3686 19252 18126 99993 60719 5628 99992 32773 99990 99989 50339 47441 6259 99988 40227 39408 4332 54868 4905 99987 28891 99986 56608 3960 49232 52515 48642 99985 99983 38232 99982 42651 99981 15289 52368 47437 47335 14612 35407 7505 99980 1777...
output:
17350718164281528562 17179099409308132635 280083967122971232 2389746329298226997 1533455168035
result:
wrong answer 1st lines differ - expected: '317658595255444763', found: '17350718164281528562'
Test #11:
score: 0
Wrong Answer
time: 162ms
memory: 100468kb
input:
11 100000 100000 30591 99999 99998 99997 6657 99996 99994 99992 38864 99991 20670 99990 99988 99987 99985 39155 99983 99982 99978 99976 27117 99974 99973 99967 24075 37813 99961 39325 30605 99964 99963 99962 99965 30090 99955 5617 18135 35997 99957 99956 28441 21161 5823 99958 99951 31145 99949 9994...
output:
13571668615217095829 17715895122842400677 5199483412491319700 8446551636569436128 800980143824327
result:
wrong answer 1st lines differ - expected: '13780806793530050287', found: '13571668615217095829'
Test #12:
score: 0
Wrong Answer
time: 411ms
memory: 101416kb
input:
12 250000 61524 87207 90471 27670 249999 16574 249998 146951 37265 36283 109285 23307 82928 249997 91608 78510 37152 149901 84119 96035 249994 249993 153324 36882 77439 113753 148205 249992 167295 124778 249990 169147 111261 126598 69467 249983 249989 30595 56533 58700 84977 249987 249984 32849 8844...
output:
10034387331323730906 11488337069053140673 65646689523816651 10273581034956027302 12815544800261702903
result:
wrong answer 1st lines differ - expected: '13401429665741651757', found: '10034387331323730906'
Test #13:
score: 0
Wrong Answer
time: 427ms
memory: 101172kb
input:
13 250000 249999 249991 20376 249967 249987 249984 91555 249980 119971 249975 4184 82372 249974 249972 249968 121786 112458 62201 249988 249962 249961 113867 107713 120838 64384 22539 249959 114100 249957 55583 86376 120039 249955 249952 15133 249936 249934 249928 14071 86733 249926 31954 249917 965...
output:
18264812410364367641 3594744309166521773 6135762936958002530 10680077575554351919 11152291282059325418
result:
wrong answer 1st lines differ - expected: '13023542996513313546', found: '18264812410364367641'
Test #14:
score: 0
Wrong Answer
time: 267ms
memory: 102920kb
input:
14 100000 3597 5516 55551 37736 24211 37914 21390 22526 46215 55934 32264 65310 42575 65276 24672 44887 19860 76191 20150 16092 13668 67517 49084 56403 12945 40511 43649 54874 58111 16947 79097 87926 41053 81714 85374 26502 49945 78788 4803 80183 46427 2335 68454 58827 34567 84916 54004 32408 38036 ...
output:
13073249505626753635 614884712550310655 454947539156840974 15341041568429982561 11276221940681731605 17313268270681652750 12756083877039897797 4624127767767369165 12646175853852470955 17410455673028938759 8936684826060767514 9961773563494174968 10779852951404024743 13854411062216622937 1590596782368...
result:
wrong answer 1st lines differ - expected: '13088540581574624766', found: '13073249505626753635'
Test #15:
score: 0
Wrong Answer
time: 265ms
memory: 102032kb
input:
15 100000 57947 32527 16708 9265 74780 96120 10235 79718 61290 9952 70460 34316 29410 32436 61691 94001 53555 61234 13140 32757 73723 32566 66354 71055 33746 66066 43476 59950 84762 44443 13470 79853 99700 10649 97877 73182 60586 86844 88176 7865 52949 56433 72723 58388 80743 52574 35199 95237 34911...
output:
13075470398722091075 9443165364380105466 10845623894938540472 15921812304216058349 15190978397861651244 13440261219143622409 8442293038226242667 8779792369469584083 8725946366627092584 10228012959016165690 10434000141568170622 16853648474397875508 15487122579899956045 8066047209892672322 15490706617...
result:
wrong answer 1st lines differ - expected: '13088703057356339375', found: '13075470398722091075'
Test #16:
score: 0
Wrong Answer
time: 727ms
memory: 105764kb
input:
16 250000 66306 188910 58319 44602 94461 248619 191701 9283 84850 155848 129558 21149 14162 191976 24385 92838 106196 74117 86536 186052 195455 9505 57069 111387 232179 68871 71099 83805 245081 49405 4968 22277 102051 219152 53152 71844 85630 75109 149087 85840 203663 157740 17189 224588 125747 1654...
output:
15532522268415113479 17313754474509290484 11091384147511017494 3548815442495040325 5041597625957153793 8427809096682693154 6920489054615503006 14817136737022351975 10942942674148931721 2671346067639563077 12153054951521486137 16624144048000151331 15114684285281928066 14725392171038202930 89198399239...
result:
wrong answer 1st lines differ - expected: '15901165996479164054', found: '15532522268415113479'
Test #17:
score: 0
Wrong Answer
time: 718ms
memory: 105668kb
input:
17 250000 214518 7109 165693 60996 99727 33543 225083 68598 41778 4151 81497 40289 177818 156013 224688 237064 79616 21242 230963 161523 96814 51020 61668 19841 180565 177619 169253 1584 71948 103452 146421 146694 19330 30181 232433 161668 135488 88316 191971 24533 230674 125996 58536 131117 222030 ...
output:
15519224206257815281 12671859859231719830 11852339015197477459 14584899478289663308 4480746627399163160 11344065036364829668 7674685703222336142 2446132385409524250 8457233086825429336 15329058174559585210 218102562794004668 6181198537327760109 16498001181342324012 5497656091699378581 42712452209061...
result:
wrong answer 1st lines differ - expected: '15903935775160413324', found: '15519224206257815281'
Test #18:
score: 0
Wrong Answer
time: 287ms
memory: 102104kb
input:
18 100000 199 11245 59248 15250 95721 77198 12068 47226 70219 94612 40882 78125 56325 81706 99564 57757 40981 16735 6520 37254 22399 45242 56303 18639 90538 5749 67746 10561 83841 8002 97391 44193 82633 47690 22491 88835 47085 11531 52728 90114 66975 84612 90065 10969 4360 66237 89606 281 78020 6408...
output:
4572137974121635139 5568427827063967767 14454124453538740022 1438524089746859974 9944416059125437920 1955610714647905413 8345269930134115275 3735291444415876168 8481563512322000801 1947290465392837664 5379364865879703364 3580796799756488853 5040049482542123348 14293639241034594985 836065748695640416...
result:
wrong answer 1st lines differ - expected: '6815616820806551949', found: '4572137974121635139'
Test #19:
score: 0
Wrong Answer
time: 292ms
memory: 102240kb
input:
19 100000 34498 55141 40963 75807 81840 89426 43863 32781 39782 31733 91313 97434 93531 80424 17034 16579 93540 26418 37633 70011 48786 19831 45883 38094 92295 72555 46747 21368 77539 18609 40907 88241 53467 7765 25009 41052 5111 20060 5059 51826 5359 71155 74408 47512 86754 66199 91733 11292 92220 ...
output:
705497169069281916 17314424729040756315 7275638568223907129 16955869304361294925 17714301113521852747 14071566589681294172 8942471292741820087 2209491760305084381 12625444847214749889 11915439070796126691 2449711008671806533 4083877539794937038 12667729882944427354 14940406875394129097 8939899373400...
result:
wrong answer 1st lines differ - expected: '2481761466351641555', found: '705497169069281916'
Test #20:
score: 0
Wrong Answer
time: 749ms
memory: 105728kb
input:
20 250000 142345 136958 147947 150195 175778 238652 55360 166158 240487 70312 222146 26065 190856 62531 107895 54077 134731 76929 247840 99416 42360 132793 110469 176374 237332 180573 34058 148110 112862 150992 68053 6351 21165 227763 100676 238525 249762 94625 9877 57640 210186 121501 233338 103138...
output:
13486119327245331200 9353056479790405507 10824047371279263031 4461809999264006371 1746211595258132315 719865177806942494 5457674554602538440 758252714681667534 9325031834205003523 11165265606818235048 2512663416357477187 11574105553640540835 7795986666110015692 10814495345791548751 11975995989555880...
result:
wrong answer 1st lines differ - expected: '3820862573978173915', found: '13486119327245331200'
Test #21:
score: 0
Wrong Answer
time: 739ms
memory: 105536kb
input:
21 250000 159644 118111 87979 83677 241819 36594 90595 96968 114358 249598 220083 174210 179881 66939 78773 174346 232433 135387 133117 154375 202090 27468 211108 24017 129381 118539 138809 178525 234827 1082 189139 89875 205732 122496 60062 246324 87972 213698 81399 159352 109340 173047 119539 1451...
output:
9077175378423734869 970576900683034315 4677160049986546308 14380742885113239678 5321445544953863308 9388967710419010203 14576915597374508829 10497720243829845258 11446027006972715629 15037136357903954018 17000025900227641288 4411344664003456569 18080311106032783247 8084954495112085683 11022758478636...
result:
wrong answer 1st lines differ - expected: '17902996979340955854', found: '9077175378423734869'
Test #22:
score: 0
Wrong Answer
time: 283ms
memory: 102476kb
input:
22 100000 99987 99992 99993 99990 99988 99991 99986 99982 99980 22717 3929 16263 29103 99979 99978 99977 99976 10865 99974 16993 99961 32111 99960 99957 99956 99949 26884 99947 23452 99946 22242 99945 99944 24237 99943 99938 99937 9438 12536 99935 99934 99930 99926 99922 99924 33917 3063 99923 99925...
output:
12227207213223070148 13314370649376573380 13079389471852795473 10455373789113382302 14586567985237244838 1150554185326940768 192563338625613787 13044520425328615854 4362751002148672330 17479705645722741382 16079308378458522270 16521234569490101040 1131550828714975998 15799606056940464919 13129513720...
result:
wrong answer 1st lines differ - expected: '12296334484533229217', found: '12227207213223070148'
Test #23:
score: 0
Wrong Answer
time: 292ms
memory: 102432kb
input:
23 100000 22584 33702 100000 37252 25122 17398 99998 99997 21290 99994 99990 99989 22335 22740 9312 99986 33821 99985 99984 99983 99979 99975 27331 99974 99973 13708 31617 99972 31130 13202 99971 99968 99967 3499 15101 99965 99964 99963 99962 36857 99960 37915 5196 10357 28557 14304 38089 27830 9995...
output:
15425426073238105769 12799355349394932714 4047084851728898348 6758102531951588540 15611645615643823306 4236097445896415419 7599897218166813426 14452075846296533632 5836506919722205638 4656342848981348940 16517194053598097315 17136450361432001709 16964721231357801123 2885990137038170113 1584407244319...
result:
wrong answer 1st lines differ - expected: '15517502797221565608', found: '15425426073238105769'
Test #24:
score: 0
Wrong Answer
time: 834ms
memory: 105620kb
input:
24 250000 25471 61705 74365 249999 38625 85441 106054 12840 24109 3680 126059 249997 249995 249990 249989 249985 126496 119298 249984 19970 249983 57482 249982 249979 249978 59295 115702 17 80704 26932 249977 127802 45793 249976 249975 59578 249974 29119 48458 249973 18429 126811 126616 41549 249972...
output:
15404138146843388912 11208075143995095874 3956156225670051755 10364173415771562321 16452360044935957055 18302723458515104677 13689387752173443704 2074002479518442009 8911050480976343119 423741731959498677 4532699252299871466 416151249857913417 13436748642040911808 5545807234374820407 697952358696728...
result:
wrong answer 1st lines differ - expected: '12654552932509952002', found: '15404138146843388912'
Test #25:
score: 0
Wrong Answer
time: 772ms
memory: 105852kb
input:
25 250000 250000 16831 249999 249998 23668 73080 81716 58206 249997 48474 249995 249993 36919 7843 249992 249989 249988 1992 50732 1225 51301 249987 249986 249983 249982 17515 249980 11033 28231 92583 249979 45096 59146 249978 249977 65779 249976 6789 249975 249974 249973 249972 19209 60855 47949 24...
output:
10923023867793902844 10867947877068876441 3991199513014125254 2716048962206702243 4706660260213439974 16345793048046778812 7483370353029971706 17683481183646504635 15189783972904581612 4161619663741555258 10470763386615554373 9497562468521184087 16544875361733973773 15648825431817427976 365700306717...
result:
wrong answer 1st lines differ - expected: '16413963986625749995', found: '10923023867793902844'