Submission #637767

#TimeUsernameProblemLanguageResultExecution timeMemory
637767victor_gaoBroken Device 2 (JOI22_device2)C++17
0 / 100
547 ms524288 KiB
#include "Anna.h" #include <utility> #include <vector> namespace { int variable_example = 0; } int Declare() { variable_example++; return 2000; } std::pair<std::vector<int>, std::vector<int> > Anna(long long A) { std::vector<int> X = {}; std::vector<int> Y = {}; for (int i=1;i<=A/2;i++) X.push_back(0); for (int j=1;j<=A/2;j++) Y.push_back(0); if (A%2){ X.push_back(1); Y.push_back(1); } return make_pair(X, Y); }
#include "Bruno.h" #include <utility> #include <vector> namespace { int variable_example = 0; } long long Bruno(std::vector<int> u) { variable_example++; long long ans=0; for (auto i:u) ans+=i; return (long long)(u.size()+ans/2); }
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...
#Verdict Execution timeMemoryGrader output
Fetching results...