QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#93988 | #216. Sonda [A] | Crysfly | 1 | 15ms | 5180kb | C++17 | 2.8kb | 2023-04-04 16:09:21 | 2023-04-04 16:09:22 |
Judging History
answer
#include "sonlib.h"
// what is matter? never mind.
#include<bits/stdc++.h>
#define For(i,a,b) for(int i=(a);i<=(b);++i)
#define Rep(i,a,b) for(int i=(a);i>=(b);--i)
using namespace std;
#define fi first
#define se second
#define pb push_back
#define mkp make_pair
typedef pair<int,int>pii;
typedef vector<int>vi;
typedef vector<pii>vpii;
#define maxn 1000005
#define inf 0x3f3f3f3f
int n;
int e[505][505];
int vis[505],vis2[505],ok[505];
int mov(int d,int E=-1){
int res=MoveProbe(d);
if(E!=-1) assert(res==E);
return res;
}
void adde(int u,int v){
e[u][v]=e[v][u]=1;
ok[u]=ok[v]=1;
}
void no(int u,int v){
e[u][v]=e[v][u]=-1;
}
void tri(int a,int b,int c);
void work(int u,int beg){
if(vis[u])return;
vis[u]=vis2[u]=1;
For(i,1,n){
if(ok[i]||e[u][i]==-1)continue;
if(!mov(i)) no(u,i);
else{
adde(u,i);
tri(i,u,beg);
mov(u);
}
}
}
void tri(int a,int b,int c){
if(vis2[a])return;
vis2[a]=1;
mov(b,0); work(b,a);
mov(a,1);
mov(c,0);
if(mov(b)){
// triangle
adde(a,c);
mov(a,0),work(a,b);
mov(b,1),mov(c,0),work(c,b);
mov(a,1);
return;
}
else mov(a,1),no(a,c);
vis[a]=vis2[a]=1;
// query out all (a,i)
For(i,1,n){
if(ok[i]||e[a][i]==-1)continue;
mov(i,0);
if(mov(c)){
adde(a,i),adde(c,i);
mov(i,0); work(i,a);
mov(a,1);
continue;
}
if(mov(b)){
adde(a,i),adde(b,i),no(c,i);
mov(i,0),work(i,b);
mov(a,1);
continue;
}
if(mov(c)){
no(a,i);
tri(c,b,a);
mov(b),mov(a);
continue;
}
adde(a,i),no(b,i),no(c,i);
work(i,a);
mov(a);
}
if(!vis2[c]){
mov(b,0),mov(c,1);
tri(c,b,a);
mov(b,0),mov(a,1);
}
}
bool done[maxn];
void dfs(int u){
Examine(); done[u]=1;
For(i,1,n) if(!done[i] && e[u][i]==1) mov(i),dfs(i),mov(u);
}
vi path(){
vi o;
For(i,0,n-1){
For(j,0,n-2){
int u=(i+j)%(n-1)+2;
if(mov(u)){
vi o;
o.pb(1);
For(k,0,j)o.pb((i+k)%(n-1)+2);
return o;
}
}
mov(1,1);
}
return {};
}
void end_tri(int a,int b,int c){
adde(a,b),adde(b,c);
tri(a,b,c);
dfs(a); exit(0);
}
vi p;
signed main()
{
n=GetN();
p=path();
if(!p.size()){
For(i,2,n)adde(1,i);
dfs(1); exit(0);
}
int s=p[0],t=p.back();
p.pop_back(),p.erase(p.begin());
while(p.size()>1){
// cout<<s<<' '<<t<<"\n";
// for(auto x:p)cout<<x<<" ";puts("---");
bool close=0;
For(i,0,(int)p.size()-1){
if(mov(p[i])){
s=t,t=p[i];
p.resize(i);
close=1;
break;
}
}
if(close)continue;
// cout<<"qwq\n";
mov(t,1);
mov(p[0]);
if(mov(s)) end_tri(s,p[0],t);
for(auto x:p)
if(x!=p[0] && mov(x)) end_tri(x,s,t);
assert(0);
}
end_tri(t,p[0],s);
// if(GetSubtask()!=2)exit(233);
// adde(1,2),adde(2,3);
// tri(1,2,3);
// dfs(1);
return 0;
}
Details
Tip: Click on the bar to expand more detailed information
Subtask #1:
score: 0
Dangerous Syscalls
Test #1:
score: 1
Accepted
time: 0ms
memory: 3664kb
input:
3 2 1 1 2 1 3
output:
OK, 12 wywolan MoveProbe()
result:
ok
Test #2:
score: 0
Accepted
time: 2ms
memory: 3668kb
input:
3 2 1 1 3 2 3
output:
OK, 21 wywolan MoveProbe()
result:
ok
Test #3:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
3 2 1 1 2 2 3
output:
OK, 18 wywolan MoveProbe()
result:
ok
Test #4:
score: 0
Accepted
time: 0ms
memory: 3664kb
input:
4 4 1 1 3 1 4 2 3 2 4
output:
OK, 34 wywolan MoveProbe()
result:
ok
Test #5:
score: 0
Accepted
time: 2ms
memory: 3628kb
input:
4 4 1 1 2 1 3 2 4 3 4
output:
OK, 30 wywolan MoveProbe()
result:
ok
Test #6:
score: -1
Dangerous Syscalls
input:
85 1734 1 1 3 1 4 1 5 1 6 1 7 1 10 1 11 1 14 1 15 1 16 1 18 1 20 1 21 1 22 1 23 1 26 1 28 1 29 1 31 1 32 1 34 1 35 1 36 1 37 1 40 1 41 1 42 1 45 1 46 1 48 1 49 1 51 1 52 1 53 1 55 1 56 1 58 1 59 1 60 1 61 1 63 1 65 1 66 1 68 1 69 1 70 1 76 1 77 1 78 1 81 1 82 2 3 2 4 2 5 2 6 2 7 2 10 2 11 2 14 2 15 ...
output:
Unauthorized output
result:
Subtask #2:
score: 1
Accepted
Test #21:
score: 1
Accepted
time: 2ms
memory: 3640kb
input:
3 3 2 2 1 1 3 2 3
output:
OK, 12 wywolan MoveProbe()
result:
ok
Test #22:
score: 0
Accepted
time: 2ms
memory: 3620kb
input:
4 4 2 1 2 2 3 1 3 4 1
output:
OK, 23 wywolan MoveProbe()
result:
ok
Test #23:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
4 4 2 1 2 2 3 1 3 4 3
output:
OK, 23 wywolan MoveProbe()
result:
ok
Test #24:
score: 0
Accepted
time: 2ms
memory: 3680kb
input:
4 4 2 1 2 2 3 1 3 4 2
output:
OK, 20 wywolan MoveProbe()
result:
ok
Test #25:
score: 0
Accepted
time: 2ms
memory: 3688kb
input:
5 5 2 2 3 3 1 2 1 1 5 5 4
output:
OK, 32 wywolan MoveProbe()
result:
ok
Test #26:
score: 0
Accepted
time: 2ms
memory: 3728kb
input:
13 13 2 3 2 2 1 3 1 2 4 4 5 4 6 5 9 2 8 4 10 3 7 2 12 6 13 8 11
output:
OK, 228 wywolan MoveProbe()
result:
ok
Test #27:
score: 0
Accepted
time: 0ms
memory: 3716kb
input:
23 205 2 1 2 2 3 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 21 2 22 3 4 3 5 3 6 3 8 3 9 3 10 3 11 3 12 3 13 3 14 3 15 3 17 3 18 3 19 3 20 3 22 3 23 4 5 4 6 4 7 4 10 4 11 4 13 4 15 4 1...
output:
OK, 213 wywolan MoveProbe()
result:
ok
Test #28:
score: 0
Accepted
time: 2ms
memory: 3708kb
input:
40 734 2 1 2 2 3 1 3 1 4 1 5 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 12 2 13 2 14 2 15 2 16 2 17 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2 28 ...
output:
OK, 402 wywolan MoveProbe()
result:
ok
Test #29:
score: 0
Accepted
time: 2ms
memory: 3832kb
input:
71 1035 2 1 2 2 3 1 3 1 11 1 12 1 14 1 17 1 18 1 21 1 24 1 26 1 28 1 29 1 31 1 34 1 37 1 38 1 43 1 44 1 46 1 47 1 49 1 52 1 53 1 59 1 60 1 61 1 62 1 63 1 64 1 68 1 69 2 5 2 7 2 8 2 15 2 17 2 24 2 25 2 29 2 38 2 42 2 46 2 48 2 51 2 53 2 55 2 56 2 57 2 61 2 62 2 63 2 64 2 66 2 71 3 4 3 6 3 7 3 8 3 9 3...
output:
OK, 814 wywolan MoveProbe()
result:
ok
Test #30:
score: 0
Accepted
time: 3ms
memory: 4356kb
input:
238 355 2 3 2 1 2 1 3 77 155 2 155 2 77 30 235 155 235 155 30 110 104 235 104 235 110 234 130 104 130 104 234 82 101 130 101 130 82 129 50 101 50 101 129 47 83 50 83 50 47 64 8 83 8 83 64 116 159 8 159 8 116 25 185 159 185 159 25 14 144 185 144 185 14 197 127 144 127 144 197 152 206 127 206 127 152 ...
output:
OK, 46289 wywolan MoveProbe()
result:
ok
Test #31:
score: 0
Accepted
time: 3ms
memory: 4768kb
input:
333 2798 2 141 322 317 322 317 141 166 322 166 141 166 317 114 322 114 141 114 317 114 166 85 322 85 141 85 317 85 166 85 114 58 322 58 141 58 317 58 166 58 114 58 85 88 322 88 141 88 317 88 166 88 114 88 85 88 58 153 322 153 141 153 317 153 166 153 114 153 85 153 58 153 88 53 322 53 141 53 317 53 1...
output:
OK, 46034 wywolan MoveProbe()
result:
ok
Test #32:
score: 0
Accepted
time: 9ms
memory: 5180kb
input:
400 79800 2 242 106 214 106 214 242 230 106 230 242 230 214 337 106 337 242 337 214 337 230 83 106 83 242 83 214 83 230 83 337 192 106 192 242 192 214 192 230 192 337 192 83 262 106 262 242 262 214 262 230 262 337 262 83 262 192 279 106 279 242 279 214 279 230 279 337 279 83 279 192 279 262 164 106 ...
output:
OK, 4379 wywolan MoveProbe()
result:
ok
Test #33:
score: 0
Accepted
time: 15ms
memory: 5180kb
input:
400 79402 2 45 104 317 104 317 45 400 104 400 45 400 317 383 104 383 45 383 317 383 400 156 104 156 45 156 317 156 400 156 383 302 104 302 45 302 317 302 400 302 383 302 156 68 104 68 45 68 317 68 400 68 383 68 156 68 302 199 104 199 45 199 317 199 400 199 383 199 156 199 302 199 68 387 104 387 45 3...
output:
OK, 6181 wywolan MoveProbe()
result:
ok
Test #34:
score: 0
Accepted
time: 2ms
memory: 5096kb
input:
400 433 2 1 2 2 3 1 3 3 249 249 276 276 309 309 160 160 250 250 24 250 350 250 42 24 27 27 247 247 287 287 135 287 348 350 296 287 121 296 43 121 188 121 81 81 306 43 275 121 203 81 271 203 279 275 305 135 189 306 284 189 180 189 70 188 399 399 38 399 253 70 159 253 396 396 217 217 87 253 378 296 23...
output:
OK, 234468 wywolan MoveProbe()
result:
ok
Test #35:
score: 0
Accepted
time: 5ms
memory: 5052kb
input:
400 407 2 1 2 2 3 1 3 1 158 1 169 2 295 1 359 3 333 3 88 3 138 1 293 1 348 1 320 1 172 158 124 1 134 1 298 1 52 158 269 1 173 1 177 298 336 3 283 1 80 359 181 1 175 158 204 359 151 158 294 169 64 3 239 3 31 1 369 158 264 1 156 1 273 1 388 2 104 298 221 239 187 1 372 173 29 2 243 3 27 138 36 124 73 3...
output:
OK, 279818 wywolan MoveProbe()
result:
ok
Test #36:
score: 0
Accepted
time: 5ms
memory: 5088kb
input:
400 1103 2 1 3 3 2 1 2 3 274 1 101 1 47 1 30 1 40 1 246 1 201 1 311 1 368 1 142 1 157 1 255 1 31 1 12 1 221 1 399 1 364 3 53 3 123 1 391 1 88 1 243 1 362 1 320 1 80 2 379 1 76 311 303 1 109 1 172 274 277 1 381 1 57 3 165 1 321 1 164 1 78 1 349 30 336 1 269 1 215 1 168 2 162 1 188 1 298 1 90 2 237 1 ...
output:
OK, 374392 wywolan MoveProbe()
result:
ok
Test #37:
score: 0
Accepted
time: 2ms
memory: 5108kb
input:
400 401 2 3 1 1 2 3 2 2 320 320 29 29 351 351 386 386 237 237 183 183 138 138 211 211 103 103 258 103 132 132 43 43 98 43 331 331 139 139 174 174 107 107 259 259 270 270 133 133 261 261 315 315 184 315 31 184 118 118 340 340 230 230 153 153 112 230 164 112 334 230 99 99 240 99 189 189 33 33 179 33 6...
output:
OK, 238375 wywolan MoveProbe()
result:
ok
Test #38:
score: 0
Accepted
time: 4ms
memory: 5092kb
input:
400 1424 2 2 1 1 3 2 3 3 313 313 237 237 351 351 192 192 77 77 346 346 399 399 295 295 281 281 122 122 75 75 215 215 311 311 207 207 94 94 63 94 222 222 168 168 25 25 22 22 377 377 170 170 158 158 41 41 33 33 8 8 297 297 235 235 15 15 45 45 12 12 169 169 242 242 37 37 378 378 217 37 251 251 11 11 89...
output:
OK, 160337 wywolan MoveProbe()
result:
ok
Test #39:
score: 0
Accepted
time: 5ms
memory: 5092kb
input:
400 400 2 3 1 1 2 3 2 3 279 1 313 3 10 2 89 2 354 354 134 1 90 313 130 3 235 3 286 313 182 3 357 10 54 1 123 1 79 130 202 1 271 130 382 1 305 313 217 3 124 217 373 3 84 202 380 134 209 2 4 1 272 3 180 354 164 313 302 134 301 2 213 54 223 209 63 235 194 313 12 182 233 79 117 279 185 1 299 279 330 354...
output:
OK, 273788 wywolan MoveProbe()
result:
ok
Test #40:
score: 0
Accepted
time: 13ms
memory: 5128kb
input:
400 78998 2 1 2 2 3 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1 ...
output:
OK, 4308 wywolan MoveProbe()
result:
ok
Subtask #3:
score: 0
Dangerous Syscalls
Test #41:
score: 1
Accepted
time: 0ms
memory: 3672kb
input:
3 3 3 1 2 2 3 3 1
output:
OK, 12 wywolan MoveProbe()
result:
ok
Test #42:
score: 0
Accepted
time: 2ms
memory: 3660kb
input:
4 4 3 1 2 2 3 3 4 4 1
output:
OK, 24 wywolan MoveProbe()
result:
ok
Test #43:
score: 0
Accepted
time: 2ms
memory: 3684kb
input:
4 4 3 2 4 4 3 3 1 1 2
output:
OK, 30 wywolan MoveProbe()
result:
ok
Test #44:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
4 4 3 3 1 1 4 4 2 2 3
output:
OK, 34 wywolan MoveProbe()
result:
ok
Test #45:
score: 0
Accepted
time: 0ms
memory: 3640kb
input:
5 5 3 5 4 4 2 2 3 3 1 1 5
output:
OK, 49 wywolan MoveProbe()
result:
ok
Test #46:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
6 6 3 6 4 4 5 5 3 3 1 1 2 2 6
output:
OK, 54 wywolan MoveProbe()
result:
ok
Test #47:
score: -1
Dangerous Syscalls
input:
72 72 3 50 64 64 68 68 28 28 66 66 38 38 54 54 39 39 71 71 70 70 19 19 32 32 24 24 2 2 3 3 43 43 14 14 35 35 58 58 12 12 37 37 16 16 46 46 8 8 26 26 29 29 59 59 11 11 4 4 21 21 33 33 60 60 61 61 1 1 22 22 48 48 7 7 57 57 17 17 62 62 41 41 15 15 27 27 18 18 51 51 53 53 30 30 65 65 45 45 20 20 6 6 36 ...
output:
Unauthorized output
result:
Subtask #4:
score: 0
Dangerous Syscalls
Test #64:
score: 1
Accepted
time: 2ms
memory: 3672kb
input:
3 2 0 1 2 1 3
output:
OK, 12 wywolan MoveProbe()
result:
ok
Test #65:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
3 3 0 1 2 2 3 1 3
output:
OK, 12 wywolan MoveProbe()
result:
ok
Test #66:
score: 0
Accepted
time: 0ms
memory: 3676kb
input:
4 4 0 1 4 4 3 4 2 3 2
output:
OK, 29 wywolan MoveProbe()
result:
ok
Test #67:
score: 0
Accepted
time: 2ms
memory: 3624kb
input:
4 6 0 1 3 3 4 3 2 1 2 1 4 4 2
output:
OK, 23 wywolan MoveProbe()
result:
ok
Test #68:
score: -1
Dangerous Syscalls
input:
5 6 0 1 3 1 4 2 4 2 5 3 4 3 5
output:
Unauthorized output
result:
Subtask #5:
score: 0
Dangerous Syscalls
Test #87:
score: 1
Accepted
time: 0ms
memory: 3736kb
input:
29 127 0 1 2 1 3 1 4 1 5 1 7 1 9 1 10 1 16 1 19 1 27 1 29 2 7 2 9 2 10 2 12 2 13 2 15 2 16 2 22 2 23 3 4 3 5 3 6 3 10 3 13 3 14 3 16 3 17 3 19 3 24 3 25 3 29 4 5 4 8 4 9 4 10 4 12 4 14 4 19 4 20 4 21 4 22 4 24 4 25 5 11 5 18 5 23 6 7 6 17 6 20 6 22 6 27 7 8 7 10 7 17 7 19 7 20 8 10 8 11 8 13 8 18 8 ...
output:
OK, 419 wywolan MoveProbe()
result:
ok
Test #88:
score: 0
Accepted
time: 2ms
memory: 3736kb
input:
30 431 0 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 2 3 2 4 2 5 2 6 2 7 2 8 2 9 2 10 2 11 2 12 2 13 2 14 2 15 2 16 2 17 2 18 2 19 2 20 2 21 2 22 2 23 2 24 2 25 2 26 2 27 2 28 2 29 2 30 3 4 3 5 3 6 3 7 3 8 3...
output:
OK, 301 wywolan MoveProbe()
result:
ok
Test #89:
score: 0
Accepted
time: 0ms
memory: 3728kb
input:
30 57 0 1 2 1 4 1 10 1 14 1 20 1 30 2 10 2 15 2 27 2 30 3 6 3 16 3 23 4 6 5 13 5 19 5 29 6 20 6 22 6 24 7 16 7 22 7 26 8 23 9 20 10 20 10 24 10 28 11 24 12 17 12 23 12 30 13 15 13 17 13 23 13 25 14 21 15 18 15 24 16 19 16 22 16 28 17 18 17 20 17 21 17 29 18 20 18 29 19 21 19 29 21 27 22 27 22 29 23 ...
output:
OK, 869 wywolan MoveProbe()
result:
ok
Test #90:
score: 0
Accepted
time: 1ms
memory: 3680kb
input:
30 29 0 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30
output:
OK, 957 wywolan MoveProbe()
result:
ok
Test #91:
score: -1
Dangerous Syscalls
input:
30 30 0 3 1 1 15 15 24 24 10 10 18 18 25 25 12 12 20 20 17 17 8 8 27 27 29 29 14 14 13 13 9 9 19 19 28 28 26 26 11 11 4 4 22 22 6 6 2 2 21 21 30 30 7 7 5 5 16 16 23 23 3
output:
Unauthorized output
result:
Subtask #6:
score: 0
Dangerous Syscalls
Test #104:
score: 0
Dangerous Syscalls
input:
80 79 0 1 64 64 41 41 74 74 23 23 49 49 19 19 42 42 27 27 11 11 18 18 45 45 69 69 12 12 31 31 8 8 29 29 57 57 13 13 76 76 38 38 14 14 16 16 51 51 5 5 75 75 46 46 58 58 7 7 61 41 78 13 28 1 54 46 2 29 35 69 73 1 43 13 44 23 77 69 79 27 63 41 24 31 68 7 48 27 60 46 30 18 32 1 21 46 36 69 53 27 10 18 6...
output:
Unauthorized output
result:
Subtask #7:
score: 0
Dangerous Syscalls
Test #121:
score: 0
Dangerous Syscalls
input:
150 1602 0 1 7 1 17 1 18 1 24 1 41 1 42 1 46 1 47 1 48 1 51 1 64 1 66 1 71 1 76 1 78 1 80 1 87 1 98 1 117 1 118 1 132 1 137 1 142 1 148 2 3 2 5 2 7 2 17 2 18 2 25 2 37 2 61 2 67 2 101 2 120 2 125 2 140 3 8 3 15 3 25 3 33 3 34 3 37 3 38 3 61 3 66 3 72 3 75 3 76 3 81 3 85 3 88 3 93 3 103 3 108 3 111 3...
output:
Unauthorized output
result:
Subtask #8:
score: 0
Dangerous Syscalls
Test #139:
score: 1
Accepted
time: 3ms
memory: 4396kb
input:
246 281 0 1 2 2 3 2 4 2 5 2 6 1 7 7 8 7 10 7 11 8 9 1 12 12 14 12 15 12 16 13 14 1 17 17 18 17 19 17 20 17 21 18 19 1 22 22 23 22 24 22 26 23 25 1 27 27 29 27 30 27 31 28 30 1 32 32 33 32 34 32 35 32 36 33 35 1 37 37 38 37 41 38 39 38 40 1 42 42 44 42 46 43 44 43 45 1 47 47 48 47 49 47 51 48 49 48 5...
output:
OK, 107245 wywolan MoveProbe()
result:
ok
Test #140:
score: 0
Accepted
time: 3ms
memory: 4368kb
input:
246 291 0 1 2 2 3 2 6 3 4 4 5 1 7 7 9 7 11 8 9 9 10 1 12 12 13 12 14 12 16 13 14 14 15 1 17 17 20 17 21 18 19 19 20 1 22 22 23 22 25 22 26 23 24 24 25 1 27 27 29 27 30 27 31 28 29 29 30 1 32 32 33 32 34 32 35 32 36 33 34 34 35 1 37 37 38 37 41 38 40 39 40 1 42 42 44 42 46 43 45 44 45 1 47 47 48 47 4...
output:
OK, 99088 wywolan MoveProbe()
result:
ok
Test #141:
score: 0
Accepted
time: 3ms
memory: 4408kb
input:
246 306 0 1 2 2 3 2 5 3 5 3 6 4 5 1 7 7 9 7 10 8 10 8 11 9 10 1 12 12 13 12 14 12 15 13 15 13 16 14 15 1 17 17 21 18 20 18 21 19 20 1 22 22 23 22 26 23 25 23 26 24 25 1 27 27 29 27 31 28 30 28 31 29 30 1 32 32 33 32 34 32 36 33 35 33 36 34 35 1 37 37 40 37 41 38 40 38 41 39 40 1 42 42 43 42 45 42 46...
output:
OK, 87363 wywolan MoveProbe()
result:
ok
Test #142:
score: 0
Accepted
time: 3ms
memory: 4436kb
input:
246 330 0 1 2 2 4 2 6 3 5 4 5 5 6 1 7 7 8 7 9 7 11 8 10 9 10 10 11 1 12 12 15 12 16 13 15 14 15 15 16 1 17 17 18 17 20 17 21 18 20 19 20 20 21 1 22 22 24 22 25 22 26 23 25 24 25 25 26 1 27 27 28 27 29 27 30 27 31 28 30 29 30 30 31 1 32 32 33 33 34 33 35 34 35 35 36 1 37 37 39 38 39 38 40 39 40 40 41...
output:
OK, 87435 wywolan MoveProbe()
result:
ok
Test #143:
score: -1
Dangerous Syscalls
input:
250 5371 0 1 3 1 7 1 12 1 13 1 23 1 30 1 34 1 35 1 36 1 37 1 47 1 52 1 53 1 57 1 60 1 61 1 65 1 70 1 74 1 110 1 113 1 115 1 125 1 134 1 136 1 138 1 143 1 148 1 172 1 184 1 192 1 197 1 199 1 200 1 202 1 209 1 212 1 216 1 227 1 245 2 24 2 44 2 48 2 52 2 60 2 63 2 72 2 77 2 89 2 91 2 93 2 95 2 98 2 104...
output:
Unauthorized output
result:
Subtask #9:
score: 0
Dangerous Syscalls
Test #157:
score: 1
Accepted
time: 4ms
memory: 4832kb
input:
346 437 0 1 2 2 3 2 5 3 4 3 5 4 6 1 7 7 9 7 10 8 9 8 10 9 11 1 12 12 13 12 14 12 15 13 14 13 15 14 16 1 17 17 21 18 19 18 20 19 21 1 22 22 23 22 26 23 24 23 25 24 26 1 27 27 29 27 31 28 29 28 30 29 31 1 32 32 33 32 34 32 36 33 34 33 35 34 36 1 37 37 40 37 41 38 39 38 40 39 41 1 42 42 43 42 45 42 46 ...
output:
OK, 179153 wywolan MoveProbe()
result:
ok
Test #158:
score: 0
Accepted
time: 4ms
memory: 4780kb
input:
346 456 0 1 2 2 6 3 4 4 5 4 6 1 7 7 8 7 11 8 9 9 10 9 11 1 12 12 14 12 16 13 14 14 15 14 16 1 17 17 18 17 19 17 21 18 19 19 20 19 21 1 22 22 25 22 26 23 24 24 25 24 26 1 27 27 28 27 30 27 31 28 29 29 30 29 31 1 32 32 34 32 35 32 36 33 34 34 35 34 36 1 37 37 38 37 39 37 40 37 41 38 39 39 40 39 41 1 4...
output:
OK, 177081 wywolan MoveProbe()
result:
ok
Test #159:
score: 0
Accepted
time: 1ms
memory: 4780kb
input:
346 455 0 1 2 2 4 3 5 3 6 4 5 4 6 1 7 7 8 7 9 8 10 8 11 9 10 9 11 1 12 12 15 13 15 13 16 14 15 14 16 1 17 17 18 17 20 18 20 18 21 19 20 19 21 1 22 22 24 22 25 23 25 23 26 24 25 24 26 1 27 27 28 27 29 27 30 28 30 28 31 29 30 29 31 1 32 32 36 33 35 33 36 34 35 34 36 1 37 37 38 37 41 38 40 38 41 39 40 ...
output:
OK, 171999 wywolan MoveProbe()
result:
ok
Test #160:
score: 0
Accepted
time: 4ms
memory: 4780kb
input:
346 436 0 1 2 2 3 2 4 2 5 2 6 3 6 5 6 1 7 7 8 8 9 8 11 10 11 1 12 12 14 13 14 13 16 15 16 1 17 17 18 17 19 18 19 18 21 20 21 1 22 22 25 23 24 23 26 25 26 1 27 27 28 27 30 28 29 28 31 30 31 1 32 32 34 32 35 33 34 33 36 35 36 1 37 37 38 37 39 37 40 38 39 38 41 40 41 1 42 42 46 43 44 43 46 45 46 1 47 4...
output:
OK, 175058 wywolan MoveProbe()
result:
ok
Test #161:
score: 0
Accepted
time: 3ms
memory: 4828kb
input:
350 7941 0 1 4 1 5 1 19 1 35 1 37 1 44 1 55 1 56 1 60 1 69 1 72 1 73 1 75 1 78 1 88 1 98 1 102 1 106 1 118 1 124 1 126 1 139 1 140 1 144 1 146 1 147 1 148 1 182 1 183 1 185 1 187 1 188 1 194 1 201 1 228 1 234 1 243 1 249 1 256 1 263 1 275 1 276 1 288 1 294 1 336 1 340 1 343 1 349 2 10 2 21 2 22 2 38...
output:
OK, 10797 wywolan MoveProbe()
result:
ok
Test #162:
score: 0
Accepted
time: 7ms
memory: 4876kb
input:
350 61075 0 1 2 1 3 1 4 1 5 1 6 1 7 1 8 1 9 1 10 1 11 1 12 1 13 1 14 1 15 1 16 1 17 1 18 1 19 1 20 1 21 1 22 1 23 1 24 1 25 1 26 1 27 1 28 1 29 1 30 1 31 1 32 1 33 1 34 1 35 1 36 1 37 1 38 1 39 1 40 1 41 1 42 1 43 1 44 1 45 1 46 1 47 1 48 1 49 1 50 1 51 1 52 1 53 1 54 1 55 1 56 1 57 1 58 1 59 1 60 1...
output:
OK, 3829 wywolan MoveProbe()
result:
ok
Test #163:
score: 0
Accepted
time: 4ms
memory: 4820kb
input:
349 354 0 1 62 1 43 1 200 1 13 1 85 1 244 1 243 1 316 1 291 62 136 1 283 1 161 1 93 1 65 1 311 1 348 1 90 1 320 1 107 1 96 1 127 1 182 1 35 1 234 13 272 1 278 1 223 1 303 62 250 1 155 1 184 1 59 62 89 62 301 1 340 1 202 1 126 1 128 1 134 62 193 1 87 1 130 1 218 1 334 1 144 1 164 1 79 1 257 1 171 62 ...
output:
OK, 169981 wywolan MoveProbe()
result:
ok
Test #164:
score: -1
Dangerous Syscalls
input:
350 353 0 1 337 337 117 117 309 309 106 106 205 205 308 308 234 234 331 331 220 220 223 223 333 333 118 118 148 148 214 214 164 164 98 98 110 110 30 30 227 227 51 51 48 48 247 247 140 140 217 217 232 232 114 114 279 279 281 281 243 243 338 338 61 61 287 287 260 260 58 58 83 83 271 271 109 109 197 19...
output:
Unauthorized output
result:
Subtask #10:
score: 0
Dangerous Syscalls
Test #174:
score: 0
Dangerous Syscalls
input:
400 399 0 1 286 286 266 266 368 368 104 104 214 214 154 154 206 206 255 255 336 336 246 246 106 106 372 372 153 153 159 159 383 383 12 12 209 209 37 37 130 130 165 165 20 20 207 207 345 345 126 126 185 185 94 94 374 374 192 192 396 396 127 127 253 253 134 134 135 135 24 24 276 276 132 132 329 329 2 ...
output:
Unauthorized output