Submission #959124

# Submission time Handle Problem Language Result Execution time Memory
959124 2024-04-07T13:59:30 Z Abito Broken Device (JOI17_broken_device) C++17
41 / 100
37 ms 2584 KB
#include "Annalib.h"
#include <bits/stdc++.h>
using namespace std;
bool vis[155];
void Anna( int n, long long X, int k, int p[] ){
    //for (int i=0;i<k;i++) cout<<p[i]<<' ';cout<<endl;
    memset(vis,0,sizeof(vis));
    long long j=0;
    for (int i=0;i<k;i++) vis[p[i]]=1;
    for (int i=0;i<n;i+=2){
        if (vis[i] || vis[i+1] || j>=60LL){
            Set(i,0);
            Set(i+1,0);
            continue;
        }
        if (X&(1LL<<j)){
            Set(i,0);
            Set(i+1,1);
        }
        else{
            Set(i,1);
            Set(i+1,0);
        }
        j++;
    }return;
}
#include "Brunolib.h"
#include <bits/stdc++.h>
using namespace std;
long long Bruno( int n, int a[] ){
    //for (int i=0;i<n;i++) cout<<a[i]<<' ';cout<<endl;
    long long X=0,j=0;
    for (int i=0;i<n;i+=2){
        if (!a[i] && !a[i+1]) continue;
        if (a[i+1]) X|=(1LL<<j);
        j++;
    }//cout<<X<<endl;
    return X;
}
# Verdict Execution time Memory Grader output
1 Partially correct 26 ms 2400 KB Output is partially correct - L* = 15
2 Partially correct 26 ms 2404 KB Output is partially correct - L* = 15
3 Partially correct 27 ms 2396 KB Output is partially correct - L* = 16
4 Partially correct 25 ms 2396 KB Output is partially correct - L* = 15
5 Partially correct 25 ms 2484 KB Output is partially correct - L* = 15
6 Partially correct 25 ms 2400 KB Output is partially correct - L* = 15
7 Partially correct 25 ms 2484 KB Output is partially correct - L* = 15
8 Partially correct 25 ms 2476 KB Output is partially correct - L* = 15
9 Partially correct 26 ms 2396 KB Output is partially correct - L* = 16
10 Partially correct 25 ms 2572 KB Output is partially correct - L* = 16
11 Partially correct 28 ms 2396 KB Output is partially correct - L* = 15
12 Partially correct 25 ms 2392 KB Output is partially correct - L* = 16
13 Partially correct 25 ms 2436 KB Output is partially correct - L* = 15
14 Partially correct 27 ms 2376 KB Output is partially correct - L* = 15
15 Partially correct 28 ms 2396 KB Output is partially correct - L* = 15
16 Partially correct 27 ms 2392 KB Output is partially correct - L* = 15
17 Partially correct 30 ms 2396 KB Output is partially correct - L* = 15
18 Partially correct 31 ms 2392 KB Output is partially correct - L* = 15
19 Partially correct 25 ms 2472 KB Output is partially correct - L* = 16
20 Partially correct 25 ms 2476 KB Output is partially correct - L* = 15
21 Partially correct 25 ms 2396 KB Output is partially correct - L* = 15
22 Partially correct 25 ms 2392 KB Output is partially correct - L* = 15
23 Partially correct 26 ms 2396 KB Output is partially correct - L* = 15
24 Partially correct 25 ms 2476 KB Output is partially correct - L* = 15
25 Partially correct 25 ms 2396 KB Output is partially correct - L* = 15
26 Partially correct 28 ms 2396 KB Output is partially correct - L* = 15
27 Partially correct 31 ms 2536 KB Output is partially correct - L* = 15
28 Partially correct 27 ms 2444 KB Output is partially correct - L* = 15
29 Partially correct 25 ms 2396 KB Output is partially correct - L* = 15
30 Partially correct 28 ms 2584 KB Output is partially correct - L* = 15
31 Partially correct 27 ms 2416 KB Output is partially correct - L* = 15
32 Partially correct 30 ms 2372 KB Output is partially correct - L* = 16
33 Partially correct 26 ms 2392 KB Output is partially correct - L* = 15
34 Partially correct 25 ms 2472 KB Output is partially correct - L* = 15
35 Partially correct 30 ms 2388 KB Output is partially correct - L* = 15
36 Partially correct 27 ms 2396 KB Output is partially correct - L* = 15
37 Partially correct 30 ms 2312 KB Output is partially correct - L* = 16
38 Partially correct 37 ms 2396 KB Output is partially correct - L* = 15
39 Partially correct 25 ms 2304 KB Output is partially correct - L* = 15
40 Partially correct 27 ms 2372 KB Output is partially correct - L* = 15