ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#159244 | #239. count | bitsstdcheee | 10 | 0ms | 1196kb | C++ | 462b | 2022-09-28 15:55:10 | 2022-09-28 15:55:12 |
answer
#include <iostream>
using namespace std;
int n, m, k;
const long long mod = 998244353;
int main() {
cin >> n >> m >> k;
if (k == 1) {
if (n % m == 0) cout << 0 << endl;
else cout << 1 << endl;
return 0;
}
if (k == 2) {
if (n % m == 0) cout << (n - n / m) % mod << endl;
else cout << (n - n / m * 2) % mod << endl;
return 0;
}
if (k == 3) {
}
return 0;
}
详细
小提示:点击横条可展开更详细的信息
Test #1:
score: 0
Wrong Answer
time: 0ms
memory: 1152kb
input:
1000 1000 3
output:
result:
wrong answer 1st lines differ - expected: '498501', found: ''
Test #2:
score: 10
Accepted
time: 0ms
memory: 1196kb
input:
2000 2000 2
output:
1999
result:
ok single line: '1999'
Test #3:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
1999 1005 3
output:
result:
wrong answer 1st lines differ - expected: '1992024', found: ''
Test #4:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
523098578902387543 1990 3
output:
result:
wrong answer 1st lines differ - expected: '741828632', found: ''
Test #5:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
985435493875384653 1987 3
output:
result:
wrong answer 1st lines differ - expected: '930955578', found: ''
Test #6:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
854378965978354365 4898 20
output:
result:
wrong answer 1st lines differ - expected: '72755158', found: ''
Test #7:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
869347685748976465 5000 20
output:
result:
wrong answer 1st lines differ - expected: '946187174', found: ''
Test #8:
score: 0
Wrong Answer
time: 0ms
memory: 1152kb
input:
985493567483653416 4999 2000
output:
result:
wrong answer 1st lines differ - expected: '715344547', found: ''
Test #9:
score: 0
Wrong Answer
time: 0ms
memory: 1156kb
input:
1000000000000000000 4987 1992
output:
result:
wrong answer 1st lines differ - expected: '142311097', found: ''
Test #10:
score: 0
Wrong Answer
time: 0ms
memory: 1152kb
input:
666666666623333333 4998 1999
output:
result:
wrong answer 1st lines differ - expected: '7913341', found: ''