QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#334153#5528. Least Annoying Constructive ProblemTransparentWA 1ms3692kbC++14275b2024-02-21 11:46:392024-02-21 11:46:39

Judging History

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

  • [2024-02-21 11:46:39]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3692kb
  • [2024-02-21 11:46:39]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;

int main() {
    ios::sync_with_stdio(false), cin.tie(nullptr);

    int n;
    cin >> n;
    for (int i = 1; i < n; ++i) {
        for (int j = n; j > i; --j) cout << i << " " << j << "\n";
    }

    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3608kb

input:

3

output:

1 3
1 2
2 3

result:

ok Correct

Test #2:

score: -100
Wrong Answer
time: 0ms
memory: 3692kb

input:

4

output:

1 4
1 3
1 2
2 4
2 3
3 4

result:

wrong answer Every consecutive n-1 edges have to form a tree, false for 3