QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#366446 | #7844. Enchanted Fortress | kevinyang# | WA | 10ms | 5816kb | C++23 | 2.0kb | 2024-03-25 05:24:30 | 2024-03-25 05:24:30 |
Judging History
answer
#include <iostream>
#include <vector>
using namespace std;
const int mn = 30;
const int block = 15;
int lef[1<<(block)], rig[1<<(mn-block)];
int n;
int cost[1<<(block)][(mn-block)];
int adj[mn][mn];
bool inc[mn-block];
int main() {
string s; cin >> s;
n = s.size();
for (int i = 0; i < n; i++) {
for (int j = i; j < n; j++) {
cin >> adj[i][j];
adj[j][i] = adj[i][j];
}
}
int blockSz = min(n, 15);
vector<int> gray = { 0 };
for (int i = 1; i < n-blockSz; i++) {
auto now = gray;
now.pop_back();
now.push_back(i);
for (int j = 0; j < gray.size(); j++) now.push_back(gray[gray.size()-1-j]);
now.push_back(i);
gray = now;
}
for (int i = 0; i < (1<<blockSz); i++) {
for (int j = 0; j < blockSz; j++) {
if (!(i&(1<<j))) continue;
for (int k = j; k < blockSz; k++) {
if (i&(1<<k)) lef[i] += adj[j][k];
}
}
for (int j = 0; j < blockSz; j++) {
if ((i&(1<<j)) == 0) continue;
for (int k = 0; k < n-blockSz; k++) {
cost[i][k] += adj[j][k+blockSz];
}
}
}
for (int i = 0; i < (1<<(n-blockSz)); i++) {
for (int j = 0; j < n-blockSz; j++) {
if (!(i&(1<<j))) continue;
for (int k = j; k < n-blockSz; k++) {
if (i&(1<<k)) rig[i] += adj[j+blockSz][k+blockSz];
}
}
}
gray.pop_back();
int out = 0;
int bestBlock = 0, bestMask = 0;
for (int i = 0; i < (1<<blockSz); i++) {
int mask = 0, cur = lef[i];
if (cur+rig[mask] > out) {
out = cur+rig[mask];
bestBlock = i;
bestMask = mask;
}
for (int add : gray) {
int c = cost[i][add];
if (inc[add]) cur -= c;
else cur += c;
inc[add] = !inc[add];
mask ^= (1<<add);
if (cur+rig[mask] > out) {
out = cur+rig[mask];
bestBlock = i;
bestMask = mask;
}
}
}
cout << __builtin_popcount(bestBlock) + __builtin_popcount(bestMask) << endl;
for (int i = 0; i < blockSz; i++) {
if (bestBlock&(1<<i)) cout << s[i];
}
for (int i = 0; i < n-blockSz; i++) {
if (bestMask&(1<<(i+blockSz))) cout << s[i+blockSz];
}
cout << endl;
}
详细
Test #1:
score: 100
Accepted
time: 0ms
memory: 3496kb
input:
ABC 1 -1 2 2 -3 1
output:
2 AC
result:
ok ok
Test #2:
score: 0
Accepted
time: 1ms
memory: 3840kb
input:
@ -1
output:
0
result:
ok ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
ABDFHORSU!? 1 -1 1 1 1 1 1 1 1 1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 -1 1 1 1 1 1 1 1 1 -1 1 1 1 1 1 1 1 -1 1 1 1 1 1 1 -1 1 1 1 1 1 -1 1 1 1 1 -1 1 1 1 -1 1 1 -1 1 -1 -1
output:
9 ADFHORSU!
result:
ok ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
A 0
output:
0
result:
ok ok
Test #5:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
* 1
output:
1 *
result:
ok ok
Test #6:
score: 0
Accepted
time: 0ms
memory: 3592kb
input:
!?@* 1 2 3 4 5 6 7 8 9 10
output:
4 !?@*
result:
ok ok
Test #7:
score: 0
Accepted
time: 1ms
memory: 3804kb
input:
!?@* -1 -2 -3 -4 -5 -6 -7 -8 -9 -10
output:
0
result:
ok ok
Test #8:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
BA -5 0 10
output:
1 A
result:
ok ok
Test #9:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
BA -1 -8 6
output:
1 A
result:
ok ok
Test #10:
score: 0
Accepted
time: 0ms
memory: 3548kb
input:
CBA 7 6 -9 4 9 0
output:
2 CB
result:
ok ok
Test #11:
score: 0
Accepted
time: 0ms
memory: 3572kb
input:
BCA 4 -2 -5 -2 -7 -10
output:
1 B
result:
ok ok
Test #12:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
BCAD 9 5 -4 -7 4 5 5 7 -7 -2
output:
3 BCA
result:
ok ok
Test #13:
score: 0
Accepted
time: 0ms
memory: 3476kb
input:
CDBA -6 -4 5 10 -8 2 6 9 9 -7
output:
3 CBA
result:
ok ok
Test #14:
score: 0
Accepted
time: 0ms
memory: 3484kb
input:
BDCEA 578 354 -120 90 852 494 -479 176 791 375 -393 -604 124 60 -300
output:
4 BDEA
result:
ok ok
Test #15:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
BCADE -378599 627719 605863 385700 900008 -255132 -615654 34362 899491 339568 -940805 998872 745003 616051 -748394
output:
5 BCADE
result:
ok ok
Test #16:
score: 0
Accepted
time: 0ms
memory: 3536kb
input:
DBECA 840329 915177 802208 844961 364360 593863 148430 529188 809632 460076 567952 593488 933986 409773 320989
output:
5 DBECA
result:
ok ok
Test #17:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
EDCAB -640316 -556181 -155810 -721221 -316868 -230635 -54757 98031 -344055 -17763 -633076 -59491 -481365 -706312 -337940
output:
0
result:
ok ok
Test #18:
score: 0
Accepted
time: 1ms
memory: 3568kb
input:
EDBCFA -769 -471 -912 -910 81 25 -914 -583 860 362 378 -623 795 940 544 -949 -890 -187 622 -75 -110
output:
3 BFA
result:
ok ok
Test #19:
score: 0
Accepted
time: 1ms
memory: 3564kb
input:
FDEABC -974809 793226 863847 649261 528337 -69648 -848846 -440250 964982 -451573 -178000 986930 -821923 23999 25910 -280034 224626 274668 -974827 333690 -865644
output:
1 E
result:
ok ok
Test #20:
score: 0
Accepted
time: 0ms
memory: 3600kb
input:
DAEFCB 543661 921857 939441 96024 235965 815135 464821 860585 230154 899058 797096 470959 80936 776686 540219 102015 322484 654667 347272 522595 26115
output:
6 DAEFCB
result:
ok ok
Test #21:
score: 0
Accepted
time: 1ms
memory: 3556kb
input:
DABFCE -124356 -457769 -681405 85717 -871027 -874873 -75221 26316 60984 -584669 -163862 -481270 -285663 -574083 -350159 -597429 -336849 -205235 51133 -952802 -601747
output:
1 C
result:
ok ok
Test #22:
score: 0
Accepted
time: 0ms
memory: 3480kb
input:
EBGCADF 356 513 -665 244 68 637 685 -8 -234 401 147 336 687 255 247 -730 -997 953 -7 -560 460 25 -228 793 -104 860 281 -939
output:
6 EBCADF
result:
ok ok
Test #23:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
AGBFDEC 212115 -84025 -855099 -471702 -150046 371235 233862 224957 -771417 -617497 -29976 -908141 -681029 -487087 445737 -124742 -565399 -21406 -568066 276389 951681 -905028 -303468 362456 -666378 693926 728015 471101
output:
3 AEC
result:
ok ok
Test #24:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
GFCEDBA 681486 915666 210585 972310 540136 681765 364074 824268 386504 453634 422445 162900 503226 98804 769660 308101 122305 128418 975921 372884 426702 431683 43195 658080 548942 120438 537379 327987
output:
7 GFCEDBA
result:
ok ok
Test #25:
score: 0
Accepted
time: 1ms
memory: 3824kb
input:
DFEBACG -55875 -550162 -530787 -233421 -760509 -824107 -945682 -929575 -301003 -959060 -480846 -616906 -214606 -876092 -583857 -973549 -407338 -281296 -902171 -897969 60518 -359630 -649372 -670732 -447577 -338968 -161233 -160291
output:
0
result:
ok ok
Test #26:
score: 0
Accepted
time: 0ms
memory: 3820kb
input:
DHFBGACE 504 -459 -880 -24 -572 -978 776 226 -106 201 -395 343 -392 -980 648 243 209 776 437 -784 -570 909 300 -945 -629 -354 644 -450 215 -63 966 -190 -843 678 945 945
output:
5 DBGCE
result:
ok ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3492kb
input:
HCGBEDFA 474950 249703 156543 239471 -421463 602542 379320 -188092 459374 -391552 -919808 592819 -134376 6936 -87273 -990525 -564716 315562 999024 -930786 -66249 -692777 -116792 -276718 87496 186201 -404603 -432927 888084 439965 -585906 -100013 -200392 -808421 -290896 598139
output:
5 HCEFA
result:
ok ok
Test #28:
score: 0
Accepted
time: 0ms
memory: 3524kb
input:
ABEFGHCD 370039 174886 211402 855994 434091 551928 670809 447463 963222 843183 468888 531255 349903 974703 665371 649686 380982 490480 842666 232129 757928 139625 44744 543708 995390 672966 688915 89541 913648 539714 456070 452116 377346 382419 408319 771223
output:
8 ABEFGHCD
result:
ok ok
Test #29:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
CGHAEDBF -153680 -941934 -739222 38166 -574973 71698 -977709 95485 -704654 -943063 -38885 -339212 -171158 17166 -508481 43617 -308524 -911947 -812796 -620760 -831710 -286155 -871441 89770 -871105 88096 -509415 -926003 -227815 -799085 -288764 -205773 -984401 -305317 91635 -858642
output:
1 H
result:
ok ok
Test #30:
score: 0
Accepted
time: 1ms
memory: 3480kb
input:
GFDICEBHA -595 -729 -159 -998 -167 245 -290 -285 609 -383 183 -663 336 825 -646 472 -2 773 -20 294 -540 38 -886 -599 748 -636 22 -773 558 -329 -354 -70 694 585 317 -679 -414 -321 -475 819 -222 -368 -340 -989 803
output:
4 DCBA
result:
ok ok
Test #31:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
HBFIDCEAG -455238 -945606 704817 -60004 -229576 -464468 -949779 690496 -513846 582105 426613 524327 -554120 821437 901646 803263 -330209 -787052 -449065 -350975 732528 -943397 -473895 -445460 -785333 746288 -79653 -753791 -49272 956200 672689 -11354 519619 -787270 39782 118830 -451675 457859 802230 ...
output:
7 BIDCEAG
result:
ok ok
Test #32:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
GHDBFAECI 174516 599041 611445 394667 157530 285877 500734 282380 992240 539539 442557 829224 41173 786190 579142 381454 400305 8934 526658 174527 679024 76843 849394 733848 352405 693402 7709 894225 862804 860262 965915 136032 635430 821270 85747 853047 524919 788430 951720 1697 405673 263064 24772...
output:
9 GHDBFAECI
result:
ok ok
Test #33:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
HICEBAGFD -780150 -285136 31358 -190871 -839185 -579020 -258059 -612894 -274728 -47947 -873144 -802213 -583533 -150018 -309357 -904581 -950325 -622160 -805147 -528112 -596001 -726233 -76984 -100674 -40876 78838 40638 22933 -998613 -127855 -789573 -845863 -364000 53837 -314382 -474534 -138346 -284937...
output:
1 D
result:
ok ok
Test #34:
score: 0
Accepted
time: 1ms
memory: 3540kb
input:
EBFCAIHDGJ -190 112 -830 -349 299 78 517 -129 -434 959 722 533 730 641 -856 -915 430 605 -325 464 465 -61 -726 955 126 -323 961 94 -159 -932 879 773 -102 -30 835 -602 517 -667 712 -61 -828 65 556 517 934 -76 106 259 -800 769 153 -590 11 626 106
output:
7 BFCAHDG
result:
ok ok
Test #35:
score: 0
Accepted
time: 1ms
memory: 3536kb
input:
AEBGIFDJCH -363704 -796971 62880 -372810 -946917 -829644 195821 -863897 -981891 950523 383964 -636486 838461 -415013 426479 -738181 -743052 -421355 822832 934800 -339770 -232331 -86952 514625 832033 -405571 -52923 568485 712202 -525415 916380 -449825 657463 -982885 -616268 114372 230427 -249406 -689...
output:
4 EGFC
result:
ok ok
Test #36:
score: 0
Accepted
time: 1ms
memory: 3772kb
input:
FAIHGBJDEC 529189 431610 23839 21526 956216 697687 487484 550476 42489 830703 326422 217377 146326 626666 21949 739986 343425 218649 139308 57689 120298 289264 656069 686382 876217 669144 710527 950208 302517 671251 354778 782897 852071 8845 851530 356426 647001 210125 897213 611821 790482 794674 35...
output:
10 FAIHGBJDEC
result:
ok ok
Test #37:
score: 0
Accepted
time: 1ms
memory: 3524kb
input:
DAGBCEJFIH -894703 -759541 60652 -572239 -708414 -67895 -342909 -395194 -780909 -407016 -6733 -943045 -649016 -615214 -34963 -645454 37355 -405546 -347335 -910674 -907425 -433591 -417344 57381 -775562 -596527 -352875 -63717 -911589 -499196 -226853 -823850 -887883 -944215 -957227 -516168 -940475 -369...
output:
2 AF
result:
ok ok
Test #38:
score: 0
Accepted
time: 1ms
memory: 3612kb
input:
GKFHJIBADEC -625 281 -55 616 497 887 -508 -715 959 -909 -427 -862 210 -722 -164 72 -210 -83 -287 -886 597 545 8 -104 -147 -161 918 -994 -622 359 375 670 991 -438 -794 -54 49 983 611 141 -806 -401 -675 -929 36 -693 -275 -873 810 922 807 603 704 -217 717 -535 -68 819 -798 -942 114 -928 -476 416 -28 917
output:
6 GHJIDC
result:
ok ok
Test #39:
score: 0
Accepted
time: 0ms
memory: 3532kb
input:
EFJKBGDCAHI 754639 -138864 -547857 426877 -74965 90732 63453 -597413 915366 473920 124452 475595 -644966 114626 853447 -881347 268834 687750 -936059 -950147 -924393 -7349 872551 539763 508800 832543 -383375 111080 -836639 -781819 777459 718784 -485833 -738575 438975 551696 -261087 -546331 -334017 45...
output:
6 EJKBDA
result:
ok ok
Test #40:
score: 0
Accepted
time: 1ms
memory: 3812kb
input:
CIAKBEDHGJF 556910 759378 704138 61663 587071 525321 560891 131404 786996 290165 624657 72477 254100 230425 686463 228247 159740 631677 583730 587143 654019 42015 420895 365398 588082 933424 680959 228779 248576 704930 934254 211011 271500 160250 274074 72249 64978 190252 855828 805456 896084 363928...
output:
11 CIAKBEDHGJF
result:
ok ok
Test #41:
score: 0
Accepted
time: 1ms
memory: 3836kb
input:
GADIFHJBEKC -584627 -249475 -368123 35430 39612 -174552 -134625 -157697 -213515 -151152 -113273 -628521 -501938 -884377 -461145 -277788 -73265 -509083 -985126 -911598 -607820 -735049 -423621 -36774 -397986 -529635 -211384 14806 -638928 -983219 -22270 -421321 -498761 -266539 -503377 -494411 -571409 -...
output:
1 J
result:
ok ok
Test #42:
score: 0
Accepted
time: 1ms
memory: 3580kb
input:
CKDLGFJIBEAH 618 415 -329 41 228 -482 -317 -818 414 915 913 -622 -889 291 301 846 17 -993 57 285 51 -987 971 -601 -787 635 -880 402 432 171 -90 -315 -666 667 -112 -527 -380 -490 605 -280 -512 -228 -197 -408 526 -549 721 643 542 85 979 871 -257 164 -986 -409 -539 706 853 -673 373 -838 -601 254 -604 -...
output:
7 CKLGBEH
result:
ok ok
Test #43:
score: 0
Accepted
time: 1ms
memory: 3572kb
input:
JHKAECGIFLDB -677601 738018 -66240 -742241 945150 -721552 593785 -576202 -459938 640381 -731790 -676185 566613 -844376 -976502 285241 497197 -85455 922758 117914 -574563 -567287 -10040 35713 769042 -771233 836562 500686 872439 857500 -216601 -105158 248968 938568 539250 -190714 509229 258274 -983404...
output:
8 KACGIFLD
result:
ok ok
Test #44:
score: 0
Accepted
time: 1ms
memory: 3592kb
input:
AKFIJBDEGLHC 544665 816440 376453 605556 26462 838301 279858 497942 166464 279946 152648 649144 76810 944313 961746 52949 476934 80735 206551 81763 144553 878070 227840 820116 891978 447195 192311 632149 607094 639738 13287 133223 512486 749242 239468 832473 87590 381436 667825 478758 225900 86349 9...
output:
12 AKFIJBDEGLHC
result:
ok ok
Test #45:
score: 0
Accepted
time: 1ms
memory: 3552kb
input:
KHICFGJLBDEA -385831 -510299 -691114 -609477 -338413 -985695 -864770 85988 -703112 -896521 -457582 -75584 -911236 -828693 -805654 -48642 -336348 -132600 -574642 -393642 -663539 -546378 -303929 -898227 -597170 -896642 -745182 -143294 -914734 -436357 -692815 -584585 -7586 -601682 -256509 -330536 -7116...
output:
2 JL
result:
ok ok
Test #46:
score: 0
Accepted
time: 2ms
memory: 3608kb
input:
CIMEHBADJGLKF 358 -814 44 551 -596 -943 967 -106 -896 -686 386 266 706 -665 -16 -905 891 -701 300 -687 -534 67 -497 -126 952 129 -153 326 -931 -761 -868 943 -508 -455 719 -22 -176 -11 -645 -49 909 -525 535 790 774 294 -293 297 85 781 -561 -21 -456 763 -272 -859 251 -378 -734 -318 -310 -587 -311 988 ...
output:
8 CEHADGKF
result:
ok ok
Test #47:
score: 0
Accepted
time: 3ms
memory: 3564kb
input:
DMKLIBAFJECHG 664000 235311 596143 892191 459080 -175466 334573 -36482 127610 557707 766867 293641 -772006 210910 -288383 662991 -974094 -638385 660365 -25728 92877 -575962 -490894 486124 667431 164470 247451 115305 665069 -954281 -671659 868108 -659100 670579 811944 293066 409301 -614786 -961126 82...
output:
5 DKLIC
result:
ok ok
Test #48:
score: 0
Accepted
time: 2ms
memory: 3564kb
input:
BHLIJKDCGAEFM 758929 770808 352541 386427 350298 767677 147937 16427 712877 223080 735621 395473 490667 511959 671369 100094 119648 706411 748867 925271 349245 101514 244596 499466 540856 52033 702553 154142 883995 701729 125311 790788 89737 749652 962463 392209 350272 416652 182677 89265 604653 114...
output:
13 BHLIJKDCGAEFM
result:
ok ok
Test #49:
score: 0
Accepted
time: 0ms
memory: 3784kb
input:
KHDMCEBGJLIAF -612396 -116189 53185 -547515 -594425 -287354 -307256 -363438 95986 -361157 -564816 -678658 -521080 62175 -64689 -390089 -338679 -285194 -983971 -883694 -825268 -985946 -630343 -446070 -459577 -676897 -620603 -146369 -80295 -738340 -482287 -489035 -318246 -293283 -547853 -354700 -65272...
output:
1 H
result:
ok ok
Test #50:
score: 0
Accepted
time: 4ms
memory: 3556kb
input:
MICHKDABJLNEFG -188 -127 715 -375 21 -320 -861 -809 -561 608 446 112 -600 -937 -100 613 -40 -153 993 -437 990 635 -363 -501 -861 -108 96 -307 168 -830 -252 -113 -878 -132 -619 365 -837 -246 794 693 41 219 -521 -900 128 377 -884 37 -267 -212 80 -400 -553 993 -948 -390 853 -77 -239 555 -511 960 -58 31...
output:
8 KDABNEFG
result:
ok ok
Test #51:
score: 0
Accepted
time: 4ms
memory: 3636kb
input:
FJEIBGLANKHMCD 256481 651721 -319487 830409 444283 996355 -638240 -795803 699984 159861 566251 -137744 -5686 -116114 884569 -548905 -120906 217848 134365 123204 -667451 881900 689860 -989641 -494842 393735 -933711 -471556 -303628 578542 175775 408202 -486078 195832 -803060 278797 -224561 -547703 -61...
output:
10 FJIBGNKMCD
result:
ok ok
Test #52:
score: 0
Accepted
time: 4ms
memory: 3632kb
input:
NDFEGMCKBLIAJH 345726 927277 665655 94284 790342 41965 43771 512402 803963 459390 18010 266663 228967 756364 832767 583170 719937 132335 918238 782991 547786 712225 567543 899593 602046 580473 563007 214085 262001 130773 748513 606954 273324 549840 978299 561940 135206 765214 32507 842501 479361 629...
output:
14 NDFEGMCKBLIAJH
result:
ok ok
Test #53:
score: 0
Accepted
time: 4ms
memory: 3600kb
input:
JLCNAEHGIFBDMK -669496 -677585 -653544 -76861 -326491 3631 -626295 -431975 -20985 -75857 -157379 -79213 -33199 -758666 -614926 -342740 -61698 -890048 -970803 -715475 -410164 -924021 -540703 -792052 -690971 76590 -267014 -196352 -309239 -720700 -224411 -263231 -747525 -483010 -958748 -238196 -60464 -...
output:
1 H
result:
ok ok
Test #54:
score: 0
Accepted
time: 5ms
memory: 3708kb
input:
HKNJDACLEMIBGFO -667 852 387 494 -286 -984 68 -65 -371 108 779 842 -634 -934 357 671 -749 -302 378 -815 -421 900 687 585 -118 923 -529 178 -672 -262 -796 -347 -881 -164 829 205 741 -326 690 942 -161 217 358 898 160 410 72 -996 855 -626 -695 -741 580 19 -605 608 538 570 139 355 296 -844 665 950 254 -...
output:
11 HKNJDCLMIGO
result:
ok ok
Test #55:
score: 0
Accepted
time: 8ms
memory: 3692kb
input:
NJABOKFIEGHMLCD -715771 -528260 -808964 -192566 -217533 440005 -36478 -605048 -64129 569158 -406513 314522 -497690 468938 -720948 870500 142196 971795 942991 667164 531005 816472 -746622 -295154 -328368 53334 897998 -853409 204100 -727293 -198639 -1100 -242360 335503 34670 -282871 -148676 117785 341...
output:
8 JOKFIMLD
result:
ok ok
Test #56:
score: 0
Accepted
time: 8ms
memory: 3624kb
input:
KFMICOEHABNGLDJ 734366 107417 747004 390055 31593 455043 895740 999548 457349 169851 916973 62699 550897 416995 159893 495493 422246 150453 962310 300484 167868 801980 856046 399419 441480 361396 379122 991976 395037 879174 491549 376253 339407 625117 640968 305328 207650 227839 384854 581481 260595...
output:
15 KFMICOEHABNGLDJ
result:
ok ok
Test #57:
score: 0
Accepted
time: 8ms
memory: 3900kb
input:
MBAHJLOENCGFDKI 5557 28561 -518708 -497318 -778038 -635798 -63006 99740 -264086 -92830 -27165 -969192 -586148 -593682 -450224 2369 12830 -122264 39461 -833808 -782442 -608060 -266038 -681005 -472050 28464 47981 -288631 -52870 -414119 -972607 -98763 -539066 -597946 -631585 -642036 -180611 -75044 -695...
output:
1 L
result:
ok ok
Test #58:
score: -100
Wrong Answer
time: 10ms
memory: 5816kb
input:
NHLCBKMAPJFGODIE 522 -162 746 488 -130 -680 -855 -513 -844 219 292 -29 535 682 -978 -339 485 -742 757 -856 -660 888 625 -984 201 854 -625 -577 -447 295 50 161 670 -549 208 -992 396 762 -608 275 780 -241 -979 318 -240 338 -304 -88 131 873 608 -562 -785 331 -467 653 733 417 272 -514 779 -764 -867 436 ...
output:
9 NLCAPFGOI
result:
wrong answer Contestant (12895) is worse than jury (14507)