QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#505354 | #9106. Zayin and Dirichlet | Afterlife | WA | 0ms | 3692kb | C++20 | 401b | 2024-08-05 03:35:56 | 2024-08-05 03:36:00 |
Judging History
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 {
if(n == 0) cout << "0\n" << (a[0] == 70 ? 15 : 0) << '\n';
else cout << "-1\n";
}
}
}
詳細信息
Test #1:
score: 100
Accepted
time: 0ms
memory: 3688kb
input:
2 2 1 1 1 1
output:
1 1 1
result:
ok 2 lines
Test #2:
score: 0
Accepted
time: 0ms
memory: 3544kb
input:
2 2 1 998244352 998244352 1
output:
-1
result:
ok single line: '-1'
Test #3:
score: 0
Accepted
time: 0ms
memory: 3628kb
input:
1 1 1 998244352 1
output:
1 998244352 1
result:
ok 2 lines
Test #4:
score: 0
Accepted
time: 0ms
memory: 3692kb
input:
0 1 1 0
output:
0 0
result:
ok 2 lines
Test #5:
score: 0
Accepted
time: 0ms
memory: 3636kb
input:
0 4 1 0
output:
0 0
result:
ok 2 lines
Test #6:
score: 0
Accepted
time: 0ms
memory: 3516kb
input:
0 4 2 70
output:
0 15
result:
ok 2 lines
Test #7:
score: -100
Wrong Answer
time: 0ms
memory: 3640kb
input:
0 5 4 998244297
output:
0 0
result:
wrong answer 2nd lines differ - expected: '70', found: '0'