QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#281340 | #7186. "Memo" Game With a Hint | ikaurov# | AC ✓ | 1ms | 3884kb | C++20 | 3.1kb | 2023-12-10 02:59:02 | 2023-12-10 02:59:03 |
Judging History
answer
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef vector<int> vi;
typedef vector<long long> vll;
typedef pair<int, int> pii;
typedef pair<ll, ll> pll;
typedef pair<double, double> pdd;
typedef long double ld;
const ld PI = acosl(-1);
const ll mod7 = 1e9 + 7;
const ll mod9 = 998244353;
const ll INF = 2 * 1024 * 1024 * 1023;
const char nl = '\n';
#define forn(i, n) for (int i = 0; i < int(n); i++)
#define all(v) v.begin(),v.end()
#pragma GCC optimize("O2")
// #pragma GCC target("avx2,bmi,bmi2,lzcnt,popcnt")
#include <ext/pb_ds/assoc_container.hpp>
#include <ext/pb_ds/tree_policy.hpp>
using namespace __gnu_pbds;
template<class T> using ordered_set = tree<T, null_type , less<T> , rb_tree_tag , tree_order_statistics_node_update>;
ll l, r, k, n, m, p, q, u, v, w, x, y, z;
string s, t;
vi d4x = {1, 0, -1, 0};
vi d4y = {0, 1, 0, -1};
vi d8x = {1, 0, -1, 0, 1, 1, -1, -1};
vi d8y = {0, 1, 0, -1, 1, -1, 1, -1};
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
string type;
bool multiTest = 1;
void solve(int tt) {
string z;
if(type == "prepare") {
cin >> s;
int ptr = 0;
vi found(50, 0);
string ans;
forn(i, 8) {
while(found[ptr]) ptr++;
int pos;
for(int j = ptr+1; j < 50; j++) {
if(s[ptr] == s[j]) pos = j;
}
for(int i = 5; i > -1; i--) {
if(pos & (1 << i)) ans += '1';
else ans += '0';
}
found[ptr] = 1;
found[pos] = 1;
}
ans += "00";
cout << ans << nl;
return;
}
cin >> s;
int ptr = 0;
vi visited(50, 0);
forn(i, 8) {
while(visited[ptr]) ptr++;
int pos = 0;
for(int j = 5; j >= 0; j--) {
if(s[6*i + 5 - j] == '1') pos += (1 << j);
}
cout << ptr + 1 << endl;
cin >> z;
if(z == "##") exit(0);
cout << pos + 1 << endl;
cin >> z;
if(z == "##") exit(0);
visited[ptr] = 1;
visited[pos] = 1;
}
vi positions;
forn(i, 50) if(!visited[i]) positions.push_back(i+1);
vi found(26, -1);
forn(i, positions.size()) {
cout << positions[i] << endl;
cin >> z;
if(z == "##") exit(0);
if(found[z[0]-'A'] == -1) {
found[z[0]-'A'] = positions[i];
i++;
cout << positions[i] << endl;
cin >> z;
if(z == "##") exit(0);
if(z[1] == '+' || z[1] == '!') continue;
if(found[z[0]-'A'] != -1) {
cout << positions[i] << endl;
cin >> z;
if(z == "##") exit(0);
cout << found[z[0]-'A'] << endl;
cin >> z;
if(z == "##") exit(0);
}
else found[z[0]-'A'] = positions[i];
}
else {
int otherPos = found[z[0]-'A'];
cout << otherPos << endl;
cin >> z;
if(z == "##") exit(0);
}
}
}
int main() {
ios::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
cout << fixed << setprecision(14);
cin >> type;
int t = 1;
if (multiTest) cin >> t;
for (int ii = 0; ii < t; ii++) {
solve(ii);
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3580kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
01100101101001101101110001110101111001111110000000 00000100001100010100011100100100101100110100111100
Second Run Input
play 2 01100101101001101101110001110101111001111110000000 A. A+ B. B+ C. C+ D. D+ E. E+ F. F+ G. G+ H. H+ I. J- K. L- M. N- O. P- Q. R- S. T- U. V- W. X- Y. I- 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! 00000100001100010100011100100100101100...
Second Run Output
1 26 2 27 3 28 4 29 5 30 6 31 7 32 8 33 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 34 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 37 38 3...
result:
ok Correct! The number of the misses is 9 (2 test cases)
Test #2:
score: 100
Accepted
time: 0ms
memory: 3632kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
00010001101110111000100111000100011101111101000000
Second Run Input
play 1 00010001101110111000100111000100011101111101000000 F. F+ N. N+ E. E+ T. T+ O. O+ M. M+ J. J+ Y. Y+ C. X- K. C- C. C+ 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 13 14 15 15 12 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 10 (1 test case)
Test #3:
score: 100
Accepted
time: 0ms
memory: 3564kb
First Run Input
prepare 50 FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...
First Run Output
10010110111010110010101001001101111101101110100100 10101001110101111000011100101101010100110010010100 00100101011100010010001001101110000010000101011000 00100101011110001010001100011110110110011110111000 00111110100110111110000001000110010010000101111000 101101001001011101010101001100011100010001011...
Second Run Input
play 50 10010110111010110010101001001101111101101110100100 F. F+ D. D+ A. A+ V. V+ H. H+ J. J+ W. W+ I. I+ C. N- E. L- M. B- T. Q- G. P- M. M+ C. C+ 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! 1010100111010111100001110010110101010011001...
Second Run Output
1 38 2 47 3 45 4 43 5 20 6 32 7 28 8 42 9 10 11 12 13 14 15 16 17 18 19 13 21 9 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 11 14 15 16 17 18 19 20 21 23 24 25 26 26 21 27 28 29 24 32 11 33 34 3...
result:
ok Correct! The number of the misses is 497 (50 test cases)
Test #4:
score: 100
Accepted
time: 0ms
memory: 3672kb
First Run Input
prepare 75 EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...
First Run Output
00110110110101100101110101100010110010101000110000 10011001111101100110010101100011000001011110010000 01111100100010101001011110011010010010100001101100 00100001001001101000111101011110110010010010101100 10100001001000100101010100101001011110111111000100 101110001001101101101000001110010011010001001...
Second Run Input
play 75 00110110110101100101110101100010110010101000110000 E. E+ A. A+ H. H+ S. S+ M. M+ U. U+ J. J+ L. L+ V. D- P. N- K. P- P. P+ C. N- N. N+ I. I+ C. C+ F. R- T. Y- W. V- V. V+ 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! 1001100111110110011001010110001...
Second Run Output
1 14 2 46 3 26 4 30 5 25 6 45 7 43 8 13 9 10 11 12 15 16 16 11 17 18 18 12 19 20 21 17 22 23 24 27 28 29 29 9 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 10 11 12 13 14 15 16 16 13 17 18 19 14 20 17 21 18 22 12 2...
result:
ok Correct! The number of the misses is 730 (75 test cases)
Test #5:
score: 100
Accepted
time: 0ms
memory: 3616kb
First Run Input
prepare 85 RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...
First Run Output
00011110011111000111000010110000111000101001011000 00110110111100011000101001110001111001000110101000 00110100100101100101000101010000100001010111000100 00110000100100011010101000110110011101000001010000 11000010011010001010101110100001011110111001101100 000010010101000110101011101110011010001110101...
Second Run Input
play 85 00011110011111000111000010110000111000101001011000 R. R+ S. S+ H. H+ X. X+ L. L+ I. I+ A. A+ G. G+ T. N- B. O- M. V- C. Q- U. C- C. C+ B. B+ Q. Q+ W. E- D. T- T. T+ P. M- 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! 0011011011110001100010100...
Second Run Output
1 8 2 40 3 50 4 49 5 45 6 15 7 11 9 23 10 12 13 14 16 17 18 19 20 21 21 18 22 13 24 19 25 26 27 28 28 10 29 30 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 12 13 15 16 17 19 10 20 21 22 23 24 25 26 15 27 28 ...
result:
ok Correct! The number of the misses is 828 (85 test cases)
Test #6:
score: 100
Accepted
time: 0ms
memory: 3868kb
First Run Input
prepare 90 HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...
First Run Output
01110010100101011010010001001001111001101000100100 10000001001110101001001000011000101110011101111100 10011101001001111100101010011011000101111000100000 10110100101001111101100000111101011010100110000000 10001001001101110001101101011100011010000101001000 010111100100101001100101001011010000101110010...
Second Run Input
play 90 01110010100101011010010001001001111001101000100100 H. H+ P. P+ B. B+ U. U+ Y. Y+ C. C+ S. S+ I. I+ R. Q- T. E- V. J- L. T- T. T+ D. G- M. N- E. E+ K. M- M. M+ F. N- N. N+ R. R+ 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! 1000000100111010100...
Second Run Output
1 29 2 42 3 23 4 37 5 19 6 31 7 27 8 10 9 11 12 13 14 15 16 17 17 12 18 20 21 22 24 13 25 26 26 21 28 30 30 22 32 9 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 11 13 14 15 16 17 18 21 22 23 24 24 10 25 18 2...
result:
ok Correct! The number of the misses is 881 (90 test cases)
Test #7:
score: 100
Accepted
time: 0ms
memory: 3672kb
First Run Input
prepare 95 CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...
First Run Output
00101110101010010010100101110110001101011101100100 01111011000010010110101110111001010000110001111100 11000000110101101100100010100001111010111101111100 00101001111011000101001110111110001100011101000100 01011110000101000000110001000100100010111010001000 001011010101011001110000101011100011100101010...
Second Run Input
play 95 00101110101010010010100101110110001101011101100100 C. C+ X. X+ K. K+ F. F+ Q. Q+ P. P+ T. T+ E. E+ D. J- G. N- S. I- W. I- I. I+ D. D+ 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! 0111101100001001011010111011100...
Second Run Output
1 12 2 43 3 37 4 42 5 30 6 36 7 24 8 26 9 10 11 13 14 15 16 17 17 15 18 9 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 10 11 12 14 15 16 17 18 19 19 16 20 22 23 24 25 26 26 10 2...
result:
ok Correct! The number of the misses is 930 (95 test cases)
Test #8:
score: 100
Accepted
time: 0ms
memory: 3884kb
First Run Input
prepare 100 NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...
First Run Output
10001001011100010100011001101100100010100000111100 00111010001100110101110011000101000010010101011100 10110000110101101010110101100101000110101100100100 00100100001001110001010100011100101001111001100000 10000100101111000010011010110001110000110101001000 000010001110010110100010100001011110010111100...
Second Run Input
play 100 10001001011100010100011001101100100010100000111100 N. N+ K. K+ X. X+ F. F+ S. S+ W. W+ A. A+ O. O+ B. P- E. J- T. M- V. H- I. P- 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+ B. B+ Y. Y! 001110100011001101011100110001...
Second Run Output
1 35 2 24 3 6 4 7 5 28 8 9 10 41 11 16 12 13 14 15 17 18 19 20 21 22 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 49 12 50 34 1 15 2 36 3 14 4 29 5 50 6 17 7 38 8 24 9 10 11 9 12 13 16 18 19 20 21 13 22 23 25 19 26 23 27 28 3...
result:
ok Correct! The number of the misses is 1012 (100 test cases)
Test #9:
score: 100
Accepted
time: 0ms
memory: 3644kb
First Run Input
prepare 100 BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...
First Run Output
10001001011110111110011010100111000100101101111100 01111001111100010101100010111100101101010000110000 10111100101011000011000110100101110100100110110000 10000101001110101010001001110010111101110101011100 01001011000110011010111010001110010010110101100100 010010011011010100001000100001001001110000100...
Second Run Input
play 100 10001001011110111110011010100111000100101101111100 B. B+ U. U+ L. L+ R. R+ J. J+ T. T+ V. V+ X. X+ I. H- F. S- K. O- M. P- W. M- M. M+ C. G- E. N- N. N+ Y. A- K. K+ I. I+ 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! 011110011111000101011000101111001011...
Second Run Output
1 35 2 24 3 48 4 39 5 42 6 50 7 12 8 32 9 10 11 13 14 15 16 17 18 19 19 16 20 21 22 23 25 23 26 27 28 14 29 9 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 11 14 15 16 17 18 17 19 20 20 15 22 23 24 26 27 22 28 29 30 10 3...
result:
ok Correct! The number of the misses is 972 (100 test cases)
Test #10:
score: 100
Accepted
time: 0ms
memory: 3576kb
First Run Input
prepare 100 SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...
First Run Output
10001101111001001111000100100100100010010010011000 00110000010000100001101101010000011101001001000000 10111100001010001010101110000010111000100000111100 10010100001110111001111100100011000101010001000100 00001101010001011010110001110110000000100000110000 010001000111011100010100100001101011011011010...
Second Run Input
play 100 10001101111001001111000100100100100010010010011000 S. S+ Q. Q+ R. R+ O. O+ X. X+ G. G+ J. J+ W. W+ F. M- 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+ F. F+ U. U+ Y. Y+ V. V+ C. C+ T. T+ A. A+ D. D+ B. B+ K. K! 001100000100001000011011010100000111...
Second Run Output
1 36 2 31 3 20 4 50 5 10 6 9 7 37 8 39 11 12 13 12 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 40 11 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 14 15 16 18 20 22 23 24 25 25 14 26 27 29 30 30 24 31 23 32 33 ...
result:
ok Correct! The number of the misses is 982 (100 test cases)
Test #11:
score: 100
Accepted
time: 0ms
memory: 3680kb
First Run Input
prepare 100 RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...
First Run Output
10011000110110110100100101110001011100111110000100 10010110111010001001101110011001011101100010110100 10110010110100100000010010111110010100110011000100 10101101001101111000010100100001100010100101111100 00110100111100110010110010011100100010001010100000 101100101001010000010110100001101011001110100...
Second Run Input
play 100 10011000110110110100100101110001011100111110000100 R. R+ G. G+ F. F+ V. V+ P. P+ I. I+ L. L+ W. W+ O. E- T. B- S. K- H. K- K. K+ N. C- H. H+ J. O- O. O+ X. A- M. X- 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! 100101101110100010011011...
Second Run Output
1 39 2 14 3 46 4 10 5 29 6 24 7 16 8 34 9 11 12 13 15 17 18 19 19 17 20 21 22 18 23 25 25 9 26 27 28 30 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 10 11 12 13 14 15 16 17 18 18 10 19 20 21 22 22 11 2...
result:
ok Correct! The number of the misses is 985 (100 test cases)
Test #12:
score: 100
Accepted
time: 0ms
memory: 3680kb
First Run Input
prepare 100 VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...
First Run Output
00011101010101001001101100100101000001100110100000 10101001011101111001100101000110111101110101010000 01100000100110100001011001101010011001000100110100 10111101000101001000100100011000101110011001010000 10001010010010100001111100100100110110110101000100 001111000110010001001000001110001101011000100...
Second Run Input
play 100 00011101010101001001101100100101000001100110100000 V. V+ J. J+ X. X+ S. S+ D. D+ L. L+ H. H+ P. P+ T. Y- C. W- K. I- G. U- I. I+ A. N- A. A+ Y. Y+ M. U- U. U+ W. W+ B. R- R. R+ Q. T- T. T+ C. C+ E. N- N. N+ E. E+ F. F+ O. K- K. K+ B. B+ G. G+ M. M+ O. O+ Q. Q! 101010010111011110011001010001...
Second Run Output
1 8 2 22 3 19 4 28 5 10 6 17 7 26 9 41 11 12 13 14 15 16 18 20 21 16 23 24 25 23 27 12 29 30 30 20 31 14 32 33 34 33 35 36 36 11 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 10 11 12 13 11 14 15 16 17 19 12 20 22 23 25 27 28 28 25 ...
result:
ok Correct! The number of the misses is 984 (100 test cases)
Test #13:
score: 100
Accepted
time: 0ms
memory: 3804kb
First Run Input
prepare 100 MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...
First Run Output
00110101010110011011000010000110110101001100110000 01111110000101101111000100110101010110011100111000 00010100010010111010000101110100100001010001011100 00001110011001000001111101011101001110111101100100 10111111000100111100100110101110011010000110010000 001000001110011010011001011000001001001010010...
Second Run Input
play 100 00110101010110011011000010000110110101001100110000 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! 011111100001011011110001001101...
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 10 11 12 12 9 13 16 17 18 19 13 20 21 23 24 25 26 27 29 2...
result:
ok Correct! The number of the misses is 995 (100 test cases)
Test #14:
score: 100
Accepted
time: 0ms
memory: 3676kb
First Run Input
prepare 100 KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...
First Run Output
00001010000101011110001010001101110001011010110100 10111101101010010100101001010001101101000010100000 10111001000110000110101101110001101001010001000000 00111101101001100101100000011100110101111101011000 11000100101101110110001010010101011010110001001100 000100010010100000011000101000001011001101010...
Second Run Input
play 100 00001010000101011110001010001101110001011010110100 K. K+ V. V+ F. F+ H. H+ J. J+ E. E+ T. T+ M. M+ U. G- Y. I- I. I+ N. C- N. N+ C. C+ X. O- S. B- L. A- A. A+ Q. R- R. R+ D. P- U. U+ X. X+ W. D- D. D+ P. P+ Q. Q+ Y. Y+ W. W+ O. O+ L. L+ S. S+ B. B+ G. G! 101111011010100101001010010100011011...
Second Run Output
1 3 2 34 4 24 5 35 6 36 7 29 8 23 9 46 10 11 12 13 14 13 15 16 17 15 18 16 19 20 21 22 25 26 27 26 28 30 31 30 32 33 37 10 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 10 12 13 14 15 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 990 (100 test cases)
Test #15:
score: 100
Accepted
time: 1ms
memory: 3640kb
First Run Input
prepare 100 HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...
First Run Output
00010001100010000001110111000010100110011110001000 00011011000101110101110001000010010001100010111100 00011010011001100001110011000001000000101001010000 10110111000110111001010001001110011101110000110100 10101001110101000101010000011010110101100001111000 000100110000011011100101010010010111100000010...
Second Run Input
play 100 00010001100010000001110111000010100110011110001000 H. H+ X. X+ K. K+ Q. Q+ J. J+ L. L+ C. C+ S. S+ A. E- P. A- A. A+ 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! 000110110001011101011100010000100100...
Second Run Output
1 5 2 25 3 33 4 30 6 49 7 42 8 40 9 35 10 11 12 13 13 10 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 11 12 13 14 15 16 18 19 20 21 22 22 12 23 15 24 26 27 28 28 10 ...
result:
ok Correct! The number of the misses is 997 (100 test cases)
Test #16:
score: 100
Accepted
time: 0ms
memory: 3636kb
First Run Input
prepare 100 SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...
First Run Output
00100101110110001010000100101000110010010101111100 01011010000010010101001101101000101110111101001000 10101001000010011000011101010101110000101111000000 10001010001101100101101110111110011001100010010100 01001100111101011001100101001010010110100110001000 100100100110101000010010000110011011101111010...
Second Run Input
play 100 00100101110110001010000100101000110010010101111100 S. S+ C. C+ M. M+ K. K+ N. N+ X. X+ O. O+ I. I+ G. Y- F. E- R. V- P. A- 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+ G. G+ J. J+ T. T+ D. D+ V. V+ Q. Q+ W. W+ A. A! 010110100000100101010011011010001011...
Second Run Output
1 10 2 30 3 35 4 34 5 11 6 13 7 38 8 32 9 12 14 15 16 17 18 19 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 43 9 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 10 11 13 14 15 16 17 18 21 22 24 25 15 26 28 29 10 30 9 31 16 32...
result:
ok Correct! The number of the misses is 989 (100 test cases)
Test #17:
score: 100
Accepted
time: 0ms
memory: 3704kb
First Run Input
prepare 100 NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...
First Run Output
00000101110011000001100000101010101110001010010100 10111101011110100100100101111000111101101101001100 01100001010100001111000001111010100001001010000000 01110100100100110000011110100110110101111010101100 01111011000000010110110001011010111010100010100100 100001001000110001000111001001101100100100010...
Second Run Input
play 100 00000101110011000001100000101010101110001010010100 N. N+ O. O+ D. D+ H. H+ V. V+ L. L+ K. K+ I. I+ U. A- Y. T- X. E- B. R- P. A- 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. U- U. U+ Q. M- M. M+ F. F+ W. W+ Q. Q+ T. T+ C. J- J. J+ E. E+ C. C! 101111010111101001...
Second Run Output
1 2 3 29 4 49 5 25 6 11 7 44 8 35 9 38 10 12 13 14 15 16 17 18 19 20 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 37 37 10 39 40 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 11 12 13 14 15 17 18 19 21 21 12 22 23 25 26 ...
result:
ok Correct! The number of the misses is 987 (100 test cases)