编号 题目 状态 分数 总时间 内存 代码 / 答案文件 提交者 提交时间
#3271 #1016. JDQD Wrong Answer 15 144 ms 488 K C++ 17 / 387 B cncxh 2023-11-25 14:28:59
显示原始代码
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
ll n, m, min1 = 105, max1 = 0, sum = 0;
int main() {
    cin >> n >> m;
    ll tem, ans;
    for (int i = 0; i < n; i++) {
        cin >> tem;
        sum += tem;
        if (tem > max1)
            max1 = tem;
        if (tem < min1)
            min1 = tem;
    }
    sum -= min1;
    sum -= max1;
    if (sum + min1 > m)
        cout << -1 << endl;
    else {
        if (sum + max1 > m)
            cout << m - sum << endl;
        else {
            cout << -1 << endl;
        }
    }
    return 0;
}
子任务 #1
Wrong Answer
得分:15
测试点 #1
Wrong Answer
得分:0
用时:5 ms
内存:308 KiB

输入文件(sample_01.in

5 180
40 60 80 50

答案文件(sample_01.out

70

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_01.in

3 0
0 0

答案文件(test_01.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(sample_02.in

3 100
100 100

答案文件(sample_02.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_02.in

3 1
0 0

答案文件(test_02.out

-1

用户输出

-1

系统信息

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

输入文件(sample_03.in

5 200
0 0 99 99

答案文件(sample_03.out

-1

用户输出

2

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_03.in

3 100
100 100

答案文件(test_03.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(sample_04.in

10 480
59 98 88 54 70 24 8 94 46

答案文件(sample_04.out

45

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_04.in

3 0
0 100

答案文件(test_04.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_05.in

3 50
0 100

答案文件(test_05.out

50

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_06.in

3 100
0 100

答案文件(test_06.out

100

用户输出

0

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_07.in

100 0
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
<104 bytes omitted>

答案文件(test_07.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_08.in

100 1
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 
<104 bytes omitted>

答案文件(test_08.out

-1

用户输出

-1

系统信息

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

输入文件(test_09.in

100 9800
100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100 100
<305 bytes omitted>

答案文件(test_09.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_10.in

100 6761
69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 69 6
<206 bytes omitted>

答案文件(test_10.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_11.in

100 4018
41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 4
<206 bytes omitted>

答案文件(test_11.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_12.in

100 8429
86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 86 8
<206 bytes omitted>

答案文件(test_12.out

-1

用户输出

-1

系统信息

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

输入文件(test_13.in

20 1202
40 65 18 70 64 11 60 81 62 16 74 53 61 15 0 99 13 36 39

答案文件(test_13.out

-1

用户输出

-1

系统信息

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

输入文件(test_14.in

27 1782
71 16 42 39 50 0 48 85 72 66 37 92 33 20 45 87 5 44 93 39 98 70 67 27 85 100

答案文件(test_14.out

-1

用户输出

-1

系统信息

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

输入文件(test_15.in

47 3434
9 75 35 61 50 70 98 83 96 3 87 58 69 63 16 5 72 51 7 62 83 9 6 16 96 83 43 3 3 28 46 36 29 6
<36 bytes omitted>

答案文件(test_15.out

-1

用户输出

-1

系统信息

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

输入文件(test_16.in

74 1392
85 21 10 16 37 76 8 64 58 75 56 79 79 68 54 79 40 89 71 55 78 92 2 53 52 36 82 82 89 86 49 2
<121 bytes omitted>

答案文件(test_16.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_17.in

60 79
2 81 78 17 18 54 70 38 54 27 93 36 39 29 38 96 33 40 19 80 51 51 9 32 5 12 98 1 31 49 23 65 3 
<75 bytes omitted>

答案文件(test_17.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_18.in

60 5135
57 30 19 2 46 34 94 28 83 66 69 11 40 92 42 33 16 18 15 73 44 16 95 7 22 52 20 75 65 28 82 2
<80 bytes omitted>

答案文件(test_18.out

-1

用户输出

-1

系统信息

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

输入文件(test_19.in

5 140
76 34 46 9

答案文件(test_19.out

60

用户输出

51

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_20.in

43 2061
4 69 51 1 38 47 96 20 70 75 42 96 29 55 96 93 27 99 39 35 68 26 61 27 13 39 91 60 91 57 72 2
<31 bytes omitted>

答案文件(test_20.out

2

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_21.in

99 4699
27 3 96 45 98 24 97 74 87 44 36 26 70 18 73 63 35 14 74 37 59 59 93 10 45 19 68 28 52 90 54 
<191 bytes omitted>

答案文件(test_21.out

98

用户输出

64

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_22.in

24 990
0 9 42 0 78 65 58 81 37 64 29 49 86 63 89 25 72 28 92 30 17 4 64

答案文件(test_22.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_23.in

55 2679
19 27 94 29 6 82 5 42 66 7 30 31 39 51 7 83 83 31 30 96 41 58 29 30 29 33 53 61 36 34 24 100
<67 bytes omitted>

答案文件(test_23.out

-1

用户输出

49

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_24.in

53 2567
69 41 76 16 26 25 84 9 19 50 32 91 80 27 27 26 16 96 19 45 86 53 53 74 53 61 0 14 46 89 92 5
<59 bytes omitted>

答案文件(test_24.out

38

用户输出

27

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_25.in

57 2758
68 51 52 85 13 41 43 42 2 16 36 47 39 18 40 22 53 84 78 10 62 21 95 18 58 58 40 41 2 91 64 1
<73 bytes omitted>

答案文件(test_25.out

30

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_26.in

99 5115
57 79 11 45 89 92 93 95 77 97 32 4 45 7 94 97 35 88 91 34 82 64 22 35 12 100 13 3 77 91 10 1
<196 bytes omitted>

答案文件(test_26.out

3

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_27.in

67 3044
18 16 55 78 21 11 31 6 92 95 90 61 81 28 28 34 27 87 31 47 55 7 27 32 65 71 74 73 5 42 65 76
<98 bytes omitted>

答案文件(test_27.out

95

用户输出

75

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_28.in

58 2637
61 10 46 96 35 66 13 79 16 68 21 99 6 67 31 26 23 29 67 96 74 61 73 13 13 10 68 60 96 52 85 
<75 bytes omitted>

答案文件(test_28.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_29.in

22 989
10 7 60 66 54 54 28 35 10 27 100 33 43 40 0 74 75 56 93 72 51

答案文件(test_29.out

-1

用户输出

50

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_30.in

37 1699
73 27 15 59 46 62 14 33 88 22 39 25 6 61 96 92 30 37 75 77 3 22 95 60 28 44 56 43 4 75 51 90
<13 bytes omitted>

答案文件(test_30.out

44

用户输出

34

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_31.in

100 4899
89 81 63 79 52 59 6 80 76 0 53 15 64 2 3 21 20 46 62 75 64 96 90 86 20 31 41 48 7 18 68 74 
<194 bytes omitted>

答案文件(test_31.out

90

用户输出

52

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_32.in

100 4845
28 61 74 10 11 99 16 66 48 44 46 76 80 14 40 98 32 12 97 67 33 4 23 46 28 82 30 59 78 89 56
<197 bytes omitted>

答案文件(test_32.out

2

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_33.in

100 5202
37 3 50 51 99 15 19 76 18 20 21 43 18 43 55 7 55 83 60 53 52 64 65 48 57 56 46 39 86 45 76 
<203 bytes omitted>

答案文件(test_33.out

100

用户输出

7

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_34.in

100 4718
17 32 26 50 20 30 41 9 54 68 78 15 16 49 39 96 16 54 41 24 15 40 80 83 64 21 60 18 68 26 41
<201 bytes omitted>

答案文件(test_34.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_35.in

100 5319
39 55 40 94 37 86 92 16 18 90 34 39 22 28 7 35 33 98 21 49 98 65 44 10 62 44 82 55 53 4 5 9
<200 bytes omitted>

答案文件(test_35.out

-1

用户输出

56

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_36.in

100 4570
8 57 89 97 36 2 29 64 65 38 7 71 82 86 35 45 100 95 19 77 96 65 18 20 43 0 0 83 22 19 0 92 
<195 bytes omitted>

答案文件(test_36.out

80

用户输出

15

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_37.in

100 5171
27 97 48 76 57 37 55 95 91 91 89 75 9 16 7 64 54 90 28 65 68 2 64 91 94 98 70 27 82 47 29 7
<196 bytes omitted>

答案文件(test_37.out

32

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_38.in

100 4885
88 2 80 37 54 22 31 39 18 76 3 13 77 16 54 80 84 93 68 25 2 31 34 83 75 59 92 67 8 35 47 4 
<199 bytes omitted>

答案文件(test_38.out

3

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_39.in

100 5062
10 81 65 11 33 66 78 85 69 56 90 40 28 57 5 58 48 71 15 53 9 98 89 50 54 46 22 28 36 8 60 3
<198 bytes omitted>

答案文件(test_39.out

100

用户输出

19

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_40.in

100 5109
98 49 17 27 91 33 47 59 94 20 27 39 57 95 8 69 31 4 57 10 2 80 52 73 73 72 77 55 69 42 52 6
<200 bytes omitted>

答案文件(test_40.out

0

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_41.in

100 4995
78 23 8 61 99 3 27 95 74 6 70 13 49 84 65 18 93 45 27 84 13 94 97 14 77 74 65 18 90 40 18 6
<196 bytes omitted>

答案文件(test_41.out

-1

用户输出

99

Special Judge 信息

Files user_out and answer differ

系统信息

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

输入文件(test_42.in

100 4631
47 44 60 4 91 17 67 41 46 14 86 5 24 65 33 63 98 43 64 100 3 4 13 82 1 97 68 88 41 32 54 46
<196 bytes omitted>

答案文件(test_42.out

20

用户输出

-1

Special Judge 信息

Files user_out and answer differ

系统信息

Exited with return code 0