QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#759857 | #3508. Sprinkler | Wansur# | 12 | 677ms | 179980kb | C++23 | 1.5kb | 2024-11-18 12:44:26 | 2024-11-18 12:44:27 |
Judging History
answer
#include <bits/stdc++.h>
#define ent '\n'
#define int long long
using namespace std;
typedef long long ll;
const int maxn = 1e6 + 12;
const int mod = 998244353;
vector<int> g[maxn];
int t[42][maxn];
int h[maxn], pr[maxn];
int n, m, k;
void upd(int v, int d, int x) {
t[d][v] = t[d][v] * x % m;
if(d > 0) {
t[d - 1][v] = t[d - 1][v] * x % mod;
upd(pr[v], d - 1, x);
}
}
int get(int v, int i) {
if(i > 40) return 1;
return t[i][v] * get(pr[v], i + 1) % m;
}
void dfs(int v, int p) {
pr[v] = p;
for(int i = 0; i <= 40; i++) {
t[i][v] = 1;
}
for(int to : g[v]) {
if(to != p) {
dfs(to, v);
}
}
}
void solve() {
cin >> n >> m;
for(int i = 1; i < n; i++) {
int a, b;
cin >> a >> b;
g[a].push_back(b);
g[b].push_back(a);
}
for(int i = 1; i <= n; i++) {
cin >> h[i];
}
int pr = 1;
for(int i = n + 1; i <= n + 40; i++) {
g[pr].push_back(i);
g[i].push_back(pr);
pr = i;
}
dfs(n + 40, 0);
int q;
cin >> q;
while(q--) {
int tp, v, d, x;
cin >> tp >> v;
if(tp == 1) {
cin >> d >> x;
upd(v, d, x);
}
else {
cout << get(v, 0) * h[v] % m << ent;
}
}
}
int32_t main() {
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
int t = 1;
// cin >> t;
while(t--) {
solve();
}
}
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 93848kb
input:
1000 548641563 31 369 77 278 249 820 390 623 320 777 479 743 698 791 272 557 802 894 215 852 70 730 444 781 256 861 841 948 12 511 642 777 354 527 388 828 304 407 34 914 102 342 190 880 69 765 281 352 254 255 340 790 61 457 134 229 564 988 151 837 49 959 588 783 80 766 28 806 628 705 14 274 580 725 ...
output:
268317771 47097484 421588776 102282451 333095282 43378680 509278870 417494919 313574910 441579995 275157500 408044257 106786594 493318960 33612243 361972926 26121135 532347062 28310592 274208907 196254071 62662155 105003812 156303449 481444165 371156216 75975939 402873126 242366241 363224679 3985588...
result:
wrong answer 97th lines differ - expected: '203671440', found: '383505450'
Subtask #2:
score: 0
Wrong Answer
Test #6:
score: 0
Wrong Answer
time: 488ms
memory: 137568kb
input:
200000 892371480 22998 49553 81275 113185 5727 132878 82654 169356 71699 140286 125888 186861 100837 142296 106066 140656 74252 149480 27501 176100 83345 88242 66303 115915 12674 130725 1674 63588 1364 156886 15385 17886 75399 75822 86036 186555 1531 179090 89516 172228 115155 176119 44396 128552 14...
output:
273234182 449437106 242099755 333821140 233724926 123405654 394821271 546278602 291329778 653757142 74962316 203008878 296806541 569404826 79844982 145831433 279268910 789682109 554828797 57305870 152411988 447931917 350986222 77173213 654165447 107322515 179403121 296292234 658242000 570287501 9772...
result:
wrong answer 19079th lines differ - expected: '91541776', found: '728873641'
Subtask #3:
score: 0
Skipped
Dependency #2:
0%
Subtask #4:
score: 12
Accepted
Test #43:
score: 12
Accepted
time: 677ms
memory: 153104kb
input:
200000 892371480 85218 172641 32760 178929 67472 90740 137725 140228 7283 158683 38909 179144 136916 199945 183437 185978 39771 151379 27581 52887 45716 131957 94463 189969 108714 189877 42691 162639 70675 137777 2216 64496 11562 156673 60130 75992 23866 79156 52433 110066 69048 131110 155123 164884...
output:
782082073 824401298 599790916 294215187 203019461 236590667 661026646 147203543 602124019 438408587 537428705 8355752 124805730 541572457 511706673 449606645 118068138 91082179 417223715 31471407 815086590 322359719 669024622 189907169 517409848 114211575 497857100 605205022 21390597 260171160 53244...
result:
ok 360337 lines
Test #44:
score: 12
Accepted
time: 647ms
memory: 172068kb
input:
200000 892371480 38926 59792 1046 100481 70909 193250 14941 102234 151917 163694 143498 152451 58679 110145 19676 152650 11890 89518 98248 167023 153201 166560 14146 21902 92856 163644 88635 190236 58360 105381 28619 196565 64433 83386 35490 194841 86075 163020 64133 79679 3891 180981 40734 154706 6...
output:
287217258 104698622 113402660 143630662 842548369 291495782 100942131 522065313 638437129 836867071 220409917 44532456 757753501 24635505 202985156 873094642 298895685 519161292 858608463 577411258 144913537 226730132 836380146 728814804 868242366 49413373 873978578 472667815 675907568 686422276 651...
result:
ok 39880 lines
Test #45:
score: 12
Accepted
time: 549ms
memory: 176964kb
input:
200000 188196148 44004 110744 119075 131142 134955 186670 105184 130580 46090 72442 24857 61737 32412 153566 74004 112881 105444 197511 32005 77219 21749 122596 44943 92576 126350 184879 136289 164176 12299 189721 142057 150079 14682 126186 123862 153693 95297 153796 72798 174864 58382 63250 109556 ...
output:
164872790 111989360 102694654 110150546 148486948 178618977 66065978 67785495 95726526 169069885 56984507 25766510 136143708 146281678 171273218 78687225 177625703 56232282 124610224 115950876 126922484 127260341 46920091 152957176 136838518 28510256 51511177 139490439 139289786 32664672 137105092 1...
result:
ok 199927 lines
Test #46:
score: 12
Accepted
time: 462ms
memory: 168856kb
input:
200000 662065623 17012 186375 139107 187333 68029 177819 133038 182865 69220 94226 85929 97563 25806 183239 77239 126964 120144 150744 163591 174290 30121 119752 70785 116391 36667 72605 21588 69327 27727 97808 56892 158308 55419 132454 156271 163206 66589 87326 143720 166544 59920 189035 12160 1547...
output:
538838581 512398805 185741050 164585109 504661638 489570645 419302729 307518175 609666199 204592784 554224034 513258796 178031705 324511211 386685367 130064805 474125756 338845791 225273704 559655261 405680043 241383209 594661419 503899839 398592253 550764196 54178278 511548000 407200254 0 357047627...
result:
ok 199713 lines
Test #47:
score: 12
Accepted
time: 328ms
memory: 161240kb
input:
200000 599373789 15489 149962 24589 44816 39961 94700 2039 166654 1503 151097 75648 96512 21587 62693 152927 176032 35258 48377 95624 104547 33042 169752 28123 191864 181481 187375 52619 106366 79914 152324 1039 129301 79648 186396 20377 70333 4210 28193 20298 73791 101902 183222 55750 135327 23048 ...
output:
461383686 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 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 200148 lines
Test #48:
score: 12
Accepted
time: 299ms
memory: 170808kb
input:
200000 467128531 168232 183473 97463 116522 101718 187682 45691 114426 115216 117582 84909 147753 101157 175713 5373 184169 5860 157902 31096 109776 49417 157953 43601 72738 65424 159849 5114 93705 32437 121075 68813 118038 88415 172566 83656 111488 31930 197923 93191 114772 167234 192929 78693 1286...
output:
424135263 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 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 200245 lines
Test #49:
score: 12
Accepted
time: 273ms
memory: 165848kb
input:
200000 529800161 66087 182777 124207 182777 56358 182777 115852 182777 182777 191395 162549 182777 147518 182777 142767 182777 77710 182777 96058 182777 182777 191802 112914 182777 163269 182777 165546 182777 138220 182777 182777 194801 57665 182777 175404 182777 142637 182777 96157 182777 7137 1827...
output:
5719329 522400395 167189938 396160789 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 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 200063 lines
Test #50:
score: 12
Accepted
time: 635ms
memory: 167612kb
input:
200000 736323910 49905 62680 7934 32290 2141 130197 22856 170332 76508 111296 26289 102348 14563 145328 20292 53098 15928 73685 148229 191517 6699 9048 77901 139333 51541 53354 46543 87713 51810 199186 41562 45672 60676 141582 57381 60912 94965 155682 115405 128452 125251 178391 128128 198094 16627 ...
output:
195639953 655721075 79249833 203118083 432653802 371935512 48578995 342243160 693203348 357252565 655705094 269562011 670452690 389923972 696227489 705852937 54194206 622696017 320788156 258618323 602897546 314495903 192492129 129537524 208148062 567331443 440609760 599911890 715181674 231315157 229...
result:
ok 360023 lines
Test #51:
score: 12
Accepted
time: 642ms
memory: 179980kb
input:
200000 47086694 69405 91827 18957 120164 111718 190701 28458 162242 49740 98892 1194 178638 136262 168799 53467 145891 68032 85652 66050 178448 113129 151231 76614 179271 152980 185590 117193 169993 72112 142742 157343 160858 8985 76913 135901 147233 106073 121863 6274 160108 80117 186437 30085 1124...
output:
34115011 25037864 41352354 16496587 43275093 625657 46420229 1865668 41667114 8073380 31071913 18710358 11850637 43423456 6135185 36327275 8414705 40070623 14065861 23991422 21990139 13425393 34717444 9602871 43697485 19790828 35382090 38871029 45080760 35927647 7228042 31514476 27392108 46106270 17...
result:
ok 39897 lines
Test #52:
score: 12
Accepted
time: 511ms
memory: 168744kb
input:
200000 895994585 544 65800 126040 127143 24538 116187 47644 140785 13294 18675 119729 171800 15816 50532 51720 143679 3840 10086 29754 53235 1705 99992 125437 198819 88763 192949 104995 111132 49154 88053 30274 184287 26991 113727 77070 139263 37309 84766 172484 182541 119894 192699 11531 55721 8504...
output:
531999518 353806527 531539889 551453863 371312988 657410738 272612410 131381986 139757297 56547447 348406350 666509610 92484443 448146333 98477621 477061557 751488976 175334857 209386945 374229164 404327665 212673821 202592742 624609222 329225155 87791957 81654882 354465041 278420595 891125007 30499...
result:
ok 359857 lines
Test #53:
score: 12
Accepted
time: 492ms
memory: 170464kb
input:
200000 766680139 13465 24354 57831 194424 96485 147612 19430 184641 134158 177962 149 192203 102763 111787 50272 169399 113551 132635 42566 89560 49016 82230 15232 15289 125065 145096 52778 70487 72336 102362 93034 126939 179901 187557 53411 141345 64821 197875 25527 123290 11459 18861 2869 168073 6...
output:
730613066 574099774 508066563 499742342 516031888 752153997 182766822 0 14229226 235852318 646740274 381168674 0 422327736 0 715073441 0 1105445 0 613326747 714395260 0 322067660 99379522 683739107 0 0 0 0 0 0 760706891 571514535 0 0 0 564848491 170251398 0 0 0 419424054 0 0 0 0 0 707615716 0 904757...
result:
ok 39841 lines
Test #54:
score: 12
Accepted
time: 303ms
memory: 171224kb
input:
200000 188196148 35355 167903 133463 136446 87018 121364 105657 138542 14877 191556 139515 192775 124965 126074 57373 63552 75995 163407 52349 62648 156048 157678 28062 119443 68765 167924 42246 199820 16247 38579 93397 100112 14337 125121 778 184216 102091 134796 44962 158688 164503 195382 145184 1...
output:
20265682 131270479 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 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 20026 lines
Test #55:
score: 12
Accepted
time: 310ms
memory: 162660kb
input:
200000 662065623 22431 134843 56539 143967 27871 30764 89263 124261 61091 158555 72924 150203 57820 97240 51354 145448 95864 112405 131148 139652 115952 165297 68479 174861 4280 148396 28847 138840 10384 129785 52993 183911 22868 56764 45135 87156 15006 106750 1664 167597 30144 91699 29870 127696 40...
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 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 19785 lines
Test #56:
score: 12
Accepted
time: 0ms
memory: 89652kb
input:
2 235833654 1 2 163301191 228563240 1000 2 1 1 2 0 0 2 1 1 1 1 0 1 2 2 0 2 2 1 2 0 0 2 1 1 2 1 0 1 2 1 0 2 1 2 2 1 2 0 0 2 2 1 1 2 0 1 2 1 0 1 1 1 0 2 2 1 1 2 0 2 2 2 1 2 1 1 1 1 0 1 2 1 0 2 2 1 1 1 0 2 2 1 2 1 0 1 1 2 0 2 1 2 2 1 2 2 0 2 1 2 2 1 1 0 0 2 2 1 1 2 0 1 1 0 0 1 2 0 0 1 2 0 0 2 1 1 1 2 0...
output:
163301191 163301191 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 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 501 lines
Test #57:
score: 12
Accepted
time: 6ms
memory: 89680kb
input:
5 710493752 3 4 1 4 2 3 1 5 23397106 478077388 381508110 698911874 254936774 1000 2 4 2 1 2 1 1 4 1 0 1 2 1 0 1 1 2 0 2 1 1 5 1 0 1 4 0 0 2 1 2 2 1 4 1 0 1 3 1 0 1 1 1 0 2 1 2 4 1 3 0 0 1 5 2 0 2 1 1 2 0 0 2 1 1 5 0 0 1 3 0 0 1 5 0 0 1 5 1 0 2 1 2 5 2 1 1 5 1 0 1 5 0 0 1 1 0 0 1 4 2 0 2 2 1 4 0 0 1 ...
output:
698911874 23397106 23397106 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 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 497 lines
Test #58:
score: 12
Accepted
time: 3ms
memory: 89616kb
input:
8 915391419 4 6 4 5 7 8 2 3 3 5 1 8 2 7 901265339 437873454 274762177 906096966 792616192 250219799 832794769 452046866 1000 2 2 1 5 0 0 2 3 2 8 1 5 0 0 2 3 2 3 2 8 2 2 2 1 2 3 1 8 1 0 2 3 2 5 2 2 1 8 2 0 1 4 2 0 2 6 2 8 1 4 1 0 2 3 2 5 1 6 2 0 1 8 2 0 1 7 1 0 2 1 2 2 2 5 2 3 2 8 1 7 0 0 1 2 0 0 2 2...
output:
437873454 274762177 452046866 274762177 274762177 452046866 437873454 901265339 274762177 274762177 0 437873454 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 505 lines
Test #59:
score: 12
Accepted
time: 4ms
memory: 89732kb
input:
11 911171690 2 3 1 8 5 11 1 6 3 5 9 10 7 10 6 11 4 7 2 4 578796711 389137122 258900984 785708872 430771144 326384633 707167833 22682772 477784148 194579330 361976038 1000 1 2 2 0 1 6 1 0 1 7 1 0 1 8 1 0 1 10 0 0 1 7 1 0 1 1 0 0 1 7 2 0 2 4 1 4 1 0 2 7 1 3 1 0 2 3 2 10 1 5 1 0 1 11 0 0 1 7 0 0 1 7 1 ...
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 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 486 lines
Test #60:
score: 12
Accepted
time: 0ms
memory: 89616kb
input:
14 33032541 3 10 1 11 5 10 6 8 9 11 13 14 4 7 7 12 9 12 1 2 4 8 5 13 3 6 17430914 23228004 2444846 15384251 12882858 11556791 27850692 10245673 7033594 23589281 24499742 24952860 1181203 6486916 1000 1 6 0 0 2 3 2 4 1 3 0 0 1 6 0 0 1 11 1 0 2 7 1 8 2 0 2 11 2 8 1 11 0 0 2 14 1 8 0 0 1 3 0 0 1 6 2 0 ...
output:
2444846 15384251 27850692 0 0 6486916 0 0 12882858 0 0 0 0 0 23228004 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
result:
ok 476 lines
Subtask #5:
score: 0
Wrong Answer
Test #61:
score: 30
Accepted
time: 647ms
memory: 166688kb
input:
200000 892371480 53225 130450 30850 181698 17803 177493 8780 107369 5103 129868 105068 193082 45556 96552 107511 188440 77104 166564 15995 132714 99128 181477 22868 55561 12946 104306 108248 191490 32697 180631 143427 188480 47296 68977 54677 109873 112693 132105 71875 137093 82514 158424 20701 2978...
output:
5118074 498125396 251749089 21578201 169648223 89138431 486735724 430589511 60128044 296727358 96494797 683654223 25434588 641217539 292066134 753877167 349591450 696055657 528160411 318336519 357452444 83471033 302900015 623037539 678896657 732784430 849466722 310755541 488624956 497664716 77194996...
result:
ok 360189 lines
Test #62:
score: 30
Accepted
time: 614ms
memory: 167216kb
input:
200000 892371480 29283 186212 53253 131705 53820 182665 63053 73696 58575 104420 51754 160167 102223 185976 76959 198806 114136 199067 74079 159240 38474 92525 3848 115396 79584 199006 56267 73593 133783 137813 93479 170264 25086 101549 5466 104706 46711 107942 28355 159823 43616 87237 78378 86915 1...
output:
854444577 446034873 886587297 181297848 80741959 631374794 839621260 209408955 681589652 873598559 327656018 741004609 562124360 677868402 840776944 103459954 811856582 493473265 649874608 193926875 623568562 643619595 133311199 799525677 876358260 620745946 295065470 864433229 20121050 502062803 59...
result:
ok 40090 lines
Test #63:
score: 30
Accepted
time: 546ms
memory: 174680kb
input:
200000 193336276 81452 167991 20427 78000 79832 84342 24866 128327 76920 195554 23065 51260 77533 150604 72708 86254 83832 171853 25786 51846 22577 115764 19404 180758 6891 148212 11359 179037 163531 188755 100325 103512 51153 171205 42291 138622 7915 173631 52554 195408 30759 62497 69634 139445 790...
output:
147467270 78272610 131208045 192863622 95045402 90757095 190091888 31453730 161215248 102434730 79805294 41125625 3857401 149208517 85688462 11724432 188575348 188176097 182388333 86518895 135197966 143824749 116446940 71653679 84331240 67372038 154775882 2891290 160813688 166407199 24095959 1151797...
result:
ok 200007 lines
Test #64:
score: 0
Wrong Answer
time: 438ms
memory: 170148kb
input:
200000 948305414 133251 170371 46992 69783 36042 96631 57960 101909 71750 116399 14077 121601 61493 161593 32440 159552 68315 93528 3349 23351 70178 101857 57946 191714 137904 162801 13684 161150 106519 135707 18978 61081 38110 74369 12116 95575 57969 150715 83964 157789 9684 113933 8537 70007 41931...
output:
429808045 664148272 540070551 70877810 106910480 742444419 552392006 60172973 80102812 2043321 606460233 797333124 538369270 524671764 99615328 124617457 629221019 231911663 799238141 288785838 805840345 608735884 415245557 442447154 141719381 162913447 927503777 382344281 239872308 133313063 556436...
result:
wrong answer 47356th lines differ - expected: '514259988', found: '304632166'
Subtask #6:
score: 0
Skipped
Dependency #1:
0%