QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#172601 | #7186. "Memo" Game With a Hint | ucup-team228# | AC ✓ | 2ms | 3896kb | C++17 | 5.0kb | 2023-09-09 19:54:08 | 2023-09-09 19:54:08 |
Judging History
answer
#include <iostream>
#include <iomanip>
#include <vector>
#include <set>
#include <map>
#include <unordered_map>
#include <queue>
#include <deque>
#include <cmath>
#include <algorithm>
#include <cassert>
#include <chrono>
#include <random>
#include <string>
#include <numeric>
#include <complex>
#include <tuple>
#include <utility>
#include <bitset>
#include <array>
#include <stack>
#include <sstream>
using namespace std;
typedef long long ll;
string to_string(string a) { return '"' + a + '"'; }
string to_string(char a) { return "'" + string(1, a) + "'"; }
string to_string(const char* a) { return to_string((string) a); }
string to_string(bool a) { return a ? "true" : "false"; }
template <class T1, class T2>
string to_string(pair<T1, T2> a) {
return "(" + to_string(a.first) + ", " + to_string(a.second) + ")";
}
template <class T>
string to_string(T a) {
bool first = true; string res = "{";
for (const auto& i : a) {
if (!first) res += ", ";
first = false;
res += to_string(i);
}
res += "}";
return res;
}
void debug_out() { cerr << endl; }
template <class T1, class... T2>
void debug_out(T1 a, T2... b) {
cerr << " " << to_string(a);
debug_out(b...);
}
#ifdef LOCAL
#define out(...) cerr << "[" << #__VA_ARGS__ << "]:", debug_out(__VA_ARGS__)
#else
#define out(...) 42
#endif
clock_t start_time; void start_timer() { start_time = clock(); }
double get_time() { return (double) (clock() - start_time) / CLOCKS_PER_SEC; }
void Solve();
int main() {
ios_base::sync_with_stdio(0); cin.tie(0);
#ifdef LOCAL
//freopen("usr/share/man/man1/input.txt", "r", stdin);
#endif
start_timer();
Solve();
#ifdef LOCAL
cerr << fixed << setprecision(3);
cerr << endl << "Time spent: " << get_time() << endl;
#endif
return 0;
}
// do something, stay focused
// look for stupid bugs
// guess, slow, stress
// don't overgeneralize
// don't rush
// don't waste time on standings
// SOLVE THE PROBLEM OR DIE TRYING
// THE SOLUTION IS ALWAYS SIMPLE
// THE CODE IS ALWAYS SHORT
void Solve() {
string tp;
cin >> tp;
if (tp == "prepare") {
int T;
cin >> T;
while (T--) {
string s;
cin >> s;
set<char> a;
string ans;
for (char c : s) {
if (a.count(c)) {
ans += '1';
}
else {
ans += '0';
}
a.insert(c);
}
cout << ans << endl;
}
}
else {
int T;
cin >> T;
while (T--) {
string t;
cin >> t;
string s;
int n = 50;
for (int i = 1; i <= n; i++) {
s += '?';
}
vector<int> a;
vector<int> b;
for (int i = 0; i < n; i++) {
if (t[i] == '1') a.push_back(i);
else b.push_back(i);
}
int lol = a.back();
while (a.size() >= 2) {
int x = a.back();
a.pop_back();
int y = a.back();
a.pop_back();
cout << x + 1 << endl;
string res;
cin >> res;
if (res == "##") {
exit(0);
}
s[x] = res[0];
cout << y + 1 << endl;
cin >> res;
if (res == "##") {
exit(0);
}
s[y] = res[0];
}
{
int x = a.back();
a.pop_back();
int y = lol;
cout << x + 1 << endl;
string res;
cin >> res;
if (res == "##") {
exit(0);
}
s[x] = res[0];
cout << y + 1 << endl;
cin >> res;
if (res == "##") {
exit(0);
}
s[y] = res[0];
}
while (!b.empty()) {
int x = b.back();
b.pop_back();
cout << x + 1 << endl;
string res;
cin >> res;
if (res == "##") {
exit(0);
}
char c = res[0];
int y = -1;
for (int i = 0; i < n; i++) {
if (s[i] == c) {
y = i;
break;
}
}
if (y == -1) exit(0);
cout << y + 1 << endl;
cin >> res;
if (res == "##") {
exit(0);
}
if (res[1] != '+' && res[1] != '!') {
exit(0);
}
}
}
}
}
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3672kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
00000000000000000000000001111111111111111111111111 01010101010101010101010101010101010101010101010101
Second Run Input
play 2 00000000000000000000000001111111111111111111111111 Y. X- W. V- U. T- S. R- Q. P- O. N- M. L- K. J- I. H- G. F- E. D- C. B- A. Y- Y. Y+ X. X+ W. W+ V. V+ U. U+ T. T+ S. S+ R. R+ Q. Q+ P. P+ O. O+ N. N+ M. M+ L. L+ K. K+ J. J+ I. I+ H. H+ G. G+ F. F+ E. E+ D. D+ C. C+ B. B+ A. A! 01010101010101...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 50 25 50 24 49 23 48 22 47 21 46 20 45 19 44 18 43 17 42 16 41 15 40 14 39 13 38 12 37 11 36 10 35 9 34 8 33 7 32 6 31 5 30 4 29 3 28 2 27 1 26 50 48 46 44 42 40 38 36 34 32 30 28 26 24 22 20 18 16 14 12 10 8 6 4 2 50 49 50 4...
result:
ok Correct! The number of the misses is 26 (2 test cases)
Test #2:
score: 100
Accepted
time: 1ms
memory: 3580kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
00001001010000101001100000010011111010011111111111
Second Run Input
play 1 00001001010000101001100000010011111010011111111111 O. B- L. E- G. H- I. V- W. D- S. U- Q. P- A. J- R. N- K. X- Y. C- T. M- F. O- W. W+ D. D+ H. H+ U. U+ B. B+ Q. Q+ V. V+ I. I+ A. A+ P. P+ S. S+ G. G+ L. L+ R. R+ K. K+ X. X+ C. C+ Y. Y+ J. J+ M. M+ O. O+ T. T+ E. E+ N. N+ F. F!
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 37 35 34 33 32 31 28 21 20 17 15 10 8 5 50 39 42 38 41 36 45 30 37 29 49 27 35 26 43 25 44 24 33 23 34 22 40 19 46 18 48 16 31 14 21 13 20 12 15 11 17 9 32 7 8 6 50 4 10 3 47 2 28 1 5
result:
ok Correct! The number of the misses is 13 (1 test case)
Test #3:
score: 100
Accepted
time: 0ms
memory: 3688kb
First Run Input
prepare 50 FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...
First Run Output
00000000000000000011100101010111101111011111111111 00000001000110000000010001001111011111011111111111 00001000010010000010001101010010111011101111111111 00000001010000000000010100011110011111111111111111 00000000000100010101000110101111111010101111011111 000000000100100111000110101011001011101110101...
Second Run Input
play 50 00000000000000000011100101010111101111011111111111 P. K- R. D- Q. A- O. V- I. S- X. F- E. G- L. N- J. B- Y. W- U. T- C. H- M. P- X. X+ R. R+ O. O+ K. K+ U. U+ S. S+ Y. Y+ P. P+ G. G+ Q. Q+ T. T+ B. B+ M. M+ L. L+ E. E+ N. N+ C. C+ I. I+ W. W+ J. J+ H. H+ V. V+ A. A+ D. D+ F. F! 0000000100011...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 38 37 36 35 33 32 31 30 28 26 24 21 20 19 50 39 40 34 48 29 44 27 49 25 26 23 41 22 30 18 50 17 36 16 46 15 24 14 31 13 19 12 35 11 37 10 33 9 21 8 42 7 28 6 32 5 20 4 43 3 45 2 47 1 38 50 49 48 47 46 45 44 43 42 41 40 38 37 36 35 34 32 31 30 29 26 22 13 12 8 50 39 4...
result:
ok Correct! The number of the misses is 650 (50 test cases)
Test #4:
score: 100
Accepted
time: 2ms
memory: 3636kb
First Run Input
prepare 75 EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...
First Run Output
00000000000011010101100011001110011101111011110111 00000000000000010011110111000101110111101011111111 00000000100000000001001101111011001110111111111111 00000000100000010010100110111111100110100111111111 00000000011000010010110101111010000011111101111111 000000000101001101011000000011111001111011110...
Second Run Input
play 75 00000000000011010101100011001110011101111011110111 Y. O- G. A- U. Q- J. X- D. F- K. R- W. B- T. S- V. H- M. C- I. N- P. E- L. Y- G. G+ O. O+ X. X+ B. B+ Q. Q+ W. W+ Y. Y+ T. T+ R. R+ F. F+ I. I+ C. C+ K. K+ N. N+ P. P+ D. D+ V. V+ L. L+ J. J+ U. U+ M. M+ S. S+ H. H+ A. A+ E. E! 0000000000000...
Second Run Output
50 49 48 46 45 44 43 41 40 39 38 36 35 34 31 30 29 26 25 21 20 18 16 14 13 50 47 48 42 49 37 41 33 34 32 44 28 35 27 50 24 31 23 36 22 39 19 20 17 21 15 38 12 18 11 16 10 40 9 29 8 13 7 43 6 45 5 25 4 30 3 26 2 46 1 14 50 49 48 47 46 45 44 43 41 39 38 37 36 34 33 32 30 26 25 24 22 21 20 19 16 50 42 ...
result:
ok Correct! The number of the misses is 975 (75 test cases)
Test #5:
score: 100
Accepted
time: 0ms
memory: 3772kb
First Run Input
prepare 85 RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...
First Run Output
00000001001000100000111100010100111010111111111111 00000010001001000110000001011110110011101111111111 00000000110001000100110101001010111001110111111111 00000010010011001010110100000011011111011011111101 00000000000000001110011101011101001110101111111111 001000100000001000100101101100001011011111111...
Second Run Input
play 85 00000001001000100000111100010100111010111111111111 H. X- V. F- N. L- D. O- J. K- S. E- P. U- Y. W- M. T- Q. G- B. C- I. A- R. H- K. K+ F. F+ J. J+ Y. Y+ P. P+ D. D+ E. E+ W. W+ U. U+ Q. Q+ C. C+ V. V+ M. M+ O. O+ B. B+ N. N+ T. T+ G. G+ A. A+ I. I+ L. L+ X. X+ H. H+ S. S+ R. R! 0000001000100...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 37 35 34 33 30 28 24 23 22 21 15 11 8 50 38 41 36 47 32 42 31 34 29 37 27 44 26 39 25 33 20 35 19 24 18 21 17 48 16 30 14 43 13 22 12 46 10 28 9 23 7 11 6 15 5 45 4 49 3 50 2 40 1 8 50 49 48 47 46 45 44 43 42 41 39 38 37 34 33 31 30 29 28 26 19 18 14 11 7 50 40 47...
result:
ok Correct! The number of the misses is 1105 (85 test cases)
Test #6:
score: 100
Accepted
time: 1ms
memory: 3672kb
First Run Input
prepare 90 HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...
First Run Output
00000000010000001010001101101111011011110111111011 00000010000100000011000110011111100111110011111111 00000000101001000011010110001011001110111110111111 00000000001001011100001110001011101100101111111111 00000010000010000011000100111011111100111110111111 000000000001000011011011010011100011110111111...
Second Run Input
play 90 00000000010000001010001101101111011011110111111011 O. X- K. W- J. G- L. P- A. Q- F. U- D. V- R. C- N. H- S. M- E. B- Y. T- I. O- O. O+ W. W+ A. A+ X. X+ F. F+ K. K+ N. N+ M. M+ G. G+ D. D+ L. L+ J. J+ V. V+ E. E+ T. T+ Q. Q+ R. R+ I. I+ S. S+ C. C+ Y. Y+ U. U+ B. B+ P. P+ H. H! 0000001000010...
Second Run Output
50 49 47 46 45 44 43 42 40 39 38 37 35 34 32 31 30 29 27 26 24 23 19 17 10 50 48 50 41 46 36 40 33 49 28 38 25 47 22 30 21 26 20 44 18 35 16 43 15 45 14 34 13 24 12 17 11 39 9 32 8 10 7 27 6 31 5 19 4 37 3 23 2 42 1 29 50 49 48 47 46 45 44 43 40 39 38 37 36 33 32 31 30 29 28 25 24 20 19 12 7 50 42 4...
result:
ok Correct! The number of the misses is 1170 (90 test cases)
Test #7:
score: 100
Accepted
time: 2ms
memory: 3872kb
First Run Input
prepare 95 CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...
First Run Output
00000000000100001100010101011110011111011111111101 00000000000010000010100001111011111011101111111111 00000000100001000000000101110111110101111111111111 00000001001000010101100000011011001101111111111111 00000000100010101100000101000011111100111111111111 000000000001001000101100111111001001111110111...
Second Run Input
play 95 00000000000100001100010101011110011111011111111101 A. W- U. B- S. R- X. F- O. Y- N. K- P. G- H. V- Q. L- M. E- T. J- D. I- C. A- A. A+ R. R+ O. O+ Y. Y+ U. U+ M. M+ B. B+ H. H+ V. V+ L. L+ W. W+ I. I+ S. S+ N. N+ G. G+ J. J+ D. D+ E. E+ T. T+ P. P+ Q. Q+ F. F+ K. K+ X. X+ C. C! 0000000000001...
Second Run Output
50 48 47 46 45 44 43 42 41 40 38 37 36 35 34 31 30 29 28 26 24 22 18 17 12 50 49 50 39 44 33 41 32 40 27 47 25 28 23 46 21 34 20 31 19 29 16 48 15 17 14 45 13 38 11 35 10 22 9 18 8 26 7 24 6 36 5 30 4 42 3 37 2 43 1 12 50 49 48 47 46 45 44 43 42 41 39 38 37 35 34 33 32 31 29 28 27 26 21 19 13 50 40 ...
result:
ok Correct! The number of the misses is 1235 (95 test cases)
Test #8:
score: 100
Accepted
time: 2ms
memory: 3672kb
First Run Input
prepare 100 NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...
First Run Output
00000110100000010000010100010011101101111111111111 00000000001001101000100111001101110101011011111111 00000000010001010100000011101101011111110101111111 00100001011000110001010010001011110010011111110111 00000000000101010110000100001101111110111111110111 001000000000001000100111001010101111111101011...
Second Run Input
play 100 00000110100000010000010100010011101101111111111111 Y. B- D. U- Q. J- I. G- L. A- T. E- M. V- N. H- R. C- S. K- P. O- W. F- X. Y- D. D+ Y. Y+ L. L+ R. R+ Q. Q+ G. G+ C. C+ U. U+ I. I+ H. H+ V. V+ M. M+ T. T+ J. J+ E. E+ P. P+ B. B+ O. O+ A. A+ W. W+ S. S+ F. F+ X. X+ K. K+ N. N! 000000000010...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 38 36 35 33 32 31 28 24 22 16 9 7 6 50 37 48 34 50 30 42 29 32 27 46 26 43 25 31 23 47 21 44 20 33 19 36 18 38 17 40 15 45 14 39 13 22 12 49 11 16 10 41 8 9 5 28 4 7 3 6 2 24 1 35 50 49 48 47 46 45 44 43 41 40 38 36 34 33 32 30 29 26 25 24 21 17 15 14 11 50 42 44 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #9:
score: 100
Accepted
time: 2ms
memory: 3740kb
First Run Input
prepare 100 BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...
First Run Output
00000000000100000010000110011011111101111111111111 00000100000110000101100010100111101100101111111111 00000000011010010001000000110111111110100111111111 00000000000000001011100101011100111111001111111111 00000000000000011010100011000110101111111111111111 000000001100000001101100010110111101111001111...
Second Run Input
play 100 00000000000100000010000110011011111101111111111111 T. G- L. O- D. F- Y. C- J. H- W. R- E. A- B. P- S. X- Q. I- K. N- U. M- V. T- D. D+ Q. Q+ A. A+ Y. Y+ N. N+ E. E+ G. G+ C. C+ W. W+ P. P+ M. M+ O. O+ K. K+ S. S+ F. F+ H. H+ I. I+ X. X+ V. V+ T. T+ J. J+ R. R+ L. L+ U. U+ B. B! 000001000001...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 38 36 35 34 33 32 31 29 28 25 24 19 12 50 37 46 30 31 27 36 26 44 23 25 22 38 21 49 20 43 18 40 17 34 16 19 15 47 14 28 13 33 11 45 10 41 9 29 8 32 7 12 6 50 5 42 4 39 3 48 2 24 1 35 50 49 48 47 46 45 44 43 42 41 39 36 35 33 32 31 30 27 25 21 20 18 13 12 6 50 40 4...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #10:
score: 100
Accepted
time: 0ms
memory: 3704kb
First Run Input
prepare 100 SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...
First Run Output
00000000110010000001101000100110100111111111111111 00001001100010001010100010010110111011111010111011 00100000100000010011010010000111101011111111011111 00010000100001000101110001001101110001111011111111 00010000100010010000101000010101110111111111111101 000000010010000111001011001110010100010111111...
Second Run Input
play 100 00000000110010000001101000100110100111111111111111 O. K- B. D- A. T- C. V- Y. U- F. W- I. J- S. P- Q. H- L. E- N. R- M. X- G. O- C. C+ B. B+ P. P+ D. D+ H. H+ Y. Y+ A. A+ V. V+ L. L+ I. I+ E. E+ T. T+ N. N+ U. U+ K. K+ M. M+ F. F+ W. W+ J. J+ G. G+ X. X+ O. O+ R. R+ Q. Q+ S. S! 000010011000...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 38 37 36 33 31 30 27 23 21 20 13 10 9 50 35 44 34 48 32 33 29 47 28 30 26 42 25 46 24 43 22 27 19 38 18 23 17 45 16 21 15 41 14 49 12 13 11 40 8 39 7 37 6 9 5 10 4 50 3 20 2 31 1 36 50 49 47 46 45 43 41 40 39 38 37 35 34 33 31 30 28 25 21 19 17 13 9 8 5 50 48 49 4...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #11:
score: 100
Accepted
time: 2ms
memory: 3740kb
First Run Input
prepare 100 RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...
First Run Output
00000000010001010010010110001110111000111111111111 00000000000000000100010110110011111101111111111111 00001000100010001000001000111010111111001111111111 00000100100000001001001111101011010011011111101111 00000000100011010000000010111101001111111111101111 000000000000011010110010110111000111101111111...
Second Run Input
play 100 00000000010001010010010110001110111000111111111111 U. T- C. Q- F. Y- E. A- D. M- B. R- J. W- S. N- X. P- O. I- H. K- L. G- V. U- D. D+ U. U+ Y. Y+ Q. Q+ M. M+ A. A+ X. X+ J. J+ C. C+ N. N+ H. H+ K. K+ S. S+ B. B+ T. T+ E. E+ O. O+ W. W+ L. L+ I. I+ P. P+ V. V+ F. F+ G. G+ R. R! 000000000000...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 39 35 34 33 31 30 29 25 24 22 19 16 14 10 50 38 42 37 50 36 45 32 47 28 41 27 43 26 30 23 35 21 48 20 31 18 22 17 19 15 33 13 40 12 49 11 44 9 25 8 34 7 16 6 24 5 29 4 10 3 46 2 14 1 39 50 49 48 47 46 45 44 43 42 41 40 39 38 36 35 34 33 32 31 28 27 25 24 22 18 50 37 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #12:
score: 100
Accepted
time: 2ms
memory: 3608kb
First Run Input
prepare 100 VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...
First Run Output
00000001010000001010110011110110010110111010111111 00000000000010000110100101011110011110111111011111 00000000010001000101001010101001011011111111111111 00000010010100010110100100111000101100101111111111 00000000010001000100010000111011001111111111111111 000000101000011101100000101001101101010110111...
Second Run Input
play 100 00000001010000001010110011110110010110111010111111 Q. O- M. G- B. K- F. P- E. N- C. T- R. W- U. S- Y. H- A. J- I. X- L. D- V. Q- O. O+ F. F+ E. E+ Q. Q+ R. R+ B. B+ M. M+ N. N+ A. A+ U. U+ G. G+ I. I+ K. K+ W. W+ C. C+ Y. Y+ T. T+ P. P+ H. H+ L. L+ D. D+ S. S+ X. X+ J. J+ V. V! 000000000000...
Second Run Output
50 49 48 47 46 45 43 41 40 39 37 36 34 31 30 28 27 26 25 22 21 19 17 10 8 50 44 49 42 43 38 40 35 50 33 34 32 46 29 48 24 39 23 25 20 30 18 47 16 21 15 45 14 31 13 37 12 27 11 36 9 41 7 26 6 17 5 10 4 28 3 19 2 22 1 8 50 49 48 47 46 44 43 42 41 40 39 37 36 35 34 31 30 29 28 26 24 21 19 18 13 50 45 5...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #13:
score: 100
Accepted
time: 2ms
memory: 3704kb
First Run Input
prepare 100 MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...
First Run Output
00000000010011000001010100101110011011111111011111 00000000000101100010010001011111110110110011111111 00001100100000001000100100011101111110011111011111 00010000000000001011000111001101111100111111101111 00000000010000110110010010010010011110111111111111 000000001110001011010100111100000010010111111...
Second Run Input
play 100 00000000010011000001010100101110011011111111011111 R. G- I. F- A. Y- X. C- L. T- H. U- N. K- E. Q- S. W- P. V- O. B- M. J- D. R- I. I+ U. U+ F. F+ R. R+ L. L+ C. C+ T. T+ N. N+ W. W+ K. K+ P. P+ S. S+ V. V+ Y. Y+ Q. Q+ X. X+ D. D+ J. J+ B. B+ A. A+ E. E+ G. G+ H. H+ O. O+ M. M! 000000000001...
Second Run Output
50 49 48 47 46 44 43 42 41 40 39 38 37 35 34 31 30 29 27 24 22 20 14 13 10 50 45 48 36 38 33 47 32 50 28 41 26 42 25 40 23 37 21 29 19 35 18 27 17 30 16 24 15 44 12 31 11 43 9 10 8 13 7 20 6 46 5 34 4 49 3 39 2 22 1 14 50 49 48 47 46 45 44 43 40 39 37 36 34 33 32 31 30 29 28 26 22 19 15 14 12 50 42 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #14:
score: 100
Accepted
time: 0ms
memory: 3896kb
First Run Input
prepare 100 KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...
First Run Output
00100000000001001100001100101010011111011111111111 00000000001000011001110001110010111101101101111111 00000000000000001110100000111111111101011011111111 00000001000011010000101111111001000101010111111111 00000000000100000101001110100110111111101110111111 000010000001010100100110100000111000111111111...
Second Run Input
play 100 00100000000001001100001100101010011111011111111111 G. B- S. L- M. O- W. Y- Q. P- D. X- U. J- H. V- R. E- A. F- T. C- N. I- K. G- W. W+ P. P+ D. D+ R. R+ Q. Q+ A. A+ L. L+ B. B+ S. S+ O. O+ X. X+ C. C+ N. N+ I. I+ Y. Y+ G. G+ U. U+ M. M+ T. T+ E. E+ J. J+ H. H+ F. F+ V. V+ K. K! 000000000010...
Second Run Output
50 49 48 47 46 45 44 43 42 41 40 38 37 36 35 34 31 29 27 24 23 18 17 14 3 50 39 44 33 41 32 40 30 31 28 42 26 27 25 47 22 49 21 48 20 45 19 38 16 18 15 17 13 14 12 43 11 50 10 37 9 46 8 23 7 29 6 36 5 35 4 24 2 34 1 3 50 49 48 47 46 45 44 42 41 39 38 36 35 34 33 31 28 27 26 22 21 20 17 16 11 50 43 4...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #15:
score: 100
Accepted
time: 2ms
memory: 3588kb
First Run Input
prepare 100 HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...
First Run Output
00001000000010000001110110110100111111011111010111 00000010000000001000011010011111111110101110111111 00000010001000001000100010111101100111111111011111 00000000000001000111110000001101011111111011111111 00000010000000011100100011100111100100111111111111 000010000000000101100011011111011110110001011...
Second Run Input
play 100 00001000000010000001110110110100111111011111010111 I. J- G. Y- N. O- L. V- C. W- F. B- S. M- K. Q- D. R- X. P- T. U- E. A- H. I- I. I+ Y. Y+ V. V+ O. O+ G. G+ M. M+ R. R+ D. D+ W. W+ F. F+ U. U+ B. B+ T. T+ N. N+ P. P+ E. E+ A. A+ S. S+ C. C+ L. L+ J. J+ Q. Q+ K. K+ X. X+ H. H! 000000100000...
Second Run Output
50 49 48 46 44 43 42 41 40 38 37 36 35 34 33 30 28 27 25 24 22 21 20 13 5 50 47 50 45 46 39 41 32 43 31 48 29 34 26 27 23 28 19 38 18 37 17 21 16 36 15 22 14 44 12 24 11 20 10 13 9 35 8 40 7 42 6 49 4 30 3 33 2 25 1 5 50 49 48 47 46 45 43 42 41 39 37 36 35 34 33 32 31 30 29 28 25 23 22 17 7 50 44 45...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #16:
score: 100
Accepted
time: 2ms
memory: 3700kb
First Run Input
prepare 100 SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...
First Run Output
00000000011010000001000010100111111011101111111111 00000000000100000011001010101111101011011111111111 00000001000101001000110001001100100111111111111111 00000000000000100010101111010101111101101111011111 00000000000000010111001011010100111111011101111111 000000100000101100101100100110001000111111111...
Second Run Input
play 100 00000000011010000001000010100111111011101111111111 A. W- Q. V- D. T- J. G- Y. B- H. O- P. M- K. R- I. L- C. F- U. E- X. N- S. A- B. B+ J. J+ T. T+ W. W+ L. L+ D. D+ H. H+ Q. Q+ U. U+ A. A+ P. P+ V. V+ R. R+ E. E+ F. F+ Y. Y+ G. G+ I. I+ O. O+ X. X+ N. N+ K. K+ M. M+ C. C+ S. S! 000000000001...
Second Run Output
50 49 48 47 46 45 44 43 42 41 39 38 37 35 34 33 32 31 30 27 25 20 13 11 10 50 40 41 36 44 29 45 28 49 26 31 24 46 23 39 22 48 21 25 19 50 18 37 17 47 16 33 15 20 14 27 12 42 9 43 8 32 7 38 6 13 5 11 4 34 3 35 2 30 1 10 50 49 48 47 46 45 44 43 42 41 40 38 37 35 33 32 31 30 29 27 25 23 20 19 12 50 39 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #17:
score: 100
Accepted
time: 2ms
memory: 3708kb
First Run Input
prepare 100 NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...
First Run Output
01000000001000000001101011011010111011011111101111 00000000010000010101100100011111101011111100111111 00010000000001100011010110100111111001001111101111 00000001010010000000011001010110101110111111111111 00000100000001000000111000111110101011011111111111 000000011100000000010101011100000111111101111...
Second Run Input
play 100 01000000001000000001101011011010111011011111101111 C. D- E. J- T. L- Q. W- F. M- I. U- K. G- S. R- O. B- Y. H- X. P- A. V- N. C- C. C+ Q. Q+ F. F+ S. S+ M. M+ J. J+ G. G+ W. W+ P. P+ R. R+ B. B+ E. E+ X. X+ T. T+ Y. Y+ A. A+ U. U+ I. I+ K. K+ L. L+ V. V+ H. H+ D. D+ O. O+ N. N! 000000000100...
Second Run Output
50 49 48 47 45 44 43 42 41 40 38 37 35 34 33 31 29 28 26 25 23 21 20 11 2 50 46 50 39 43 36 41 32 33 30 40 27 47 24 34 22 42 19 21 18 31 17 28 16 48 15 23 14 45 13 26 12 20 10 37 9 38 8 35 7 44 6 11 5 25 4 49 3 29 1 2 50 49 48 47 46 45 42 41 40 39 38 37 35 33 32 31 30 29 28 24 21 20 18 16 10 50 44 4...
result:
ok Correct! The number of the misses is 1300 (100 test cases)