Submission #637770

# Submission time Handle Problem Language Result Execution time Memory
637770 2022-09-03T07:45:15 Z victor_gao Broken Device 2 (JOI22_device2) C++17
5 / 100
757 ms 524288 KB
#include "Anna.h"
#include <utility>
#include <vector>

namespace {

int variable_example = 0;

}

int Declare() {
  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;i++)
    X.push_back(1);
  for (int j=1;j<=2000;j++)
    Y.push_back(0);
  for (int i=A+1;i<=2000;i++)
    X.push_back(0);
  return make_pair(X, Y);
}
#include "Bruno.h"
#include <utility>
#include <vector>

namespace {

int variable_example = 0;

}

long long Bruno(std::vector<int> u) {
  long long ans=0;
  for (auto i:u)
    ans+=i;
  return ans;
}

Compilation message

Anna.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~

Bruno.cpp:7:5: warning: '{anonymous}::variable_example' defined but not used [-Wunused-variable]
    7 | int variable_example = 0;
      |     ^~~~~~~~~~~~~~~~
# Verdict Execution time Memory Grader output
1 Correct 3 ms 660 KB Output is correct
2 Correct 682 ms 32376 KB Output is correct
3 Correct 757 ms 32412 KB Output is correct
# Verdict Execution time Memory Grader output
1 Correct 3 ms 660 KB Output is correct
2 Correct 682 ms 32376 KB Output is correct
3 Correct 757 ms 32412 KB Output is correct
4 Incorrect 25 ms 19380 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 660 KB Output is correct
2 Correct 682 ms 32376 KB Output is correct
3 Correct 757 ms 32412 KB Output is correct
4 Incorrect 25 ms 19380 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 660 KB Output is correct
2 Correct 682 ms 32376 KB Output is correct
3 Correct 757 ms 32412 KB Output is correct
4 Incorrect 25 ms 19380 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Correct 3 ms 660 KB Output is correct
2 Correct 682 ms 32376 KB Output is correct
3 Correct 757 ms 32412 KB Output is correct
4 Incorrect 25 ms 19380 KB Wrong Answer [4]
5 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Runtime error 493 ms 524288 KB Execution killed with signal 9
2 Halted 0 ms 0 KB -