QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#103167#6125. Lucky Stars ManagementThreeKonjaks#WA 128ms21532kbC++171.8kb2023-05-04 17:10:052023-05-04 17:10:06

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 11784kb

input:

2 1
1
2 1

output:

4

result:

ok 1 number(s): "4"

Test #2:

score: 0
Accepted
time: 4ms
memory: 11128kb

input:

1 1

2

output:

2

result:

ok 1 number(s): "2"

Test #3:

score: 0
Accepted
time: 32ms
memory: 11472kb

input:

35224 611178003
1 2 1 4 4 4 6 7 4 2 8 1 7 7 10 1 15 9 8 19 4 11 1 1 1 21 18 1 29 13 22 14 28 2 34 15 29 32 36 15 23 15 15 30 19 2 27 36 42 7 12 41 47 19 8 48 22 58 47 46 33 60 62 55 65 25 39 37 64 65 51 5 62 32 52 54 23 47 71 48 12 57 66 14 21 67 51 48 63 4 61 6 40 91 79 76 75 51 83 22 22 65 30 2 99...

output:

382077724

result:

ok 1 number(s): "382077724"

Test #4:

score: 0
Accepted
time: 121ms
memory: 21532kb

input:

149791 34987949
1 1 2 4 5 1 6 8 4 9 7 10 11 14 15 16 17 18 10 19 15 15 21 19 8 7 24 28 11 29 31 32 21 15 33 3 32 36 35 10 39 42 8 29 13 43 47 48 49 44 50 40 8 52 55 56 43 50 31 57 61 62 1 43 63 11 66 68 69 50 70 68 72 74 75 22 76 78 79 54 80 82 83 72 84 54 1 86 7 89 20 78 91 94 59 95 97 98 99 100 10...

output:

49310952

result:

ok 1 number(s): "49310952"

Test #5:

score: 0
Accepted
time: 111ms
memory: 18152kb

input:

118590 920049643
1 1 2 1 4 6 1 7 7 10 9 1 4 10 13 10 17 18 17 10 19 22 15 22 25 23 26 28 17 29 3 26 19 31 2 14 4 35 39 40 41 37 18 42 20 45 27 9 46 1 30 47 44 29 47 27 53 26 58 1 60 62 14 51 6 28 63 68 43 69 71 10 27 2 72 76 77 76 78 50 81 40 79 25 81 50 80 54 14 5 88 91 92 94 95 96 97 93 17 62 36 2...

output:

657262978

result:

ok 1 number(s): "657262978"

Test #6:

score: 0
Accepted
time: 128ms
memory: 19688kb

input:

124407 288831131
1 2 2 3 5 6 5 3 7 10 6 1 2 11 15 1 17 3 16 20 14 18 21 23 18 17 13 24 29 30 31 6 17 32 35 36 37 17 22 38 41 2 42 44 34 15 45 25 39 49 12 45 48 28 54 56 57 33 58 60 22 61 63 64 65 22 66 68 25 1 69 72 31 65 32 47 4 73 79 30 80 82 83 84 85 58 86 36 88 90 37 91 88 89 17 93 97 31 56 98 7...

output:

948978942

result:

ok 1 number(s): "948978942"

Test #7:

score: 0
Accepted
time: 49ms
memory: 16052kb

input:

67899 312198691
1 1 1 2 1 6 7 5 2 7 11 12 13 13 15 16 16 18 19 20 12 21 23 15 24 10 6 26 29 30 31 32 33 34 32 16 24 5 35 40 41 28 15 32 42 46 47 47 49 50 46 51 46 47 53 56 38 23 56 19 11 58 11 55 57 60 1 40 53 67 71 61 72 1 74 76 64 77 27 79 49 19 81 84 34 85 46 76 87 90 83 91 93 41 94 96 9 77 84 97...

output:

402649812

result:

ok 1 number(s): "402649812"

Test #8:

score: 0
Accepted
time: 26ms
memory: 13516kb

input:

28006 754395459
1 2 3 3 5 6 7 8 5 6 9 12 13 3 14 1 4 16 3 19 13 21 23 21 19 24 4 27 9 29 16 31 33 8 18 34 2 27 34 28 37 35 42 44 45 46 47 48 49 17 50 52 29 53 37 32 55 58 53 59 61 23 62 64 65 66 67 6 68 70 50 5 40 1 71 76 77 5 26 30 78 82 32 78 83 86 87 72 66 47 88 92 50 93 95 32 96 98 99 34 17 7 28...

output:

460692207

result:

ok 1 number(s): "460692207"

Test #9:

score: 0
Accepted
time: 24ms
memory: 9988kb

input:

54784 500000003
1 1 1 2 1 1 7 3 6 4 2 6 8 12 6 9 13 9 12 8 7 12 11 8 10 24 17 14 8 19 15 27 32 6 30 24 29 37 21 29 26 5 32 2 13 9 35 12 40 45 47 2 19 34 32 10 57 55 7 58 8 26 4 10 60 38 52 65 30 23 70 65 46 11 31 40 40 22 41 50 61 44 57 10 35 61 19 15 87 64 50 49 2 34 95 12 37 9 6 58 8 33 21 64 73 6...

output:

-1

result:

ok 1 number(s): "-1"

Test #10:

score: 0
Accepted
time: 42ms
memory: 13852kb

input:

94773 500000003
1 2 2 4 2 4 1 7 5 4 11 4 1 5 5 11 5 10 1 8 20 9 1 5 20 22 21 1 15 15 20 19 15 20 24 17 27 6 23 32 28 34 42 12 37 19 38 3 19 6 51 1 34 24 16 32 10 20 20 21 30 30 5 22 62 2 57 63 2 61 16 59 11 64 3 19 30 52 48 5 70 6 52 78 41 62 66 86 88 84 10 30 41 13 91 12 70 16 32 2 51 81 6 15 95 88...

output:

-1

result:

ok 1 number(s): "-1"

Test #11:

score: 0
Accepted
time: 61ms
memory: 14864kb

input:

136836 500000003
1 2 2 3 2 6 6 5 2 1 4 7 12 7 5 11 13 5 18 2 5 7 5 23 18 18 26 22 7 11 18 8 5 20 27 6 33 31 39 10 27 33 22 2 28 24 37 4 49 48 23 4 31 24 38 50 1 56 26 16 8 36 14 32 47 8 35 9 36 25 69 71 17 33 40 45 41 22 43 13 74 75 35 43 2 7 45 3 60 35 61 82 7 94 26 40 34 10 96 92 63 3 80 73 68 88 ...

output:

-1

result:

ok 1 number(s): "-1"

Test #12:

score: 0
Accepted
time: 24ms
memory: 12776kb

input:

47519 500000003
1 2 2 2 2 4 6 8 3 8 5 8 5 4 5 4 11 17 6 8 6 8 7 24 12 19 17 7 26 22 29 32 14 20 17 1 22 26 15 26 35 23 38 37 34 18 18 39 46 20 36 8 19 31 37 33 10 32 44 51 41 51 11 25 27 56 17 53 66 62 13 26 34 69 44 70 61 12 63 19 62 20 63 11 32 83 12 70 46 27 81 51 75 69 88 68 1 18 99 89 12 62 52 ...

output:

0

result:

ok 1 number(s): "0"

Test #13:

score: 0
Accepted
time: 84ms
memory: 15736kb

input:

177506 500000003
1 1 3 2 4 3 5 5 3 10 5 2 5 7 6 9 4 11 10 1 19 20 7 3 7 4 18 15 13 28 24 5 7 27 2 7 28 26 29 20 37 33 11 41 27 15 35 37 47 7 14 25 13 9 9 41 32 7 36 46 30 1 62 59 62 16 67 62 65 64 48 55 70 24 1 32 12 4 60 49 58 15 34 17 61 37 58 52 38 22 60 57 39 40 87 6 10 27 40 88 97 54 13 60 9 60...

output:

-1

result:

ok 1 number(s): "-1"

Test #14:

score: 0
Accepted
time: 10ms
memory: 10420kb

input:

14826 98338421
1 2 1 3 3 5 2 1 3 7 11 7 13 12 14 12 15 17 9 2 1 12 15 11 13 14 17 6 18 6 8 15 2 12 21 12 9 33 33 24 33 36 12 29 27 34 24 38 23 24 29 11 49 26 46 48 30 42 34 16 32 18 60 64 65 66 46 59 60 45 59 63 29 42 22 35 62 40 39 65 72 67 65 84 79 76 53 40 27 63 66 47 88 80 10 44 93 2 25 96 14 8 ...

output:

324275948

result:

ok 1 number(s): "324275948"

Test #15:

score: -100
Wrong Answer
time: 84ms
memory: 15736kb

input:

189479 500000003
1 2 3 2 3 2 6 3 5 9 4 6 5 8 8 16 7 5 19 19 7 2 23 8 14 6 11 2 28 6 9 3 2 13 2 8 30 25 11 29 3 2 27 23 12 43 23 13 8 28 26 5 25 8 48 6 37 16 32 27 56 39 42 15 21 39 15 7 58 10 44 59 54 46 7 49 50 10 78 38 14 18 80 8 83 34 2 24 17 90 37 91 68 37 68 94 83 97 78 70 72 80 102 65 39 65 3 ...

output:

2

result:

wrong answer 1st numbers differ - expected: '1', found: '2'