编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#5356 #1051. 相思树 Wrong Answer 50 28 ms 388 K C++ 17 / 255 B hymonade 2024-04-27 15:00:27
显示原始代码
#include <bits/stdc++.h>
using namespace std;
int main() {
    ios::sync_with_stdio(false);
    cin.tie(0);
    int a, k, l, r, ans = 0;
    cin >> a >> k >> l >> r;
    l = a - (a - l) / k * k;
    ans += (r - l - (a - l) % k) / k + 1;
    cout << ans;
    return 0;
}
子任务 #1
Wrong Answer
得分:50
测试点 #1
Wrong Answer
得分:0
用时:3 ms
内存:360 KiB

输入文件(1.in

-2 2 1 1

答案文件(1.out

0

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(2.in

-1000000 1 -1000000 1000000

答案文件(2.out

2000001

用户输出

2000001

系统信息

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

输入文件(3.in

-999999 33 -999999 666666

答案文件(3.out

50506

用户输出

50506

系统信息

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

输入文件(4.in

64552 8 -914835 382070

答案文件(4.out

162113

用户输出

162113

系统信息

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

输入文件(5.in

449771 10 -994736 308943

答案文件(5.out

130368

用户输出

130368

系统信息

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

输入文件(6.in

518796 6 -235474 891919

答案文件(6.out

187899

用户输出

187899

系统信息

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

输入文件(7.in

0 1000000000 -999999999 -999999999

答案文件(7.out

0

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(8.in

1000000000000000000 1 -1000000000000000000 1000000000000000000

答案文件(8.out

2000000000000000001

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(9.in

1000000000000000000 1000000000 -1000000000000000000 1000000000000000000

答案文件(9.out

2000000001

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(10.in

-553548222810233536 554374432 -249328436662217663 672836766307973152

答案文件(10.out

1663433863

用户输出

1

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0