QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#254593#7756. Omniscia Spares Noneucup-team1198#WA 1ms3548kbC++20698b2023-11-18 13:22:142023-11-18 13:22:14

Judging History

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

  • [2023-11-18 13:22:14]
  • 评测
  • 测评结果:WA
  • 用时:1ms
  • 内存:3548kb
  • [2023-11-18 13:22:14]
  • 提交

answer

#include <bits/stdc++.h>

using namespace std;
#define ll long long
#define pii pair<int, int>
#define ld long double
#define all(a) (a).begin(), (a).end()

signed main() {
    ios_base::sync_with_stdio(0);
    cin.tie(0);
    cout.tie(0);

    int n;
    cin >> n;
    if (n == 1) {
        cout << "Yes\n";
        cout << "0 0\n0\n";
    } else if (n == 2) {
        cout << "Yes\n";
        cout << "0 0\n0 1\n0\n";

    } else if (n == 3) {
        cout << "Yes\n\
-1 0\n\
0 1\n\
1 0\n\
2\n\
1 2\n\
2 3\n";

    } else if (n == 4) {
        cout << "Yes\n\
-998244353 -998244353\n\
0 998244353\n\
6 6\n\
1 1\n\
2\n\
1 2\n\
4 3\n";

    } else {
        cout << "No\n";
    }


    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

3

output:

Yes
-1 0
0 1
1 0
2
1 2
2 3

result:

ok OK, Accepted.

Test #2:

score: 0
Accepted
time: 0ms
memory: 3352kb

input:

4

output:

Yes
-998244353 -998244353
0 998244353
6 6
1 1
2
1 2
4 3

result:

ok OK, Accepted.

Test #3:

score: 0
Accepted
time: 1ms
memory: 3384kb

input:

1

output:

Yes
0 0
0

result:

ok OK, Accepted.

Test #4:

score: 0
Accepted
time: 0ms
memory: 3388kb

input:

2

output:

Yes
0 0
0 1
0

result:

ok OK, Accepted.

Test #5:

score: 0
Accepted
time: 1ms
memory: 3396kb

input:

5

output:

No

result:

ok OK, Accepted.

Test #6:

score: 0
Accepted
time: 0ms
memory: 3388kb

input:

6

output:

No

result:

ok OK, Accepted.

Test #7:

score: 0
Accepted
time: 1ms
memory: 3524kb

input:

7

output:

No

result:

ok OK, Accepted.

Test #8:

score: -100
Wrong Answer
time: 1ms
memory: 3352kb

input:

8

output:

No

result:

wrong answer Wrong Verdict.