QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#165671 | #7186. "Memo" Game With a Hint | ucup-team1600# | AC ✓ | 2ms | 3904kb | C++20 | 5.8kb | 2023-09-05 20:39:36 | 2023-09-05 20:39:36 |
Judging History
answer
//#pragma GCC optimize("Ofast", "unroll-loops")
//#pragma GCC target("sse", "sse2", "sse3", "ssse3", "sse4")
#ifdef __APPLE__
#include <iostream>
#include <cmath>
#include <algorithm>
#include <stdio.h>
#include <cstdint>
#include <cstring>
#include <string>
#include <cstdlib>
#include <vector>
#include <bitset>
#include <map>
#include <queue>
#include <ctime>
#include <stack>
#include <set>
#include <list>
#include <random>
#include <deque>
#include <functional>
#include <iomanip>
#include <sstream>
#include <fstream>
#include <complex>
#include <numeric>
#include <cassert>
#include <array>
#include <tuple>
#include <unordered_map>
#include <unordered_set>
#include <thread>
#else
#include <bits/stdc++.h>
#endif
#define all(a) a.begin(),a.end()
#define len(a) (int)(a.size())
#define mp make_pair
#define pb push_back
#define fir first
#define sec second
#define fi first
#define se second
using namespace std;
typedef pair<int, int> pii;
typedef long long ll;
typedef long double ld;
template<typename T>
bool umin(T &a, T b) {
if (b < a) {
a = b;
return true;
}
return false;
}
template<typename T>
bool umax(T &a, T b) {
if (a < b) {
a = b;
return true;
}
return false;
}
#if __APPLE__
#define D for (bool _FLAG = true; _FLAG; _FLAG = false)
#define LOG(...) print(#__VA_ARGS__" ::", __VA_ARGS__) << endl
template<class ...Ts>
auto &print(Ts ...ts) { return ((cerr << ts << " "), ...); }
#else
#define D while (false)
#define LOG(...)
#endif
const int max_n = -1, inf = 1000111222;
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int sum_min = 0;
bool DBG = false;
string S, SS;
void prepare() {
string s;
if(DBG) {
for(int i = 0; i < 25; i++) { s += (char)(i + 'A'); s += (char)(i + 'A'); }
shuffle(all(s), rng);
cout << s << endl;
S = s;
} else cin >> s;
vector<vector<int> > a(len(s) + 1);
for(int i = 0; i < len(s); i++)
for(int j = i + 1; j < len(s); j++)
if(s[i] == s[j])
a[i].pb(j);
vector<int> dp(len(s) + 1, -1);
vector<pair<int, int> > pr(len(s) + 1);
dp[0] = 0;
for(int i = 0; i <= len(s); i++) {
if(i && umax(dp[i], dp[i - 1])) {
pr[i] = {0, i - 1};
}
for(auto& to : a[i])
if(umax(dp[to + 1], dp[i] + 1)) {
pr[to + 1] = {1, i};
}
}
string ans = string(len(s), '0');
int cpos = len(s);
while(cpos) {
int from = pr[cpos].se;
int type = pr[cpos].fi;
if(type) {
ans[from] = ans[cpos - 1] = '1';
}
cpos = from;
}
// for(int i = 0; i < s.size(); i++) ans += char('0' + (s[i] <= 'L'));
cout << ans << endl;
SS = ans;
}
void play() {
int ammin = 0;
string s;
if(DBG) {
s = SS;
} else cin >> s;
vector<int> pos[2];
for(int i = 0; i < len(s); i++)
pos[s[i] - '0'].pb(i);
for(int it = 0; it < 1; it++) {
map<char, int> done;
vector<pair<int, int> > to_do;
while(!pos[it].empty()) {
auto A = pos[it].back(); pos[it].pop_back();
cout << A + 1 << endl;
if(DBG) {
cout << S[A] << endl;
}
char out;
char c;
if(DBG) {
c = S[A];
out = '.';
} else cin >> c >> out;
if(done.count(c)) {
cout << done[c] + 1 << endl;
if(DBG) {
cout << S[done[c]] << endl;
}
char out1, out2;
if(DBG) {
out1 = c;
out2 = '+';
} else cin >> out1 >> out2;
done.erase(c);
} else {
done[c] = A;
auto B = pos[it].back(); pos[it].pop_back();
cout << B + 1 << endl;
if(DBG) {
cout << S[B] << endl;
}
char c2, out2;
if(DBG) {
c2 = S[B];
out2 = (c == c2 ? '+' : '-');
} else cin >> c2 >> out2;
ammin += (out2 == '-');
if(done.count(c2)) {
if(c2 != c) to_do.pb({B, done[c2]});
done.erase(c2);
} else done[c2] = B;
}
}
for(auto& x : to_do) {
cout << x.fi + 1 << endl;
if(DBG) {
cout << S[x.fi] << endl;
}
char out1, out2, out3, out4;
if(DBG) {
out1 = S[x.fi]; out2 = '.';
} else cin >> out1 >> out2;
cout << x.se + 1 << endl;
if(DBG) {
cout << S[x.se] << endl;
}
if(DBG) {
out3 = S[x.se]; out4 = '+';
} else cin >> out3 >> out4;
}
}
for(int i = 0; i < len(pos[1]); i += 2) {
cout << pos[1][i] + 1 << endl;
string ssss; cin >> ssss;
cout << pos[1][i + 1] + 1 << endl;
cin >> ssss;
}
if(DBG) cout << ammin << '\n';
sum_min += ammin;
}
signed main() {
// freopen("input.txt", "r", stdin);
// freopen("output.txt", "w", stdout);
ios_base::sync_with_stdio(0);
cin.tie(0);
cout.tie(0);
if(DBG) {
int t = 100;
while(t--) {
prepare();
play();
}
cout << sum_min << '\n';
return 0;
}
string mode; cin >> mode;
int t = 1;
cin >> t;
while (t--) {
if(mode == "prepare") prepare();
else play();
}
}
/*
KIVI
*/
详细
Test #1:
score: 100
Accepted
time: 1ms
memory: 3728kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
00000000000000000000000010000000000000000000000001 11111111111111111111111111111111111111111111111111
Second Run Input
play 2 00000000000000000000000010000000000000000000000001 X. W- V. U- T. S- R. Q- P. O- N. M- L. K- J. I- H. G- F. E- D. C- B. A- 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+ Y. Y! 11111111111111111111...
Second Run Output
49 48 47 46 45 44 43 42 41 40 39 38 37 36 35 34 33 32 31 30 29 28 27 26 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 25 50 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 ...
result:
ok Correct! The number of the misses is 12 (2 test cases)
Test #2:
score: 100
Accepted
time: 1ms
memory: 3608kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
10001011000001000000100000100000001100000000100000
Second Run Input
play 1 10001011000001000000100000100000001100000000100000 O. B- L. E- G. I- V. W- D. S- W. W+ D. D+ U. P- A. J- R. U- B. B+ N. V- I. I+ A. A+ P. P+ S. S+ X. G- L. L+ Y. R- C. X- C. C+ Y. Y+ T. J- O. O+ T. T+ E. E+ N. N+ U. U+ V. V+ G. G+ R. R+ X. X+ J. J+ F. F+ M. M+ K. K+ Q. Q+ H. H!
Second Run Output
50 49 48 47 46 44 43 42 41 40 39 42 38 41 37 34 33 32 31 30 29 49 28 26 25 44 24 33 23 34 22 40 20 19 18 48 17 16 15 13 12 15 11 17 10 9 6 50 4 10 3 47 2 28 30 37 26 43 19 46 16 31 13 20 9 32 1 5 7 8 14 21 27 35 36 45
result:
ok Correct! The number of the misses is 13 (1 test case)
Test #3:
score: 100
Accepted
time: 1ms
memory: 3904kb
First Run Input
prepare 50 FDAVHJWICNELMBTQGPMHCYSTUUKWOYBJNRLGEFXXSIVOAQDRKP NPBEHYAERLSHAKCMGTQFUYXDVUIWDPBSOXCMFRJOJTNKIGLQWV AEFGFISMPACJJYRBXUCKNOPEHODITLXWSMGVWBDQKLUQHRYVTN CKFXOIQOLCSHAGDEUJTYBAVKWPMHDBJNRMFXTEYQUGVNPILWRS JYIRTLMHQGUUAEDJXTSDCKPCXWPBAWHQRMGNLONVOYEKFVBIFS IHDCXSWTUHOFXLGLGWJPACUVTBOESDMYAK...
First Run Output
00000000000000100000000111100000000000000000000010 00000010000010000000100001010000000000000000000010 10000000011000000010010001100000000000110001000000 10000000010000000100000000000010100000000000000010 00000000001100100001100101000100000001001000100010 010000000110000000000000001000010000111001000...
Second Run Input
play 50 00000000000000100000000111100000000000000000000010 P. R- D. Q- A. O- V. I- S. X- X. X+ F. E- G. L- R. R+ N. J- B. Y- O. O+ W. S- Y. Y+ C. H- M. P- G. G+ Q. Q+ 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+ S. S+ P. P+ T. T+ U. U+ K. K! 0000001000001000000...
Second Run Output
50 48 47 46 45 44 43 42 41 40 39 40 38 37 36 35 34 48 33 32 31 30 29 44 28 23 22 30 21 20 19 18 17 36 16 46 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 23 41 18 50 15 24 25 26 27 49 50 48 47 46 45 44 43 42 41 40 39 41 38 37 36 35 34 33 32 31 30 29 27 45 25 50 24 29 23 ...
result:
ok Correct! The number of the misses is 581 (50 test cases)
Test #4:
score: 100
Accepted
time: 2ms
memory: 3672kb
First Run Input
prepare 75 EAHSMUJLVDPNLEKPCNIICFRTMHYWVSTQBBWRXKFDXOJQUAGGOY CUWYVQJPSRIDKXMKTFXTFDOJVWLBEMNULIAAPYCHNGHEOGSRQB UJTQMFLPJRGSECWAHXDCIVRQOIEPANHUBYVGFKMKLDTSWYBNOX EYOUSDBNEQXIPMFUJCYKJVLSVWOXKLCFWARPBTIHGTMNDRGHAQ PBHANSDUVHNKYRQVMOBLQAXSEXOLYJRGTWCFKGMWPJIFTIEDCU YREKISUWLRFFQDIWNUASLJXGMVHBXDMBJT...
First Run Output
00000000001000011000100100000010110010001100000010 00000000000010010100100000100000101100000100010000 01000000100001000001100001000100000000000000000100 00010000000000011000110011000000110000000000000010 00001000001000100000101001000100000000000110010000 010000000111000000000100000000001100000001001...
Second Run Input
play 75 00000000001000011000100100000010110010001100000010 Y. G- G. G+ A. U- Q. J- D. F- K. R- W. Q- S. V- W. W+ Y. Y+ H. M- R. R+ F. F+ I. I+ N. K- E. L- N. N+ D. D+ V. V+ L. L+ J. J+ U. U+ M. M+ S. S+ H. H+ A. A+ E. E+ Q. Q+ K. K+ P. P+ C. C+ T. T+ B. B+ X. X+ O. O! 0000000000001001010010000010000...
Second Run Output
50 48 47 48 46 45 44 43 40 39 38 36 35 32 30 29 28 35 27 50 26 25 23 36 22 39 20 19 18 15 14 13 12 18 10 40 9 29 8 13 7 43 6 45 5 25 4 30 3 26 2 46 1 14 32 44 15 38 11 16 17 21 24 31 33 34 37 41 42 49 50 49 48 47 45 44 43 41 40 43 39 38 37 34 32 31 30 29 28 50 26 25 24 23 22 20 19 17 15 30 14 19 12 ...
result:
ok Correct! The number of the misses is 866 (75 test cases)
Test #5:
score: 100
Accepted
time: 2ms
memory: 3900kb
First Run Input
prepare 85 RSHXLIARGTANBOIMVCQUCBGQWEDTPMYJWYUFPKESKJODLNFVXH GEFNCRFLXMNOJGIQPLMSBKHDVIUVCHRAAUYWQBPTWYXSJOTEDK PNCEFQSMQNOUJPKTWEAHFSRKGCIVJXXLRHLYBWGODVBYDUTAIM EBFQNGFUKBOYENJSUTTPKPVSIRADCMVRHAHMDCLGLXQXIOJYWW OSYHICRXEQAMWBDUDWANLLNCVBTXMTGEPJYPGFSKIJFHUKRQOV SESXRAXOUIGPVJUNLMJFYEBVFCOBDQHKGW...
First Run Output
00000100000000110000000000000110010100000000001000 00100010010000000010001000000101100000010000001000 01000000010010000000000000001111001000001000100000 00100011000000001111010001000001101000101101000011 00000000001000000011001000100110000010010000010000 101100100000010000100010000100000100000000000...
Second Run Input
play 85 00000100000000110000000000000110010100000000001000 H. X- V. N- L. D- O. J- K. S- E. K- P. U- W. J- P. P+ T. D- E. E+ W. W+ Q. G- B. C- U. U+ Q. Q+ C. C+ V. V+ O. O+ B. B+ N. N+ A. T- G. G+ R. A- L. L+ X. X+ H. H+ S. S+ R. R+ K. K+ J. J+ D. D+ T. T+ A. A+ I. I+ M. M+ Y. Y+ F. F! 0010001001000...
Second Run Output
50 49 48 46 45 44 43 42 41 40 39 38 37 35 33 32 29 37 28 27 26 39 25 33 24 23 22 21 20 35 19 24 18 21 17 48 14 43 13 22 12 46 11 10 9 23 8 7 5 45 4 49 3 50 2 40 1 8 38 41 32 42 27 44 10 28 7 11 6 15 16 30 31 34 36 47 50 49 48 46 45 44 43 42 41 39 38 37 36 41 35 42 34 31 29 28 27 34 26 25 24 49 22 50...
result:
ok Correct! The number of the misses is 988 (85 test cases)
Test #6:
score: 100
Accepted
time: 0ms
memory: 3604kb
First Run Input
prepare 90 HPBUYCSIRIQTEVJLTDYGMNBEKMSFHNCRXVDAUFQAWPLGJWKOXO DGTONCNKSQVCREJMUPOGFWIQPALERLASDYBFVIWKXHTMXBJUHY KODTYFIXXRTNWNCUSLOREEBCUJPABHIDVGLGJMYKWMSQHAPQVF BGTFHKOEJPGLWJIHPWAYVDKIFXSUUQYTENNVCMDRMOASRBXCLQ YSJXTDDMCLKFFBOWVRCSHNPTGARXJQPBKMYWUEAUNGEIIQVHOL QTXVHWNRFUOHCPMGWMLFRSCQKGEIPKEADY...
First Run Output
00000001010100001100000000000000001100011000010101 00000100000100000100000011000010010000000000000001 00000001110000000001111000001000010101000101000100 01000000001010000101000000000010011010000000000100 00000110000110010000000000000000000101000011100000 000010000001000100000000011000100100000000010...
Second Run Input
play 90 00000001010100001100000000000000001100011000010101 X. K- J. G- L. P- Q. F- U. V- X. X+ R. C- N. H- F. F+ S. M- K. K+ E. B- N. N+ M. M+ G. G+ Y. L- J. J+ V. V+ E. E+ Q. Q+ R. R+ S. S+ C. C+ Y. Y+ U. U+ B. B+ P. P+ H. H+ L. L+ I. I+ T. T+ D. D+ A. A+ W. W+ O. O! 0000010000010000010000001100001...
Second Run Output
49 47 45 44 43 42 39 38 37 34 33 49 32 31 30 29 28 38 27 26 25 47 24 23 22 30 21 26 20 44 19 16 15 45 14 34 13 24 11 39 9 32 7 27 6 31 5 19 4 37 3 23 2 42 1 29 16 43 8 10 12 17 18 35 36 40 41 46 48 50 49 48 47 46 45 44 43 42 41 45 40 39 38 37 36 35 33 32 30 29 28 27 24 23 22 39 21 36 20 19 17 48 16 ...
result:
ok Correct! The number of the misses is 1031 (90 test cases)
Test #7:
score: 100
Accepted
time: 2ms
memory: 3904kb
First Run Input
prepare 95 CXKFQPTEDJGCNSIWIDLVHJBTMEUMLQVYOHGPKNRYOFXRSBUWAA DKGIBMTPLXOCTJEVQYVUMAFHNXEOCRDPNQHSUGSWAJRIFYBWKL QHTADVKMABFWXHRLNICEGJOCPXWTYNVMBESJURIODUGFLYSKQP WPTDMLIIEOWCKYSSREBDBFXNQGVNXAPVJHYLUKUCGHQRAFJMOT PUYIWXOSXDQNITNCYWFEKGHPLKVJABJQTUSVRMLCEDFMGAOBHR YFMQKSXVBUIYLCBRDWWNVFHTTMRHUDOGLA...
First Run Output
10000000000100101000100000000000010000100001000011 00000010000010010010000100000000001100110000000100 01000000000001000010000110000000000000000000000001 00000011100000000110100000100001100000000000001000 00000100100100100000100001100000000110000000000001 000000001000001001100010000100000010000011000...
Second Run Input
play 95 10000000000100101000100000000000010000100001000011 W. U- B. S- X. F- O. Y- N. K- P. G- O. O+ Y. Y+ V. Q- L. M- U. U+ E. M- T. B- J. V- L. L+ D. W- S. S+ N. N+ G. G+ J. J+ D. D+ E. E+ T. T+ P. P+ Q. Q+ F. F+ K. K+ X. X+ M. M+ B. B+ V. V+ W. W+ C. C+ I. I+ H. H+ R. R+ A. A! 0000001000001001001...
Second Run Output
48 47 46 45 43 42 41 40 38 37 36 35 33 41 32 40 31 30 29 28 27 47 26 25 24 23 22 20 19 29 18 16 14 45 13 38 11 35 10 22 9 18 8 26 7 24 6 36 5 30 4 42 3 37 2 43 25 28 23 46 20 31 16 48 1 12 15 17 21 34 39 44 49 50 50 49 47 46 45 44 43 42 41 38 37 34 33 32 31 30 29 28 27 26 25 33 23 45 22 41 21 20 18 ...
result:
ok Correct! The number of the misses is 1085 (95 test cases)
Test #8:
score: 100
Accepted
time: 2ms
memory: 3740kb
First Run Input
prepare 100 NKXFSXFWWAOBPEJOTMVHIPUKCGQSRLCRHYNVDMETALGIJQUDBY LQEXDPFVMOMABELGPHCWBJTVCTNYXGRYWJUQKFIHOSNSKAIURD MBTKVSCAPAXWHBEHUSQOGYJIUVTNEIRPFYQXJORNLFDCMKWDGL EBBOJXCXNECGAQQALWPPMJVTGSHIORNMHRDFSYUYLFIUVDKWKT GKOAHWLYQXVKCLRRTCYMFBSQUPDIWIJPVGDFMNAUTSJXHBEEON EQEDVJGKUIXMCYQTANIHSADKWRNFYBGOT...
First Run Output
00010011101000010001000000000000110000000000000001 00000000101010000000101001010001001000000000000100 00000001010010011000000010010000000000011000000001 01100010001010010011000000000100011000000000011010 01000000000110000100000000010110000000000010001100 101000000100000000101000000000000000000001100...
Second Run Input
play 100 00010011101000010001000000000000110000000000000001 B. D- U. Q- J. I- G. L- A. T- E. M- D. D+ V. N- R. C- L. L+ R. R+ S. Q- G. G+ C. C+ K. U- P. I- V. V+ M. M+ T. T+ J. J+ E. E+ P. P+ B. B+ A. A+ X. S- X. X+ K. K+ N. N+ Q. Q+ U. U+ I. I+ S. S+ F. F+ W. W+ O. O+ H. H+ Y. Y! 000000001010100000...
Second Run Output
49 48 47 46 45 44 43 42 41 40 39 38 37 48 36 35 32 31 30 42 29 32 28 27 26 43 25 31 24 23 22 21 19 36 18 38 17 40 15 45 14 39 13 22 12 49 10 41 6 5 3 6 2 24 1 35 27 46 23 47 21 44 5 28 4 7 8 9 11 16 20 33 34 50 50 49 47 46 45 44 43 42 41 40 39 47 38 37 36 34 33 31 30 29 27 43 25 24 22 34 20 33 19 25...
result:
ok Correct! The number of the misses is 1133 (100 test cases)
Test #9:
score: 100
Accepted
time: 2ms
memory: 3604kb
First Run Input
prepare 100 BULRJTVXIHFVSKOMPWMCGENUNYAKIQQXSPBADERWHJCYFDOLGT FIHEGHKMALOKAVTSYYWTMQJCERQNBLFIOPSBDUCXVNRWJXUGPD IGMAXBJVQJGTTPKQCFEEUWRSONNSHBRKUPWHCDDYLXFYVLOIMA FKYUXTNHQBVLPWEOPREKVIMHCOJLXNDGBFUGIRSASJYADMWTCQ RYIDFMJOWUBQNXLWNCRSSGKTXOHPVKTEPAAFMEILQVBUHJDGCY SOVMPWQBMWNURDEALASGVNHCYUTOGKTKY...
First Run Output
00000010000100010010001010100000000110000000010000 00100100100010100001010000101000000110000000000001 01000000001110000011000100011000000101101000010000 00000000000010001100000000000000000001010001000000 10000000000000000011100100000011000001000000000000 000001000100000101010000000011010010100100000...
Second Run Input
play 100 00000010000100010010001010100000000110000000010000 T. G- L. O- F. Y- C. J- H. W- R. E- B. P- S. X- Q. Q+ I. K- Y. Y+ U. E- G. G+ C. C+ W. W+ P. P+ O. O+ K. K+ S. S+ F. F+ H. H+ I. I+ X. X+ T. T+ J. J+ R. R+ L. L+ U. U+ B. B+ E. E+ V. V+ M. M+ N. N+ A. A+ D. D! 001001001000101000010100001010...
Second Run Output
50 49 48 47 45 44 43 42 41 40 39 38 35 34 33 32 31 30 29 28 26 44 24 22 21 49 20 43 18 40 17 34 15 47 14 28 13 33 11 45 10 41 9 29 8 32 6 50 5 42 4 39 3 48 2 24 1 35 22 38 7 12 16 19 23 25 27 36 37 46 49 48 47 46 45 44 43 42 41 40 39 38 35 34 33 32 31 30 28 42 26 43 25 24 23 45 21 19 18 17 16 35 14 ...
result:
ok Correct! The number of the misses is 1132 (100 test cases)
Test #10:
score: 100
Accepted
time: 2ms
memory: 3612kb
First Run Input
prepare 100 SQROXGJWGXFMMKUNTEIRNLEVAYLHDHQPPBCSJIWFUYVCTADBKO PKYCKEOOYJVXPWFGVDJBEULHWQTCAHLMAMURBFQGTIXSRISNND UOOAMTVCCXBSEKWXPGWSRBNYNLIHJYJITFADEHKPRFDMQQVUGL YEFEDNPRNSWMCWBAKSQQRBGLXKOILXTDAGJUVYUMVHHCJIFOTP AVXANGTWWEBDESYBMQHOVRXCLFKDIGJSTJPQFYRCHIKMNLOPUU OJNYRXLJHGGWFMDDMOPKYTHTUAKLNICIE...
First Run Output
00001000010110010000110000110101110000000000000100 01001011010000000010001000000011010000000001001110 01100001101000000000011010100001000100000010110000 01010100101001100000011000000000010010001110000000 10010001100100000000000000010010011000000000000111 010000010110010010010000001001011000000000000...
Second Run Input
play 100 00001000010110010000110000110101110000000000000100 O. K- D. A- T. C- V. Y- U. F- W. I- J. S- C. C+ Q. D- Y. Y+ A. A+ V. V+ E. R- I. I+ E. E+ T. T+ U. U+ K. K+ F. F+ G. W- J. J+ G. G+ O. O+ R. R+ Q. Q+ S. S+ D. D+ W. W+ X. X+ M. M+ N. N+ L. L+ H. H+ P. P+ B. B! 010010110100000000100010000000...
Second Run Output
50 49 47 46 45 44 43 42 41 40 39 38 37 36 35 44 31 29 26 42 25 46 24 43 23 20 19 38 18 23 17 45 15 41 14 49 11 40 9 8 7 37 6 9 4 50 3 20 2 31 1 36 29 47 8 39 5 10 12 13 16 21 22 27 28 30 32 33 34 48 50 46 45 43 42 46 41 40 39 38 37 36 35 33 30 29 28 27 26 39 25 24 22 35 21 20 18 50 17 16 15 38 14 25...
result:
ok Correct! The number of the misses is 1133 (100 test cases)
Test #11:
score: 100
Accepted
time: 2ms
memory: 3676kb
First Run Input
prepare 100 RGFVPILWOVETBGSLKHKNCHJIOXAMPXNQSWJYUDRBMDAEYFQCTU OLRHQVCXUYKWSEJPDYTFGKNVCASHMIDPNERUBOQJMBTGAXLIFW KXYEEFLNYOGBNIUVVDTCRJDSHQISRAUWAQCTWLMPBHMJKXGFPO BUXYMYPJMVFQKCIDQHEUOTITPKHLORXVGLASAGWDCJSBWNEFRN TXKFEIVQISUBKTHXRDJCNOMPMGHNDCLPAWVBWUAEQSJRFYGOYL PSRXNYTOKJMUFUTIRVMKBDXLJBCLFVGHA...
First Run Output
00000010000000010100011000000000001010000000000001 00000000001000000000011000000000100010000100000000 00011001000010011100001100010001000010010000000010 00001000100100001100000000110000011010100000110001 01000000000000010000000100000001100000100000010010 000000001000000000011000011000000010010010000...
Second Run Input
play 100 00000010000000010100011000000000001010000000000001 T. C- Q. F- Y. E- A. D- M. B- R. D- Y. Y+ W. S- Q. Q+ N. X- P. M- A. A+ X. X+ O. I- C. C+ N. N+ K. K+ S. S+ G. B- T. T+ E. E+ V. O- W. W+ I. I+ P. P+ V. V+ F. F+ G. G+ R. R+ D. D+ M. M+ B. B+ O. O+ L. L+ H. H+ J. J+ U. U! 000000000010000000...
Second Run Output
49 48 47 46 45 44 43 42 41 40 39 38 36 45 34 33 32 47 31 30 29 28 27 43 26 30 25 24 21 48 20 31 19 17 15 33 14 13 12 49 11 44 10 9 8 34 6 24 5 29 4 10 3 46 2 14 1 39 38 42 28 41 13 40 9 25 7 16 18 22 23 35 37 50 50 49 48 47 46 45 44 43 41 40 39 38 36 35 34 32 31 30 29 41 28 27 26 45 25 24 21 44 20 4...
result:
ok Correct! The number of the misses is 1140 (100 test cases)
Test #12:
score: 100
Accepted
time: 1ms
memory: 3564kb
First Run Input
prepare 100 VJXSDLHVPDTYCWKILGXUIJANAHYSMUWBRRQTCENEPFFOKBGMOQ BVAFIMQXPHKTKJWSLITNXOEVCFYCOQADGSGDWUPLHNBJRUEMYR RLPSNKYDCLUMVDTHJYIHWQSGRBNXUFOFAAGEQTKCPVJEWBMOIX IBFYNHNRSYOHXPGGKBFCSUMOJLUPKVAQMTCLDWREWQDTAVXIEJ KGRTAINBFADUHILYMBEOPECVXQPDOWWTJSKMGQSVRUHLCNFXYJ ETFGMNTHGOKBXNMELFBWCARUHICYJRWSX...
First Run Output
00001000010000010000101010000000110001010111000010 00000001000000000000110000001001000100000000100001 01000000011000000000000000001101110100000001000000 00010000011000000000000101000000000100010000000010 00000001000000000101000000001110100000000000000001 010000110000000000000000110000000100100101010...
Second Run Input
play 100 00001000010000010000101010000000110001010111000010 Q. M- G. B- K. P- N. C- T. Q- B. B+ W. U- M. M+ S. Y- H. N- J. U- X. G- L. K- W. W+ C. C+ Y. Y+ T. T+ P. P+ V. H- L. L+ S. S+ X. X+ J. J+ V. V+ Q. Q+ N. N+ U. U+ G. G+ K. K+ H. H+ D. D+ I. I+ A. A+ R. R+ E. E+ F. F+ O. O! 000000010000000000...
Second Run Output
50 48 47 46 45 41 39 37 36 35 32 46 31 30 29 48 28 27 26 24 22 20 19 18 17 15 14 31 13 37 12 27 11 36 9 41 8 7 6 17 4 28 3 19 2 22 1 8 35 50 24 39 20 30 18 47 15 45 7 26 5 10 16 21 23 25 33 34 38 40 42 43 44 49 49 48 47 46 44 43 42 41 40 39 38 46 37 35 34 33 31 30 28 27 26 25 24 23 20 42 19 18 17 40...
result:
ok Correct! The number of the misses is 1157 (100 test cases)
Test #13:
score: 100
Accepted
time: 1ms
memory: 3828kb
First Run Input
prepare 100 MOHGEABJDDXQJMYVSPKBWONVTCPLWSQRFEKUNUHTLCXYIAFIGR LOFDRVYTQJXQHRTKMBHCEVSAUUIFAEXLMOGIKPBYNWNWCJPGSD EJBMJEYAAUDIPOTXILRCUQSDNKVPRYFCKMLSQGWFTVXOHNBHWG MHKMCDGVOQRWJBFSKLSGTYUDWOIAIUPCYTQPNEHBNJRAFXXVEL AVRXEJCFQXWBYTQRSWYHOBUPUNGSDMHILCNLFKJKMDGEOITAPV IRLQBTAYITACMJROOJHYNHSPBQLNEVWGX...
First Run Output
10000000000001010000000101000000000000000100100100 00000000100110000010000011100000000101000000001000 10000101100100001010000000001010000000010000100100 10010010000000000001001000000110000110001000011000 00010000010010000011000000000010100101010000000000 000000100010010001001000000110000000011000000...
Second Run Input
play 100 10000000000001010000000101000000000000000100100100 R. G- F. A- Y. X- L. T- H. U- N. U- K. E- F. F+ R. R+ Q. S- W. L- P. T- N. N+ O. W- B. K- P. P+ S. S+ Y. Y+ J. Q- X. X+ D. D+ J. J+ B. B+ A. A+ E. E+ G. G+ H. H+ O. O+ U. U+ L. L+ T. T+ W. W+ K. K+ Q. Q+ M. M+ V. V+ C. C+ I. I! 000000001001...
Second Run Output
50 49 47 46 44 43 41 40 39 38 37 36 35 34 33 47 32 50 31 30 29 28 27 25 23 37 22 21 20 19 18 27 17 30 15 44 13 12 11 43 10 9 8 13 7 20 6 46 5 34 4 49 3 39 2 22 36 38 28 41 25 40 21 29 19 35 12 31 1 14 16 24 26 42 45 48 50 49 48 46 45 44 43 42 41 43 40 39 37 35 34 33 32 31 30 29 28 24 23 49 22 21 20 ...
result:
ok Correct! The number of the misses is 1155 (100 test cases)
Test #14:
score: 100
Accepted
time: 2ms
memory: 3612kb
First Run Input
prepare 100 KVKFHJETMUGYIINCNCXOSBTFLAAQERRDPVHJUXWDPQYWOMLSBG RKGEAFBUDOEJVNHJBSTOAHIWMWKFCPCYYVITXGXQUDLQSNLRMP VFSDMWJQNEGIOKCAQFCUJHRBPLWLMUPOASHKYETNTXGDXRVBIY AUELFVXFMCRTRVDAOJQWJKMQLEUKWSHXGIYHNNBOPBTPGCYSDI MGTWHRVJKOPGAYSEXKCJIQRYPDXNBTEFBOWACHSLINLUVUDQFM CAVGCIHTJQXHKTPQOLADBJDMGUWYENMLV...
First Run Output
10100000000011010100000001100110000000100001000000 00010000001000100000010101001011100010100010001000 00000010000000000000110000000000001000101100100000 00001001001010000100110000010010000111001001000000 01000000000100001000000000101000100000010011010000 100010000100000100010011000000100010000000000...
Second Run Input
play 100 10100000000011010100000001100110000000100001000000 G. B- S. L- M. O- Y. Q- P. D- X. U- J. H- V. P- D. D+ E. Q- L. L+ F. T- B. B+ S. S+ O. O+ X. X+ N. N+ Y. Y+ G. G+ U. U+ M. M+ T. T+ E. E+ J. J+ H. H+ F. F+ V. V+ P. P+ Q. Q+ K. K+ I. I+ C. C+ A. A+ R. R+ W. W! 000100000010001000000101010010...
Second Run Output
50 49 48 47 46 45 43 42 41 40 38 37 36 35 34 33 32 40 29 28 25 47 24 23 22 49 21 48 20 45 19 38 17 15 12 43 11 50 10 37 9 46 8 23 7 29 6 36 5 35 4 24 2 34 33 41 28 42 1 3 13 14 16 18 26 27 30 31 39 44 50 49 48 46 45 44 42 41 40 44 38 36 35 34 30 50 28 27 25 49 23 35 21 20 19 36 18 45 17 16 14 46 13 ...
result:
ok Correct! The number of the misses is 1142 (100 test cases)
Test #15:
score: 100
Accepted
time: 0ms
memory: 3676kb
First Run Input
prepare 100 HXKQHJLCSAEPANTBUFWEUTDPXRRDMQGOKMSBFWVCVLONYYIGJI FHATBVFQWOIECJDGBSLKREDMQYNOTACNMKSJVULXGYIPPURWXH JVWOTSJAXCAPFURISNLKXYEHWMPIOHGFUQBCRQVMLYEGDBDNTK TOWIKXQPDRLAHPNUGUNKIRBECJYSQYMEFSDACFLXHVMJGTWBVO WTBUHJHOXMQNYCGNQBSKUVPFOFGILTXYLARSEDCRVIWAEJMPDK VHYQVKEJMPWUDBTWSMKIAGTEFGSYDUCCJ...
First Run Output
10001000010010100000011000011000010000101000111001 10000010000000100000001100000000100000010000000010 10000010100000000000100100000110000000000001101000 00000001000001100010000100000001100001000100000010 00001010001000001000000101001000100001000000000010 100010000010000110000000001000110000001000000...
Second Run Input
play 100 10001000010010100000011000011000010000101000111001 J. G- N. O- L. C- W. F- B. S- K. O- G. G+ Q. R- R. R+ X. P- U. E- W. W+ F. F+ U. U+ B. B+ N. N+ P. P+ E. E+ S. S+ C. C+ L. L+ J. J+ Q. Q+ K. K+ X. X+ O. O+ H. H+ A. A+ T. T+ D. D+ M. M+ V. V+ Y. Y+ I. I! 100000100000001000000011000000001000...
Second Run Output
49 48 44 43 42 40 38 37 36 35 33 32 31 48 30 27 26 27 25 24 21 20 19 38 18 37 17 21 16 36 14 44 12 24 11 20 9 35 8 40 7 42 6 49 4 30 3 33 2 25 32 43 1 5 10 13 15 22 23 28 29 34 39 41 45 46 47 50 50 48 47 46 45 44 43 42 41 39 38 46 37 36 35 34 32 31 30 29 28 27 26 42 25 22 21 47 20 34 19 39 18 35 17 ...
result:
ok Correct! The number of the misses is 1146 (100 test cases)
Test #16:
score: 100
Accepted
time: 2ms
memory: 3868kb
First Run Input
prepare 100 SCMKNXOIGSNYXFERVPAEUQHDULFWTCLIRKMJPOHBBYGJTDVQWA XGAPSFERTQDFUWOJHLRPYNXIOVSBQTJDGCVKKAMCIUBMLNYEHW OTQJRXSJVDUSNDIPTGYBIRAMWBEFXFCLEKHGMKQAYHOLNPUCVW GTPJIHXDRBSYWEECOUYLWNLCXPMJFUAAMOGTVDHQRNFVKQKIBS URSEIOWGQPCNVFDRMNIUJASLAEBBKFYHJYGVMOXDKWTQXPTCHL ONFBMGMEDKCRRWCKPABJPDIHIYUGWQXSU...
First Run Output
00000100000010100001100011000010000100000001000000 00000100000100100000000011000000001110100001000000 00010001010001000001000001010110000000000000000100 00000000000001110000000100100000100010000001101000 10000000000000000001010010111000000000001010001000 000010100100000110001010101000001010000000010...
Second Run Input
play 100 00000100000010100001100011000010000100000001000000 A. W- Q. V- D. T- G. Y- B. B+ H. O- P. M- K. R- I. C- T. T+ W. W+ F. D- H. H+ Q. Q+ A. A+ P. P+ V. V+ R. R+ F. F+ Y. Y+ N. S- G. G+ I. I+ O. O+ N. N+ K. K+ M. M+ C. C+ S. S+ D. D+ X. X+ E. E+ U. U+ L. L+ J. J! 000001000001001000000000110000...
Second Run Output
50 49 48 47 46 45 43 42 41 40 39 38 37 35 34 33 32 30 29 45 28 49 27 24 23 39 22 48 19 50 18 37 17 47 16 33 14 27 12 42 11 10 9 43 8 32 7 38 5 11 4 34 3 35 2 30 1 10 24 46 6 13 15 20 21 25 26 31 36 44 50 49 48 47 46 45 43 42 41 40 38 34 33 32 31 30 29 28 27 24 23 22 21 47 20 19 18 45 17 49 16 31 14 ...
result:
ok Correct! The number of the misses is 1142 (100 test cases)
Test #17:
score: 100
Accepted
time: 2ms
memory: 3728kb
First Run Input
prepare 100 NNODHVLKIUVAYTXEBRPAPWXGHYJBOMRSSGKFUIQMFWQLTCJEDC HANGPOYBUGIFVTKOXXWBFRQAJLMYLMPUWCJEREKCVNDSIQSHDT ORBBPYTLJSQVISIAGHLGUREEOKAXFKYUJQXDMHNCTNCMDWFWPV GIAKBSRKPITXAVCLFEWDQFVNJJHXOGRMMYDEHUONTBWPUSCQLY PXIMBIELUQGORGWAKHNJQJBYFTNTKAPDDVVCHOSYLURFMCESXW GWUXITHXWIKOVQLSENPLYKDNCQPCJFBRM...
First Run Output
11000100001000100000001100000000010000100010010001 00000100000000011110000000000000110000010010000010 00110000000010101001001100010000001100000000110100 00100000000011000000001011000001110000000000000001 00100100001001000001010001010001111000100000000100 000010000100000001000001100110000010000010000...
Second Run Input
play 100 11000100001000100000001100000000010000100010010001 D. E- J. T- L. W- F. M- I. U- F. F+ K. S- S. S+ R. M- O. B- J. J+ Y. H- W. W+ P. A- P. P+ R. R+ B. B+ E. E+ T. T+ Y. Y+ A. A+ U. U+ I. I+ K. K+ L. L+ H. H+ D. D+ O. O+ M. M+ N. N+ V. V+ X. X+ G. G+ Q. Q+ C. C! 000001000000000111100000000000...
Second Run Output
49 48 47 45 44 42 41 40 38 37 36 41 35 33 32 33 31 30 29 28 27 47 26 25 22 42 21 20 19 21 18 31 17 28 16 48 14 45 13 26 12 20 10 37 9 38 8 35 7 44 5 25 4 49 3 29 30 40 1 2 6 11 15 23 24 34 39 43 46 50 50 48 47 46 45 44 42 41 39 38 37 36 35 32 31 30 29 28 27 30 26 29 25 35 24 23 22 37 21 20 15 39 14 ...
result:
ok Correct! The number of the misses is 1130 (100 test cases)