Submission #587594

# Submission time Handle Problem Language Result Execution time Memory
587594 2022-07-02T06:30:30 Z LastRonin Flights (JOI22_flights) C++17
0 / 100
0 ms 200 KB
#include "Ali.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>

using namespace std;

namespace {

int variable_example = 0;

}

void Init(int N, std::vector<int> U, std::vector<int> V) {
  variable_example++;
  SetID(0, 0);
  SetID(1, 1);
  SetID(2, 2 * N + 19);
}

std::string SendA(std::string S) {
    if(variable_example == 1)assert(0);
	return "01001";
}
#include "Benjamin.h"
#include <string>
#include <vector>
#include <bits/stdc++.h>

using namespace std;

namespace {

int variable_example = 0;

}

std::string SendB(int N, int X, int Y) {
  variable_example = 2;
  if (X == 0) {
    return "00000000001111111111";
  }
  return "00000111110000011111";
}

int Answer(std::string T) {
	if(variable_example == 2)assert(0);
  return 1;
}

Compilation message

grader_ali.cpp:10:8: warning: '{anonymous}::_randmem' defined but not used [-Wunused-variable]
   10 |   char _randmem[12379];
      |        ^~~~~~~~
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 200 KB Wrong Answer [4]
2 Halted 0 ms 0 KB -
# Verdict Execution time Memory Grader output
1 Incorrect 0 ms 200 KB Wrong Answer [4]
2 Halted 0 ms 0 KB -