QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#242575#5600. Restaurant OpeningHuangHanShengWA 2ms3512kbC++17484b2023-11-07 15:16:362023-11-07 15:16:38

詳細信息

Test #1:

score: 100
Accepted
time: 1ms
memory: 3476kb

input:

2 2
1 2
3 4

output:

7

result:

ok single line: '7'

Test #2:

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

input:

1 10
3 49 4 31 10 31 50 24 10 42

output:

591

result:

ok single line: '591'

Test #3:

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

input:

7 42
22 32 37 13 25 11 36 11 37 45 17 26 9 35 2 17 1 32 12 19 12 45 38 45 23 43 13 41 38 30 38 16 30 34 44 36 27 23 10 28 43 31
3 25 37 44 34 15 49 9 21 36 34 38 11 16 24 39 8 34 31 11 18 3 48 39 40 25 30 15 37 40 23 18 22 9 41 23 38 37 29 4 16 8
47 19 31 15 11 41 14 4 7 37 19 13 14 18 21 9 24 46 40...

output:

85301

result:

ok single line: '85301'

Test #4:

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

input:

10 37
30 45 39 14 40 35 2 13 44 5 35 37 22 31 8 11 6 33 10 5 8 49 34 31 0 4 22 46 0 1 20 22 31 3 26 19 9
1 45 6 20 0 15 2 33 33 39 16 31 26 20 26 1 4 47 30 29 6 21 25 44 39 20 47 27 33 8 19 10 7 34 40 20 22
33 20 39 20 28 28 37 37 35 9 27 45 29 12 26 23 28 0 14 48 29 30 11 9 2 35 17 17 30 29 33 14 0...

output:

102081

result:

ok single line: '102081'

Test #5:

score: -100
Wrong Answer
time: 2ms
memory: 3512kb

input:

28 46
6 47 0 12 42 7 43 6 18 32 8 29 9 30 29 43 49 13 41 20 39 49 48 41 20 20 36 26 5 47 32 16 23 13 7 29 42 27 16 48 45 4 9 0 22 35
31 22 27 47 21 34 25 25 2 20 2 25 42 10 38 4 16 4 22 28 28 30 4 19 30 22 28 18 29 28 28 8 32 42 27 4 42 8 20 23 0 37 17 42 35 10
19 26 12 4 14 33 24 15 5 19 22 33 34 4...

output:

125000

result:

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