QOJ.ac
QOJ
The 2nd Universal Cup Finals is coming! Check out our event page, schedule, and competition rules!
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#873145 | #4051. 学术社区 | liuziao | 20 | 240ms | 47688kb | C++23 | 6.8kb | 2025-01-26 09:58:34 | 2025-01-26 09:58:36 |
Judging History
answer
#include <bits/stdc++.h>
// #define int int64_t
const int kMaxN = 8e5 + 5;
int n, m, t;
int in[kMaxN * 2], out[kMaxN * 2], res[kMaxN], cur[kMaxN * 2];
bool del[kMaxN];
std::tuple<int, int, int> e[kMaxN], _e[kMaxN];
std::vector<int> vec[kMaxN], stk;
std::map<std::string, int> mp;
std::vector<std::pair<int, int>> G[kMaxN * 2];
namespace Dinic {
struct Edge {
int v, w, id, pre;
} e[kMaxN * 10];
int tot = 1, n, s, t;
int tail[kMaxN * 2], cur[kMaxN * 2], dep[kMaxN * 2];
void init(int _n, int _s, int _t) {
for (int i = 1; i <= n; ++i) tail[i] = cur[i] = dep[i] = 0;
for (int i = 1; i <= tot; ++i) e[i] = {0, 0, 0};
tot = 1, n = _n, s = _s, t = _t;
}
void adde(int u, int v, int w, int id) { e[++tot] = {v, w, id, tail[u]}, tail[u] = tot; }
void add(int u, int v, int w, int id) { adde(u, v, w, id), adde(v, u, 0, id); }
bool bfs() {
std::queue<int> q;
for (int i = 1; i <= n; ++i)
cur[i] = tail[i], dep[i] = 1e9;
q.emplace(s), dep[s] = 0;
for (; !q.empty();) {
int u = q.front(); q.pop();
for (int i = tail[u]; i; i = e[i].pre) {
int v = e[i].v, w = e[i].w;
if (w && dep[v] == 1e9) {
dep[v] = dep[u] + 1, q.emplace(v);
}
}
}
return dep[t] != 1e9;
}
int dfs(int u, int lim) {
if (u == t || !lim) return lim;
int flow = 0;
for (int &i = cur[u]; i; i = e[i].pre) {
int v = e[i].v, w = e[i].w;
if (w && dep[v] == dep[u] + 1) {
int fl = dfs(v, std::min(lim, w));
if (!fl) dep[v] = 1e9;
lim -= fl, flow += fl;
e[i].w -= fl, e[i ^ 1].w += fl;
if (!lim) break;
}
}
return flow;
}
int maxflow() {
int ans = 0;
for (; bfs(); ans += dfs(s, 1e9)) {}
return ans;
}
std::vector<int> getdel() {
std::vector<int> vec;
int flow = maxflow();
for (int i = 1; i <= ::n; ++i) {
for (int id = tail[i]; id; id = e[id].pre) {
int j = e[id].v;
if (j >= ::n + 1 && j <= 2 * ::n && !e[id].w) {
vec.emplace_back(e[id].id);
}
}
}
return vec;
}
} // namespace Dinic
void init() {
t = 0, stk.clear(), mp.clear();
for (int i = 1; i <= m; ++i) del[i] = 0, vec[i].clear();
for (int i = 1; i <= 2 * n + 1; ++i) G[i].clear(), cur[i] = in[i] = out[i] = 0;
}
void prework() {
static std::tuple<int, int, int> tmp[kMaxN];
std::set<std::tuple<int, int, int, int>> st;
int _m = 0;
for (int i = 1; i <= m; ++i) {
auto [op, u, v] = e[i];
if (op == 0 || op == 1) {
auto it = st.lower_bound({op ^ 1, v, u, 0});
if (it != st.end() && std::get<0>(*it) == (op ^ 1) && std::get<1>(*it) == v && std::get<2>(*it) == u) {
if (op == 0) {
tmp[++_m] = {2, u, v};
vec[_m] = {i, std::get<3>(*it)};
} else {
tmp[++_m] = {2, v, u};
vec[_m] = {std::get<3>(*it), i};
}
st.erase(it);
} else {
st.emplace(op, u, v, i);
}
} else {
tmp[++_m] = {op, u, u};
vec[_m] = {i};
}
}
for (auto [op, u, v, i] : st) {
tmp[++_m] = {op, u, v};
vec[_m] = {i};
}
m = _m;
for (int i = 1; i <= m; ++i) e[i] = tmp[i];
}
void getdeg(bool o = 0) {
if (!o) {
for (int i = 1; i <= 2 * n; ++i) in[i] = out[i] = 0;
}
for (int i = 1; i <= m; ++i) {
if (del[i]) continue;
auto [op, u, v] = e[i];
if (op == 0) {
++out[u], ++in[v];
if (o) G[u].emplace_back(v, i);
} else if (op == 1) {
++out[v + n], ++in[u + n];
if (o) G[v + n].emplace_back(u + n, i);
} else {
++out[u], ++in[v + n];
if (o) G[u].emplace_back(v + n, i);
}
}
}
void dfs(int u) {
for (int i = cur[u]; i < (int)G[u].size(); i = cur[u]) {
auto [v, id] = G[u][i];
cur[u] = i + 1;
dfs(v);
stk.emplace_back(id);
}
}
int getcnt() {
int cnt = 0;
for (int i = 1; i <= t; ++i) {
// auto [op, u, v] = _e[i];
// if (op == 0 && i < t && v == std::get<1>(_e[i + 1]) || op == 1 && i > 1 && v == std::get<1>(_e[i - 1]))
// ++cnt;
auto [op, u, v] = e[i];
if (op != 2) ++cnt;
// if (op == 0 && i < t && v == std::get<1>(e[i + 1]) || op == 1 && i > 1 && v == std::get<1>(e[i - 1]))
// ++cnt;
}
return cnt;
}
void dickdreamer() {
std::cin >> n >> m;
init();
for (int i = 1; i <= n; ++i) {
std::string s;
std::cin >> s;
mp[s] = i;
}
for (int i = 1; i <= m; ++i) {
std::string s1, s2, s3;
std::cin >> s1 >> s2 >> s3;
if (s3 == "loushang" && mp.count(s2)) {
e[i] = {0, mp[s1], mp[s2]};
} else if (s3 == "louxia" && mp.count(s2)) {
e[i] = {1, mp[s1], mp[s2]};
} else {
int id = mp[s1];
e[i] = {2, id, id};
}
_e[i] = e[i];
}
for (int i = 1; i <= m; ++i) vec[i] = {i};
// prework();
// for (int i = 1; i <= m; ++i) {
// for (auto x : vec[i]) std::cout << x << ' ';
// std::cout << '\n';
// }
// std::cout << '\n';
// int S = 2 * n + 1, T = 2 * n + 2;
// Dinic::init(2 * n + 2, S, T);
// getdeg();
// for (int i = 1; i <= 2 * n; ++i) std::cerr << in[i] << ' ' << out[i] << '\n';
// for (int i = 1; i <= n; ++i)
// if (in[i] > out[i])
// Dinic::add(S, i, in[i] - out[i], 0);
// for (int i = n + 1; i <= 2 * n; ++i)
// if (out[i] > in[i])
// Dinic::add(i, T, out[i] - in[i], 0);
// for (int i = 1; i <= m; ++i) {
// auto [op, u, v] = e[i];
// // std::cout << op << ' ' << u << ' ' << v << '\n';
// if (op == 0) {
// Dinic::add(v, u + n, 1, i);
// } else if (op == 1) {
// Dinic::add(u, v + n, 1, i);
// }
// }
// auto dvec = Dinic::getdel();
// for (int i = 1; i <= 2 * n; ++i) in[i] = out[i] = 0;
// for (auto i : dvec) {
// auto [op, u, v] = e[i];
// G[u].emplace_back(u + n, i), ++out[u], ++in[u + n];
// }
getdeg(1);
for (int i = 1; i <= 2 * n; ++i) {
if (i <= n) assert(in[i] <= out[i]);
else assert(in[i] >= out[i]);
if (in[i] <= out[i]) {
for (; in[i] < out[i];)
G[2 * n + 1].emplace_back(i, 0), ++out[2 * n + 1], ++in[i];
} else {
for (; out[i] < in[i];)
G[i].emplace_back(2 * n + 1, 0), ++out[i], ++in[2 * n + 1];
}
}
for (int i = 1; i <= 2 * n + 1; ++i) assert(in[i] == out[i]);
dfs(2 * n + 1);
for (auto x : stk) {
// res[++t] = x;
for (auto i : vec[x]) res[++t] = i;
}
// std::cerr << t << '\n';
std::cout << getcnt() << '\n';
for (int i = 1; i <= t; ++i) std::cout << res[i] << " \n"[i == t];
}
int32_t main() {
#ifdef ORZXKR
freopen("in.txt", "r", stdin);
freopen("out.txt", "w", stdout);
#endif
std::ios::sync_with_stdio(0), std::cin.tie(0), std::cout.tie(0);
int T = 1;
std::cin >> T;
while (T--) dickdreamer();
// std::cerr << 1.0 * clock() / CLOCKS_PER_SEC << "s\n";
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Pretests
Final Tests
Test #1:
score: 0
Runtime Error
input:
5 7 10 A B C D E F G A A A B B B C C C D D D E E E F F F G G G A B loushang C B loushang G B loushang 3 10 A B C A A A B B B C C C A B loushang C B loushang B A louxia B A louxia B C louxia B C louxia A C loushang 3 10 A B C A A A B B B C C C A B loushang A B loushang B C louxia B C louxia A C louxi...
output:
result:
Test #2:
score: 0
Runtime Error
input:
10 4 16 A B C D A abcdefghijkl ABCDEFGHIJKL B abcdefghijkl ABCDEFGHIJKL C abcdefghijkl ABCDEFGHIJKL D abcdefghijkl ABCDEFGHIJKL C D loushang C B louxia B C loushang D A louxia B D louxia A A louxia D A louxia C D loushang D C loushang B A louxia B B loushang A A louxia 4 16 A B C D A abcdefghijkl AB...
output:
result:
Test #3:
score: 2
Acceptable Answer
time: 9ms
memory: 20616kb
input:
30 32 153 JpwBq..HDsu ThevfUaiXaim rPzLFrkzS!x? bId_HMvquumA qIfydwrvFtUF MEWFHdwhdv lhPN?!NqYwM glDverWioFj XQrJZ?atrx hpmKvNwWSyhm !KyWsTyVYf wbhBWyPFh.N PSsASTqBzE mLCSCCLz.O t.mbBELmCr r.I!!?VCwnJQ I?u!__ObGu ?_WyipVJj_c cLDIkTYgonB RUklAjWZ!.om WRXWhpWD.g JNqhVkbJ_g HxpqMsUj!XOV WvkzijbZb!D !wy...
output:
121 148 151 30 146 69 153 119 33 56 149 111 130 139 138 9 120 50 140 67 42 96 137 141 117 92 145 98 121 94 87 15 78 147 133 143 114 131 20 23 97 102 88 150 71 132 109 135 103 113 74 142 12 125 44 104 118 1 49 72 129 60 100 144 128 89 101 126 134 64 95 127 110 122 116 81 83 19 45 61 58 65 21 115 82 8...
result:
points 0.50 Maximum number correct, method not correct.
Test #4:
score: 2
Acceptable Answer
time: 8ms
memory: 20548kb
input:
30 32 165 cOrq.aXFlS hhUwqwEhbR STbfehzpg_ .pEbZEBQ!CJ !ZrjAUDsFKIV DxAYVmTQHlG mdehhvitnCx Znc.cGD.dy .rgMqdJwB.H oDxVlF?.wxW bxF_qUlnMs dvhzBd?WJL hbDuYRbJQpHF YJfupPIUzJtk mUR!I?Exxr csFCwfWNkd_s dcAMbqtmnYDA FyE.mDdgzC uYpIamtkCVR dPQgKFgYZP tTl!ExnlcY oVNrqKw?.A gigkZHizGX dSoVEtHSEhWw QhoSFhcs...
output:
133 147 69 151 114 82 138 6 98 141 165 160 131 53 142 110 23 119 164 156 137 163 132 159 91 157 18 92 148 111 95 158 135 145 162 128 136 122 48 116 155 140 29 97 144 72 152 99 39 153 80 134 79 61 93 161 108 106 107 118 88 70 65 149 143 109 47 133 64 34 129 89 74 130 127 35 43 104 81 63 3 139 56 15 8...
result:
points 0.50 Maximum number correct, method not correct.
Test #5:
score: 0
Runtime Error
input:
30 37 174 iGtEwpQ?kqZO OZqk?QpwEtGq OZqk?QpwEtG? jGtEwpQ?kqZO OZqk?QpwEtGu OZqk?QpwEtGO IGtEwpQ?kqZO OZqk?QpwEtGw SGtEwpQ?kqZO BGtEwpQ?kqZO OZqk?QpwEtGb oGtEwpQ?kqZO KGtEwpQ?kqZO XGtEwpQ?kqZO UGtEwpQ?kqZO nGtEwpQ?kqZO OZqk?QpwEtGp lGtEwpQ?kqZO OZqk?QpwEtGg _GtEwpQ?kqZO OZqk?QpwEtGY OZqk?QpwEtGr OZqk...
output:
result:
Test #6:
score: 0
Runtime Error
input:
30 28 163 BzleygJkKK gdGiNNA?k. qglX_GEvVWd cIpmqbJIAC!U q_MotjTfNX YrTvPGRTKbnW jrzBmcBQsw t.jM.YxMYD dqOpPkNmBT fCGQHr!vYf PZrGVRcDdUz kklKFtFFNqP GHcfKydBiHTj weFZpvkQlQ lJhGmiBGtLlh K!?qmzmYiu SUbVc.PiSU GoqemRLiXXs VVMdGHbtSN AcJhbRhURKW JNwhBUZxSRk wLzONCLeyAE myyaktsMhEH SVwzBQQh.GCi kNxhFcjW...
output:
result:
Test #7:
score: 2
Acceptable Answer
time: 10ms
memory: 20612kb
input:
30 32 168 fj_yTpB_YcEv !j_yTpB_YcEv vEcY_BpTy_js vEcY_BpTy_jg Kj_yTpB_YcEv Uj_yTpB_YcEv vEcY_BpTy_jP mj_yTpB_YcEv vEcY_BpTy_ju Zj_yTpB_YcEv vEcY_BpTy_jv Tj_yTpB_YcEv bj_yTpB_YcEv pj_yTpB_YcEv vEcY_BpTy_ji vEcY_BpTy_jF .j_yTpB_YcEv Yj_yTpB_YcEv Aj_yTpB_YcEv zj_yTpB_YcEv vEcY_BpTy_jt vEcY_BpTy_jX vEcY...
output:
136 128 114 162 111 164 155 152 112 18 97 96 140 127 157 133 147 121 120 160 107 81 125 124 146 166 106 95 165 143 156 168 69 142 99 115 161 136 79 135 31 110 64 78 158 85 101 105 163 159 39 109 153 139 88 131 118 70 116 149 108 84 104 113 129 94 1 80 117 91 132 90 103 37 150 53 52 40 122 33 77 102 ...
result:
points 0.50 Maximum number correct, method not correct.
Test #8:
score: 2
Acceptable Answer
time: 8ms
memory: 22596kb
input:
30 32 168 OFBjSz_NqA vFz!ZTNzIR nljJhG!ro_ N!EqwUCFSIO .lkTtUQuz_ rlkrtassDAu EiqqUh?uNW UrqRdKMSWCKi aoeFwQvoftO CXFPwk_AP.Sj LXcKqfiasOQ iEGWfwPkvDHt AMIAlbc?giw zDOWiTF!KQG flUCnUqcPwh EHsxJUvQgm ueCDm_SlwA TsnKKyLOqv vZjVxrc!PDg hQHuHuqfcqa aDBXqENPORBX uspFeYobvOe WHdCXSApc.kQ vqbyBV?!IL NixXod...
output:
136 65 103 166 139 163 18 125 123 160 105 76 142 78 27 159 117 162 77 155 153 138 124 151 99 143 149 13 80 100 141 150 135 8 131 53 102 134 22 167 69 157 64 109 137 158 59 130 57 21 113 165 118 90 144 75 29 146 56 115 16 73 67 70 112 133 93 97 168 46 38 145 14 31 154 122 121 68 12 116 5 156 26 152 1...
result:
points 0.50 Maximum number correct, method not correct.
Test #9:
score: 2
Acceptable Answer
time: 9ms
memory: 20636kb
input:
30 296 2195 K!YyGhp!Gl.Y lFLYZGmNLy pVAZuRySnD!g RwwPPFcLMG _QNQsvJNqhkZ bslmJT.yuL wOWjJfHqkD yYAnD!pqJtP pdjijhpxvX Hk_IiwGCjV eebSCJnHyd LFMtXMAasMB VYbnctPAg? YDuIpaoDTEBY de??KzSim_ub VRVAGbwJYLl .s?BbsCNWj IHOaqvdxsx DncVyohjab aQQMMijXpBSi rVxMTXneoFm ?HJXsmbXH?v. c.KrBqwh?sI kLoczbNPmMue oat...
output:
1898 1990 1753 1177 2037 2161 2185 1880 1634 2023 1439 1178 2103 1431 902 1459 1250 2085 2072 1355 1906 1346 1792 316 606 85 1695 2012 1859 2167 1758 2086 1248 1974 1657 270 1115 1801 2127 1504 1838 2084 1435 1981 1913 2162 1784 2148 1942 1734 2059 1637 2073 1789 1972 2121 2117 1529 1533 1949 2128 2...
result:
points 0.50 Maximum number correct, method not correct.
Test #10:
score: 0
Runtime Error
input:
30 34 149 TfqnSAOpxRq DtwPJm.ghzkO hHdCRvQJG.At l.WQg.v!yICt nHPzIZPy!zoJ .WKOXmnLvGmK p_MM.vADQk _EswrdFyyoaf zrcIzTuVJtN OfpWwS!byAky pEEmid?xVi ueim_rfLdR.? cHZv!fwIlef VVozgCXwdX? WgMZxRVMhQB YErodqcTkpKS tc!vNbsHiQh blDcRTRsek XmwLFhGPCyx nOs!R_M?YQ vzSo!rChKHw QwhkNQRkFsw gjVWRcGOBs XQFgcwJVnl...
output:
result:
Test #11:
score: 0
Runtime Error
input:
30 39 181 BEiCGrRPmHFM ?FHmPRrGCiEB oFHmPRrGCiEB YFHmPRrGCiEB BEiCGrRPmHF_ BEiCGrRPmHFp lFHmPRrGCiEB BEiCGrRPmHFD BEiCGrRPmHFB BEiCGrRPmHFC BEiCGrRPmHFP dFHmPRrGCiEB BEiCGrRPmHFO hFHmPRrGCiEB zFHmPRrGCiEB FFHmPRrGCiEB EFHmPRrGCiEB AFHmPRrGCiEB yFHmPRrGCiEB BEiCGrRPmHFx BEiCGrRPmHFf BEiCGrRPmHFJ BEiC...
output:
result:
Test #12:
score: 0
Runtime Error
input:
30 299 2221 CUscRFl!Y! !NGeGkkgqKf mxi?xcEjAvY vRLSjVAwyTf Jos!CsOJWaHA juLYYH_hPzZu yrj?Gt!MQCO YiWC!TgjaH?O ?uAUKATuTbvu RfbOyy!UAzWx qRvLUZDtC!C piCrwPLEMDku qSQXXWYnxz hGM?ik.gGSfe Z!PEbb_wOuGN sXtTcp.Uwy lD_RWWL.ylme lxsAAozRfq. iWBBxQsHYKN! COHBMlBwf_Y pHOGeB_xhb wIRf?npomha fKdzbGojyeGq mkbSh...
output:
result:
Test #13:
score: 0
Runtime Error
input:
30 296 2191 .ls.paaIC. vwPSDMubAA PQjPGeOVesYQ amhPAxTDcS YHIYufo!Xk PHp.ywUjrmaJ PCZpBhINrsn f?IOYZQ_RxM uaitSaXHImn SXPuuMuNbe JfTEZmKXz?Q? ypPKDcvi?L HjoMtljhh_K? mCSC?mrCppda EYGtMXxhSXM PNrrHyLFxGA xFuxXBejBJDS EIOYSBujnCu .fqXVRnkkgdD dXJtWg!DywME ?JvpnsbWCFk ffYukXaAnJL ytMQvDFSBkEn zYZItVPDs...
output:
result:
Test #14:
score: 2
Acceptable Answer
time: 228ms
memory: 44944kb
input:
100 37 229 fMbXOgQT.YC? fMbXOgQT.YCA fMbXOgQT.YCq fMbXOgQT.YC! fMbXOgQT.YCL fCY.TQgOXbMf fMbXOgQT.YCi VCY.TQgOXbMf fMbXOgQT.YCE fMbXOgQT.YCW gCY.TQgOXbMf eCY.TQgOXbMf fMbXOgQT.YCj fMbXOgQT.YCZ UCY.TQgOXbMf fMbXOgQT.YCz fMbXOgQT.YCv fMbXOgQT.YCk wCY.TQgOXbMf .CY.TQgOXbMf YCY.TQgOXbMf fMbXOgQT.YCc fMb...
output:
192 192 197 142 157 129 69 9 169 28 207 61 113 208 30 120 171 199 18 152 203 62 102 221 26 181 74 227 198 166 49 147 216 202 119 76 121 220 108 170 85 83 179 146 180 134 205 162 190 183 139 224 174 223 135 161 111 187 77 219 214 25 176 189 178 217 118 194 215 125 160 172 143 222 144 188 149 210 229 ...
result:
points 0.50 Maximum number correct, method not correct.
Test #15:
score: 2
Acceptable Answer
time: 238ms
memory: 43084kb
input:
100 40 257 gE?fFSdapGwW WwGpadSFf?Er QE?fFSdapGwW KE?fFSdapGwW WwGpadSFf?EA WwGpadSFf?Ev lE?fFSdapGwW cE?fFSdapGwW WwGpadSFf?Ei GE?fFSdapGwW HE?fFSdapGwW WwGpadSFf?Eq zE?fFSdapGwW WwGpadSFf?EL dE?fFSdapGwW WwGpadSFf?En WwGpadSFf?Ee aE?fFSdapGwW WwGpadSFf?Eu SE?fFSdapGwW WwGpadSFf?Ef WwGpadSFf?EF ?E?...
output:
217 20 204 30 211 34 247 114 172 156 197 250 153 160 220 82 76 134 241 53 140 102 137 218 226 255 48 205 195 233 192 244 249 196 217 150 65 147 141 256 149 212 248 124 253 231 94 64 180 239 214 171 179 254 246 223 252 131 158 242 70 47 63 243 32 235 245 148 123 187 118 164 236 238 206 251 169 138 20...
result:
points 0.50 Maximum number correct, method not correct.
Test #16:
score: 0
Runtime Error
input:
100 48 235 rQwzIJIECH. sHIrfxcFOzh? fjyfN.VfyUc_ cqSJbkhGnvN zQ_YiZJQG!p dpB_yEOtYMsP tZ!DgibUTCom X!VbNNtjqAG TVDBRrRK!Kg ngRjPukiMgB puuuHN.BdW syI.!_kjVod swGUueBxJkfC PWpOzFkSjvB IuRjFJwLeef HrGDcoptd_L uDqKFgRRbic kDVinBwAyTe !m?tIqISxLG KweFXtM_XNSv nlRYoYgiI! _lo!z_rHy.T .pErbUIEMAE .RMMgrxez...
output:
result:
Test #17:
score: 2
Acceptable Answer
time: 240ms
memory: 47688kb
input:
100 49 231 hTKBowtR?xxV CTKBowtR?xxV jTKBowtR?xxV tTKBowtR?xxV fTKBowtR?xxV yTKBowtR?xxV Vxx?RtwoBKTe Vxx?RtwoBKTp Vxx?RtwoBKTJ Vxx?RtwoBKTu Vxx?RtwoBKTS XTKBowtR?xxV Vxx?RtwoBKTs NTKBowtR?xxV Vxx?RtwoBKTr ZTKBowtR?xxV BTKBowtR?xxV ITKBowtR?xxV DTKBowtR?xxV Vxx?RtwoBKTE Vxx?RtwoBKTM Vxx?RtwoBKTL UTK...
output:
182 77 137 216 140 70 229 198 205 72 227 222 200 225 145 219 182 211 184 176 228 218 192 167 109 119 161 111 199 92 181 159 104 188 230 190 215 52 133 97 163 106 78 204 86 93 189 120 165 173 129 21 149 148 118 115 201 76 126 170 54 57 44 9 152 217 88 220 178 185 82 132 73 107 223 69 212 213 191 55 1...
result:
points 0.50 Maximum number correct, method not correct.
Test #18:
score: 2
Acceptable Answer
time: 233ms
memory: 46968kb
input:
100 38 256 ZARmlFP!BuNE ENuB!PFlmRAv tARmlFP!BuNE ENuB!PFlmRAC YARmlFP!BuNE ENuB!PFlmRAN EARmlFP!BuNE JARmlFP!BuNE zARmlFP!BuNE ENuB!PFlmRAj ENuB!PFlmRAg rARmlFP!BuNE BARmlFP!BuNE sARmlFP!BuNE oARmlFP!BuNE mARmlFP!BuNE WARmlFP!BuNE eARmlFP!BuNE ENuB!PFlmRAQ ENuB!PFlmRAP bARmlFP!BuNE .ARmlFP!BuNE ENu...
output:
218 241 242 235 188 252 207 181 212 238 106 256 171 164 208 158 202 245 83 250 68 218 169 105 229 162 204 8 194 151 206 221 231 123 137 201 131 155 220 196 175 193 109 125 244 232 114 93 214 182 248 176 149 234 199 217 243 228 198 210 168 150 119 153 236 98 48 121 72 47 134 159 209 197 192 185 195 1...
result:
points 0.50 Maximum number correct, method not correct.
Test #19:
score: 2
Acceptable Answer
time: 216ms
memory: 41396kb
input:
100 42 222 jmkootSXiZ mWhoHNURiY VUseF.Y_KAr zedzeXFnSV!h MugQz?bXs?n nxgnJZzbKZ xP.ZFX!NG_T mwut_dUUIIpe P?YgAA.tHx .ksdRBEDMVGR J_iwVZXqVEN MvsELmrvjrT FuAsbulWTe LDAUkkWmlT KsdSADmwm.CQ qzbLzm?IOhl jLxpYahEXS gAybIDI_VYi jXasQbfNRnIA o.YWEoULQMZ hTMhqSnvFOWG t?QEczqaYklA PiaiBu_NPJt Ezvig.in?G AR...
output:
180 183 202 190 85 178 208 198 86 149 134 193 220 215 139 206 186 213 211 130 217 159 122 138 184 163 162 188 187 69 212 192 205 160 104 168 199 170 182 78 164 210 214 203 195 158 66 109 19 107 129 173 180 101 179 185 156 20 142 60 143 74 44 153 141 46 152 22 102 125 154 174 222 105 161 118 113 7 14...
result:
points 0.50 Maximum number correct, method not correct.
Test #20:
score: 0
Runtime Error
input:
100 32 236 gDBkQygRmXGf DzgosmXBRL DPpicDZAFlF CULmbsr.etf nFIxBkPYhE DLQpMlVoPBr HLfkkADNASFD LTWrUNjcIn Nrj.Ls?aeKOJ DYw_hgITGW wsbpKIIMN_o BoxPjqJ.Ps SkvDAnf..dvE RMkisXjf_QSk wKVFtHFaG_ XzGGA_S!NZ?H FzpdxTWnb_G gsYVmejwPcqi mOoWwJuxhUKD lyfoCxJNbt CFPGpsdmsvf HdrBp?bUWQkH sJpwIYuYevZ NbpVpB.foE ...
output:
result:
Test #21:
score: 0
Runtime Error
input:
100 41 251 AKyUZjS!HCog goCH!SjZUyKI CKyUZjS!HCog tKyUZjS!HCog goCH!SjZUyK_ PKyUZjS!HCog TKyUZjS!HCog goCH!SjZUyK! rKyUZjS!HCog goCH!SjZUyKX hKyUZjS!HCog LKyUZjS!HCog sKyUZjS!HCog MKyUZjS!HCog iKyUZjS!HCog goCH!SjZUyKS kKyUZjS!HCog goCH!SjZUyKQ GKyUZjS!HCog EKyUZjS!HCog RKyUZjS!HCog eKyUZjS!HCog qKy...
output:
result:
Test #22:
score: 0
Runtime Error
input:
100 47 262 NUgKTQWLqlSu J_UepZVpZI! OFybuzA.ts aJ!oeiupGpt qEgiXBlraO G.InLDNYalJ IKqd?LBbOcS fGfB.YSKA? HkgFU.G_FGZ! QVUDexUYhPt yVKXraeLEjz uBNttpsXtQew _rh_WoubMp dBmNlhaKQK rcDEYYtaeF ..wusKVgmxn jSyLVgt_CkL GxAwCFvGADS EszfFlNthk_ EcxJBVUIZw WrbZ_qvBHIUq bTgeRogA_oAF Xr!ELlblATX zOvG!alEcx vtrG...
output:
result:
Test #23:
score: 0
Runtime Error
input:
100 44 263 GSwTGPndPrW fQ_HniYihylp zeLunnprU. !Xx?xCWdZaS yfQrY!laHT xRHVh.bwwOxY rZTEYbwQeiW kdBlS_?iWW bPVYVCLdjgkw cheZRqcCFAN tXFglACkIog lnqlbAnTByp wlTUrKRxXAGt jORjpjqnt. damueIrdQY RANWBksGZZdd CucYTniEj.M ueLzXFh?TV RqKArM?pZo ozu!_Vtkrx QqbuBOLfGc sTRTdSKbkZLz od_yHkJZXmt efyCIFkzMdP OMDG...
output:
result:
Test #24:
score: 0
Runtime Error
input:
100 45 248 zJwHpe_rlmeC zJwHpe_rlmex Memlr_epHwJz temlr_epHwJz oemlr_epHwJz uemlr_epHwJz zJwHpe_rlmeR zJwHpe_rlmee zJwHpe_rlmeQ gemlr_epHwJz demlr_epHwJz zJwHpe_rlmea zJwHpe_rlmeB Yemlr_epHwJz Eemlr_epHwJz remlr_epHwJz zJwHpe_rlmeA zJwHpe_rlmew zJwHpe_rlmei zJwHpe_rlmeU zJwHpe_rlmeS Lemlr_epHwJz Pem...
output:
result:
Test #25:
score: 0
Runtime Error
input:
100 49 294 XffSYEnSOVF h.UQkRgrjER PJOu?WVkaF QwuvOKStQV yEw_.VGRFoin GxnGO.hEZh fDTLxVKNobB bYPNHVjs_SG WgbSzRKxbhH u.py_GkcRyk WwDZdqsFLO ZSJQMjyCVDc JlaAWop.Lv_ PpZZ!Bqveo kGGEbPCmDqUB STUKjUFmfqV lLJY!jzeCOl_ SBlmMsHDMh FIkInhGMhe Oymidks!bYY rptc!EVznL! fXXggRKsa!RT CCeQkacXRA! .IKFMJTtrLW EpbE...