Submission #26796

#TimeUsernameProblemLanguageResultExecution timeMemory
26796wangyenjenBroken Device (JOI17_broken_device)C++14
8 / 100
69 ms4636 KiB
/// Author: Wang, Yen-Jen #include "Annalib.h" #include <bits/stdc++.h> using namespace std; void Anna(int N , long long X , int K , int P[]) { for(int i = 0; i < N; i++) { if((X>>(i % 60)) & 1) Set(i , 1); 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; for(int i = 0; i < N; i++) { if(A[i]) X |= (1ll<<(i % 60)); } return X; }
#Verdict Execution timeMemoryGrader output
Fetching results...