QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#173950 | #7186. "Memo" Game With a Hint | ucup-team197# | AC ✓ | 2ms | 3880kb | C++20 | 4.1kb | 2023-09-10 03:04:16 | 2023-09-10 03:04:17 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
template<class T> void check_min(T &a, const T &b){ a = (a < b) ? a : b; }
template<class T> void check_max(T &a, const T &b){ a = (a > b) ? a : b; }
#define all(x) (x).begin(), (x).end()
void prepare(){
string s;
cin >> s;
vector<vector<int>> v(26);
for(int i = 0; i < (int)s.size(); ++i)
v[s[i] - 'A'].push_back(i);
auto encode = [](int x){
string s = "";
for(int i = 0; i < 6; ++i){
s += (x & 1) + '0';
x /= 2;
}
return s;
};
string ans = "";
for(int i = 0; i < 4; ++i){
ans += encode(v[i][0]);
ans += encode(v[i][1]);
}
while(ans.size() < 50)
ans += "0";
cout << ans << endl;
}
void check_response(string response){
if(response[0] == '#')
exit(0);
}
void play(){
string hint;
cin >> hint;
int ptr = 0;
auto decode = [&](){
int x = 0;
for(int i = 0; i < 6; ++i){
x += (hint[ptr + i] - '0') << i;
}
ptr += 6;
return x;
};
vector<pair<int, int>> v;
for(int i = 0; i < 4; ++i){
pair<int, int> p;
p.first = decode() + 1;
p.second = decode() + 1;
v.push_back(p);
}
map<int, char> table;
set<int> unknown, known;
for(int i = 1; i <= 50; ++i)
unknown.insert(i);
for(auto [l, r]: v){
unknown.erase(l);
unknown.erase(r);
string response;
cout << l << endl;
cin >> response;
check_response(response);
cout << r << endl;
cin >> response;
check_response(response);
}
while(!known.empty() || !unknown.empty()){
/*cout << "known ";
for(int x: known)
cout << x << " ";
cout << endl;
cout << "unknown ";
for(int x: unknown)
cout << x << " ";
cout << endl; */
string response;
if(unknown.size() == 1){
cout << (*unknown.begin()) << endl;
cin >> response;
check_response(response);
cout << (*known.begin()) << endl;
cin >> response;
check_response(response);
break;
}
int l = *unknown.begin();
unknown.erase(l);
cout << l << endl;
cin >> response;
check_response(response);
table[l] = response[0];
bool found = false;
for(int x: known){
if(table[x] == table[l]){
found = true;
known.erase(x);
cout << x << endl;
cin >> response;
check_response(response);
break;
}
}
if(found)
continue;
int r = *unknown.begin();
unknown.erase(r);
cout << r << endl;
cin >> response;
check_response(response);
table[r] = response[0];
if(response[1] == '!')
break;
if(response[1] == '+')
continue;
bool ok = false;
for(int y: vector<int>{l, r}){
for(int x: known){
if(table[x] == table[y]){
ok = true;
cout << x << endl;
cin >> response;
check_response(response);
cout << y << endl;
cin >> response;
check_response(response);
known.erase(x);
break;
}
}
if(!ok)
known.insert(y);
}
}
}
int main(){
ios::sync_with_stdio(false);
cin.tie(NULL);
string mode;
cin >> mode;
if(mode == "prepare"){
int t;
cin >> t;
while(t--)
prepare();
}
else{
int t;
cin >> t;
while(t--)
play();
}
}
/*
play
1
hint
1
A.
2
B-
3
A.
1
A+
5
C.
6
B-
2
B.
6
B+
0
*/
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 1ms
memory: 3640kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
00000010011010000001011001000011011011000000111000 00000010000001000011000000100010100001100011100000
Second Run Input
play 2 00000010011010000001011001000011011011000000111000 A. A+ B. B+ C. C+ D. D+ E. F- G. H- I. J- K. L- M. N- O. P- Q. R- S. T- U. V- W. X- Y. E- E. E+ F. F+ G. G+ H. H+ I. I+ 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! 00000010000001000011000000...
Second Run Output
1 26 2 27 3 28 4 29 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 30 5 30 31 6 32 7 33 8 34 9 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...
result:
ok Correct! The number of the misses is 11 (2 test cases)
Test #2:
score: 100
Accepted
time: 1ms
memory: 3640kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
11101000000100111000001111010001110010100100010100
Second Run Input
play 1 11101000000100111000001111010001110010100100010100 A. A+ B. B+ C. C+ D. D+ F. N- E. T- F. F+ O. M- M. M+ J. T- T. T+ Y. X- K. R- Y. Y+ L. G- X. X+ K. K+ S. P- I. V- Q. N- N. N+ U. R- R. R+ J. J+ P. P+ Q. Q+ H. U- U. U+ W. S- S. S+ W. W+ V. V+ I. I+ H. H+ G. G+ E. E+ L. L+ O. O!
Second Run Output
24 33 29 49 12 15 38 41 1 2 3 4 5 1 6 7 8 7 9 10 4 10 11 13 14 16 17 11 18 19 20 13 21 14 22 23 25 26 27 28 2 28 30 31 16 31 32 9 34 23 35 27 36 37 30 37 39 40 22 40 42 39 43 26 44 25 45 36 46 19 47 3 48 18 50 6
result:
ok Correct! The number of the misses is 13 (1 test case)
Test #3:
score: 100
Accepted
time: 1ms
memory: 3612kb
First Run Input
prepare 50 FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...
First Run Output
01000000110110110001111000010000101010000001110100 01100000110001000001111001110001000111101000111000 00000010010011110010100101010001001001011001100100 00110010101000101010111000000010010001110000111000 00110000111011011001110100101011101001110011001000 001010000001100110110001110000101010010000101...
Second Run Input
play 50 01000000110110110001111000010000101010000001110100 A. A+ B. B+ C. C+ D. D+ F. V- H. J- W. I- N. E- L. M- T. Q- G. P- M. M+ H. H+ Y. S- T. T+ U. U+ K. W- W. W+ O. Y- Y. Y+ J. J+ N. N+ R. L- L. L+ G. G+ E. E+ F. F+ X. X+ S. S+ I. I+ V. V+ O. O+ Q. Q+ R. R+ K. K+ P. P! 0110000011000100000111100...
Second Run Output
3 45 14 31 9 21 2 47 1 4 5 6 7 8 10 11 12 13 15 16 17 18 19 13 20 5 22 23 24 15 25 26 27 28 7 28 29 30 22 30 32 6 33 10 34 35 12 35 36 17 37 11 38 1 39 40 41 23 42 8 43 4 44 29 46 16 48 34 49 27 50 18 7 13 3 31 15 35 24 29 1 2 4 5 6 8 4 8 9 10 11 12 5 12 14 16 17 18 19 20 21 22 6 22 23 25 26 21 27 2...
result:
ok Correct! The number of the misses is 615 (50 test cases)
Test #4:
score: 100
Accepted
time: 2ms
memory: 3640kb
First Run Input
prepare 75 EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...
First Run Output
10000010110100000110000100001000101010010011100100 01000111000111011010001100000001100111010010101000 11110000111000000101110110110011001001001010010100 10000100001101100000100110001001111010100000110100 11000010101010000001001001000100001101100011110100 010010010101110110111110010001110001101100101...
Second Run Input
play 75 10000010110100000110000100001000101010010011100100 A. A+ B. B+ C. C+ D. D+ E. H- S. M- U. J- L. V- P. N- L. L+ E. E+ K. P- P. P+ N. N+ I. I+ F. R- T. M- M. M+ H. H+ Y. W- V. V+ S. S+ T. T+ Q. W- W. W+ R. R+ X. K- K. K+ F. F+ X. X+ O. J- J. J+ Q. Q+ U. U+ G. G+ O. O+ Y. Y! 0100011100011101101...
Second Run Output
2 46 33 34 17 21 10 40 1 3 4 5 6 7 8 9 11 12 13 8 14 1 15 16 11 16 18 12 19 20 22 23 24 25 5 25 26 3 27 28 29 9 30 4 31 24 32 35 28 35 36 23 37 38 15 38 39 22 41 37 42 43 7 43 44 32 45 6 47 48 49 42 50 27 35 36 28 50 1 39 12 22 2 3 4 5 6 7 8 9 10 11 13 14 15 16 13 16 17 18 19 14 20 17 21 18 23 24 7 ...
result:
ok Correct! The number of the misses is 918 (75 test cases)
Test #5:
score: 100
Accepted
time: 2ms
memory: 3588kb
First Run Input
prepare 85 RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...
First Run Output
01100001010000110010101010001000101001011011010100 11111000000100101010100100100000111011101000001100 01001011110100100101010101000010011000010100110100 01011010000110000010010000111010100111011000100100 01010001001010110010011010100011101001110000001000 101000011101011010110110100110100101001110101...
Second Run Input
play 85 01100001010000110010101010001000101001011011010100 A. A+ B. B+ C. C+ D. D+ R. S- H. X- L. I- R. R+ G. T- N. O- I. I+ M. V- Q. U- G. G+ Q. Q+ W. E- T. T+ P. M- M. M+ Y. J- W. W+ Y. Y+ U. U+ F. P- P. P+ K. E- E. E+ S. S+ K. K+ J. J+ O. O+ L. L+ N. N+ F. F+ V. V+ X. X+ H. H! 1111100000010010101...
Second Run Output
7 11 13 22 18 21 27 44 1 2 3 4 5 6 8 1 9 10 12 14 15 6 16 17 19 20 23 9 24 19 25 26 28 10 29 30 16 30 31 32 33 25 34 31 35 20 36 37 29 37 38 39 26 39 40 2 41 38 42 32 43 14 45 5 46 12 47 36 48 17 49 4 50 3 32 33 21 38 5 29 24 49 1 2 3 4 6 7 3 7 8 9 10 11 4 11 12 13 14 1 15 16 17 18 8 18 19 10 20 22 ...
result:
ok Correct! The number of the misses is 1042 (85 test cases)
Test #6:
score: 100
Accepted
time: 0ms
memory: 3644kb
First Run Input
prepare 90 HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...
First Run Output
11000111100101000001101010100001111010001001000100 10011001111001000110110110100011010000000000000100 11011010110101101000111001110011101001000011111000 01001001010100000010110100100111110110101001100100 10011001100110110011111000010001001010100001100000 111110010101101101111101001100011010000001000...
Second Run Input
play 90 11000111100101000001101010100001111010001001000100 A. A+ B. B+ C. C+ D. D+ H. P- U. Y- S. I- R. I- I. I+ Q. T- E. V- J. L- T. T+ Y. Y+ G. M- N. E- E. E+ K. M- M. M+ S. S+ F. H- H. H+ N. N+ R. R+ X. V- V. V+ U. U+ F. F+ Q. Q+ W. P- P. P+ L. L+ G. G+ J. J+ W. W+ K. K+ O. X- X. X+ O. O! 1001100...
Second Run Output
36 40 3 23 6 31 18 35 1 2 4 5 7 8 9 10 8 10 11 12 13 14 15 16 17 12 19 5 20 21 22 24 13 24 25 26 21 26 27 7 28 29 1 29 30 22 32 9 33 34 14 34 37 4 38 28 39 11 41 42 2 42 43 16 44 20 45 15 46 41 47 25 48 49 33 49 50 48 26 31 35 46 6 12 1 33 2 3 4 5 7 5 8 9 10 11 13 14 15 16 17 18 19 4 20 2 21 22 23 2...
result:
ok Correct! The number of the misses is 1108 (90 test cases)
Test #7:
score: 100
Accepted
time: 2ms
memory: 3640kb
First Run Input
prepare 95 CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...
First Run Output
00001110001101101010110100000011010000010010001000 10101000010100100001110111010000111000000001111000 11000000010010010000000101001011101000100000010100 10111000110101001000101011010011100111000011001000 00111010110110111011110111110011100110010010010100 100001101101000100011100101100001101000010101...
Second Run Input
play 95 00001110001101101010110100000011010000010010001000 A. A+ B. B+ C. C+ D. D+ X. K- F. Q- P. T- E. J- G. N- S. I- W. I- I. I+ L. V- H. J- J. J+ T. T+ M. E- E. E+ U. M- M. M+ L. L+ Q. Q+ V. V+ Y. O- H. H+ G. G+ P. P+ K. K+ N. N+ R. Y- Y. Y+ O. O+ F. F+ X. X+ R. R+ S. S+ U. U+ W. W! 1010100001010...
Second Run Output
49 50 23 46 1 12 9 18 2 3 4 5 6 7 8 10 11 13 14 15 16 17 15 17 19 20 21 22 10 22 24 7 25 26 8 26 27 28 25 28 29 19 30 5 31 20 32 33 34 21 35 11 36 6 37 3 38 13 39 40 32 40 41 33 42 4 43 2 44 39 45 14 47 27 48 16 22 41 5 47 12 29 1 31 2 3 4 6 7 8 9 10 11 13 7 13 14 15 16 17 18 19 16 19 20 21 6 21 23 ...
result:
ok Correct! The number of the misses is 1170 (95 test cases)
Test #8:
score: 100
Accepted
time: 2ms
memory: 3580kb
First Run Input
prepare 100 NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...
First Run Output
10010000010111010000001100011001111000100111110100 11010010110100110000101001001000011000100010001100 11100010010010000010110001100011010101010111110100 00110011110010000001000001100001010001000110110100 11000001100110101010110100110010001001011001000100 000010101010101110110101001100101001110000011...
Second Run Input
play 100 10010000010111010000001100011001111000100111110100 A. A+ B. B+ C. C+ D. D+ N. K- X. F- S. X- X. X+ F. F+ W. W+ O. P- E. J- O. O+ T. M- V. H- I. P- P. P+ U. K- K. K+ G. Q- S. S+ R. L- R. R+ H. H+ Y. N- N. N+ V. V+ M. M+ E. E+ T. T+ L. L+ G. G+ I. I+ J. J+ Q. Q+ U. U+ Y. Y! 110100101101001100...
Second Run Output
10 41 12 49 25 31 37 48 1 2 3 4 5 6 3 6 7 4 8 9 11 13 14 15 16 11 17 18 19 20 21 22 13 22 23 24 2 24 26 27 28 5 29 30 32 29 33 20 34 35 1 35 36 19 38 18 39 14 40 17 42 30 43 26 44 21 45 15 46 27 47 23 50 34 12 46 13 21 19 25 5 50 1 2 3 4 6 7 8 9 10 11 9 11 14 3 15 1 16 17 6 17 18 20 22 23 24 8 26 23...
result:
ok Correct! The number of the misses is 1252 (100 test cases)
Test #9:
score: 100
Accepted
time: 1ms
memory: 3880kb
First Run Input
prepare 100 BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...
First Run Output
01011011000100000001000111001001010100100110110100 00010000110000111011000111101001100100100110001100 11000010001110100010111000001000100110100101100100 11100111010110010000000100011000001101111000110100 10000101000101010001010110001000001111000001110100 111100100010111000101001111010001101101100010...
Second Run Input
play 100 01011011000100000001000111001001010100100110110100 A. A+ B. B+ C. C+ D. D+ U. L- R. J- T. V- X. I- H. F- V. V+ S. K- O. M- P. W- M. M+ G. E- N. U- U. U+ N. N+ Y. K- K. K+ I. I+ Q. Q+ X. X+ S. S+ P. P+ E. E+ R. R+ W. W+ H. H+ J. J+ Y. Y+ F. F+ O. O+ L. L+ G. G+ T. T! 000100001100001110110001...
Second Run Output
27 36 1 35 20 43 37 46 2 3 4 5 6 7 8 9 10 11 12 7 13 14 15 16 17 18 19 16 21 22 23 24 2 24 25 23 26 28 14 28 29 9 30 31 32 8 33 13 34 17 38 22 39 4 40 18 41 10 42 5 44 26 45 11 47 15 48 3 49 21 50 6 9 13 29 36 24 39 37 50 1 2 3 4 5 6 3 6 7 8 10 11 12 7 14 15 16 17 18 17 19 20 15 20 21 8 22 23 25 4 2...
result:
ok Correct! The number of the misses is 1219 (100 test cases)
Test #10:
score: 100
Accepted
time: 2ms
memory: 3580kb
First Run Input
prepare 100 SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...
First Run Output
00011010110110000111110101000111010100111001110100 00111000000111001000100111000011011010001010001100 11000001000101010010101011100000010011000101010100 11110000000101110010101000110011010100100011111000 00000011000001010011110011101011100111010011011000 100110100011001001010101011110101101011100111...
Second Run Input
play 100 00011010110110000111110101000111010100111001110100 A. A+ B. B+ C. C+ D. D+ S. Q- R. O- X. G- J. W- G. G+ X. X+ F. M- M. M+ K. U- N. T- E. I- R. R+ N. N+ L. E- E. E+ V. Y- L. L+ H. H+ Q. Q+ P. P+ S. S+ J. J+ I. I+ W. W+ F. F+ U. U+ Y. Y+ V. V+ T. T+ K. K+ O. O! 001110000001110010001001110000...
Second Run Output
25 46 34 48 35 44 29 47 1 2 3 4 5 6 7 8 9 6 10 5 11 12 13 12 14 15 16 17 18 19 20 3 21 16 22 23 18 23 24 26 27 22 28 30 31 2 32 33 36 1 37 7 38 19 39 8 40 11 41 15 42 26 43 24 45 17 49 14 50 4 29 33 20 37 4 28 18 50 1 2 3 5 2 5 6 7 8 7 9 3 10 11 12 13 1 13 14 15 16 17 11 17 19 10 21 6 22 23 24 25 14...
result:
ok Correct! The number of the misses is 1237 (100 test cases)
Test #11:
score: 100
Accepted
time: 1ms
memory: 3652kb
First Run Input
prepare 100 RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...
First Run Output
01011001010100110011100100101011110110100110010100 10011000110100100110010101100000011000001001111000 10111000000111010000010111001001000110001001101000 01000100100100000011010110110000010111110011100100 00000101100111010011000111001010111010001000111000 000001011101001010100110010110010001101010110...
Second Run Input
play 100 01011001010100110011100100101011110110100110010100 A. A+ B. B+ C. C+ D. D+ R. G- F. V- P. I- L. W- O. V- V. V+ E. T- G. G+ S. L- L. L+ K. H- K. K+ N. H- H. H+ J. I- I. I+ O. O+ X. M- P. P+ X. X+ N. N+ Q. S- S. S+ W. W+ J. J+ Y. U- R. R+ M. M+ E. E+ Y. Y+ F. F+ Q. Q+ T. T+ U. U! 100110001101...
Second Run Output
27 43 13 40 21 48 38 42 1 2 3 4 5 6 7 8 9 10 4 10 11 12 14 2 15 16 7 16 17 18 19 17 20 22 18 22 23 24 6 24 25 9 26 28 29 5 30 26 31 20 32 33 15 33 34 8 35 23 36 37 39 1 41 28 44 11 45 36 46 3 47 32 49 12 50 37 26 45 37 42 7 25 17 31 1 2 3 4 5 6 8 9 10 11 12 13 14 15 16 18 10 18 19 20 21 22 11 22 23 ...
result:
ok Correct! The number of the misses is 1240 (100 test cases)
Test #12:
score: 100
Accepted
time: 1ms
memory: 3648kb
First Run Input
prepare 100 VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...
First Run Output
01101000011011111010110100110000100100100010010000 01000001111000000001010100011011011011111011000100 00000110000110011010110100010011100111100010110000 01111000110110000010001011001001000100100101010100 00100010010011100010001001101000110101010011011000 101010111101110100010010001010010110100101110...
Second Run Input
play 100 01101000011011111010110100110000100100100010010000 A. A+ B. B+ C. C+ D. D+ V. J- X. S- L. H- V. V+ P. T- Y. W- K. I- L. L+ G. X- X. X+ U. I- I. I+ J. J+ N. H- H. H+ Y. Y+ S. S+ M. U- U. U+ W. W+ R. R+ Q. T- T. T+ E. N- N. N+ E. E+ P. P+ F. F+ O. K- K. K+ G. G+ M. M+ O. O+ Q. Q! 010000011110...
Second Run Output
23 25 32 46 13 37 5 10 1 2 3 4 6 7 8 1 9 11 12 14 15 16 17 6 18 19 3 19 20 21 16 21 22 2 24 26 7 26 27 12 28 4 29 30 20 30 31 14 33 34 35 36 11 36 38 39 24 39 40 38 41 9 42 43 44 45 15 45 47 18 48 29 49 44 50 35 3 31 1 43 25 28 32 36 2 4 5 6 7 8 9 10 11 12 13 11 14 15 16 17 18 5 19 12 20 21 8 21 22 ...
result:
ok Correct! The number of the misses is 1259 (100 test cases)
Test #13:
score: 100
Accepted
time: 0ms
memory: 3584kb
First Run Input
prepare 100 MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...
First Run Output
10100010110101100011001010011010010100010010010000 11101000111010001001100111001000110111000010001100 11100000010001000001110111001011111001010011101000 11011011010110110011100100100011111010100011101000 00000011110111010010101001100010000100111010010100 011000010100001000000110110100100011100001110...
Second Run Input
play 100 10100010110101100011001010011010010100010010010000 A. A+ B. B+ C. C+ D. D+ M. O- H. G- E. J- X. Q- J. J+ M. M+ Y. V- S. P- K. W- O. O+ N. V- V. V+ T. P- P. P+ L. W- W. W+ S. S+ Q. Q+ R. F- E. E+ K. K+ U. N- N. N+ U. U+ H. H+ T. T+ L. L+ X. X+ Y. Y+ I. F- F. F+ I. I+ G. G+ R. R! 111010001110...
Second Run Output
6 46 7 20 26 42 9 10 1 2 3 4 5 8 11 12 13 8 14 1 15 16 17 18 19 21 22 2 23 24 16 24 25 27 18 27 28 29 21 29 30 17 31 12 32 33 34 5 35 19 36 37 23 37 38 36 39 3 40 25 41 28 43 11 44 15 45 47 33 47 48 45 49 4 50 32 24 29 18 39 20 45 4 50 1 2 3 5 6 7 8 9 10 11 12 9 13 14 5 14 15 8 16 17 19 13 21 22 6 2...
result:
ok Correct! The number of the misses is 1236 (100 test cases)
Test #14:
score: 100
Accepted
time: 2ms
memory: 3588kb
First Run Input
prepare 100 KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...
First Run Output
10011001011010101000001111110010001011111011100100 00100000101001100000001000111001111000010010010100 11110000000111101011110101110001001011000011010100 00000011110001100110010110010010110101110000001100 00110011000100111000000101001000100110011001110100 100000010010001010010101000000001000110010011...
Second Run Input
play 100 10011001011010101000001111110010001011111011100100 A. A+ B. B+ C. C+ D. D+ K. V- K. K+ F. H- J. E- T. M- U. G- Y. I- I. I+ N. N+ X. O- S. T- T. T+ F. F+ L. Q- E. E+ R. R+ P. V- V. V+ H. H+ J. J+ U. U+ X. X+ W. P- P. P+ Q. Q+ Y. Y+ W. W+ O. O+ M. M+ L. L+ S. S+ G. G! 001000001010011000000010...
Second Run Output
26 27 22 49 16 18 32 40 1 2 3 1 4 5 6 7 8 9 10 11 12 13 14 13 15 17 19 20 21 23 8 23 24 4 25 28 29 7 30 31 33 34 2 34 35 5 36 6 37 10 38 19 39 41 33 41 42 28 43 12 44 39 45 20 46 9 47 25 48 21 50 11 5 21 7 17 29 31 9 42 1 2 3 4 6 8 10 11 4 11 12 13 14 15 16 12 18 19 20 10 22 15 23 24 25 26 24 26 27 ...
result:
ok Correct! The number of the misses is 1233 (100 test cases)
Test #15:
score: 100
Accepted
time: 2ms
memory: 3532kb
First Run Input
prepare 100 HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...
First Run Output
10010000110011110011000111100011100101101011011000 01000010111000100000001000110001111001110001101000 11100001010001000110110110010011000100110101110100 11010011000101101011110100011000100100010001000100 10000111010101000010001010110001100110100100001100 001010011101101100100101011110111110001100001...
Second Run Input
play 100 10010000110011110011000111100011100101101011011000 A. A+ B. B+ C. C+ D. D+ H. X- K. Q- H. H+ J. L- S. E- P. N- T. U- F. W- E. E+ U. U+ T. T+ P. P+ X. X+ R. R+ M. Q- Q. Q+ G. O- K. K+ M. M+ S. S+ F. F+ W. W+ V. V+ L. L+ O. O+ N. N+ Y. Y+ I. G- G. G+ J. J+ I. I! 010000101110001000000010001100...
Second Run Output
10 13 16 36 8 40 23 28 1 2 3 4 5 1 6 7 9 11 12 14 15 17 18 19 20 11 21 17 22 15 24 12 25 2 26 27 29 30 4 30 31 32 33 3 34 29 35 9 37 18 38 19 39 41 42 7 43 32 44 14 45 46 47 48 31 48 49 6 50 47 3 30 5 17 13 31 15 23 1 2 4 6 7 1 8 9 10 11 12 14 16 18 19 20 21 22 12 22 24 25 8 25 26 27 28 10 29 4 32 2...
result:
ok Correct! The number of the misses is 1254 (100 test cases)
Test #16:
score: 100
Accepted
time: 2ms
memory: 3584kb
First Run Input
prepare 100 SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...
First Run Output
01001010001111100100010110000010111011101010110100 01000010100111011001010110000111100101010011111000 01101011100111001010011001111011110110010010110000 01111011111010010000001111110011101011100010100100 10101000011001011011011001010011110101110011100100 100010100011110000010010010100011100000100101...
Second Run Input
play 100 01001010001111100100010110000010111011101010110100 A. A+ B. B+ C. C+ D. D+ S. M- K. N- X. O- I. G- S. S+ N. N+ Y. X- X. X+ F. E- R. V- P. E- E. E+ U. Q- H. U- U. U+ L. F- F. F+ W. T- L. L+ I. I+ R. R+ K. K+ M. M+ J. P- P. P+ O. O+ H. H+ Y. Y+ G. G+ J. J+ T. T+ V. V+ Q. Q+ W. W! 010000101001...
Second Run Output
19 50 40 41 2 30 24 46 1 3 4 5 6 7 8 9 10 1 11 5 12 13 6 13 14 15 16 17 18 20 15 20 21 22 23 25 21 25 26 27 14 27 28 29 31 26 32 8 33 16 34 4 35 3 36 37 18 37 38 7 39 23 42 12 43 9 44 36 45 29 47 17 48 22 49 28 3 38 28 43 34 40 11 32 1 2 4 5 6 7 8 9 10 12 6 12 13 14 15 16 17 18 19 8 20 4 21 22 23 1 ...
result:
ok Correct! The number of the misses is 1243 (100 test cases)
Test #17:
score: 100
Accepted
time: 2ms
memory: 3640kb
First Run Input
prepare 100 NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...
First Run Output
11010011001000001011011010110110001111000000001100 10000011101011100011001010000111100101010100001100 11110001011001000011000011100101010111000100110100 01000000110000100010010101110001110111001001000100 11110010111000100001101011000110110111111000000100 000101011101011110010101000110110110011010111...
Second Run Input
play 100 11010011001000001011011010110110001111000000001100 A. A+ B. B+ C. C+ D. D+ N. N+ O. H- V. L- K. I- U. V- V. V+ Y. T- X. E- R. P- P. P+ W. X- X. X+ G. H- H. H+ Y. Y+ J. O- O. O+ M. R- R. R+ S. S+ G. G+ K. K+ F. U- U. U+ I. I+ Q. M- M. M+ F. F+ W. W+ Q. Q+ L. L+ T. T+ J. J+ E. E! 100000111010...
Second Run Output
12 20 17 28 46 50 4 49 1 2 3 5 6 7 8 9 10 11 6 11 13 14 15 16 18 19 21 19 22 23 15 23 24 25 5 25 26 13 27 29 3 29 30 31 18 31 32 33 34 24 35 8 36 37 10 37 38 9 39 40 30 40 41 36 42 22 43 39 44 7 45 14 47 27 48 16 2 24 8 20 34 40 43 49 1 3 4 5 6 7 9 10 4 10 11 12 13 14 15 16 6 16 17 18 19 21 12 21 22...
result:
ok Correct! The number of the misses is 1228 (100 test cases)