QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#171232 | #7186. "Memo" Game With a Hint | ucup-team1477# | AC ✓ | 1ms | 3856kb | C++14 | 2.7kb | 2023-09-09 16:39:06 | 2023-09-09 16:39:07 |
Judging History
answer
#include<bits/stdc++.h>
#define int long long
using namespace std;
inline int read()
{
int n=0,f=1,ch=getchar();
while(ch<'0'||ch>'9')
{
if(ch=='-')f=-1;
ch=getchar();
}
while(ch>='0'&&ch<='9')
{
n=n*10+ch-'0';
ch=getchar();
}
return n*f;
}
char s[105],xx[105];
int qd[105];
int pp[55];
bool vis[55];
int sz[15];
int pos[55],cnt;
signed main()
{
scanf("%s",s+1);
int t;
t=read();
if(s[2]=='r')
{
for(int greg=1;greg<=t;greg++)
{
scanf("%s",s+1);
for(int i=1;i<=50;i++)vis[i]=false;
for(int i=1;i<=50;i++)
{
for(int j=1;j<i;j++)
{
if(s[i]==s[j])
{
pp[i]=j;
pp[j]=i;
break;
}
}
}
int now=0,wz=1;
for(int i=1;i<=9;i++)
{
while(vis[wz])wz++;
vis[wz]=vis[pp[wz]]=true;
int sth=0;
for(int j=1;j<=pp[wz]-1;j++)
{
if(vis[j])continue;
sth++;
}
now=1LL*now*(51-2*i)+sth;
}
for(int i=0;i<50;i++)
{
if(now&(1LL<<i))printf("1");
else printf("0");
}
printf("\n");
}
return 0;
}
for(int greg=1;greg<=t;greg++)
{
scanf("%s",s+1);
int now=0;
for(int i=1;i<=50;i++)if(s[i]=='1')now|=(1LL<<(i-1));
for(int i=9;i>=1;i--)
{
sz[i]=now%(51-2*i);
now/=(51-2*i);
}
for(int i=1;i<=50;i++)qd[i]=0,vis[i]=false;
int wz=1;
for(int i=1;i<=9;i++)
{
while(vis[wz])wz++;
int sth=0;
vis[wz]=true;
for(int j=1;j<=50;j++)
{
if(vis[j])continue;
if(sth==sz[i])
{
printf("%lld\n",wz);
fflush(stdout);
scanf("%s",xx+1);
printf("%lld\n",j);
fflush(stdout);
scanf("%s",xx+1);
vis[j]=true;
break;
}
sth++;
}
}
cnt=0;
for(int i=1;i<=50;i++)if(!vis[i])pos[++cnt]=i;
now=0;
while(now<cnt)
{
now++;
printf("%lld\n",pos[now]);
fflush(stdout);
scanf("%s",xx+1);
qd[pos[now]]=xx[1]-'A'+1;
bool flag=false;
for(int j=1;j<=now-1;j++)
{
if(qd[pos[j]]==qd[pos[now]])
{
printf("%lld\n",pos[j]);
fflush(stdout);
scanf("%s",xx+1);
qd[pos[j]]=qd[pos[now]]=0;
flag=true;
break;
}
}
if(flag==true)continue;
now++;
printf("%lld\n",pos[now]);
fflush(stdout);
scanf("%s",xx+1);
qd[pos[now]]=xx[1]-'A'+1;
if(xx[2]!='-')
{
qd[pos[now-1]]=qd[pos[now]]=0;
continue;
}
for(int j=1;j<=now-1;j++)
{
if(qd[pos[j]]==qd[pos[now]])
{
printf("%lld\n",pos[now]);
fflush(stdout);
scanf("%s",xx+1);
printf("%lld\n",pos[j]);
fflush(stdout);
scanf("%s",xx+1);
qd[pos[j]]=qd[pos[now]]=0;
flag=true;
break;
}
}
}
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3836kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
00000101001101000101000100101000010111100101000100 00000000000000000000000000000000000000000000000000
Second Run Input
play 2 00000101001101000101000100101000010111100101000100 A. A+ B. B+ C. C+ D. D+ E. E+ F. F+ G. G+ H. H+ I. I+ J. K- L. M- N. O- P. Q- R. S- T. U- V. W- X. Y- J. J+ K. K+ L. L+ M. M+ N. N+ O. O+ P. P+ Q. Q+ R. R+ S. S+ T. T+ U. U+ V. V+ W. W+ X. X+ Y. Y! 00000000000000000000000000000000000000000000...
Second Run Output
1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 33 9 34 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 35 10 36 11 37 12 38 13 39 14 40 15 41 16 42 17 43 18 44 19 45 20 46 21 47 22 48 23 49 24 50 25 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 ...
result:
ok Correct! The number of the misses is 8 (2 test cases)
Test #2:
score: 100
Accepted
time: 0ms
memory: 3828kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
10111111110101011011100110001011110011111100100000
Second Run Input
play 1 10111111110101011011100110001011110011111100100000 F. F+ N. N+ E. E+ T. T+ O. O+ M. M+ J. J+ Y. Y+ C. C+ X. K- R. L- G. X- X. X+ K. K+ S. P- A. I- V. Q- B. U- R. R+ A. A+ P. P+ Q. Q+ H. U- U. U+ D. W- S. S+ D. D+ W. W+ V. V+ I. I+ H. H+ G. G+ L. L+ B. B!
Second Run Output
1 5 2 28 3 47 4 10 6 50 7 8 9 32 11 17 12 15 13 14 16 18 19 20 20 13 21 14 22 23 24 25 26 27 29 30 31 16 33 24 34 23 35 27 36 37 37 30 38 39 40 22 41 38 42 39 43 26 44 25 45 36 46 19 48 18 49 29
result:
ok Correct! The number of the misses is 9 (1 test case)
Test #3:
score: 100
Accepted
time: 1ms
memory: 3828kb
First Run Input
prepare 50 FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...
First Run Output
00110001110011000101011111010101100000110000101100 00111011111111010000111101110101101100001101011100 10000010110111010100110100000110000001011111010000 11111011001011001101111101010001110011011111010000 10100111100110100110111010011100000010111100101000 000111011111111100010000000010100101100110011...
Second Run Input
play 50 00110001110011000101011111010101100000110000101100 F. F+ D. D+ A. A+ V. V+ H. H+ J. J+ W. W+ I. I+ C. C+ N. E- L. M- B. T- Q. G- P. M- M. M+ Y. S- T. T+ U. U+ K. O- Y. Y+ B. B+ N. N+ R. L- L. L+ G. G+ E. E+ X. X+ S. S+ O. O+ Q. Q+ R. R+ K. K+ P. P! 0011101111111101000011110111010110110000110...
Second Run Output
1 38 2 47 3 45 4 43 5 20 6 32 7 28 8 42 9 21 10 11 12 13 14 15 16 17 18 19 19 13 22 23 24 15 25 26 27 29 30 22 31 14 33 10 34 35 35 12 36 17 37 11 39 40 41 23 44 29 46 16 48 34 49 27 50 18 1 43 2 30 3 31 4 8 5 12 6 22 7 13 9 38 10 47 11 14 15 16 17 18 19 20 21 23 24 25 26 21 27 28 29 24 32 11 33 34 ...
result:
ok Correct! The number of the misses is 472 (50 test cases)
Test #4:
score: 100
Accepted
time: 1ms
memory: 3772kb
First Run Input
prepare 75 EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...
First Run Output
00001101101111010010000101110000111101110001001000 10101110000111000001010111001100101101010010101100 10100100001010100001110101101001010001100101010100 00100100101110110101100101010111001101101001010000 11011111011010101111110010010101111110100111101100 001101101010010110011111000000010011001011111...
Second Run Input
play 75 00001101101111010010000101110000111101110001001000 E. E+ A. A+ H. H+ S. S+ M. M+ U. U+ J. J+ L. L+ V. V+ D. P- N. K- P. P+ C. N- N. N+ I. I+ C. C+ F. R- T. Y- W. T- T. T+ Q. B- B. B+ W. W+ R. R+ X. K- K. K+ F. F+ D. D+ X. X+ O. Q- Q. Q+ G. G+ O. O+ Y. Y! 1010111000011100000101011100110010110...
Second Run Output
1 14 2 46 3 26 4 30 5 25 6 45 7 43 8 13 9 29 10 11 12 15 16 11 17 18 18 12 19 20 21 17 22 23 24 27 28 31 31 24 32 33 34 33 35 28 36 23 37 38 38 15 39 22 40 10 41 37 42 44 44 32 47 48 49 42 50 27 1 39 2 32 3 26 4 38 5 25 6 49 7 24 8 37 9 47 10 11 12 13 14 15 16 13 17 18 19 14 20 17 21 18 22 12 23 27 ...
result:
ok Correct! The number of the misses is 688 (75 test cases)
Test #5:
score: 100
Accepted
time: 1ms
memory: 3836kb
First Run Input
prepare 85 RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...
First Run Output
10100110010011010011100111011101001110100110010000 00111000101011111111001011100000000001001001001000 01011111100100011000001011010101000111010010001000 01010001100100000111101110011110011000001111110000 10010101110010011110101110000110000010000111000010 001001010100001001110101110100001100101111100...
Second Run Input
play 85 10100110010011010011100111011101001110100110010000 R. R+ S. S+ H. H+ X. X+ L. L+ I. I+ A. A+ G. G+ T. T+ N. B- O. M- V. C- Q. U- C. C+ B. B+ Q. Q+ W. E- D. P- M. M+ Y. J- W. W+ Y. Y+ U. U+ F. P- P. P+ K. E- E. E+ K. K+ J. J+ O. O+ D. D+ N. N+ F. F+ V. V! 0011100010101111111100101110000000000...
Second Run Output
1 8 2 40 3 50 4 49 5 45 6 15 7 11 9 23 10 28 12 13 14 16 17 18 19 20 21 18 22 13 24 19 25 26 27 29 30 16 31 32 33 25 34 31 35 20 36 37 37 29 38 39 39 26 41 38 42 32 43 14 44 27 46 12 47 36 48 17 1 14 2 48 3 7 4 11 5 29 6 31 8 18 9 43 10 19 12 13 15 16 17 20 21 22 23 24 25 26 26 15 27 28 28 25 30 23 ...
result:
ok Correct! The number of the misses is 780 (85 test cases)
Test #6:
score: 100
Accepted
time: 1ms
memory: 3844kb
First Run Input
prepare 90 HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...
First Run Output
00011110101110010010101100010011010111001011100100 01100001000010100001000001011000001110101000110100 11000011110001110001111111001111011000110001101100 00001010001100010001000000100001010111011001111100 11111010111001010101110110011100100001010011110100 010000101001000011111001100100111001011000000...
Second Run Input
play 90 00011110101110010010101100010011010111001011100100 H. H+ P. P+ B. B+ U. U+ Y. Y+ C. C+ S. S+ I. I+ R. R+ Q. T- E. V- J. L- T. T+ D. G- M. N- E. E+ K. M- M. M+ F. N- N. N+ X. V- V. V+ D. D+ A. F- F. F+ Q. Q+ A. A+ W. L- L. L+ G. G+ J. J+ W. W+ K. K+ O. X- X. X+ O. O! 0110000100001010000100000...
Second Run Output
1 29 2 42 3 23 4 37 5 19 6 31 7 27 8 10 9 32 11 12 13 14 15 16 17 12 18 20 21 22 24 13 25 26 26 21 28 30 30 22 33 34 34 14 35 18 36 38 38 28 39 11 40 36 41 43 43 16 44 20 45 15 46 41 47 25 48 49 49 33 50 48 1 33 2 20 3 43 4 19 5 7 6 12 8 40 9 32 10 24 11 13 14 15 16 17 18 21 22 23 25 18 26 27 28 14 ...
result:
ok Correct! The number of the misses is 822 (90 test cases)
Test #7:
score: 100
Accepted
time: 1ms
memory: 3844kb
First Run Input
prepare 95 CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...
First Run Output
10111111010111011001011000010001001100101011110000 11011000101111101010100101111011100101101001010100 01110100001101001010101111011101000100001101000010 00111000100001001011101001010000001111000110110000 11100010000100001111111000101010101111111111111000 110100001011111011101011010101111011110101011...
Second Run Input
play 95 10111111010111011001011000010001001100101011110000 C. C+ X. X+ K. K+ F. F+ Q. Q+ P. P+ T. T+ E. E+ D. D+ J. G- N. S- I. W- I. I+ L. V- H. J- J. J+ B. M- U. M- M. M+ L. L+ V. V+ Y. O- H. H+ G. G+ N. N+ R. Y- Y. Y+ O. O+ R. R+ S. S+ B. B+ U. U+ W. W+ A. A! 1101100010111110101010010111101110010...
Second Run Output
1 12 2 43 3 37 4 42 5 30 6 36 7 24 8 26 9 18 10 11 13 14 15 16 17 15 19 20 21 22 22 10 23 25 27 28 28 25 29 19 31 20 32 33 34 21 35 11 38 13 39 40 40 32 41 33 44 39 45 14 46 23 47 27 48 16 49 50 1 31 2 49 3 38 4 44 5 47 6 21 7 13 8 32 9 50 10 11 12 14 15 16 17 18 19 16 20 22 23 24 25 26 26 10 27 15 ...
result:
ok Correct! The number of the misses is 873 (95 test cases)
Test #8:
score: 100
Accepted
time: 1ms
memory: 3840kb
First Run Input
prepare 100 NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...
First Run Output
01000100011111010001110000111111001100001011110100 10011111100100000011000011011001010110101011001000 11011000111010100100110010001011001101100010111100 00110101111101011000110101000001111000101011010000 10000001110110110000010010010100100010000110110100 011111011100100101100110000101011010000011100...
Second Run Input
play 100 01000100011111010001110000111111001100001011110100 N. N+ K. K+ X. X+ F. F+ S. S+ W. W+ A. A+ O. O+ B. B+ P. E- J. T- M. V- H. I- P. P+ U. C- G. Q- R. L- C. C+ R. R+ H. H+ Y. V- V. V+ D. M- M. M+ E. E+ T. T+ L. L+ G. G+ I. I+ J. J+ Q. Q+ U. U+ D. D+ Y. Y! 100111111001000000110000110110010101...
Second Run Output
1 35 2 24 3 6 4 7 5 28 8 9 10 41 11 16 12 49 13 14 15 17 18 19 20 21 22 13 23 25 26 27 29 30 31 25 32 29 33 20 34 36 36 19 37 38 38 18 39 14 40 17 42 30 43 26 44 21 45 15 46 27 47 23 48 37 50 34 1 15 2 36 3 14 4 29 5 50 6 17 7 38 8 24 9 11 10 12 13 16 18 19 20 21 21 13 22 23 25 19 26 23 27 28 30 16 ...
result:
ok Correct! The number of the misses is 945 (100 test cases)
Test #9:
score: 100
Accepted
time: 1ms
memory: 3780kb
First Run Input
prepare 100 BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...
First Run Output
11111100100001110111111010011011000101001011110100 01110011101000101001001011000000100100101110010100 00010111001011100101101100011101110010001010000010 01111010010001110100011001100010110000001110110100 01101100101111100100101000101000011011011010011000 110110010110110011000111101001111100000011000...
Second Run Input
play 100 11111100100001110111111010011011000101001011110100 B. B+ U. U+ L. L+ R. R+ J. J+ T. T+ V. V+ X. X+ I. I+ H. F- S. K- O. M- P. W- M. M+ C. G- E. N- N. N+ Y. A- K. K+ Q. Q+ S. S+ P. P+ A. A+ D. E- E. E+ W. W+ H. H+ C. C+ Y. Y+ F. F+ D. D+ O. O+ G. G! 011100111010001010010010110000001001001011...
Second Run Output
1 35 2 24 3 48 4 39 5 42 6 50 7 12 8 32 9 29 10 11 13 14 15 16 17 18 19 16 20 21 22 23 25 23 26 27 28 14 30 31 33 13 34 17 36 27 37 38 38 22 40 18 41 10 43 20 44 26 45 11 46 37 47 15 49 21 1 31 2 32 3 6 4 25 5 48 7 12 8 21 9 13 10 30 11 14 15 16 17 18 19 20 20 15 22 23 24 26 27 22 28 29 33 11 34 35 ...
result:
ok Correct! The number of the misses is 908 (100 test cases)
Test #10:
score: 100
Accepted
time: 1ms
memory: 3792kb
First Run Input
prepare 100 SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...
First Run Output
10011000011001101110101011100101101010011100001100 11101000000111101100111001111111001101100111110000 10000110101010010101100010101110001010000010000010 01100001100111100100000001010100101011011101001100 10111100000000010100110010011110101001101011000000 001111100001010101000110000111110001100011011...
Second Run Input
play 100 10011000011001101110101011100101101010011100001100 S. S+ Q. Q+ R. R+ O. O+ X. X+ G. G+ J. J+ W. W+ F. F+ M. M+ K. U- N. T- E. I- N. N+ L. E- E. E+ V. A- Y. L- L. L+ H. D- H. H+ P. P+ B. C- I. I+ U. U+ Y. Y+ V. V+ C. C+ T. T+ A. A+ D. D+ B. B+ K. K! 111010000001111011001110011111110011011001...
Second Run Output
1 36 2 31 3 20 4 50 5 10 6 9 7 37 8 39 11 40 12 13 14 15 16 17 18 19 21 16 22 23 23 18 24 25 26 27 27 22 28 29 30 28 32 33 34 35 38 19 41 15 42 26 43 24 44 35 45 17 46 25 47 29 48 34 49 14 1 13 2 5 3 9 4 28 6 21 7 8 10 19 11 17 12 43 14 15 16 18 20 22 23 24 25 14 26 27 29 30 30 24 31 23 32 33 33 29 ...
result:
ok Correct! The number of the misses is 913 (100 test cases)
Test #11:
score: 100
Accepted
time: 1ms
memory: 3828kb
First Run Input
prepare 100 RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...
First Run Output
01100010010000110111111000101111011100010100101100 11101111011001010001110000110010110111010000101100 11010110011001010110110100101111010110000001111100 01000100011001101000000111011101000000011111011100 10101101111100010101100101111110110100101010001000 101000111000100101011100011010100010001111101...
Second Run Input
play 100 01100010010000110111111000101111011100010100101100 R. R+ G. G+ F. F+ V. V+ P. P+ I. I+ L. L+ W. W+ O. O+ E. T- B. S- K. H- K. K+ N. C- H. H+ J. X- A. M- X. X+ N. N+ Q. S- S. S+ J. J+ Y. U- D. B- B. B+ M. M+ D. D+ A. A+ E. E+ Y. Y+ Q. Q+ C. C+ T. T+ U. U! 111011110110010100011100001100101101...
Second Run Output
1 39 2 14 3 46 4 10 5 29 6 24 7 16 8 34 9 25 11 12 13 15 17 18 19 17 20 21 22 18 23 26 27 28 30 26 31 20 32 33 33 15 35 23 36 37 38 40 40 13 41 28 42 38 43 27 44 11 45 36 47 32 48 21 49 12 50 37 1 38 2 47 3 35 4 28 5 39 6 24 7 25 8 46 9 36 10 11 12 13 14 15 16 17 18 10 19 20 21 22 22 11 23 26 27 13 ...
result:
ok Correct! The number of the misses is 920 (100 test cases)
Test #12:
score: 100
Accepted
time: 1ms
memory: 3792kb
First Run Input
prepare 100 VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...
First Run Output
00010010001110100001100101001101101110000010010000 10011100001011101100010110111100101010100101011100 01110000100011111011110000100110111101110100000100 10000010000010010011110000010011011010111010000010 01110100101101100011001101100110101010010111110100 001011101000101001000011111010010010010111110...
Second Run Input
play 100 00010010001110100001100101001101101110000010010000 V. V+ J. J+ X. X+ S. S+ D. D+ L. L+ H. H+ P. P+ T. T+ Y. C- W. K- I. G- U. I- I. I+ A. N- A. A+ Y. Y+ M. U- U. U+ W. W+ B. R- R. R+ Q. C- C. C+ E. N- N. N+ E. E+ F. F+ O. K- K. K+ B. B+ G. G+ M. M+ O. O+ Q. Q! 100111000010111011000101101111...
Second Run Output
1 8 2 22 3 19 4 28 5 10 6 17 7 26 9 41 11 36 12 13 14 15 16 18 20 21 21 16 23 24 25 23 27 12 29 30 30 20 31 14 32 33 34 33 35 37 37 13 38 39 39 24 40 38 42 43 44 45 45 15 46 32 47 18 48 29 49 44 50 35 1 43 2 24 3 31 4 26 5 18 6 48 7 30 8 21 9 39 10 11 12 13 13 11 14 15 16 17 19 12 20 22 23 25 27 28 ...
result:
ok Correct! The number of the misses is 934 (100 test cases)
Test #13:
score: 100
Accepted
time: 1ms
memory: 3848kb
First Run Input
prepare 100 MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...
First Run Output
01010101110110100001100010001101001010000110001000 00100000010100111010010101110111001111001011010100 11001101000110011001011111001011101011110110100000 11100111010110100000000001000000001100011111000000 00100000101110111010110011010011111100011001000010 111000110110001111000001010101111000111100010...
Second Run Input
play 100 01010101110110100001100010001101001010000110001000 M. M+ O. O+ H. H+ G. G+ E. E+ A. A+ B. B+ J. J+ D. D+ X. Q- Y. V- S. P- K. W- N. V- V. V+ T. C- P. P+ L. W- W. W+ S. S+ Q. Q+ R. F- K. K+ U. N- N. N+ U. U+ T. T+ L. L+ C. C+ X. X+ Y. Y+ I. F- F. F+ I. I+ R. R! 001000000101001110100101011101...
Second Run Output
1 14 2 22 3 39 4 49 5 34 6 46 7 20 8 13 9 10 11 12 15 16 17 18 19 21 23 24 24 16 25 26 27 18 28 29 29 21 30 17 31 12 32 33 35 19 36 37 37 23 38 36 40 25 41 28 42 26 43 11 44 15 45 47 47 33 48 45 50 32 1 32 2 34 3 28 4 50 5 14 6 22 7 40 8 15 9 12 10 11 13 16 17 18 19 13 20 21 23 24 25 26 27 29 29 24 ...
result:
ok Correct! The number of the misses is 936 (100 test cases)
Test #14:
score: 100
Accepted
time: 1ms
memory: 3856kb
First Run Input
prepare 100 KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...
First Run Output
10001111111100000100011110101111111100101001000000 01110110000100011010110000000111000111110110000010 10011110111001110101100101111001010111000000000010 01011111011010001001001111110111110011111000101000 10111111000000011110001001011011110011100000100010 010110010101001011111011010001101010101101001...
Second Run Input
play 100 10001111111100000100011110101111111100101001000000 K. K+ V. V+ F. F+ H. H+ J. J+ E. E+ T. T+ M. M+ U. U+ G. Y- I. I+ N. C- N. N+ C. C+ X. O- S. B- L. A- A. A+ Q. R- R. R+ D. P- X. X+ W. D- D. D+ P. P+ Q. Q+ Y. Y+ W. W+ O. O+ L. L+ S. S+ B. B+ G. G! 011101100001000110101100000001110001111101...
Second Run Output
1 3 2 34 4 24 5 35 6 36 7 29 8 23 9 46 10 37 11 12 13 14 15 16 17 15 18 16 19 20 21 22 25 26 27 26 28 30 31 30 32 33 38 19 39 40 40 32 41 33 42 28 43 12 44 39 45 20 47 25 48 21 49 22 50 11 1 48 2 27 3 38 4 11 5 21 6 28 7 17 8 41 9 42 10 12 13 14 15 16 16 12 18 19 20 10 22 15 23 24 25 26 26 24 29 30 ...
result:
ok Correct! The number of the misses is 927 (100 test cases)
Test #15:
score: 100
Accepted
time: 1ms
memory: 3792kb
First Run Input
prepare 100 HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...
First Run Output
01011001110001100110011011110100011100011100100000 01110110111111001110111101101010001110111000010000 10110100011001110001010100100010011000010000010000 01111011101101110010010110011001011010100111111100 01101100101111010000101110010101101000001101011100 100100100101111110100111101101100111011001101...
Second Run Input
play 100 01011001110001100110011011110100011100011100100000 H. H+ X. X+ K. K+ Q. Q+ J. J+ L. L+ C. C+ S. S+ A. A+ E. P- N. T- B. U- F. W- E. E+ U. U+ T. T+ D. P- P. P+ R. R+ D. D+ M. G- O. M- M. M+ B. B+ F. F+ W. W+ V. V+ O. O+ N. N+ Y. Y+ I. G- G. G+ I. I! 011101101111110011101111011010100011101110...
Second Run Output
1 5 2 25 3 33 4 30 6 49 7 42 8 40 9 35 10 13 11 12 14 15 16 17 18 19 20 11 21 17 22 15 23 24 24 12 26 27 28 23 29 31 32 34 34 29 36 16 37 18 38 19 39 41 43 32 44 14 45 46 47 48 48 31 50 47 1 7 2 50 3 30 4 29 5 17 6 37 8 25 9 48 10 28 11 12 13 14 15 16 18 19 20 21 22 12 23 15 24 26 27 31 31 13 32 27 ...
result:
ok Correct! The number of the misses is 937 (100 test cases)
Test #16:
score: 100
Accepted
time: 1ms
memory: 3772kb
First Run Input
prepare 100 SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...
First Run Output
00111100011011111100101001111100001101100000110000 11011101011111110110010011101101001000100101111000 11011110010011010010010010001111010000011001011100 01101111110101010101101111100101101101100111110100 11101101110101011100110100011000100110101110011000 110100010011011100011010011001010000010001010...
Second Run Input
play 100 00111100011011111100101001111100001101100000110000 S. S+ C. C+ M. M+ K. K+ N. N+ X. X+ O. O+ I. I+ G. G+ Y. F- E. R- V. P- A. E- E. E+ U. Q- H. D- U. U+ L. F- F. F+ W. T- L. L+ R. R+ J. P- P. P+ H. H+ B. B+ Y. Y+ J. J+ T. T+ D. D+ V. V+ Q. Q+ W. W+ A. A! 110111010111111101100100111011010010...
Second Run Output
1 10 2 30 3 35 4 34 5 11 6 13 7 38 8 32 9 43 12 14 15 16 17 18 19 20 20 15 21 22 23 24 25 21 26 27 27 14 28 29 31 26 33 16 36 37 37 18 39 23 40 41 42 12 44 36 45 29 46 24 47 17 48 22 49 28 50 19 1 23 2 33 3 38 4 20 5 27 6 12 7 48 8 19 9 30 10 11 13 14 15 16 17 18 21 22 24 25 25 15 26 28 29 10 31 16 ...
result:
ok Correct! The number of the misses is 933 (100 test cases)
Test #17:
score: 100
Accepted
time: 1ms
memory: 3852kb
First Run Input
prepare 100 NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...
First Run Output
10011000011101101110110011111010111110001100000000 00010001111011010001011110111100111110010110000010 10010011001100000001010011000010100100100010000100 01110011100000110001110110010110111110001111100100 10010000110011001111110011010101001010101001010100 101101100011111000010100110000001010110110101...
Second Run Input
play 100 10011000011101101110110011111010111110001100000000 N. N+ O. O+ D. D+ H. H+ V. V+ L. L+ K. K+ I. I+ U. U+ A. Y- T. X- E. B- R. P- A. A+ P. P+ W. X- X. X+ G. Y- Y. Y+ J. B- B. B+ M. R- R. R+ S. S+ G. G+ F. Q- M. M+ F. F+ W. W+ Q. Q+ T. T+ C. J- J. J+ E. E+ C. C! 000100011110110100010111101111...
Second Run Output
1 2 3 29 4 49 5 25 6 11 7 44 8 35 9 38 10 37 12 13 14 15 16 17 18 19 20 12 21 19 22 23 23 15 24 26 26 13 27 28 28 17 30 31 31 18 32 33 34 24 36 39 40 30 41 36 42 22 43 39 45 14 46 47 47 27 48 16 50 46 1 48 2 24 3 42 4 10 5 31 6 16 7 28 8 20 9 32 11 12 13 14 15 17 18 17 19 21 21 12 22 23 25 26 27 29 ...
result:
ok Correct! The number of the misses is 926 (100 test cases)