# | Submission time | Handle | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
954922 | 2024-03-28T20:00:09 Z | Skywk | Broken Device (JOI17_broken_device) | C++17 | 0 ms | 0 KB |
#include "Brunolib.h" long long Bruno(int N, int A[]){ long long X = 0; for(int i=0, j=0; i < N && j < 60;){ if(A[i]){ if(A[i + 1]) X += (1LL << j); j++; i += 2; } else{ i++; } } return X; }