QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#505347#9106. Zayin and DirichletAfterlifeWA 0ms3696kbC++20298b2024-08-05 03:26:202024-08-05 03:26:20

Judging History

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

  • [2024-08-05 03:26:20]
  • 评测
  • 测评结果:WA
  • 用时:0ms
  • 内存:3696kb
  • [2024-08-05 03:26:20]
  • 提交

answer

#include <bits/stdc++.h>
using namespace std;
int n , c , d;
int a[1005];
int main() {
    cin >> n >> c >> d;
    for(int i = 0;i <= n;i++) cin >> a[i];
    if(a[0] == 1) cout << "1\n1 1\n";
    else {
        if(n == 1) cout << "1\n998244352 1\n";
        else cout << "-1\n";
    }
}

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3544kb

input:

2 2 1
1 1 1

output:

1
1 1

result:

ok 2 lines

Test #2:

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

input:

2 2 1
998244352 998244352 1

output:

-1

result:

ok single line: '-1'

Test #3:

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

input:

1 1 1
998244352 1

output:

1
998244352 1

result:

ok 2 lines

Test #4:

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

input:

0 1 1
0

output:

-1

result:

wrong answer 1st lines differ - expected: '0', found: '-1'