/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int East = 0;
const int West = 1;
const int South = 2;
const int North = 3;
const int Finish = 4;
#include "Anna.h"
void SetFlag (int r, int c, int value);
void Anna (int N, int K, vector <int> R, vector <int> C)
{
for(int r = 0; r < N; r++)
for(int c = 0; c < N; c++)
{
int value = 0;
for(int t = 0; t < K; t++)
{
value *= 5;
if(r == R[t] && c == C[t])
value += Finish;
else if(r < R[t])
value += South;
else if(r > R[t])
value += North;
else if(c < C[t])
value += East;
else if(c > C[t])
value += West;
}
SetFlag(r, c, value);
}
}
/**
____ ____ ____ ____ ____
||a |||t |||o |||d |||o ||
||__|||__|||__|||__|||__||
|/__\|/__\|/__\|/__\|/__\|
**/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int East = 0;
const int West = 1;
const int South = 2;
const int North = 3;
const int Finish = 4;
#include "Bruno.h"
vector <int> Bruno (int K, vector <int> value)
{
int mat[3][3];
for(int i = 0; i < 3; i++)
for(int j = 0; j < 3; j++)
mat[i][j] = value[i * 3 + j];
vector <int> sol (K);
for(int t = K - 1; t >= 0; t--)
{
sol[t] = mat[1][1] % 5;
mat[1][1] /= 5;
}
return sol;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Partially correct |
10 ms |
472 KB |
Partially correct |
2 |
Partially correct |
13 ms |
392 KB |
Partially correct |
3 |
Partially correct |
14 ms |
392 KB |
Partially correct |
4 |
Partially correct |
12 ms |
392 KB |
Partially correct |
5 |
Partially correct |
11 ms |
392 KB |
Partially correct |
6 |
Partially correct |
16 ms |
392 KB |
Partially correct |
7 |
Partially correct |
11 ms |
392 KB |
Partially correct |
8 |
Partially correct |
15 ms |
392 KB |
Partially correct |
9 |
Partially correct |
17 ms |
392 KB |
Partially correct |
10 |
Partially correct |
14 ms |
408 KB |
Partially correct |
11 |
Partially correct |
13 ms |
392 KB |
Partially correct |
12 |
Partially correct |
12 ms |
392 KB |
Partially correct |
13 |
Partially correct |
13 ms |
392 KB |
Partially correct |
14 |
Partially correct |
12 ms |
472 KB |
Partially correct |
15 |
Partially correct |
12 ms |
392 KB |
Partially correct |
16 |
Partially correct |
16 ms |
392 KB |
Partially correct |
17 |
Partially correct |
16 ms |
468 KB |
Partially correct |
18 |
Partially correct |
13 ms |
392 KB |
Partially correct |
19 |
Partially correct |
12 ms |
392 KB |
Partially correct |
20 |
Partially correct |
13 ms |
392 KB |
Partially correct |
21 |
Partially correct |
13 ms |
392 KB |
Partially correct |
22 |
Partially correct |
12 ms |
392 KB |
Partially correct |
23 |
Partially correct |
13 ms |
392 KB |
Partially correct |
24 |
Partially correct |
15 ms |
432 KB |
Partially correct |
25 |
Partially correct |
17 ms |
392 KB |
Partially correct |
26 |
Partially correct |
15 ms |
392 KB |
Partially correct |
27 |
Partially correct |
11 ms |
392 KB |
Partially correct |
28 |
Partially correct |
13 ms |
392 KB |
Partially correct |
29 |
Partially correct |
12 ms |
452 KB |
Partially correct |
30 |
Partially correct |
12 ms |
564 KB |
Partially correct |
31 |
Partially correct |
13 ms |
392 KB |
Partially correct |
32 |
Partially correct |
13 ms |
392 KB |
Partially correct |
33 |
Partially correct |
12 ms |
392 KB |
Partially correct |
34 |
Partially correct |
13 ms |
480 KB |
Partially correct |
35 |
Partially correct |
14 ms |
392 KB |
Partially correct |
36 |
Partially correct |
12 ms |
392 KB |
Partially correct |
37 |
Partially correct |
15 ms |
392 KB |
Partially correct |
38 |
Partially correct |
18 ms |
392 KB |
Partially correct |
39 |
Partially correct |
19 ms |
392 KB |
Partially correct |
40 |
Partially correct |
17 ms |
392 KB |
Partially correct |
41 |
Partially correct |
13 ms |
476 KB |
Partially correct |
42 |
Partially correct |
10 ms |
392 KB |
Partially correct |
43 |
Partially correct |
15 ms |
392 KB |
Partially correct |
44 |
Partially correct |
12 ms |
392 KB |
Partially correct |
45 |
Partially correct |
10 ms |
392 KB |
Partially correct |
46 |
Partially correct |
14 ms |
392 KB |
Partially correct |
47 |
Partially correct |
13 ms |
392 KB |
Partially correct |
48 |
Partially correct |
17 ms |
392 KB |
Partially correct |
49 |
Partially correct |
16 ms |
392 KB |
Partially correct |
50 |
Partially correct |
16 ms |
388 KB |
Partially correct |
51 |
Partially correct |
16 ms |
392 KB |
Partially correct |
52 |
Partially correct |
13 ms |
392 KB |
Partially correct |
53 |
Partially correct |
15 ms |
392 KB |
Partially correct |
54 |
Partially correct |
14 ms |
392 KB |
Partially correct |
55 |
Partially correct |
13 ms |
392 KB |
Partially correct |
56 |
Incorrect |
1 ms |
196 KB |
Wrong Answer [2] |
57 |
Halted |
0 ms |
0 KB |
- |