# | Time | Username | Problem | Language | Result | Execution time | Memory |
---|---|---|---|---|---|---|---|
588847 | SeDunion | Broken Device 2 (JOI22_device2) | C++17 | 0 ms | 0 KiB |
This submission is migrated from previous version of oj.uz, which used different machine for grading. This submission may have different result if resubmitted.
#include "Anna.h"
#include <utility>
#include <vector>
using namespace std;
using vi = vector<int>;
using ll = long long;
namespace {
int variable_example = 0;
}
int Declare() {
return 2000;
}
pair<vi,vi> Anna(ll A) {
vi X, Y;
while (A--) X.emplace_back(1);
while ((int)X.size() < 2000) X.emplace_back(0);
while ((int)Y.size() < 2000) Y.emplace_back(0);
return make_pair(X, Y);
}
#include "Anna.h"
#include <utility>
#include <vector>
using namespace std;
using vi = vector<int>;
using ll = long long;
namespace {
int variable_example = 0;
}
int Declare() {
return 2000;
}
pair<vi,vi> Anna(ll A) {
vi X, Y;
while (A--) X.emplace_back(1);
while ((int)X.size() < 2000) X.emplace_back(0);
while ((int)Y.size() < 2000) Y.emplace_back(0);
return make_pair(X, Y);
}
❯ cat Bruno.cpp
#include "Bruno.h"
#include <utility>
#include <vector>
using namespace std;
using vi = vector<int>;
using ll = long long;
namespace {
int variable_example = 0;
}
ll Bruno(vi u) {
int cnt = 0;
for (int i : u) cnt += i;
return cnt;
}