QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#865240#8441. Aperiodic Appointmentsucup-team1005#AC ✓1ms3712kbC++14813b2025-01-21 16:15:572025-01-21 16:15:58

詳細信息

Test #1:

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

input:

7 2

output:

3

result:

ok single line: '3'

Test #2:

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

input:

99 5

output:

19

result:

ok single line: '19'

Test #3:

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

input:

1 2

output:

0

result:

ok single line: '0'

Test #4:

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

input:

3 2

output:

1

result:

ok single line: '1'

Test #5:

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

input:

5 2

output:

1

result:

ok single line: '1'

Test #6:

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

input:

6 2

output:

2

result:

ok single line: '2'

Test #7:

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

input:

8 2

output:

4

result:

ok single line: '4'

Test #8:

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

input:

9 2

output:

5

result:

ok single line: '5'

Test #9:

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

input:

20 2

output:

16

result:

ok single line: '16'

Test #10:

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

input:

10 3

output:

2

result:

ok single line: '2'

Test #11:

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

input:

38 3

output:

11

result:

ok single line: '11'

Test #12:

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

input:

39 3

output:

12

result:

ok single line: '12'

Test #13:

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

input:

77 3

output:

50

result:

ok single line: '50'

Test #14:

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

input:

100 4

output:

24

result:

ok single line: '24'

Test #15:

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

input:

340 4

output:

84

result:

ok single line: '84'

Test #16:

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

input:

111 5

output:

21

result:

ok single line: '21'

Test #17:

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

input:

421 5

output:

82

result:

ok single line: '82'

Test #18:

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

input:

500 7

output:

70

result:

ok single line: '70'

Test #19:

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

input:

3905 5

output:

780

result:

ok single line: '780'

Test #20:

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

input:

3906 5

output:

781

result:

ok single line: '781'

Test #21:

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

input:

5000 5

output:

1875

result:

ok single line: '1875'

Test #22:

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

input:

10000 6

output:

1665

result:

ok single line: '1665'

Test #23:

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

input:

30201 9

output:

3354

result:

ok single line: '3354'

Test #24:

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

input:

60212 10

output:

6019

result:

ok single line: '6019'

Test #25:

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

input:

145961 11

output:

13267

result:

ok single line: '13267'

Test #26:

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

input:

331132 23

output:

14396

result:

ok single line: '14396'

Test #27:

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

input:

960801 7

output:

137258

result:

ok single line: '137258'

Test #28:

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

input:

1000000000 2

output:

999999996

result:

ok single line: '999999996'

Test #29:

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

input:

1000000000 10

output:

99999999

result:

ok single line: '99999999'

Test #30:

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

input:

1000000000 19

output:

52631576

result:

ok single line: '52631576'

Test #31:

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

input:

1000000000 71

output:

14084504

result:

ok single line: '14084504'

Test #32:

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

input:

1000000000 5121

output:

195274

result:

ok single line: '195274'

Test #33:

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

input:

1000000000 23114

output:

43262

result:

ok single line: '43262'

Test #34:

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

input:

1000000000 45112

output:

22166

result:

ok single line: '22166'

Test #35:

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

input:

1000000000 151234

output:

6612

result:

ok single line: '6612'

Test #36:

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

input:

1000000000 567122

output:

1763

result:

ok single line: '1763'

Test #37:

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

input:

1000000000 1231293

output:

812

result:

ok single line: '812'

Test #38:

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

input:

1000000000 7294815

output:

137

result:

ok single line: '137'

Test #39:

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

input:

1000000000 41501223

output:

24

result:

ok single line: '24'

Test #40:

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

input:

1000000000 100231345

output:

9

result:

ok single line: '9'

Test #41:

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

input:

1000000000 412312311

output:

2

result:

ok single line: '2'

Test #42:

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

input:

1000000000 999912381

output:

1

result:

ok single line: '1'

Test #43:

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

input:

1000000000 1000000000

output:

0

result:

ok single line: '0'