QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#318985 | #7186. "Memo" Game With a Hint | PhanDinhKhoi# | AC ✓ | 1ms | 3892kb | C++20 | 3.5kb | 2024-02-01 13:16:05 | 2024-02-01 13:16:05 |
Judging History
answer
#include<bits/stdc++.h>
using namespace std;
using ll = long long;
using ld = long double;
using ull = unsigned long long;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using pld = pair<ld, ld>;
#define fi first
#define se second
#define left BAO
#define right ANH
#define pb push_back
#define pf push_front
#define mp make_pair
#define ins insert
#define btpc __builtin_popcount
#define btclz __builtin_clz
#define sz(x) (int)(x.size());
#define all(x) x.begin(), x.end()
#define debug(...) " [" << #__VA_ARGS__ ": " << (__VA_ARGS__) << "] "
mt19937 rng(chrono::steady_clock::now().time_since_epoch().count());
int d4x[4] = {1, 0, -1, 0}; int d4y[4] = {0, 1, 0, -1};
int d8x[8] = {0, 1, 1, 1, 0, -1, -1, -1};
int d8y[8] = {1, 1, 0, -1, -1, -1, 0, 1};
template<class X, class Y>
bool minimize(X &x, const Y &y) {
if (x > y)
{
x = y;
return true;
}
return false;
}
template<class X, class Y>
bool maximize(X &x, const Y &y) {
if (x < y)
{
x = y;
return true;
}
return false;
}
const int MOD = 1e9 + 7; //998244353
template<class X, class Y>
void add(X &x, const Y &y) {
x = (x + y);
if(x >= MOD) x -= MOD;
}
template<class X, class Y>
void sub(X &x, const Y &y) {
x = (x - y);
if(x < 0) x += MOD;
}
/* Author : Le Ngoc Bao Anh, DUT, Da Nang */
const ll INF = 1e9;
const int N = 1e5 + 10;
int cnt[N], RR[N];
bool ok[N];
int onLeft[N], onRight[N];
bool asked[N];
void BaoJiaoPisu() {
string s; cin >> s;
if(s == "prepare") {
int t; cin >> t;
while(t--) {
for(int i = 0; i <= 26; i++) cnt[i] = 0;
string s; cin >> s;
for(int i = 0; i < s.size(); i++) {
int x = (s[i] - 'A');
cout << cnt[x];
cnt[x]++;
}
cout << endl;
}
} else {
int t; cin >> t;
while(t--) {
vector<int> left, right;
for(int i = 1; i <= 50; i++) {
ok[i] = asked[i] = 0;
char c; cin >> c;
if(c == '0') left.pb(i);
else right.pb(i);
}
// string T; cin >> T;
for(int i = 0; i <= 25; i++) {
onLeft[i] = onRight[i] = ok[i] = 0;
}
shuffle(all(left), rng);
shuffle(all(right), rng);
int cnt = 0;
int wrong = 0;
for(int i = 0; i < 25; i += 2) {
cout << left[i] << endl;
string s; cin >> s;
// string s = ""; s += T[left[i] - 1];
int curr = s[0] - 'A';
onLeft[curr] = left[i];
cout << left[(i + 1) % 25] << endl;
cin >> s;
// s = ""; s += T[left[(i + 1) % 25] - 1];
curr = s[0] - 'A';
onLeft[curr] = left[(i + 1) % 25];
++wrong;
}
for(int i = 0; i < 25; i++) {
if(!asked[i]) {
cout << right[i] << endl;
string s; cin >> s;
// string s = ""; s += T[right[i] - 1];
RR[i] = s[0] - 'A';
}
int curr = RR[i];
if(!ok[curr]) {
assert(onLeft[curr]);
cout << onLeft[curr] << endl;
ok[curr] = true;
string s; cin >> s;
++cnt;
// string s = ""; s += T[onLeft[curr] - 1];
}
}
assert(cnt == 25);
}
}
}
int main()
{
ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0);
#ifndef ONLINE_JUDGE
freopen("input.txt", "r", stdin);
freopen("output.txt", "w", stdout);
#else
//online
#endif
int tc = 1, ddd = 0;
// cin >> tc;
while(tc--) {
//ddd++;
//cout << "Case #" << ddd << ": ";
BaoJiaoPisu();
}
}
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 0ms
memory: 3852kb
First Run Input
prepare 2 ABCDEFGHIJKLMNOPQRSTUVWXYABCDEFGHIJKLMNOPQRSTUVWXY AABBCCDDEEFFGGHHIIJJKKLLMMNNOOPPQQRRSSTTUUVVWWXXYY
First Run Output
00000000000000000000000001111111111111111111111111 01010101010101010101010101010101010101010101010101
Second Run Input
play 2 00000000000000000000000001111111111111111111111111 H. C- J. P- Y. O- S. X- N. U- A. M- R. W- B. T- D. L- E. G- K. Q- F. I- V. H- U. U+ N. N+ K. K+ D. D+ L. L+ J. J+ E. E+ T. T+ M. M+ R. R+ O. O+ B. B+ V. V+ S. S+ I. I+ F. F+ H. H+ W. W+ X. X+ G. G+ C. C+ P. P+ Y. Y+ A. A+ Q. Q! 01010101010101...
Second Run Output
8 3 10 16 25 15 19 24 14 21 1 13 18 23 2 20 4 12 5 7 11 17 6 9 22 8 46 21 39 14 36 11 29 4 37 12 35 10 30 5 45 20 38 13 43 18 40 15 27 2 47 22 44 19 34 9 31 6 33 8 48 23 49 24 32 7 28 3 41 16 50 25 26 1 42 17 17 41 3 45 5 27 31 19 1 9 13 35 29 23 21 47 11 37 43 15 49 33 25 39 7 17 26 25 16 15 42 41 ...
result:
ok Correct! The number of the misses is 26 (2 test cases)
Test #2:
score: 100
Accepted
time: 0ms
memory: 3588kb
First Run Input
prepare 1 FNETFOMMJTYCXKCRYLGXKSPAIVQNBURJAPQHUDWSDWVIHGELBO
First Run Output
00001001010000101001100000010011111010011111111111
Second Run Input
play 1 00001001010000101001100000010011111010011111111111 E. Y- F. K- X. Q- C. A- M. L- S. J- V. U- G. W- I. T- R. H- D. B- O. N- P. E- X. X+ W. W+ I. I+ A. A+ F. F+ U. U+ R. R+ C. C+ S. S+ Y. Y+ V. V+ P. P+ O. O+ E. E+ L. L+ D. D+ B. B+ G. G+ H. H+ N. N+ M. M+ T. T+ J. J+ Q. Q+ K. K!
Second Run Output
3 11 1 14 13 27 12 24 7 18 22 9 26 30 19 39 25 4 16 36 38 29 6 2 23 3 20 13 42 39 44 25 33 24 5 1 37 30 31 16 15 12 40 22 17 11 43 26 34 23 50 6 47 3 48 18 41 38 49 29 46 19 45 36 28 2 8 7 10 4 32 9 35 27 21 14
result:
ok Correct! The number of the misses is 13 (1 test case)
Test #3:
score: 100
Accepted
time: 1ms
memory: 3664kb
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 A. O- B. X- M. N- J. K- H. T- L. F- Q. P- U. S- W. R- V. E- D. I- Y. G- C. A- V. V+ W. W+ U. U+ E. E+ L. L+ I. I+ J. J+ K. K+ R. R+ Q. Q+ Y. Y+ T. T+ S. S+ X. X+ F. F+ C. C+ N. N+ O. O+ D. D+ G. G+ M. M+ P. P+ B. B+ A. A+ H. H! 0000000100011...
Second Run Output
3 29 14 39 13 10 6 27 5 15 12 1 16 18 25 23 7 34 4 11 2 8 22 17 9 3 43 4 28 7 26 25 37 11 35 12 42 8 32 6 49 27 48 34 46 16 30 22 24 15 41 23 40 39 38 1 21 9 33 10 44 29 47 2 36 17 19 13 50 18 31 14 45 3 20 5 16 1 14 24 18 15 17 28 21 33 19 11 27 2 3 39 25 7 10 9 20 5 4 6 23 16 36 16 35 15 42 18 47 ...
result:
ok Correct! The number of the misses is 650 (50 test cases)
Test #4:
score: 100
Accepted
time: 0ms
memory: 3828kb
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 K. S- B. V- H. L- T. N- M. R- U. W- F. X- D. I- J. E- P. C- A. Y- Q. O- G. K- S. S+ F. F+ B. B+ V. V+ J. J+ K. K+ Q. Q+ M. M+ U. U+ H. H+ W. W+ P. P+ L. L+ I. I+ Y. Y+ E. E+ O. O+ X. X+ R. R+ C. C+ N. N+ T. T+ A. A+ D. D+ G. G! 0000000000000...
Second Run Output
15 4 33 9 3 8 24 12 5 23 6 28 22 37 10 19 7 1 11 17 2 27 32 42 47 15 30 4 39 22 34 33 29 9 43 7 38 15 44 32 25 5 45 6 26 3 35 28 16 11 13 8 20 19 50 27 14 1 49 42 41 37 36 23 21 17 18 12 31 24 46 2 40 10 48 47 29 13 4 7 35 28 23 42 12 5 18 2 11 8 14 15 3 31 27 6 1 10 9 40 17 29 48 10 20 17 37 8 46 4...
result:
ok Correct! The number of the misses is 975 (75 test cases)
Test #5:
score: 100
Accepted
time: 1ms
memory: 3664kb
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 D. X- Q. O- F. R- J. P- Y. V- A. W- H. M- T. K- C. U- N. I- B. G- L. E- S. D- I. I+ X. X+ S. S+ T. T+ J. J+ R. R+ H. H+ B. B+ N. N+ Y. Y+ U. U+ L. L+ E. E+ Q. Q+ D. D+ V. V+ M. M+ W. W+ C. C+ G. G+ F. F+ K. K+ O. O+ P. P+ A. A! 0000001000100...
Second Run Output
27 4 19 14 36 1 32 29 31 17 7 25 3 16 10 38 18 20 12 6 13 9 5 26 2 27 15 6 49 4 40 2 28 10 42 32 8 1 50 3 22 13 46 12 34 31 35 20 45 5 39 26 24 19 44 27 48 17 30 16 33 25 21 18 23 9 47 36 41 38 43 14 37 29 11 7 27 9 8 40 5 22 1 20 10 15 3 36 32 12 25 24 4 6 35 23 21 13 17 16 2 27 41 36 39 17 34 27 4...
result:
ok Correct! The number of the misses is 1105 (85 test cases)
Test #6:
score: 100
Accepted
time: 1ms
memory: 3892kb
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 E. B- U. D- O. V- W. S- R. M- H. L- G. A- P. F- N. C- T. K- X. I- Q. Y- J. E- L. L+ X. X+ U. U+ J. J+ O. O+ P. P+ V. V+ Q. Q+ K. K+ N. N+ T. T+ C. C+ G. G+ M. M+ A. A+ H. H+ D. D+ W. W+ I. I+ S. S+ B. B+ F. F+ E. E+ R. R+ Y. Y! 0000001000010...
Second Run Output
13 3 4 18 48 14 41 7 9 21 1 16 20 36 2 28 22 6 12 25 33 8 11 5 15 13 43 16 49 33 37 4 45 15 50 48 42 2 34 14 39 11 47 25 30 22 17 12 31 6 44 20 26 21 40 36 29 1 35 18 46 41 10 8 27 7 23 3 38 28 24 13 32 9 19 5 16 2 8 10 6 15 22 21 4 14 17 35 1 34 13 11 23 42 3 5 41 18 9 27 26 16 33 1 19 4 28 14 44 1...
result:
ok Correct! The number of the misses is 1170 (90 test cases)
Test #7:
score: 100
Accepted
time: 1ms
memory: 3660kb
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 F. S- C. Q- X. U- N. R- M. V- P. D- O. A- J. L- I. Y- W. H- T. G- K. E- B. F- S. S+ E. E+ A. A+ M. M+ C. C+ X. X+ V. V+ H. H+ Y. Y+ U. U+ G. G+ B. B+ D. D+ I. I+ F. F+ J. J+ W. W+ L. L+ K. K+ O. O+ P. P+ Q. Q+ R. R+ N. N+ T. T! 0000000000001...
Second Run Output
4 14 1 5 2 27 13 39 25 20 6 9 33 49 10 19 15 32 16 21 7 11 3 8 23 4 45 14 26 8 50 49 28 25 12 1 43 2 31 20 34 21 40 32 47 27 35 11 46 23 18 9 17 15 42 4 22 10 48 16 29 19 37 3 41 33 36 6 30 5 44 39 38 13 24 7 24 22 40 7 30 18 23 16 5 11 2 3 9 4 8 12 14 17 1 6 20 10 36 25 15 24 32 8 41 22 27 15 42 14...
result:
ok Correct! The number of the misses is 1235 (95 test cases)
Test #8:
score: 100
Accepted
time: 1ms
memory: 3660kb
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 T. F- O. Y- N. W- H. R- X. D- G. K- J. M- P. V- S. C- A. L- Q. I- U. E- B. T- R. R+ J. J+ S. S+ T. T+ L. L+ Q. Q+ O. O+ W. W+ X. X+ M. M+ F. F+ D. D+ N. N+ B. B+ Y. Y+ C. C+ P. P+ E. E+ V. V+ U. U+ I. I+ H. H+ K. K+ G. G+ A. A! 000000000010...
Second Run Output
17 4 11 34 1 8 20 29 3 37 26 2 15 18 13 19 5 25 10 30 27 21 23 14 12 17 32 29 45 15 28 5 40 17 42 30 46 27 16 11 9 8 6 3 38 18 7 4 48 37 35 1 49 12 50 34 31 25 22 13 39 14 36 19 47 23 44 21 33 20 24 2 43 26 41 10 12 27 22 20 37 8 10 42 31 4 1 39 35 2 23 13 18 16 19 7 9 3 5 28 6 12 48 35 26 23 29 4 4...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #9:
score: 100
Accepted
time: 1ms
memory: 3824kb
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 J. D- B. W- F. T- A. C- P. R- S. V- G. K- I. M- O. N- E. H- Y. L- Q. U- X. J- J. J+ Q. Q+ G. G+ I. I+ A. A+ M. M+ C. C+ O. O+ E. E+ U. U+ T. T+ R. R+ X. X+ F. F+ D. D+ N. N+ Y. Y+ L. L+ B. B+ K. K+ W. W+ S. S+ P. P+ H. H+ V. V! 000001000001...
Second Run Output
5 37 1 18 11 6 27 20 17 4 13 7 21 14 9 16 15 23 22 10 26 3 30 2 8 5 42 5 31 30 49 21 29 9 36 27 19 16 43 20 47 15 38 22 24 2 50 6 39 4 32 8 45 11 46 37 25 23 44 26 48 3 35 1 28 14 40 18 33 13 34 17 41 10 12 7 19 9 7 8 15 14 40 37 24 1 5 2 16 26 29 23 4 28 38 34 3 11 22 10 17 19 13 9 35 16 12 7 44 19...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #10:
score: 100
Accepted
time: 1ms
memory: 3656kb
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. A- C. F- E. W- R. X- S. I- N. P- D. Q- K. B- Y. M- L. T- U. H- G. J- V. O- L. L+ C. C+ A. A+ W. W+ M. M+ V. V+ G. G+ E. E+ I. I+ P. P+ J. J+ K. K+ R. R+ F. F+ N. N+ H. H+ T. T+ U. U+ S. S+ Y. Y+ Q. Q+ B. B+ D. D+ O. O+ X. X! 000010011000...
Second Run Output
4 25 35 11 18 8 3 5 1 19 16 32 29 2 14 34 26 12 22 17 15 28 6 7 24 4 27 22 44 35 46 25 39 8 13 12 43 24 9 6 23 18 38 19 33 32 37 7 49 14 20 3 40 11 21 16 30 28 45 17 41 15 36 1 42 26 31 2 48 34 47 29 50 4 10 5 23 48 24 15 32 27 44 10 11 7 14 16 20 26 12 4 3 18 29 36 42 2 22 6 1 23 38 15 50 18 34 32 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #11:
score: 100
Accepted
time: 1ms
memory: 3700kb
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 K. H- R. D- Y. C- T. U- J. S- V. B- G. O- E. F- N. Q- L. X- P. I- M. A- W. K- L. L+ G. G+ U. U+ J. J+ I. I+ K. K+ T. T+ O. O+ H. H+ R. R+ Q. Q+ N. N+ P. P+ S. S+ X. X+ D. D+ F. F+ A. A+ C. C+ W. W+ M. M+ V. V+ B. B+ E. E+ Y. Y! 000000000000...
Second Run Output
17 18 1 38 36 21 12 37 23 15 4 13 2 9 11 3 20 32 7 26 5 6 28 27 8 17 16 7 14 2 50 37 35 23 24 6 19 17 49 12 25 9 22 18 39 1 47 32 31 20 29 5 33 15 30 26 42 38 46 3 43 27 48 21 34 8 41 28 10 4 40 13 44 11 45 36 1 26 29 37 11 4 20 8 14 2 21 5 10 15 7 17 13 9 23 12 6 16 30 3 19 1 36 9 33 23 40 15 47 2 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #12:
score: 100
Accepted
time: 1ms
memory: 3656kb
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 W. I- O. K- M. T- L. P- B. Q- A. D- U. F- V. X- E. N- Y. C- G. J- H. S- R. W- R. R+ M. M+ L. L+ V. V+ G. G+ S. S+ N. N+ X. X+ W. W+ F. F+ H. H+ C. C+ O. O+ A. A+ D. D+ U. U+ T. T+ Y. Y+ P. P+ J. J+ Q. Q+ E. E+ B. B+ K. K+ I. I! 000000000000...
Second Run Output
14 16 44 15 29 11 6 9 32 35 23 5 20 42 1 3 38 24 12 13 18 2 7 4 33 14 34 33 48 29 17 6 8 1 47 18 28 4 39 24 19 3 31 14 43 42 26 7 37 13 49 44 25 23 10 5 30 20 36 11 27 12 41 9 22 2 50 35 40 38 46 32 45 15 21 16 10 45 6 12 32 4 14 27 17 9 23 1 3 2 15 22 5 20 38 25 7 11 33 8 16 10 19 12 43 1 41 10 37 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #13:
score: 100
Accepted
time: 1ms
memory: 3656kb
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 A. I- T. L- W. B- U. X- Y. O- D. R- E. K- M. P- Q. G- V. N- C. J- F. H- S. A- C. C+ D. D+ H. H+ E. E+ S. S+ P. P+ R. R+ I. I+ Y. Y+ F. F+ N. N+ U. U+ L. L+ M. M+ X. X+ T. T+ W. W+ J. J+ Q. Q+ K. K+ V. V+ O. O+ G. G+ B. B+ A. A! 000000000001...
Second Run Output
6 45 25 28 21 7 36 11 15 2 9 32 5 19 1 18 12 4 16 23 26 8 33 3 17 6 42 26 10 9 39 3 34 5 30 17 27 18 50 32 48 45 44 15 47 33 37 23 38 36 41 28 14 1 43 11 40 25 29 21 13 8 31 12 35 19 24 16 22 2 49 4 20 7 46 6 1 3 25 21 35 41 10 13 6 23 17 42 16 8 20 9 7 24 18 5 2 27 11 38 4 1 39 18 32 1 46 10 31 11 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #14:
score: 100
Accepted
time: 1ms
memory: 3656kb
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 C. F- Y. Q- G. V- N. R- L. I- O. E- D. M- B. S- K. H- J. A- U. X- P. W- T. C- F. F+ T. T+ J. J+ N. N+ D. D+ E. E+ Q. Q+ K. K+ P. P+ G. G+ Y. Y+ V. V+ C. C+ O. O+ A. A+ L. L+ U. U+ H. H+ S. S+ X. X+ B. B+ I. I+ M. M+ R. R+ W. W! 000000000010...
Second Run Output
16 4 12 28 11 2 15 30 25 13 20 7 32 9 22 21 1 5 6 26 10 19 33 39 8 16 24 4 23 8 36 6 17 15 40 32 29 7 42 28 3 1 41 33 50 11 43 12 34 2 18 16 45 20 27 26 47 25 37 10 35 5 48 21 38 19 49 22 14 13 46 9 31 30 44 39 7 13 5 9 12 37 1 29 24 2 6 8 19 3 30 23 4 25 18 32 14 10 43 40 15 7 44 40 28 6 50 30 46 1...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #15:
score: 100
Accepted
time: 0ms
memory: 3892kb
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 K. I- J. T- U. G- N. C- S. F- P. L- H. E- B. W- X. D- Q. A- O. R- V. Y- M. K- S. S+ D. D+ R. R+ F. F+ C. C+ U. U+ O. O+ A. A+ Q. Q+ G. G+ W. W+ T. T+ X. X+ E. E+ L. L+ M. M+ Y. Y+ B. B+ K. K+ N. N+ H. H+ I. I+ J. J+ V. V+ P. P! 000000100000...
Second Run Output
3 47 6 15 17 31 14 8 9 18 12 7 1 11 16 19 2 23 4 10 32 26 39 45 29 3 35 9 28 23 27 26 37 18 40 8 21 17 43 32 13 10 30 4 48 31 38 19 22 15 25 2 20 11 42 7 34 29 46 45 36 16 33 3 44 14 5 1 50 47 49 6 41 39 24 12 24 14 9 15 27 2 19 13 8 3 1 26 18 21 38 40 20 11 10 12 4 44 5 16 6 24 17 5 34 20 28 10 39 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #16:
score: 100
Accepted
time: 1ms
memory: 3660kb
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 F. J- X. S- U. A- R. N- B. O- V. M- H. Q- L. G- W. I- E. K- C. P- D. T- Y. F- W. W+ S. S+ U. U+ X. X+ O. O+ H. H+ N. N+ Y. Y+ G. G+ D. D+ M. M+ K. K+ P. P+ R. R+ V. V+ L. L+ F. F+ A. A+ Q. Q+ B. B+ E. E+ I. I+ T. T+ J. J+ C. C! 000000000001...
Second Run Output
14 36 6 1 21 19 16 5 40 7 17 3 23 22 26 9 28 8 15 4 2 18 24 29 12 14 49 28 10 1 25 21 13 6 38 7 39 23 11 5 42 12 43 9 46 24 35 3 34 4 37 18 33 16 47 17 31 26 27 14 50 19 48 22 41 40 20 15 32 8 45 29 44 36 30 2 6 1 34 3 22 18 16 28 36 4 17 39 24 9 21 13 5 2 14 11 15 26 7 8 10 6 19 8 25 15 46 22 35 26...
result:
ok Correct! The number of the misses is 1300 (100 test cases)
Test #17:
score: 100
Accepted
time: 1ms
memory: 3596kb
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 I. O- D. F- G. S- L. R- W. A- Y. X- E. N- T. J- K. C- B. P- Q. H- U. V- M. I- V. V+ N. N+ W. W+ Y. Y+ L. L+ T. T+ R. R+ A. A+ M. M+ B. B+ H. H+ F. F+ U. U+ I. I+ X. X+ J. J+ K. K+ C. C+ D. D+ S. S+ P. P+ G. G+ E. E+ O. O+ Q. Q! 000000000100...
Second Run Output
9 3 4 36 24 32 7 18 22 12 13 15 16 1 14 27 8 46 17 19 39 5 10 6 30 9 11 6 2 1 42 22 26 13 44 7 45 14 31 18 20 12 40 30 28 17 25 5 41 36 37 10 38 9 23 15 47 27 35 8 50 46 49 4 33 32 21 19 34 24 48 16 29 3 43 39 44 25 23 4 15 5 3 1 27 12 13 9 36 14 19 2 34 22 8 17 7 43 11 6 26 44 41 13 49 43 47 44 33 ...
result:
ok Correct! The number of the misses is 1300 (100 test cases)