QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#368784#8217. King's Dinnerucup-team3215#WA 1ms3616kbC++20431b2024-03-27 16:24:162024-03-27 16:24:19

Judging History

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

  • [2024-03-27 16:24:19]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3616kb
  • [2024-03-27 16:24:16]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int main() {
  cin.tie(0)->sync_with_stdio(0);
  int n; cin >> n;
  if (n > 1 && n < 6) return cout << "NO", 0;
  cout << "YES\n";
  if (n == 6) {
    cout << "6\n1 2\n2 3\n1 3\n3 4\n2 5\n5 6\n";
    return 0;
  }
  cout << n - 1 << '\n';
  if (n == 1) return 0;
  cout << "1 2\n1 3\n3 4\n1 5\n";
  for (int i = 6; i <= n; ++i) cout << i << ' ' << i - 1 << '\n';
}

詳細信息

Test #1:

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

input:

3
1
2
3

output:

NO

result:

wrong answer Token parameter [name=row of the grid] equals to "NO", doesn't correspond to pattern "[#.]+" (test case 1)