QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#430215#5528. Least Annoying Constructive Problem36champWA 1ms3732kbC++20364b2024-06-03 16:01:242024-06-03 16:01:25

Judging History

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

  • [2024-06-03 16:01:25]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3732kb
  • [2024-06-03 16:01:24]
  • 提交

answer

#include <bits/stdc++.h>
#define ll long long
#define pb push_back

using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
	cin.tie(nullptr);
	cout.tie(nullptr);

	int n;
	cin >> n;

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

詳細信息

Test #1:

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

input:

3

output:

1 2
2 3
1 3

result:

ok Correct

Test #2:

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

input:

4

output:

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

result:

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