QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#868617 | #9683. 士兵 | Misty7 | 0 | 1009ms | 82448kb | C++20 | 6.2kb | 2025-01-24 19:47:32 | 2025-01-24 19:47:32 |
Judging History
answer
#include <bits/stdc++.h>
using i64 = long long;
template<class Info, class Tag>
struct LazySegmentTree {
int n;
std::vector<Info> info;
std::vector<Tag> tag;
LazySegmentTree() : n(0) {}
LazySegmentTree(int n_, Info v_ = Info()) {
init(n_, v_);
}
template<class T>
LazySegmentTree(std::vector<T> init_) {
init(init_);
}
void init(int n_, Info v_ = Info()) {
init(std::vector(n_, v_));
}
template<class T>
void init(std::vector<T> init_) {
n = init_.size();
info.assign(4 << std::__lg(n), Info());
tag.assign(4 << std::__lg(n), Tag());
std::function<void(int, int, int)> build = [&](int p, int l, int r) {
if (r - l == 1) {
info[p] = init_[l];
return;
}
int m = (l + r) / 2;
build(2 * p, l, m);
build(2 * p + 1, m, r);
pull(p);
};
build(1, 0, n);
}
void pull(int p) {
info[p] = info[2 * p] + info[2 * p + 1];
}
void apply(int p, const Tag &v) {
info[p].apply(v);
tag[p].apply(v);
}
void push(int p) {
apply(2 * p, tag[p]);
apply(2 * p + 1, tag[p]);
tag[p] = Tag();
}
void modify(int p, int l, int r, int x, const Info &v) {
if (r - l == 1) {
info[p] = v;
return;
}
int m = (l + r) / 2;
push(p);
if (x < m) {
modify(2 * p, l, m, x, v);
} else {
modify(2 * p + 1, m, r, x, v);
}
pull(p);
}
void modify(int p, const Info &v) {
modify(1, 0, n, p, v);
}
Info rangeQuery(int p, int l, int r, int x, int y) {
if (l >= y || r <= x) {
return Info();
}
if (l >= x && r <= y) {
return info[p];
}
int m = (l + r) / 2;
push(p);
return rangeQuery(2 * p, l, m, x, y) + rangeQuery(2 * p + 1, m, r, x, y);
}
Info rangeQuery(int l, int r) {
return rangeQuery(1, 0, n, l, r);
}
void rangeApply(int p, int l, int r, int x, int y, const Tag &v) {
if (l >= y || r <= x) {
return;
}
if (l >= x && r <= y) {
apply(p, v);
return;
}
int m = (l + r) / 2;
push(p);
rangeApply(2 * p, l, m, x, y, v);
rangeApply(2 * p + 1, m, r, x, y, v);
pull(p);
}
void rangeApply(int l, int r, const Tag &v) {
return rangeApply(1, 0, n, l, r, v);
}
template<class F>
int findFirst(int p, int l, int r, int x, int y, F pred) {
if (l >= y || r <= x || !pred(info[p])) {
return -1;
}
if (r - l == 1) {
return l;
}
int m = (l + r) / 2;
push(p);
int res = findFirst(2 * p, l, m, x, y, pred);
if (res == -1) {
res = findFirst(2 * p + 1, m, r, x, y, pred);
}
return res;
}
template<class F>
int findFirst(int l, int r, F pred) {
return findFirst(1, 0, n, l, r, pred);
}
template<class F>
int findLast(int p, int l, int r, int x, int y, F pred) {
if (l >= y || r <= x || !pred(info[p])) {
return -1;
}
if (r - l == 1) {
return l;
}
int m = (l + r) / 2;
push(p);
int res = findLast(2 * p + 1, m, r, x, y, pred);
if (res == -1) {
res = findLast(2 * p, l, m, x, y, pred);
}
return res;
}
template<class F>
int findLast(int l, int r, F pred) {
return findLast(1, 0, n, l, r, pred);
}
};
constexpr i64 inf = 4E18;
struct Tag {
i64 tag = 0, bec = 0;
i64 add = 0;
void apply(const Tag &t) {
if (t.tag) {
*this = t;
} else if (tag) {
bec += t.add;
} else {
add += t.add;
}
}
};
struct Info {
i64 x = inf;
void apply(const Tag &t) {
if (t.tag) {
x = t.bec;
} else {
x += t.add;
}
}
};
Info operator+(const Info &a, const Info &b) {
return Info{std::min(a.x, b.x)};
}
void solve() {
int n, m;
std::cin >> n >> m;
std::vector<int> v {0};
std::vector<int> a(n), b(n);
for (int i = 0; i < n; i++) {
std::cin >> a[i] >> b[i];
v.push_back(a[i]);
v.push_back(a[i] - 1);
}
std::sort(v.begin(), v.end());
v.erase(std::unique(v.begin(), v.end()), v.end());
for (int i = 0; i < n; i++) {
a[i] = std::lower_bound(v.begin(), v.end(), a[i]) - v.begin();
}
int K = v.size();
// std::vector<i64> f(K, -inf);
// f[0] = 0;
// for (int i = 0; i < n; i++) {
// auto g = f;
// for (int j = 1; j < K; j++) {
// g[j] = std::max(g[j], g[j - 1] - 1LL * (v[j] - v[j - 1]) * m);
// }
// for (int j = a[i]; j < K; j++) {
// g[j] += b[i];
// }
// for (int j = K - 2; j >= 0; j--) {
// g[j] = std::max(g[j], g[j + 1]);
// }
// f = std::move(g);
// }
LazySegmentTree<Info, Tag> seg(K);
for (int i = 0; i < K; i++) {
seg.modify(i, Info{-1LL * v[i] * m});
}
for (int i = 0; i < n; i++) {
i64 p = seg.rangeQuery(a[i], a[i] + 1).x;
i64 q = seg.rangeQuery(a[i] - 1, a[i]).x;
if (b[i] > 0) {
int t = seg.findFirst(0, n,
[&](const Info &info) {
return info.x <= p + b[i];
});
seg.rangeApply(t, a[i], Tag{1, p + b[i], 0});
seg.rangeApply(a[i], K, Tag{0, 0, b[i]});
} else {
i64 sub = -b[i];
sub = std::min(sub, p - q + 1LL * (v[i] - v[i - 1]) * m);
seg.rangeApply(a[i], K, Tag{0, 0, -sub});
}
}
i64 ans = seg.rangeQuery(0, 1).x;
std::cout << ans << "\n";
}
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(nullptr);
int t;
std::cin >> t;
while (t--) {
solve();
}
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Pretest #1:
score: 0
Wrong Answer
time: 1009ms
memory: 82448kb
input:
12 400000 118854 575347104 558989454 753280595 156565820 338294357 76686917 725507896 659121018 404923436 448316941 379515124 944270358 857895847 620370818 799710995 658443721 82223041 865458489 453111401 812175871 33813900 482205729 724184279 456173736 653137936 556586052 121834020 855923855 258587...
output:
81232687402088 3596893305731 1256642686074 -6127750937301 -3080856824042 160190594068 -56646970777 -293437561153 -133260617855 -92760451647 24451613633 -20034765505
result:
wrong answer 1st numbers differ - expected: '81234057210117', found: '81232687402088'
Pretest #2:
score: 0
Wrong Answer
time: 4ms
memory: 3704kb
input:
6 4000 51 3075 1498 3954 -2738 2503 885 4040 909 1892 669 2743 1571 3586 2631 967 -1719 3489 -2279 2907 245 4030 -4658 1774 -743 3852 4766 4644 -4569 4746 1211 4060 3192 4906 106 944 395 4944 -4270 2898 3887 86 2879 983 2796 3706 -2218 1852 -4547 2291 -3742 3098 -2269 721 -2673 4075 3643 3782 2168 1...
output:
4451616 595114 186352 137388 42960 43442
result:
wrong answer 1st numbers differ - expected: '170777', found: '4451616'
Pretest #3:
score: 0
Wrong Answer
time: 5ms
memory: 3820kb
input:
6 4000 36 435 265 2118 -79 1737 4687 4048 2974 4466 -3154 2187 -4709 208 -2583 1945 2987 657 -400 1575 1621 303 2449 1804 -938 783 4462 3111 3805 3119 1971 4139 -2153 152 2994 1617 1495 4401 -3356 1232 2631 4301 -3929 2547 250 4690 -217 4231 4423 2017 162 837 1314 1618 1888 4163 -3839 420 -1829 4629...
output:
4792720 515616 228839 88302 69808 26825
result:
wrong answer 1st numbers differ - expected: '415140', found: '4792720'
Pretest #4:
score: 0
Wrong Answer
time: 5ms
memory: 3772kb
input:
6 4000 32 446 4398 2556 3962 3313 -868 4076 -2970 1678 4224 2571 -575 1104 2429 2951 4868 3328 3365 4667 -3378 831 -1195 2945 -4961 698 3057 3801 -3441 104 2355 2715 -3494 3082 -1840 912 -1814 2121 4594 163 1216 1230 1372 3089 2211 1340 -1277 1663 -366 2494 533 694 -2414 3952 4319 3888 -3166 2641 35...
output:
4717711 454290 225493 94060 38241 18998
result:
wrong answer 1st numbers differ - expected: '575577', found: '4717711'
Pretest #5:
score: 0
Wrong Answer
time: 6ms
memory: 3968kb
input:
6 4000 46 516659486 -482380425 673478892 456921262 52550600 -195263188 84439410 -303576348 793884230 142261456 53871638 178448676 993952009 -729105040 311375304 -242828177 568873186 -649783202 489039312 897071106 897230314 -704163306 716138246 -386384513 64567041 749326984 650543362 620074174 105881...
output:
953018634425 103594601983 48318503907 19984551353 5078373188 8496345139
result:
wrong answer 1st numbers differ - expected: '79751428359', found: '953018634425'
Pretest #6:
score: 0
Wrong Answer
time: 5ms
memory: 4020kb
input:
6 4000 35 424901005 812509425 391052046 540295317 43630273 974715906 248214780 -497460124 710808061 424650511 907365812 -576714804 747107504 -52205724 91849350 -796566435 273319577 774655777 234930090 991689494 444767327 -807843308 607616079 -672362322 312265896 -314102261 642591629 -707633585 65568...
output:
964025242500 107195189256 52819169358 24920689467 13914129228 11989557491
result:
wrong answer 1st numbers differ - expected: '95546896689', found: '964025242500'
Pretest #7:
score: 0
Wrong Answer
time: 5ms
memory: 4096kb
input:
6 4000 40 14001651 711116958 741772728 738937997 788768825 564411725 947708176 -165263187 497778726 84697508 895270695 -771416999 262683857 -350735833 834495653 -901441423 568102240 -879535453 410576049 589435444 768690384 -569970739 964672319 687805492 358660605 622685701 991982318 188915396 294812...
output:
964858085791 111416427166 54914192916 30454259268 7360020901 7626102662
result:
wrong answer 1st numbers differ - expected: '90677176825', found: '964858085791'
Pretest #8:
score: 0
Wrong Answer
time: 5ms
memory: 4100kb
input:
6 4000 50 334507865 -18039520 919528260 907094776 793331560 -620095164 424070114 -87066389 112166511 364917771 221141157 864989806 670270571 721851931 603061573 -716257172 258687986 -381908800 858436449 -160514586 58718349 -731962226 824187732 -742617091 218776242 -178041535 971169198 -39636315 5718...
output:
911458924852 97184400252 54326812655 30304723745 8289704510 9456523124
result:
wrong answer 1st numbers differ - expected: '58212243338', found: '911458924852'
Pretest #9:
score: 0
Wrong Answer
time: 135ms
memory: 22324kb
input:
10 80000 282 707215735 23971672 786777910 511305418 569380161 -706014700 134031534 -949049809 766980562 507367098 415614969 -29247396 150373496 -783614840 631884479 114962704 730747609 -846196416 659478795 789156496 209675154 359713105 300350698 -970113661 834622635 564356337 314196292 -13299579 829...
output:
12997352381760 2383490597619 1192265031192 607782240399 300328122221 113259931762 61763139307 25539233636 11136639230 12772438899
result:
wrong answer 1st numbers differ - expected: '196901287832', found: '12997352381760'
Pretest #10:
score: 0
Wrong Answer
time: 136ms
memory: 22300kb
input:
10 80000 179 859590212 -659437715 517527341 926074005 506878720 -610794582 988933800 -65415134 408808753 -37118596 39785747 -646779914 742569765 -157276072 86248685 -701199978 932832850 415585166 285080712 -416416156 255428968 -817927911 585329914 -248798054 503588003 -543319008 847335211 160691684 ...
output:
13177513092936 2447910002771 1188029851082 604267007856 279367554084 113601458502 64195549883 32304872043 12048660428 13053920494
result:
wrong answer 1st numbers differ - expected: '259205958931', found: '13177513092936'
Pretest #11:
score: 0
Wrong Answer
time: 135ms
memory: 22352kb
input:
10 80000 221 162126823 408340766 88426894 566630494 678590294 -423802128 771152713 210049141 956463082 -395043643 978464487 -130557602 882582268 -218636011 246484551 399087608 118384980 2618343 766893082 918114874 778987437 -511500969 184596523 -744472780 420419514 114027779 324712316 -589029996 701...
output:
12910256477581 2435844566346 1147259413171 600297589046 255846246705 147111020331 64726201503 25489674747 13036922319 8864802698
result:
wrong answer 1st numbers differ - expected: '281157563327', found: '12910256477581'
Pretest #12:
score: 0
Wrong Answer
time: 134ms
memory: 22320kb
input:
10 80000 275 84318287 -341078083 912184010 954838417 919943336 -713415456 546735658 -746621039 754120823 -5444025 772501655 -509982892 264369788 -987671846 105716545 542834802 152712380 356168227 360074430 -266287289 972225871 740237836 84711073 526319146 909389801 -255890190 964316908 360539521 153...
output:
12966080304539 2357976660731 1211400102180 584452643995 285097243382 137521584922 63767820260 28520155362 17180481276 15377044879
result:
wrong answer 1st numbers differ - expected: '139929335100', found: '12966080304539'
Pretest #13:
score: 0
Wrong Answer
time: 295ms
memory: 42000kb
input:
11 160000 239 990997118 -816156461 800247677 -67866660 140936075 563552111 824163400 -417813932 438494730 727584238 774212899 805488738 825488046 566305088 140689106 -399782718 303116773 -19636922 550181252 -33234997 592347234 970214447 119454139 498356336 809847220 36540102 688586424 -294464168 652...
output:
26338231946318 4882258471678 2476977517808 1229624504513 566767684713 289361500300 140783260891 52466971603 24938874111 6076099188 13106268795
result:
wrong answer 1st numbers differ - expected: '630826770695', found: '26338231946318'
Pretest #14:
score: 0
Wrong Answer
time: 298ms
memory: 42040kb
input:
11 160000 305 938415408 -806760394 680636409 -494353228 618390098 -606648901 255988120 -480144564 952276984 -8627971 599366310 -861285208 61797698 -992716895 167965910 755833598 35995914 448158682 79707572 -950980887 79409669 -625603941 654846185 307306231 33523324 -21046011 17739839 -607297470 2840...
output:
26426991127719 4836612058057 2433962703994 1185053117168 570259194866 284346666482 131728100281 62220132693 23292780092 14339436704 15646028063
result:
wrong answer 1st numbers differ - expected: '459880805076', found: '26426991127719'
Pretest #15:
score: 0
Wrong Answer
time: 301ms
memory: 41996kb
input:
11 160000 225 397559931 -226507744 217623280 421755343 747805749 -697658036 997667403 -205957498 729340308 843690574 252149847 -859902590 637081511 -773177966 678619117 640399159 404230217 -288120393 167887327 -333759363 541541693 883199387 658110815 -760166466 129147754 -904234842 390572752 7882028...
output:
26435236806425 4793903430474 2477362593920 1203881774976 538009011974 281457648444 145185105305 64583620851 23662078009 10880083191 14938970163
result:
wrong answer 1st numbers differ - expected: '549627247739', found: '26435236806425'
Pretest #16:
score: 0
Wrong Answer
time: 300ms
memory: 41992kb
input:
11 160000 242 583718724 392646563 896167366 -753610627 974533707 -391731504 310166581 950178413 554581008 477213090 657051704 -404856474 115148377 815225593 826380629 -429069038 962531896 727686865 856743945 684511183 263888529 607776708 652355785 309098588 398241253 202560927 669365404 -307668040 4...
output:
26300521731042 4884456377571 2377449048330 1190267951604 591920644188 270504203576 134361326435 53550552150 26056569265 14413471757 17791465833
result:
wrong answer 1st numbers differ - expected: '425715033259', found: '26300521731042'
Pretest #17:
score: 0
Wrong Answer
time: 297ms
memory: 41996kb
input:
11 160000 292 386839075 -123017669 153216089 -182300313 545182875 -832535439 707816968 -445367998 405676383 981846153 297942381 -562254518 376769658 756995706 256483717 -487394859 529292273 724367705 448187502 -362289914 178970027 -664574464 974263761 -802699900 522772198 -977811802 579831126 -41107...
output:
26286737480980 5054425535297 2462333351952 1154974725806 599967889607 276458162236 133560216991 46886204514 29182986403 14451978149 11279999533
result:
wrong answer 1st numbers differ - expected: '506745084525', found: '26286737480980'
Pretest #18:
score: 0
Wrong Answer
time: 833ms
memory: 82360kb
input:
12 400000 336 45705493 722123592 938091861 -390860019 804181152 430304600 235050476 -304142941 60485462 -8204129 66881115 -543105756 547797553 -785178118 365088453 23201405 15540939 934940628 221358926 -653197348 210521291 674427330 868262148 -985426423 670595688 -435965497 9460431 247148660 5550959...
output:
66358081470358 12295686085576 6170831404685 3008912920369 1429555635572 742666685790 339814209485 172216552742 73184925776 41580745327 19333483445 16611991097
result:
wrong answer 1st numbers differ - expected: '1105279094936', found: '66358081470358'
Pretest #19:
score: 0
Wrong Answer
time: 837ms
memory: 82268kb
input:
12 400000 569 903716789 107187051 230624559 62546242 618006046 -85005609 134126782 530046083 318214666 -95089464 139248671 40874771 433443417 -878051769 900065108 -532971087 865911058 61111442 609842060 378331924 779288410 -554764743 791336683 922279054 619848096 147983628 492061207 -375443646 46723...
output:
66378159049875 12291300729219 6089213732480 2995103240495 1514855769229 707575346884 370377523373 178171300864 79582505893 42351047824 15610135468 15676726092
result:
wrong answer 1st numbers differ - expected: '1289892953701', found: '66378159049875'
Pretest #20:
score: 0
Wrong Answer
time: 826ms
memory: 82296kb
input:
12 400000 562 761075977 -464080042 633749254 578125271 793689841 65299293 724254913 -919956635 913445549 -817897955 528523541 -974962512 155889920 92272768 344903489 -216219506 534021193 -346500838 515034147 -281723116 183658127 859092817 286622402 397145124 296168631 -439946759 492717672 651641625 ...
output:
66429346958241 12272231489682 6126873049854 2944455969010 1456306402578 727155545626 357682796163 180880960212 104978383202 39184862641 25328296301 14600471432
result:
wrong answer 1st numbers differ - expected: '1191790248782', found: '66429346958241'
Final Tests
Test #1:
score: 0
Wrong Answer
time: 1001ms
memory: 82444kb
input:
12 400000 338945 439686460 445883865 168980618 168779284 555471206 388535833 14335989 853031296 567350453 584853938 843591955 552880955 764445098 687796665 117631532 542123112 464467245 39301839 656135877 999251791 635977617 46308268 282407922 326654668 825974310 212720943 274164974 29903884 5067815...
output:
-139306858676083 13674694474845 11447356476010 3156403149540 -2948507985891 -1029736998305 681439416885 361006139211 116963460812 93439918920 48185433211 -4222998341
result:
wrong answer 1st numbers differ - expected: '12874512', found: '-139306858676083'
Test #2:
score: 0
Wrong Answer
time: 4ms
memory: 3772kb
input:
6 4000 37 2909 -4260 4993 -1892 1819 1570 1831 1725 4907 -2592 4484 2039 1139 -4357 826 -3059 2623 2352 4184 347 1611 -4676 247 -3909 312 -3114 2854 -1366 3720 -4023 832 1097 982 -1747 3814 -1821 527 -4196 4787 -2553 3925 -3445 2856 4250 4881 -4962 4969 -1033 2891 2574 1109 4480 3408 4927 4259 -4277...
output:
4673009 491070 309849 95518 56450 16350
result:
wrong answer 1st numbers differ - expected: '561256', found: '4673009'
Test #3:
score: 0
Wrong Answer
time: 5ms
memory: 4096kb
input:
6 4000 61 3632 4786 1849 -2174 1853 3361 3641 -3128 3705 -4325 4051 -4313 3793 -3583 3321 -1696 2844 -888 4107 4645 4513 1876 929 -909 3875 4866 2560 -3020 1203 959 4674 -241 3325 -1713 1998 4743 3508 3348 4084 -2761 3852 -1987 3756 -513 3957 950 3936 2967 1462 3782 4609 -66 4746 3227 1130 2052 3575...
output:
4693419 533484 243757 130953 24796 30161
result:
wrong answer 1st numbers differ - expected: '271112', found: '4693419'
Test #4:
score: 0
Wrong Answer
time: 4ms
memory: 4096kb
input:
6 4000 55 3098 -682 92 3759 3561 982 86 -3329 4364 -3972 4144 -4387 4377 -605 2739 -1413 4794 -2466 2213 -1887 825 86 82 512 1976 885 4085 -3736 1013 3638 4252 1280 745 3452 1051 -3016 2153 -4916 3265 -1113 2194 -3242 4119 -1370 662 3999 4271 2904 3422 3759 30 -2445 266 3142 3135 -692 3369 4817 4967...
output:
4637309 484037 247955 84261 48054 63177
result:
wrong answer 1st numbers differ - expected: '414004', found: '4637309'
Test #5:
score: 0
Wrong Answer
time: 5ms
memory: 4096kb
input:
6 4000 35 912751290 -787674652 441103059 134143272 476764967 895596715 784922230 -714304721 731819621 944877642 98260827 -961821449 447615336 84829876 491396459 -136321301 133818978 610416148 549839446 786191379 940549547 -24893947 715268014 -765574242 34153451 -77136742 745540801 -147098317 6328555...
output:
967419073744 93834198628 37559120666 25368665824 4247301308 4340641889
result:
wrong answer 1st numbers differ - expected: '103426038097', found: '967419073744'
Test #6:
score: 0
Wrong Answer
time: 4ms
memory: 4096kb
input:
6 4000 43 939347813 -516048535 485012273 290768013 460161740 347545206 123073493 -169171572 712219097 959302385 832751674 -630388695 884845098 -560525612 570363766 -115947667 799929418 508081124 487207381 -204280517 258697661 747934320 358307423 25831338 344530131 -133886212 225796580 656187723 1205...
output:
950864528038 106334830783 50628502171 19024950903 6355388269 16648175012
result:
wrong answer 1st numbers differ - expected: '82188374544', found: '950864528038'
Test #7:
score: 0
Wrong Answer
time: 6ms
memory: 3880kb
input:
6 4000 58 962464872 872076468 543576630 -744464500 869152803 823720080 586246435 914755120 530499904 899995316 433720449 -469077450 75540200 251660709 27918770 -779252703 64247973 -946250902 624132850 605351820 128981150 -497151991 245046991 876246333 37831722 307845717 211763391 510923355 463821485...
output:
939335050191 102338858072 55551296085 21212680199 6256270716 6657160879
result:
wrong answer 1st numbers differ - expected: '71444264404', found: '939335050191'
Test #8:
score: 0
Wrong Answer
time: 4ms
memory: 4096kb
input:
6 4000 37 629909902 916378287 157939580 -420188871 579836868 -56525766 662831010 -989725679 326398341 247671081 494231347 732949692 61928235 394476639 941259163 -333955479 286566117 -149708552 305479878 -358675115 741587203 286781746 934392299 308297699 697320743 -482209788 546712054 -377228881 2507...
output:
932373437731 99839085504 48385596090 23587108719 6874983390 8195643033
result:
wrong answer 1st numbers differ - expected: '90516662937', found: '932373437731'
Test #9:
score: 0
Wrong Answer
time: 138ms
memory: 22324kb
input:
10 80000 237 264997088 -870920578 816050147 54087263 897260059 -426896694 813555584 748250297 772043752 125360353 634427479 -776377086 24345946 320907247 881595821 884365063 979805463 94178093 692479675 -844751623 522005670 -699575240 703260207 -342067746 851938295 466251063 487485877 906218845 1600...
output:
13051541752972 2318630486272 1127156193533 592407471013 270572076168 124073099081 60793485993 27074475035 14066644974 12726476310
result:
wrong answer 1st numbers differ - expected: '293952148602', found: '13051541752972'
Test #10:
score: 0
Wrong Answer
time: 133ms
memory: 22252kb
input:
10 80000 265 736083740 -390163657 664749364 826158935 610569097 -763018195 342623347 -962242954 909234111 608577422 778068353 601280379 804152209 -479930490 533151631 -467620058 933145708 822573112 217749710 188852945 510441837 -593084022 240267139 539956024 390062495 776608439 279685042 -694023002 ...
output:
13093998179570 2489785307409 1165089868423 559837740072 278487839000 131359589707 78955154994 23290366808 10367099513 15041381291
result:
wrong answer 1st numbers differ - expected: '306517355337', found: '13093998179570'
Test #11:
score: 0
Wrong Answer
time: 135ms
memory: 22404kb
input:
10 80000 196 258770200 -737255790 27156633 -254375883 434192233 -776174944 935723808 -595901203 256013669 891507268 703081059 -769492877 182312847 125196243 506813682 387998138 283521792 972221980 138182663 607202222 125897941 -829780547 435451196 -420098776 634648183 324568497 548298101 -985921994 ...
output:
13232175252606 2390240697845 1166657092486 586563153746 316989166051 133599768256 64724333456 32714786881 18670506271 17158905399
result:
wrong answer 1st numbers differ - expected: '448984813035', found: '13232175252606'
Test #12:
score: 0
Wrong Answer
time: 133ms
memory: 22328kb
input:
10 80000 180 894166061 989998029 480059448 -757455323 938477839 -650016293 237168779 323813560 720424368 330139353 145402542 547879868 777468821 -420857344 338097937 -415201909 168726158 732766617 208974280 -795941790 221290062 910987021 775390176 -763168249 828736401 467126707 397370116 -925733899 ...
output:
13230508108682 2380849825015 1196154067574 606671112181 291600657452 126711036327 68145094515 26265289282 12078537685 19368573963
result:
wrong answer 1st numbers differ - expected: '371001866603', found: '13230508108682'
Test #13:
score: 0
Wrong Answer
time: 297ms
memory: 41992kb
input:
11 160000 295 988915989 -3899851 46931101 67937031 146467094 -277568191 645443482 797333741 999303646 868099421 610537523 -38291082 223105710 -824077625 434575450 464420336 696713133 -659851120 658082627 551131765 647586994 917856846 720190327 12726078 197257451 423665181 565089338 -249672137 687916...
output:
26257869352290 4858845819690 2364433616380 1196651586596 564028615979 285521370415 128620510588 62047821769 29498373931 16885224308 11354126898
result:
wrong answer 1st numbers differ - expected: '367633997006', found: '26257869352290'
Test #14:
score: 0
Wrong Answer
time: 297ms
memory: 41900kb
input:
11 160000 317 184856348 -943902660 87628622 -866907989 810103694 267124878 727964353 -489372288 856047166 -902537646 940149541 759493210 615821588 943449077 624770271 371797819 741270525 895969836 336069714 499609541 666768356 -874821669 748630940 678062650 146244725 96539613 17128870 -989132501 425...
output:
26126074469374 4802626381498 2420191937787 1240017892959 606996273994 286466797505 120957274675 52374940618 26670089085 11395639551 15376131677
result:
wrong answer 1st numbers differ - expected: '344408232063', found: '26126074469374'
Test #15:
score: 0
Wrong Answer
time: 292ms
memory: 42000kb
input:
11 160000 234 406467278 764345050 557817485 -515557393 76453413 994055890 469787844 535791718 461084412 947070009 963693304 251108077 901143335 -483303189 438524233 -381628549 374424981 -866870581 198880137 382501681 730791425 -892673204 494411680 -365675939 360798755 316681353 593500815 -962007099 ...
output:
26357143240040 4834192275333 2408496154162 1174555999998 570426061420 288524875850 133079422006 64813622249 27300614253 13587287696 10798574208
result:
wrong answer 1st numbers differ - expected: '461294665684', found: '26357143240040'
Test #16:
score: 0
Wrong Answer
time: 299ms
memory: 41988kb
input:
11 160000 374 904007381 414783219 301381234 -472394440 430343742 753880138 566437082 -18963134 948466000 851898618 173900018 -875345957 882792351 910533526 568212694 -560946427 759948487 555871821 51355650 -883024836 258202975 -444480134 861483056 -612892170 657133514 921124055 947687025 -789901671 ...
output:
26208770518914 4829506042921 2353154189580 1247511190049 580268272262 280036769327 139225073404 56941156755 28954462500 16336990818 14515945561
result:
wrong answer 1st numbers differ - expected: '360326748631', found: '26208770518914'
Test #17:
score: 0
Wrong Answer
time: 296ms
memory: 42000kb
input:
11 160000 219 432734303 -939034339 164015421 -600885105 91766857 472647958 696293400 -33456988 894271515 634068102 194015547 716089975 498629722 862316187 820363603 490319846 547467311 -629592068 811765350 -368113828 1205475 985954229 197145337 701625301 178008855 78944385 488588367 565224075 351423...
output:
26435483580608 4841348664077 2431676805631 1206709711176 591740747619 296658696087 136772126493 57605025565 27030463182 11343819943 10175475051
result:
wrong answer 1st numbers differ - expected: '603403666308', found: '26435483580608'
Test #18:
score: 0
Wrong Answer
time: 828ms
memory: 82280kb
input:
12 400000 588 48964279 -358979588 756950325 -897359550 253996235 443579519 536668456 843154491 723445953 -505231175 616169331 -284840996 837895317 -803224446 664880535 -792108051 502337933 176736160 25872558 -90218681 937248070 358234861 912623995 -824795645 612804675 -431530785 468888104 770945454 ...
output:
65852017787373 12157366744865 6157711417687 2957598488539 1497345995297 739288534674 364437714808 172153678111 99200087649 43407723596 18222648004 14128463524
result:
wrong answer 1st numbers differ - expected: '762810668697', found: '65852017787373'
Test #19:
score: 0
Wrong Answer
time: 827ms
memory: 82208kb
input:
12 400000 560 788369819 127016864 21463537 492741216 608039603 -422253226 203884354 -332776938 783320422 537830359 951406523 -106003704 727075786 310381973 96083881 925047525 411207060 306303495 822835487 901458845 121318150 700345068 296586402 477853701 865282522 -307413243 152280867 -293528922 237...
output:
66009305439371 12451818286547 6165448017646 3036336882735 1496808192305 702836770186 360234936589 165610233486 70260568979 37205933430 8045659628 15887620764
result:
wrong answer 1st numbers differ - expected: '766969796245', found: '66009305439371'
Test #20:
score: 0
Wrong Answer
time: 842ms
memory: 82296kb
input:
12 400000 401 544939371 57300598 347046053 228019171 397026162 -940871193 99989498 777648286 634242693 265395002 592864182 -164697797 617759241 92290665 689980075 896816346 794540133 717813879 228042581 -376406487 859173625 -727231154 233030753 554619370 755012045 -446138228 156623943 112443554 7530...
output:
66122082144060 12251513532724 6079780821910 3028238192265 1460705499974 731004000024 326987397938 161266410179 54028464575 36525676366 17882643202 18145927380
result:
wrong answer 1st numbers differ - expected: '918053116446', found: '66122082144060'