// incorrect/wa3.cpp
#include "lockpicking.h"
using namespace std;
int M;
vector<int> a, b;
vector<vector<int>> s, t;
void construct_card(int N, std::vector<int> A, std::vector<std::vector<int>> S) {
a = A, s = S;
M = N*N;
b.resize(M);
t.assign(M, vector<int>(2));
for (int c=0; c<N; ++c) {
for (int j=c*N; j<(c+1)*N; ++j) {
b[j] = a[j%N];
t[j][b[j]] = s[j%N][b[j]];
t[j][1-b[j]] = (c+1 < N ? (j/N+1)*N+c : 0);
}
}
define_states(M, b, t, 0);
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
failed to open the lock |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Correct |
1 ms |
340 KB |
ok, most errors: 6 (allowed: 29) |
2 |
Incorrect |
1 ms |
340 KB |
failed to open the lock |
3 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
1 ms |
340 KB |
failed to open the lock |
2 |
Halted |
0 ms |
0 KB |
- |
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
0 ms |
212 KB |
failed to open the lock |
2 |
Halted |
0 ms |
0 KB |
- |