Submission #518935

#TimeUsernameProblemLanguageResultExecution timeMemory
518935Sohsoh84Ancient Machine (JOI21_ancient_machine)C++17
70 / 100
75 ms8156 KiB
#include "Anna.h" #include <bits/stdc++.h> using namespace std; namespace { int variable_example = 0; } void Anna(int N, std::vector<char> S) { variable_example++; bool flag = true; for (int i = 0; i < N; i++) { if (S[i] == 'X') flag = false; Send(flag || S[i] == 'Z'); } }
#include "Bruno.h" #include <bits/stdc++.h> using namespace std; namespace { int variable_example = 0; int FunctionExample(int P) { return 1 - P; } } // namespace void Bruno(int N, int L, std::vector<int> A) { stack<int> st; for (int i = 0; i < L; i++) { if (A[i]) { while (st.size() > 1) { Remove(st.top()); st.pop(); } Remove(i); } else st.push(i); } while (!st.empty()) { Remove(st.top()); st.pop(); } }

Compilation message (stderr)

Bruno.cpp:10:5: warning: 'int {anonymous}::FunctionExample(int)' defined but not used [-Wunused-function]
   10 | int FunctionExample(int P) { return 1 - P; }
      |     ^~~~~~~~~~~~~~~
Bruno.cpp:8:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    8 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...