QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#155165#7119. Longest Tripyzy10 1ms3792kbC++171.4kb2023-09-01 12:44:292024-04-28 06:54:44

Judging History

你现在查看的是最新测评结果

  • [2024-04-28 06:54:44]
  • 管理员手动重测本题所有提交记录
  • 测评结果:0
  • 用时:1ms
  • 内存:3792kb
  • [2023-09-01 12:44:30]
  • 评测
  • 测评结果:0
  • 用时:1ms
  • 内存:4096kb
  • [2023-09-01 12:44:29]
  • 提交

answer

#include <bits/stdc++.h>

#include "longesttrip.h"

#if defined(LOCAL)
#define DBG_MACRO_NO_WARNING
#include <dbg.hpp>

#include "grader.cpp"
#else
#define dbg(x...) (0)
#endif

using namespace std;

using ll = long long;

// #define int ll
#define rep(i, f, t) for (int i = (f), ed##i = (t); i <= ed##i; ++i)
#define re(i, t) rep (i, 1, t)
#define per(i, t, f) for (int i = (t), ed##i = (f); i >= ed##i; --i)
#define ste(i, f, t, s) for (int i = (f), ed##i = (t); i <= ed##i; i += s)
#define nxt(i, f, g) for (int i = g.h[f]; i; i = g.e[i].n)
#define umod(x) ((x) >= mo && ((x) -= mo))
#define dmod(x) ((x) < 0 && ((x) += mo))
#define y1 y1__
#define fio(x) (freopen(x ".in", "r", stdin), freopen(x ".out", "w", stdout))

template <class T, class E>
__attribute__((always_inline)) inline void up(T &x, E &&y) {
  if (x < y) x = y;
}
template <class T, class E>
__attribute__((always_inline)) inline void down(T &x, E &&y) {
  if (y < x) x = y;
}

int n, m;

inline bool Ask(vector<int> x, vector<int> y) {
  for (auto &v : x) ++v;
  for (auto &v : y) ++v;
  return are_connected(x, y);
}

inline vector<int> Work() {
  if (m == 3) {
    vector<int> vec;
    re (i, n) vec.push_back(i);
    return vec;
  }
  return {};
}

std::vector<int> longest_trip(int N, int D) {
  ::n = N, ::m = D;
  auto vec = Work();
  for (auto &x : vec) ++x;
  return vec;
}

詳細信息

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 0
Wrong Answer
time: 0ms
memory: 3792kb

input:

341
3 3

output:

3kC2Ia2048BfyJVGojMUKKtilctlZKcB
1 3 2 3 4

result:

wrong answer 

Subtask #2:

score: 0
Wrong Answer

Test #6:

score: 0
Wrong Answer
time: 1ms
memory: 3768kb

input:

341
3 2

output:

3kC2Ia2048BfyJVGojMUKKtilctlZKcB
1 0

result:

wrong answer 

Subtask #3:

score: 0
Wrong Answer

Test #19:

score: 0
Wrong Answer
time: 1ms
memory: 3732kb

input:

341
3 1

output:

3kC2Ia2048BfyJVGojMUKKtilctlZKcB
1 0

result:

wrong answer 

Subtask #4:

score: 0
Wrong Answer

Test #83:

score: 0
Wrong Answer
time: 1ms
memory: 3760kb

input:

341
3 1

output:

3kC2Ia2048BfyJVGojMUKKtilctlZKcB
1 0

result:

wrong answer