QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#321881 | #4827. Message Made of Noise | socpite | AC ✓ | 2ms | 3800kb | C++14 | 1.2kb | 2024-02-05 20:13:02 | 2024-02-05 20:13:02 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
int qb[20][20];
int main(){
string type;
cin >> type;
if(type == "Alisa"){
string str;
cin >> str;
vector<int> vec;
int n;
cin >> n;
int ptr = 0, cnt = 0;
while(n--){
int x;
cin >> x;
if(cnt == 15 + (ptr && str[ptr] == str[ptr-1] ? 20 : 0)){
ptr++;
cnt = 0;
}
if(ptr == str.size())break;
if(x%26 == str[ptr] - 'a'){
vec.push_back(x);
cnt++;
}
}
cout << vec.size() << "\n";
for(auto v: vec)cout << v << " ";
}
else{
char prv = 'z' + 1;
int cnt = 0;
string ans;
int n;
cin >> n;
while(n--){
int x;
cin >> x;
if(x%26 == prv - 'a')cnt++;
else{
for(int i = 0; i < min(2, (cnt+15)/16); i++)cout << prv;
prv = 'a' + (x%26);
cnt = 1;
}
}
for(int i = 0; i < min(2, (cnt+15)/16); i++)cout << prv;
}
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3572kb
input:
Alisa spark 10000 833080662 16249270 933346436 811379468 925271783 359705680 76365900 158342757 877083772 38085457 819965104 408973036 16049452 102494634 585189166 986634959 68282709 745375330 964742302 111199534 259074194 357880009 300942070 891323449 763894642 774838701 270621761 288500028 8289322...
output:
75 278824512 223222498 398851770 821253204 316355772 805937878 758381486 661069492 14880260 299437546 767137428 61534582 837686530 340092056 917737020 32520555 147719353 657829239 455564397 439822021 565250545 978354691 12372011 17798185 78700403 60037135 998200569 244138715 167096191 84552353 14562...
input:
Eva 40 278824512 223222498 821253204 316355772 758381486 14880260 299437546 340092056 917737020 147719353 439822021 565250545 978354691 12372011 78700403 998200569 244138715 167096191 145623660 908722074 837730556 452840596 160672018 82751604 587013856 586064206 748242239 591027857 209586095 3773144...
output:
spark
result:
ok single line: 'spark'
Test #2:
score: 100
Accepted
time: 1ms
memory: 3796kb
input:
Alisa zoo 10000 956754604 875535727 764768765 403840087 67159452 949712722 115576737 264236473 212511213 562986097 859669991 893717805 838891893 47770507 416355290 159696911 702519086 615482060 179929327 523223494 166469421 452823317 391263419 32353165 631726585 32531344 424699975 294307421 85611161...
output:
65 718691817 893367201 631065941 937120495 685559653 439253593 797439447 926411849 752267177 246588705 974424957 353048071 434719453 351602913 750621247 638780182 909649248 484364388 104746734 78641928 473491890 997587436 23605596 288685216 513853822 976138086 682759052 873499810 903761548 872524602...
input:
Eva 30 718691817 893367201 937120495 797439447 353048071 434719453 638780182 909649248 484364388 104746734 473491890 23605596 288685216 682759052 903761548 872524602 480703562 902570592 508401986 881064328 233199864 812194566 292306938 494200422 146734342 767472070 778476440 675795706 896602604 7200...
output:
zoo
result:
ok single line: 'zoo'
Test #3:
score: 100
Accepted
time: 0ms
memory: 3592kb
input:
Alisa at 10000 310982107 539408279 796963309 809203668 523777662 545413064 979220389 847693910 138708955 656945625 74716593 934751180 481326343 167326361 231049220 522995900 37351748 788253568 916125796 387068110 517465221 271899863 460441305 620026841 944960218 415699339 335393844 48690159 42519562...
output:
30 809203668 387068110 218785710 778799424 159082638 676817648 83442866 72456852 141387012 168821744 227647810 54618226 424892728 549271138 598600470 39800091 144248695 295709199 736809521 554385071 861717577 704969635 802279523 847307389 180355831 572145879 591749827 530495179 680850007 9804385
input:
Eva 13 387068110 218785710 676817648 72456852 227647810 39800091 144248695 736809521 704969635 802279523 572145879 530495179 680850007
output:
at
result:
ok single line: 'at'
Test #4:
score: 100
Accepted
time: 1ms
memory: 3792kb
input:
Alisa if 10000 503842924 757491266 141782843 236156593 872816374 282494629 8442020 266993146 431387022 916904904 536726783 139144491 897563232 774836180 933098003 649977536 426446349 179675381 976057133 192994215 912014737 649318938 281784409 433754655 579718136 693929967 122871398 670071564 6931916...
output:
30 649318938 454299048 374023372 273220384 710194038 440192176 435772124 124684958 212645870 818779372 186033986 904151022 638688084 75187822 450024648 390374821 93609677 406872393 37156865 938660741 459773787 617880723 964236941 956476721 342762191 193850727 497651445 858051407 493450781 782398557
input:
Eva 13 649318938 454299048 374023372 710194038 186033986 904151022 638688084 75187822 450024648 37156865 964236941 858051407 493450781
output:
if
result:
ok single line: 'if'
Test #5:
score: 100
Accepted
time: 1ms
memory: 3568kb
input:
Alisa eel 10000 419034977 506627655 360958666 682067714 313353796 431192689 370972316 850816320 352477330 854979535 29434206 87388648 151667551 275112589 276381040 773593631 79329274 524349772 621505949 536647547 733312990 826490666 279158815 667907864 31822931 739964904 109173174 245982571 49308618...
output:
65 266823236 760601014 662304218 696154918 136458430 595308432 969612804 706029822 511518908 190257266 45299050 365910250 619220216 479916324 763129618 887216542 445654616 711883800 444538722 303696072 193642518 323432178 249179506 710231682 692710568 251043576 982670342 840213508 524304434 92510218...
input:
Eva 41 266823236 760601014 662304218 696154918 136458430 511518908 190257266 45299050 619220216 479916324 887216542 444538722 193642518 323432178 251043576 925102182 205598748 29006384 468512906 372888702 420638014 301957374 218378658 857880872 207784828 145112322 112077242 376971456 140224036 50991...
output:
eel
result:
ok single line: 'eel'
Test #6:
score: 100
Accepted
time: 0ms
memory: 3780kb
input:
Alisa cat 10000 429813780 552131166 455681195 172400210 186885255 914570530 663421268 36309837 82538846 199527239 779087404 945586459 313674436 774210063 266763546 350462343 300825395 764967849 225852148 348059331 687517865 907327558 175393488 120346637 521382066 657709825 513564198 595042659 958293...
output:
45 552131166 225852148 411226532 318473846 157008828 247123190 703870390 301369044 508126998 208115338 183287522 211565252 287325716 44702348 869018048 360303086 822443258 707312918 783937934 31826158 333306168 301946606 534911390 850449600 465937992 553969442 346291764 822583060 260457002 699954684...
input:
Eva 25 552131166 225852148 411226532 157008828 703870390 508126998 44702348 360303086 707312918 31826158 301946606 850449600 465937992 553969442 822583060 260457002 873702901 324964373 609258123 84730145 601643217 848375157 79223059 325255547 195227389
output:
cat
result:
ok single line: 'cat'
Test #7:
score: 100
Accepted
time: 1ms
memory: 3572kb
input:
Alisa real 10000 293521636 162312678 673316503 632028874 710190218 188928780 96341370 555961165 289029081 884342732 350209747 664696652 979603608 961578721 626304467 295252288 164649292 651680084 873526805 958035183 683416223 968734513 278011061 293645402 432614810 140880339 131416445 264789129 7699...
output:
60 350209747 131416445 525860365 453818083 743930139 358339089 694653015 931532411 973531121 447864031 121408187 857486465 638308103 582039111 39739431 314752078 192950138 791400120 532655218 309202040 432752298 885969582 616264874 507937486 229610970 536434422 721919930 554790994 103111792 60444173...
input:
Eva 22 350209747 525860365 694653015 931532411 973531121 121408187 857486465 582039111 39739431 314752078 309202040 432752298 229610970 721919930 604441738 100072440 6246292 511790942 168142531 88755587 497918133 249199351
output:
real
result:
ok single line: 'real'
Test #8:
score: 100
Accepted
time: 1ms
memory: 3740kb
input:
Alisa queue 10000 728126608 503051601 532065691 649125958 544642619 764381278 99807076 262423745 184581551 580643211 497976687 957044918 859521736 259842796 62623567 113655749 841320664 634874725 723467845 260164633 827046454 235948513 311899723 949510236 35721445 834116947 179412731 28282810 623612...
output:
75 44402868 109191852 825793348 476656092 428546472 742695918 620242340 439087704 883102184 876978794 846372556 959783256 339024182 44250950 728792548 986133142 573170072 689079970 742343024 94359636 148710634 867270840 438703064 101846908 900386858 506555654 252637964 97091534 310083560 154267432 8...
input:
Eva 48 109191852 825793348 476656092 620242340 883102184 876978794 846372556 959783256 44250950 728792548 986133142 573170072 742343024 94359636 148710634 438703064 97091534 310083560 154267432 895035470 223639290 790316258 653253202 586291814 731700766 381541346 791794800 575968124 38611928 9468357...
output:
queue
result:
ok single line: 'queue'
Test #9:
score: 100
Accepted
time: 1ms
memory: 3592kb
input:
Alisa cotton 10000 767299611 979529394 39913161 316465148 694895023 593011984 513519165 256775663 243632888 431633332 223892604 123184313 731920779 174332419 251563430 741176400 264757675 259841890 770005896 455626677 665021206 586325250 809408942 435300393 279787411 300849439 269112903 624785753 12...
output:
110 806845548 340439478 405027248 215910190 522929318 271263644 761479760 446901860 662065354 845491584 578393532 589377622 879762028 117746722 264765542 424253506 664107484 917387134 835074722 255017114 228583980 563714906 913933372 712810606 989138424 808524484 917055998 158897532 440282974 927435...
input:
Eva 53 806845548 215910190 522929318 761479760 446901860 662065354 845491584 578393532 879762028 264765542 664107484 255017114 563714906 989138424 808524484 540189799 620722589 229694497 692966735 925409283 5565761 332013259 382614511 763950297 918884037 607153293 402031363 101200625 414591209 17204...
output:
cotton
result:
ok single line: 'cotton'
Test #10:
score: 100
Accepted
time: 1ms
memory: 3796kb
input:
Alisa zealous 10000 376434163 440125154 36359799 555365557 137615418 418390680 941228977 110954051 329055139 583988117 559131676 132626782 895760470 719530007 512820379 305723222 801475792 62346534 469882058 287661911 705144238 572901668 802362723 837688880 958060440 510581655 720263881 611350316 73...
output:
105 510581655 720263881 571073749 183548533 924848547 801873643 2773185 461047469 252437847 657091577 653727125 467238823 490829767 222420665 56680935 452103994 218098794 445460734 971054478 912487424 500091726 53551840 214641340 856530016 460433380 847150048 141005570 66368566 986915362 317718860 7...
input:
Eva 54 510581655 924848547 801873643 653727125 490829767 56680935 452103994 218098794 445460734 53551840 856530016 460433380 66368566 731068650 870238434 377548626 933722114 391246570 172416842 843702210 688346178 505068980 719497688 862225245 755811301 567484097 918782993 995991215 428321047 819030...
output:
zealous
result:
ok single line: 'zealous'
Test #11:
score: 100
Accepted
time: 2ms
memory: 3584kb
input:
Alisa assessee 10000 482462411 406338426 451753105 172617988 400471250 928079398 658730375 743529855 457495918 236775269 240125765 65250594 38143537 418720947 501030902 999438611 564408934 190385769 793443047 278651171 7840279 9961946 894345874 313117394 434989606 163661658 177490635 189003645 42853...
output:
180 406338426 304311904 377541372 427993358 327022566 661818950 91556036 318692426 342043884 408969730 718700996 302023644 852665216 125514974 863506800 890574690 68637834 663767850 611793876 169029580 890501292 455598564 371323698 467773454 453158100 73115710 619760536 136849198 511477712 138328858...
input:
Eva 91 304311904 377541372 427993358 327022566 318692426 408969730 718700996 852665216 68637834 611793876 455598564 371323698 467773454 73115710 619760536 136849198 511477712 380430328 248785308 535997506 824633828 639246418 122250120 372950908 664221030 204832932 768924226 369510224 837875472 97738...
output:
assessee
result:
ok single line: 'assessee'
Test #12:
score: 100
Accepted
time: 1ms
memory: 3572kb
input:
Alisa impatient 10000 456107448 565954838 600661924 423359702 440626827 441006466 795197649 443478311 770536535 709684383 92634315 850509440 341841933 416749530 775721850 324152699 710732825 975761495 731172339 389979549 818576792 935707276 703119428 671211209 695131944 227403587 89170727 832476447 ...
output:
135 430249178 92854796 347320956 683129728 195175196 267517414 986558100 202593256 187872368 11890692 137594842 192854306 287640322 38357262 606945256 455281436 352364180 261131064 550579262 192461060 67219658 96467656 200317324 352255474 863581198 811327022 124556808 636957580 670477638 780550068 9...
input:
Eva 67 92854796 683129728 195175196 267517414 986558100 187872368 192854306 606945256 455281436 352364180 96467656 200317324 863581198 811327022 670477638 780550068 939059981 676010493 503659587 145383721 695003129 999476961 675164245 837857581 626629406 809636776 805940252 383551012 324763192 21945...
output:
impatient
result:
ok single line: 'impatient'
Test #13:
score: 100
Accepted
time: 2ms
memory: 3588kb
input:
Alisa bookkeeper 10000 390710414 631530615 963220561 501450406 351277306 602248210 85957489 881562188 450691883 138708871 331455659 745743962 340297641 243932822 682142300 643860072 962255409 429078261 419732560 641785179 681729629 753830142 211789688 516575649 543437870 822918258 88310983 576798802...
output:
210 631530615 429078261 781083603 337330761 759167657 364993487 169828205 582698819 290961581 650334933 919622185 279165693 149897307 602581981 755045669 415015940 433048708 460240730 601743910 29467010 692612480 355790826 240194852 833940004 993109040 620969194 794050830 669445336 373695960 1328489...
input:
Eva 100 337330761 759167657 364993487 169828205 582698819 290961581 650334933 602581981 755045669 433048708 460240730 601743910 833940004 620969194 373695960 132848990 305288816 187334096 673637628 161578782 374076834 651682838 607482500 792710972 426612122 567336836 117278318 699449128 787712628 84...
output:
bookkeeper
result:
ok single line: 'bookkeeper'
Test #14:
score: 100
Accepted
time: 0ms
memory: 3800kb
input:
Alisa copyrighted 10000 739557444 330252893 964326887 887910648 165070809 903235717 652009792 814643692 630901069 585765565 101206711 559866628 791788710 330613970 309583309 642328357 778635645 120527334 116527570 729858307 563138990 220835202 217041534 894279818 808177617 556013181 774973167 510000...
output:
165 739557444 786885062 979008240 608323224 372912932 924102168 411773078 339838956 229628466 888125812 928751878 818241738 829037250 725135582 884920402 982381726 50251618 873522066 345660212 264779932 145512810 440532418 12835772 965513758 58852626 411483762 817613668 357280392 404377104 875210636...
input:
Eva 90 739557444 979008240 372912932 924102168 229628466 829037250 725135582 884920402 982381726 50251618 345660212 12835772 965513758 411483762 404377104 819233547 821168675 121159911 858850163 304392571 596319063 555318805 894294230 542224980 350746472 277809868 803844910 316718140 108488820 74990...
output:
copyrighted
result:
ok single line: 'copyrighted'
Test #15:
score: 100
Accepted
time: 2ms
memory: 3500kb
input:
Alisa squeezeboxes 10000 157094287 809151185 885591341 968810165 943658241 456220129 251205115 963575422 527082156 400831284 639279124 478290197 149013822 155506716 389372449 193333788 390911465 699989485 515969381 745192528 146306211 938174688 227793494 161046218 477570505 9894134 499988384 8103411...
output:
200 810341108 776113044 556159804 393973728 269957316 225804246 504701020 681155376 763729790 553716506 131817782 288179078 40352408 987312292 549413714 498026948 987431474 824692586 954042378 364018970 807919440 526177720 855745036 582365696 856035300 193927490 829670286 359325658 913003094 8421639...
input:
Eva 96 776113044 556159804 393973728 269957316 681155376 288179078 40352408 987312292 987431474 954042378 526177720 855745036 582365696 193927490 829670286 359325658 842163988 148715886 268435304 447180104 210668452 267057876 26114784 234799624 786960714 818894184 254720574 419956346 653992018 55868...
output:
squeezeboxes
result:
ok single line: 'squeezeboxes'
Test #16:
score: 100
Accepted
time: 2ms
memory: 3580kb
input:
Alisa embarrassment 10000 863907095 50900552 940385214 923016987 195384280 149329830 157040498 699365836 728151611 802183368 964476670 766353465 883068628 140698617 576455081 638837097 462505317 428012304 717738800 611701562 107433485 338374166 40322202 553171030 361969314 458428199 482891314 240678...
output:
235 157040498 611701562 789077722 600996322 192996002 351452352 769419980 929336724 154761884 96121562 39428666 131986716 707298830 319233672 652497226 324983372 976845596 676179100 565969312 124248552 327830034 13328652 26510782 674798942 769267394 193205830 502539036 47469018 153744928 278701084 8...
input:
Eva 113 769419980 929336724 96121562 131986716 652497226 324983372 676179100 565969312 502539036 47469018 925755767 642741607 776205119 163601725 394881605 346251542 108541186 408701982 538174130 502289008 476723910 738972355 10644131 199256451 4542971 44971723 407880321 216535323 786411877 12574984...
output:
embarrassment
result:
ok single line: 'embarrassment'
Test #17:
score: 100
Accepted
time: 2ms
memory: 3588kb
input:
Alisa facelessnesses 10000 358815078 441702436 357306969 876232230 829173472 387236074 319588548 22588795 57315925 261669197 860052977 970248515 700859096 727417383 897121799 236588200 741288488 304680816 973597730 899737234 818651018 844515671 847720011 951605044 907126697 920420424 536760796 74546...
output:
250 280153645 75824065 490034537 129424495 853095547 389357909 372772847 682558609 252856141 800992171 891524431 349860009 20929095 998736497 973459713 821741440 427249498 805131184 129782432 323582428 733706454 422568094 740819482 593077654 40424332 875723056 600179190 108259944 98606248 28315170 6...
input:
Eva 126 280153645 490034537 372772847 800992171 891524431 20929095 998736497 973459713 427249498 129782432 422568094 593077654 875723056 600179190 28315170 618281926 193851114 740760984 305064788 632931834 339854010 871056552 924071802 870305856 214814838 558130590 675918936 685055258 33247764 65070...
output:
facelessnesses
result:
ok single line: 'facelessnesses'
Test #18:
score: 100
Accepted
time: 2ms
memory: 3568kb
input:
Alisa oxyphenbutazone 10000 798496889 591831196 689866887 718516037 939088236 750029536 32504325 524026335 454108713 535099022 19575145 267787878 714460751 824215363 128955594 411401580 370729264 520608037 586051245 545847182 156497495 298980033 263178383 961267578 735195675 768423754 868450776 3886...
output:
225 128955594 617425264 435738668 274013650 535912586 855726964 799796362 681269460 684064512 717199198 546489334 249362582 454907818 276661698 681365088 146137131 355092969 705367751 965909539 542154987 513645831 679652061 684321869 512053617 913180733 32157187 520691545 901546669 90575105 60981574...
input:
Eva 106 128955594 617425264 435738668 274013650 799796362 684064512 717199198 546489334 454907818 276661698 705367751 965909539 542154987 913180733 50742352 263548530 359108722 389457014 427459966 699870936 701235806 840574746 861536951 720710733 275095979 422701827 613767039 454409113 817050249 683...
output:
oxyphenbutazone
result:
ok single line: 'oxyphenbutazone'
Test #19:
score: 100
Accepted
time: 0ms
memory: 3588kb
input:
Alisa uncopyrightable 10000 40150886 763706492 122394813 807704159 536297792 750987557 115171123 810353340 610211761 244154724 969998196 16564183 375564698 574704451 798113067 379418611 35315906 832211290 55151894 916263535 105649044 475634989 856990225 797136254 921316465 143597900 736016212 474798...
output:
225 105649044 620519062 793016816 947734548 37922164 181801692 111473720 547590908 24440176 213276252 711967536 584857280 170157696 583844944 987126368 351000793 874973541 383204133 86688329 26682123 605351799 909667811 606321937 222109771 365611077 697189831 105932463 717030301 840089705 552632743 ...
input:
Eva 128 111473720 24440176 584857280 170157696 987126368 351000793 365611077 105932463 552632743 582387938 620862738 357380740 800526092 924246208 591971720 280997914 897805586 659038850 297405006 695651374 748278376 376899264 504927840 471685462 587487382 439708920 731881164 966975972 727316266 396...
output:
uncopyrightable
result:
ok single line: 'uncopyrightable'
Test #20:
score: 100
Accepted
time: 2ms
memory: 3796kb
input:
Alisa decommissioning 10000 382835686 679002417 815396195 614990250 316953010 510954891 755838644 474793416 636240104 959829812 549408397 315423690 730153926 758389557 768870797 263724012 174045815 452197876 232033487 368630330 17284226 524695595 234115558 27688098 683706858 79961009 751009094 73156...
output:
265 815396195 758389557 7755855 270614633 619775939 249913667 769786137 172294125 775310877 117262239 114481955 456472149 976423919 50443825 981464071 70359020 490300282 530540794 492376512 387594640 693083798 142298472 866371614 491379360 122913834 532436766 670134638 263936872 816252064 313112752 ...
input:
Eva 142 815396195 7755855 270614633 619775939 172294125 456472149 976423919 981464071 693083798 866371614 491379360 532436766 313112752 213516396 535043186 853447922 214733690 164382818 399326462 940931006 193888398 569101898 728318566 949418874 878010992 223221922 197672372 190978490 565165134 5441...
output:
decommissioning
result:
ok single line: 'decommissioning'
Test #21:
score: 100
Accepted
time: 2ms
memory: 3552kb
input:
Alisa kindheartedness 10000 184401044 43479672 626522598 125256287 393936792 796090108 623375502 964392055 745191771 685632155 122244894 795113405 154816720 751814796 908762470 986021242 828628967 790557756 662677460 258829873 931275678 435309418 514192615 132684947 462635436 502645052 66049087 6164...
output:
245 121492472 411986858 243916254 152864696 945110020 510428474 889107814 396405032 619738298 223591508 861371378 204432472 144601168 657839426 473161374 660851628 28404930 474353290 285966676 60795834 989488820 249442526 175803168 690192550 208491096 534584552 494010902 286504772 239940150 33016802...
input:
Eva 121 121492472 243916254 152864696 945110020 889107814 396405032 223591508 861371378 204432472 473161374 474353290 285966676 60795834 989488820 175803168 690192550 534584552 330168028 418193763 535865707 502351317 886244775 989916057 975505869 932435127 284063715 896367797 138691943 421842759 106...
output:
kindheartedness
result:
ok single line: 'kindheartedness'
Test #22:
score: 100
Accepted
time: 2ms
memory: 3796kb
input:
Alisa appropriateness 10000 330513032 853761192 471913635 973083553 210304782 192323109 93400951 312902092 218527177 220141550 772849545 474554266 236840727 992261006 242750804 48564115 825470066 137963562 557516732 280829723 624831146 479324406 32347115 449750828 375369355 14352941 431101170 936947...
output:
265 862825626 489327098 431786238 515895354 518767210 761784270 65075192 708401486 790641514 242327488 39492700 307014266 718647800 736354840 504687976 388134047 600669877 315501409 23143161 299274133 39614837 217680205 152986563 117190283 398926907 543091343 677558013 130350625 438930949 30026713 4...
input:
Eva 125 518767210 761784270 708401486 790641514 242327488 39492700 388134047 600669877 315501409 23143161 677558013 30026713 775674811 151143059 958769801 567724887 690874251 901927067 431750165 766667267 999012367 406022489 134016911 144041263 989428273 788247501 38991801 25743761 97016209 60807769...
output:
appropriateness
result:
ok single line: 'appropriateness'