编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#5275 #1040. Wrong Answer 20 68 ms 416 K C++ 17 / 895 B YMD233 2024-03-01 13:32:00
显示原始代码
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int mod = 998244353;
const int MAXN = 2e5 + 5;
int n, m, k;
ll a[MAXN];
int read() {
    int res = 0, f = 1;
    char ch = getchar();
    while (ch < '0' || ch > '9') {
        f = -1;
        ch = getchar();
    }
    while (ch >= '0' && ch <= '9') {
        res = (res << 1) + (res << 3) + (ch ^ 48);
        ch = getchar();
    }
    return res * f;
}
namespace subtask5 {
void main() {
    if (m == 0)
        cout << 1 << endl;
    else
        cout << 0 << endl;
    return;
}
}  // namespace subtask5
namespace subtask3 {
void main() {
    if (k > 0)
        cout << 1 << endl;
    else
        cout << 0 << endl;
    return;
}
}  // namespace subtask3
namespace subtask4 {
void main() {
    if (k == 1)
        cout << 1 << endl;
    else if (k == 2)
        cout << (n / 2) - 1 << endl;
    else
        cout << n / 2 << endl;
}
}  // namespace subtask4
int main() {
    n = read();
    m = read();
    k = read();
    if (m == 0) {
        subtask3::main();
        return 0;
    }
    if (m == 2) {
        subtask4::main();
        return 0;
    }
    if (k == 1) {
        subtask5::main();
        return 0;
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:20
测试点 #1
Wrong Answer
得分:0
用时:6 ms
内存:288 KiB

输入文件(ring1.in

9 5 5

答案文件(ring1.out

14

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #2
Wrong Answer
得分:0
用时:7 ms
内存:256 KiB

输入文件(ring2.in

9 7 5

答案文件(ring2.out

2

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #3
Wrong Answer
得分:0
用时:7 ms
内存:316 KiB

输入文件(ring3.in

19 17 15

答案文件(ring3.out

7

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #4
Wrong Answer
得分:0
用时:6 ms
内存:284 KiB

输入文件(ring4.in

18 12 7

答案文件(ring4.out

912

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #5
Accepted
得分:100
用时:7 ms
内存:308 KiB

输入文件(ring5.in

20 0 7

答案文件(ring5.out

1

用户输出

1

系统信息

Exited with return code 0
测试点 #6
Accepted
得分:100
用时:6 ms
内存:292 KiB

输入文件(ring6.in

100000 2 337

答案文件(ring6.out

50000

用户输出

50000

系统信息

Exited with return code 0
测试点 #7
Wrong Answer
得分:0
用时:6 ms
内存:232 KiB

输入文件(ring7.in

98909 36053 1

答案文件(ring7.out

755199137

用户输出

0

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #8
Wrong Answer
得分:0
用时:9 ms
内存:384 KiB

输入文件(ring8.in

98928 35008 1

答案文件(ring8.out

242368970

用户输出

0

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #9
Wrong Answer
得分:0
用时:8 ms
内存:252 KiB

输入文件(ring9.in

99487 37977 25269

答案文件(ring9.out

574473678

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0
测试点 #10
Wrong Answer
得分:0
用时:6 ms
内存:416 KiB

输入文件(ring10.in

99523 57906 25167

答案文件(ring10.out

607223591

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0