QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#69480#2114. Koszulki [C]Index1 2ms1804kbC11463b2022-12-27 18:56:112022-12-27 18:56:13

Judging History

你现在查看的是最新测评结果

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-12-27 18:56:13]
  • 评测
  • 测评结果:1
  • 用时:2ms
  • 内存:1804kb
  • [2022-12-27 18:56:11]
  • 提交

answer

#include <stdio.h>
#include <stdlib.h>

int a[2048];

int cmp1(const void* a, const void* b) {
    int ai = *(int*)a;
    int bi = *(int*)b;
    return ai < bi ? 1 : ai == bi ? 0 : -1;
}

int main(void) {
    int n, k, res;
    scanf("%d %d", &n, &k);
    for (int i = 0; i < n; i++) {
        scanf("%d", &a[i]);
    }
    qsort(a, n, sizeof(int), cmp1);
    res = k;
    while (a[res] == a[k]) res++;
    printf("%d", res);
    return 0;
}

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 1
Accepted
time: 1ms
memory: 1588kb

input:

5 3
75 90 120 75 40

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 1ms
memory: 1680kb

input:

15 1
88 88 88 88 88 88 88 88 88 88 88 88 88 88 88

output:

15

result:

ok single line: '15'

Test #3:

score: -1
Runtime Error

input:

2 2
2 95

output:


result:


Subtask #2:

score: 0
Wrong Answer

Test #15:

score: 1
Accepted
time: 1ms
memory: 1692kb

input:

30 9
118 51 23 28 103 65 51 65 26 28 65 65 65 83 59 65 28 79 26 65 65 28 65 26 28 51 65 51 31 31

output:

14

result:

ok single line: '14'

Test #16:

score: 0
Accepted
time: 1ms
memory: 1804kb

input:

30 9
20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20 20

output:

30

result:

ok single line: '30'

Test #17:

score: 0
Accepted
time: 1ms
memory: 1672kb

input:

30 13
100 5 71 16 80 43 93 9 120 91 48 100 93 100 100 62 62 62 65 100 75 62 100 91 62 100 51 43 100 100

output:

14

result:

ok single line: '14'

Test #18:

score: -1
Wrong Answer
time: 1ms
memory: 1608kb

input:

30 25
111 55 59 119 59 1 10 52 52 115 118 112 79 104 27 27 1 25 32 62 46 53 12 76 1 43 113 75 59 68

output:

26

result:

wrong answer 1st lines differ - expected: '25', found: '26'

Subtask #3:

score: 0
Runtime Error

Test #26:

score: 1
Accepted
time: 0ms
memory: 1592kb

input:

28 1
77 12 114 115 120 82 20 40 114 66 114 115 90 20 77 114 120 90 90 12 114 90 114 120 114 114 90 90

output:

3

result:

ok single line: '3'

Test #27:

score: 0
Accepted
time: 1ms
memory: 1612kb

input:

30 26
1 43 1 65 65 1 65 43 65 65 65 1 1 65 1 65 65 65 65 1 65 1 65 65 65 65 43 1 65 65

output:

30

result:

ok single line: '30'

Test #28:

score: 0
Accepted
time: 1ms
memory: 1744kb

input:

30 21
47 47 35 47 47 42 85 47 47 47 47 47 35 35 57 11 57 47 57 57 83 83 47 57 11 57 57 47 36 11

output:

22

result:

ok single line: '22'

Test #29:

score: 0
Accepted
time: 1ms
memory: 1692kb

input:

30 15
28 107 114 83 72 82 62 63 91 36 42 56 41 104 111 25 22 3 8 45 86 72 84 30 30 5 110 62 30 88

output:

16

result:

ok single line: '16'

Test #30:

score: 0
Accepted
time: 1ms
memory: 1664kb

input:

30 2
120 120 120 120 1 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120 120

output:

29

result:

ok single line: '29'

Test #31:

score: -1
Runtime Error

input:

30 30
53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53 53

output:


result:


Subtask #4:

score: 1
Accepted

Test #36:

score: 1
Accepted
time: 2ms
memory: 1624kb

input:

2000 1
94 1 109 13 24 91 71 83 72 57 2 63 31 40 19 70 8 102 105 2 70 44 41 27 5 79 89 95 40 38 29 48 23 19 53 28 25 15 86 111 99 88 51 58 87 89 12 41 58 56 99 38 80 11 60 20 73 62 98 79 21 47 102 63 102 60 111 56 107 119 54 79 91 2 94 21 5 41 27 36 88 33 4 90 77 61 33 36 119 27 94 6 53 31 85 41 65 1...

output:

15

result:

ok single line: '15'

Test #37:

score: 0
Accepted
time: 0ms
memory: 1588kb

input:

2000 1
17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17 17...

output:

2000

result:

ok single line: '2000'

Test #38:

score: 0
Accepted
time: 1ms
memory: 1520kb

input:

2000 1
55 18 64 61 60 71 6 71 54 111 28 79 18 71 71 102 65 79 71 107 2 71 18 18 17 36 2 107 79 18 79 79 71 17 79 102 102 79 24 24 71 79 79 71 105 108 71 28 71 79 71 79 65 71 18 18 102 83 24 17 71 65 28 2 102 10 71 18 79 51 18 71 71 79 71 109 24 33 71 71 10 71 102 18 71 87 71 52 79 71 18 43 2 71 33 7...

output:

9

result:

ok single line: '9'

Test #39:

score: 0
Accepted
time: 1ms
memory: 1664kb

input:

444 1
105 105 72 108 110 105 105 105 108 105 108 110 78 105 108 78 108 105 105 108 72 105 105 105 108 105 72 105 78 105 108 105 108 105 72 105 78 105 105 105 108 78 105 105 108 105 108 108 105 72 105 105 108 105 105 105 105 78 78 108 108 105 105 105 78 105 108 110 108 105 105 72 72 110 105 105 105 1...

output:

38

result:

ok single line: '38'

Test #40:

score: 0
Accepted
time: 1ms
memory: 1584kb

input:

1803 1
46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46 46...

output:

1803

result:

ok single line: '1803'

Test #41:

score: 0
Accepted
time: 2ms
memory: 1740kb

input:

2000 1
11 60 116 98 2 79 6 96 116 32 59 15 75 108 43 45 21 91 89 69 108 16 110 63 69 50 18 68 96 110 93 14 77 62 16 72 82 23 4 40 113 55 64 100 104 108 24 16 3 81 36 107 84 39 79 36 94 48 43 120 11 92 110 53 105 30 63 8 115 80 106 104 43 82 69 97 65 7 52 54 105 2 93 66 7 27 84 46 40 19 110 29 106 90...

output:

18

result:

ok single line: '18'

Test #42:

score: 0
Accepted
time: 1ms
memory: 1588kb

input:

682 1
101 63 86 101 101 101 63 63 86 63 63 63 86 101 63 63 63 63 63 63 63 86 101 101 101 63 63 113 63 86 63 113 63 101 63 63 86 63 101 101 101 63 63 113 63 63 86 63 63 63 63 63 86 63 63 101 63 86 101 63 101 113 63 63 101 101 86 101 63 63 101 63 63 101 86 63 63 86 63 86 101 63 63 63 63 63 63 63 86 63...

output:

62

result:

ok single line: '62'

Test #43:

score: 0
Accepted
time: 1ms
memory: 1696kb

input:

1999 1
67 67 74 67 27 27 31 31 45 89 11 31 65 45 67 67 67 44 67 20 89 67 74 67 45 67 31 31 31 117 67 89 31 27 67 67 89 89 67 67 117 31 44 45 67 67 44 31 89 67 89 89 31 67 45 31 31 117 67 45 44 67 31 31 89 20 89 31 31 27 89 45 31 89 44 74 67 31 67 45 67 31 45 67 67 31 27 67 45 31 67 67 74 27 89 27 65...

output:

38

result:

ok single line: '38'

Test #44:

score: 0
Accepted
time: 2ms
memory: 1688kb

input:

2000 1
63 82 33 46 80 55 114 107 48 71 75 48 32 83 74 83 42 55 75 87 19 25 5 87 19 89 101 32 55 59 29 18 96 69 99 42 45 96 106 114 42 85 93 21 56 106 21 50 73 97 92 56 107 3 19 29 3 3 94 99 117 69 15 70 61 57 64 56 76 10 50 48 97 102 76 72 54 62 54 20 57 4 57 17 12 16 38 49 45 66 39 41 33 42 87 63 4...

output:

18

result:

ok single line: '18'

Test #45:

score: 0
Accepted
time: 1ms
memory: 1696kb

input:

2000 1
120 113 120 120 120 120 120 113 120 113 120 113 120 120 120 120 120 120 113 113 120 120 113 113 113 113 120 113 113 113 120 120 113 120 120 113 113 120 113 113 120 113 113 113 113 113 120 113 120 113 113 113 120 120 113 113 113 120 113 113 113 113 120 113 120 120 113 113 120 113 113 120 113 1...

output:

1000

result:

ok single line: '1000'

Subtask #5:

score: 0
Wrong Answer

Test #46:

score: 1
Accepted
time: 0ms
memory: 1608kb

input:

1998 1
69 58 2 71 23 2 51 58 2 23 65 23 71 58 2 2 116 2 71 2 71 69 71 2 71 69 23 62 105 40 45 69 75 2 71 17 2 65 69 71 75 2 2 2 69 7 105 71 45 71 63 63 69 23 23 2 69 79 71 71 65 71 71 65 41 71 2 106 71 45 69 65 69 120 24 106 105 71 71 71 88 11 2 71 71 71 71 75 2 71 65 2 75 71 2 17 71 120 71 71 23 2 ...

output:

32

result:

ok single line: '32'

Test #47:

score: 0
Accepted
time: 1ms
memory: 1596kb

input:

1160 1
118 118 38 118 118 38 118 118 118 118 38 118 38 118 118 118 38 118 118 118 118 38 118 38 38 118 38 118 118 38 118 38 118 118 118 38 118 118 38 118 118 118 118 38 38 118 118 38 118 38 118 118 38 118 118 38 118 118 118 118 38 118 118 38 118 118 118 118 38 118 118 118 118 118 118 118 118 38 118 ...

output:

872

result:

ok single line: '872'

Test #48:

score: 0
Accepted
time: 1ms
memory: 1672kb

input:

2000 1
78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78 78...

output:

1999

result:

ok single line: '1999'

Test #49:

score: -1
Wrong Answer
time: 1ms
memory: 1592kb

input:

2000 1
42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42 42...

output:

2000

result:

wrong answer 1st lines differ - expected: '1', found: '2000'

Subtask #6:

score: 0
Wrong Answer

Test #56:

score: 1
Accepted
time: 0ms
memory: 1660kb

input:

1424 197
4 78 49 78 78 36 78 78 60 78 52 78 22 78 78 78 36 78 22 78 49 36 78 36 78 60 78 60 49 96 78 36 78 78 78 4 78 22 78 49 78 60 49 60 78 5 78 49 52 49 78 78 78 36 36 60 49 78 49 49 78 36 78 78 49 78 78 36 96 9 5 36 78 78 5 78 52 78 78 67 78 49 4 78 36 36 23 78 36 5 22 78 78 9 36 60 78 78 4 36 7...

output:

646

result:

ok single line: '646'

Test #57:

score: 0
Accepted
time: 1ms
memory: 1588kb

input:

1999 1298
101 8 98 52 11 119 6 20 10 12 73 35 4 67 104 68 28 18 98 49 38 67 59 58 80 66 71 7 105 39 117 60 15 3 97 17 108 114 96 61 5 100 77 107 40 89 43 118 87 5 94 110 6 90 82 105 29 97 91 91 6 42 101 81 34 95 103 33 61 45 63 5 36 104 3 64 82 33 98 23 79 105 82 70 118 77 11 75 49 82 81 14 79 3 58 ...

output:

1303

result:

ok single line: '1303'

Test #58:

score: 0
Accepted
time: 1ms
memory: 1688kb

input:

2000 141
19 12 35 4 103 36 7 54 9 58 25 103 104 54 84 50 109 17 17 6 90 5 83 36 39 53 45 4 120 111 98 57 41 7 4 47 69 14 64 30 104 100 26 40 88 99 116 83 50 52 88 47 21 74 94 82 11 10 73 55 28 85 87 88 108 86 27 59 3 65 49 89 112 61 109 1 89 43 58 84 84 19 43 30 65 81 38 109 86 29 25 99 10 43 100 57...

output:

146

result:

ok single line: '146'

Test #59:

score: 0
Accepted
time: 1ms
memory: 1684kb

input:

1455 466
5 117 117 46 43 95 97 64 37 5 31 37 37 18 117 37 120 5 117 37 5 5 50 117 72 120 118 43 31 5 46 117 22 94 5 59 15 50 117 5 43 120 27 5 37 5 50 120 120 65 18 5 32 46 5 24 29 37 5 95 5 37 93 64 31 5 37 31 117 95 46 31 87 72 95 87 29 37 37 31 50 32 37 5 31 5 105 120 95 5 105 5 5 27 120 25 117 3...

output:

485

result:

ok single line: '485'

Test #60:

score: 0
Accepted
time: 1ms
memory: 1560kb

input:

2000 1726
102 102 50 107 93 32 1 22 91 32 36 50 102 102 64 55 64 102 116 102 102 112 64 91 116 50 32 102 10 116 102 102 102 107 102 74 39 102 55 23 64 102 64 82 102 32 102 1 32 64 64 64 25 64 64 107 32 102 102 102 102 64 39 102 23 64 102 1 50 32 91 64 68 64 102 102 50 32 102 93 64 64 64 102 102 64 6...

output:

1874

result:

ok single line: '1874'

Test #61:

score: -1
Wrong Answer
time: 1ms
memory: 1736kb

input:

2000 1000
120 29 120 120 29 120 29 29 120 120 29 29 29 29 29 120 29 120 29 120 29 120 29 29 29 120 29 29 120 29 29 120 120 120 120 29 120 29 120 120 120 29 120 29 120 29 29 29 29 120 120 120 120 120 120 120 29 29 29 120 120 29 120 120 120 29 29 29 120 120 29 120 120 29 29 120 120 120 120 120 29 29 1...

output:

2000

result:

wrong answer 1st lines differ - expected: '1000', found: '2000'

Subtask #7:

score: 0
Runtime Error

Test #68:

score: 1
Accepted
time: 0ms
memory: 1648kb

input:

2000 1054
90 62 104 24 79 18 4 94 120 117 44 117 108 34 38 95 70 2 54 80 53 68 73 105 41 64 103 64 39 115 35 91 116 31 42 13 84 47 99 6 2 99 56 22 89 54 25 24 61 119 80 87 48 102 53 120 45 86 84 90 66 49 85 75 111 64 50 85 37 80 54 79 85 7 97 95 35 16 69 119 28 77 25 117 117 36 63 92 113 46 71 61 24...

output:

1056

result:

ok single line: '1056'

Test #69:

score: 0
Accepted
time: 0ms
memory: 1744kb

input:

2000 1
120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1...

output:

1000

result:

ok single line: '1000'

Test #70:

score: 0
Accepted
time: 1ms
memory: 1604kb

input:

2000 1
115 115 62 115 62 115 115 62 115 115 115 115 115 115 115 115 115 115 115 115 115 62 115 115 115 62 115 62 115 62 62 115 62 115 115 62 115 62 115 62 115 115 115 115 115 115 62 62 62 62 115 115 115 115 115 115 115 62 115 115 115 115 115 115 115 115 115 115 115 115 115 62 115 115 115 115 115 115...

output:

1504

result:

ok single line: '1504'

Test #71:

score: -1
Runtime Error

input:

2000 2000
80 94 82 80 94 94 80 82 80 94 11 80 94 94 80 11 69 80 94 30 94 80 80 30 30 80 94 80 69 80 94 69 80 30 80 80 80 80 80 69 94 11 80 82 80 80 82 80 80 69 30 94 80 94 80 80 94 94 11 80 80 80 80 80 30 80 80 94 80 80 80 82 80 80 80 80 94 94 11 94 11 94 80 80 94 80 11 30 82 94 80 82 80 80 80 80 94...

output:


result:


Subtask #8:

score: 0
Wrong Answer

Test #80:

score: 1
Accepted
time: 1ms
memory: 1620kb

input:

2000 4
119 76 86 104 90 53 92 50 113 92 32 66 33 85 36 69 110 58 71 4 10 56 118 69 40 12 115 17 11 83 71 41 103 31 3 22 75 5 46 60 64 20 3 56 95 99 29 23 28 106 30 90 34 50 42 80 96 83 24 72 28 26 14 9 1 39 57 62 88 19 87 84 93 104 1 83 63 68 119 18 113 110 75 24 81 18 93 33 112 77 119 79 34 79 94 7...

output:

21

result:

ok single line: '21'

Test #81:

score: -1
Wrong Answer
time: 0ms
memory: 1740kb

input:

2000 997
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100...

output:

1014

result:

wrong answer 1st lines differ - expected: '997', found: '1014'

Subtask #9:

score: 0
Runtime Error

Test #92:

score: 1
Accepted
time: 1ms
memory: 1588kb

input:

1998 1063
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 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 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 86 86 86 86 86 86 86...

output:

1998

result:

ok single line: '1998'

Test #93:

score: 0
Accepted
time: 1ms
memory: 1704kb

input:

2000 1419
41 72 98 72 72 41 72 72 72 98 72 72 72 72 72 41 72 72 72 41 41 72 72 72 41 41 72 72 98 72 72 41 72 72 41 72 98 98 41 72 41 72 72 98 98 72 72 72 72 98 72 72 72 98 72 72 41 98 72 72 98 98 72 72 72 72 98 72 72 72 72 98 72 72 72 72 98 72 72 72 41 72 98 72 41 41 98 72 72 98 72 98 72 72 98 72 72...

output:

1776

result:

ok single line: '1776'

Test #94:

score: 0
Accepted
time: 1ms
memory: 1688kb

input:

1999 1791
100 71 39 57 6 95 86 13 30 114 97 100 28 25 65 36 84 55 78 21 117 77 3 73 74 21 36 117 50 105 96 92 6 58 59 50 114 43 5 102 76 27 80 37 13 67 74 36 25 4 47 57 63 118 111 117 83 63 44 75 104 104 9 8 56 18 41 112 45 15 119 7 20 111 54 46 40 10 60 19 84 24 22 63 43 100 103 80 92 26 6 104 10 1...

output:

1805

result:

ok single line: '1805'

Test #95:

score: 0
Accepted
time: 0ms
memory: 1740kb

input:

2000 452
84 119 47 75 51 117 2 117 15 29 1 84 66 27 30 39 73 67 85 110 70 61 117 101 110 60 50 40 24 49 45 61 110 57 100 13 92 74 28 48 69 66 57 88 42 93 88 32 11 60 45 2 82 21 92 95 33 117 84 114 101 120 88 56 94 85 45 114 116 78 34 109 19 76 61 73 49 15 37 82 31 106 52 93 79 41 61 17 80 6 24 91 77...

output:

459

result:

ok single line: '459'

Test #96:

score: -1
Runtime Error

input:

2000 2000
118 37 37 52 118 37 37 37 118 37 37 37 118 75 37 118 118 37 118 37 118 118 118 37 37 37 37 52 118 37 37 37 37 37 37 37 37 37 52 37 37 37 37 37 37 37 118 37 37 37 37 118 118 75 37 37 52 37 118 118 52 52 118 37 52 75 118 37 118 37 75 37 37 37 118 118 52 37 37 37 37 118 118 118 37 37 118 37 5...

output:


result:


Subtask #10:

score: 0
Wrong Answer

Test #103:

score: 1
Accepted
time: 0ms
memory: 1740kb

input:

2000 1999
31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31 31...

output:

2000

result:

ok single line: '2000'

Test #104:

score: 0
Accepted
time: 1ms
memory: 1652kb

input:

1373 616
119 36 36 71 36 71 36 36 119 36 36 36 36 36 36 36 71 36 36 71 71 36 36 36 119 36 36 71 36 36 36 36 36 36 36 36 36 36 36 36 36 36 71 36 71 36 36 71 36 119 36 36 29 36 36 119 36 36 29 36 71 71 119 36 36 29 71 36 36 71 71 36 71 71 36 36 71 29 36 29 36 71 71 36 119 36 36 71 36 119 36 36 36 71 7...

output:

1265

result:

ok single line: '1265'

Test #105:

score: 0
Accepted
time: 1ms
memory: 1628kb

input:

2000 1999
64 108 80 23 89 107 26 105 40 117 94 99 51 98 32 55 40 30 93 22 27 51 28 78 8 56 19 65 23 78 73 112 41 10 75 96 91 28 5 39 111 64 108 55 72 69 95 117 36 65 111 46 22 19 9 35 40 97 110 56 103 104 36 107 15 24 109 77 55 24 51 72 91 15 120 54 69 36 120 63 33 106 38 18 26 18 79 67 54 11 34 93 ...

output:

2000

result:

ok single line: '2000'

Test #106:

score: 0
Accepted
time: 1ms
memory: 1692kb

input:

2000 1001
120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 120 1 12...

output:

2000

result:

ok single line: '2000'

Test #107:

score: -1
Wrong Answer
time: 1ms
memory: 1648kb

input:

1998 343
70 110 2 76 43 96 77 26 69 55 22 60 49 73 28 60 111 74 98 79 72 79 50 26 115 68 42 113 6 11 26 79 113 120 115 15 52 106 53 60 47 67 72 7 44 23 108 54 8 103 58 71 98 52 38 107 21 112 34 46 90 72 111 43 103 107 86 88 18 65 51 109 7 6 62 99 86 22 50 61 64 48 70 105 78 63 15 109 73 57 112 103 2...

output:

356

result:

wrong answer 1st lines differ - expected: '343', found: '356'