Submission #899383

#TimeUsernameProblemLanguageResultExecution timeMemory
899383boxShopping (JOI21_shopping)C++17
1 / 100
61 ms920 KiB
#include "Anna.h" #include <vector> namespace { int N, L, R, A[1000]; int count; } // namespace void InitA(int N, int L, int R) { ::N = N; ::L = L; ::R = R; } void ReceiveA(bool x) { if (x) A[count / 10] |= 1 << (count % 10); count++; } int Answer() { int i = L; for (int j = i + 1; j <= R; j++) if (A[j] < A[i]) i = j; return i; }
#include "Bruno.h" #include <vector> namespace { int N; } // namespace void InitB(int N, std::vector<int> P) { ::N = N; for (int i = 0; i < N; i++) for (int j = 0; j < 10; j++) SendB(P[i] >> j & 1); } void ReceiveB(bool y) { }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...