#include <bits/stdc++.h>
#include "Annalib.h"
using namespace std;
int mark[151];
void Anna( int n, long long x, int k, int p[] )
{
for(int i=0; i<k; i++) mark[p[i]] = 1;
long long cnt = 0;
for(int i=0; i<n; i++)
{
if(!mark[i] && !mark[i+1])
{
if(x & (1LL<<cnt)) Set(i, 1), Set(i+1, 1);
else Set(i, 1), Set(i+1, 0);
cnt++;
i++;
}
else Set(i, 0);
}
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno(int n, int a[] )
{
long long x = 0;
int cnt = 0;
for(int i=0; i<n-1; i++)
{
if(a[i] == 1)
{
if(a[i+1]) x |= (1LL<<cnt);
cnt++;
}
}
return x;
}
# |
결과 |
실행 시간 |
메모리 |
Grader output |
1 |
Incorrect |
4 ms |
892 KB |
Wrong Answer [1] |
2 |
Incorrect |
40 ms |
3056 KB |
Output isn't correct - L* = 0 |
3 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
4 |
Incorrect |
4 ms |
980 KB |
Wrong Answer [1] |
5 |
Incorrect |
39 ms |
3056 KB |
Output isn't correct - L* = 0 |
6 |
Incorrect |
4 ms |
988 KB |
Wrong Answer [1] |
7 |
Incorrect |
4 ms |
856 KB |
Wrong Answer [1] |
8 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
9 |
Incorrect |
39 ms |
3064 KB |
Output isn't correct - L* = 0 |
10 |
Incorrect |
4 ms |
632 KB |
Wrong Answer [1] |
11 |
Incorrect |
4 ms |
756 KB |
Wrong Answer [1] |
12 |
Incorrect |
4 ms |
876 KB |
Wrong Answer [1] |
13 |
Incorrect |
40 ms |
3056 KB |
Output isn't correct - L* = 0 |
14 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
15 |
Incorrect |
4 ms |
988 KB |
Wrong Answer [1] |
16 |
Incorrect |
4 ms |
772 KB |
Wrong Answer [1] |
17 |
Incorrect |
39 ms |
3056 KB |
Output isn't correct - L* = 0 |
18 |
Incorrect |
43 ms |
3056 KB |
Output isn't correct - L* = 0 |
19 |
Incorrect |
40 ms |
3056 KB |
Output isn't correct - L* = 0 |
20 |
Incorrect |
4 ms |
764 KB |
Wrong Answer [1] |
21 |
Incorrect |
4 ms |
772 KB |
Wrong Answer [1] |
22 |
Incorrect |
4 ms |
988 KB |
Wrong Answer [1] |
23 |
Incorrect |
41 ms |
3056 KB |
Output isn't correct - L* = 0 |
24 |
Incorrect |
39 ms |
3056 KB |
Output isn't correct - L* = 0 |
25 |
Incorrect |
4 ms |
632 KB |
Wrong Answer [1] |
26 |
Incorrect |
40 ms |
3056 KB |
Output isn't correct - L* = 0 |
27 |
Incorrect |
41 ms |
3056 KB |
Output isn't correct - L* = 0 |
28 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
29 |
Incorrect |
4 ms |
632 KB |
Wrong Answer [1] |
30 |
Incorrect |
39 ms |
2896 KB |
Output isn't correct - L* = 0 |
31 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
32 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
33 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
34 |
Incorrect |
4 ms |
632 KB |
Wrong Answer [1] |
35 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
36 |
Incorrect |
4 ms |
632 KB |
Wrong Answer [1] |
37 |
Incorrect |
40 ms |
3056 KB |
Output isn't correct - L* = 0 |
38 |
Incorrect |
5 ms |
888 KB |
Wrong Answer [1] |
39 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |
40 |
Incorrect |
4 ms |
760 KB |
Wrong Answer [1] |