#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 time |
Memory |
Grader output |
1 |
Correct |
1 ms |
644 KB |
Output is correct |
2 |
Incorrect |
96 ms |
4960 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
644 KB |
Output is correct |
2 |
Incorrect |
96 ms |
4960 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
644 KB |
Output is correct |
2 |
Incorrect |
96 ms |
4960 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
644 KB |
Output is correct |
2 |
Incorrect |
96 ms |
4960 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Correct |
1 ms |
644 KB |
Output is correct |
2 |
Incorrect |
96 ms |
4960 KB |
Output isn't correct |
3 |
Halted |
0 ms |
0 KB |
- |
# |
Verdict |
Execution time |
Memory |
Grader output |
1 |
Runtime error |
547 ms |
524288 KB |
Execution killed with signal 9 |
2 |
Halted |
0 ms |
0 KB |
- |