QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#146778#3905. Hockey championshipZhangYiDeAC ✓2ms3888kbC++232.3kb2023-08-22 16:54:302023-08-22 16:54:32

详细

Test #1:

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

input:

2 1

output:

1
4 

result:

ok x=2, y=1

Test #2:

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

input:

1 2

output:

-1

result:

ok x=1, y=2

Test #3:

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

input:

24 3

output:

1
16 

result:

ok x=24, y=3

Test #4:

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

input:

33 58

output:

-1

result:

ok x=33, y=58

Test #5:

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

input:

15 14

output:

-1

result:

ok x=15, y=14

Test #6:

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

input:

65 49

output:

36
11 5 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=65, y=49

Test #7:

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

input:

63 73

output:

59
11 4 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=63, y=73

Test #8:

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

input:

148 48

output:

-1

result:

ok x=148, y=48

Test #9:

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

input:

6 164

output:

-1

result:

ok x=6, y=164

Test #10:

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

input:

160 168

output:

13
6 3 2 2 1 1 1 1 1 1 1 1 1 

result:

ok x=160, y=168

Test #11:

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

input:

25 35

output:

4
3 2 2 1 

result:

ok x=25, y=35

Test #12:

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

input:

203 167

output:

143
20 5 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=203, y=167

Test #13:

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

input:

140 74

output:

24
12 3 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=140, y=74

Test #14:

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

input:

46 150

output:

68
7 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=46, y=150

Test #15:

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

input:

204 17

output:

1
24 

result:

ok x=204, y=17

Test #16:

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

input:

98 253

output:

237
14 4 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=98, y=253

Test #17:

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

input:

207 196

output:

-1

result:

ok x=207, y=196

Test #18:

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

input:

325 148

output:

-1

result:

ok x=325, y=148

Test #19:

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

input:

330 163

output:

135
26 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=330, y=163

Test #20:

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

input:

249 371

output:

344
22 6 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=249, y=371

Test #21:

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

input:

206 118

output:

41
14 5 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=206, y=118

Test #22:

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

input:

172 354

output:

161
13 4 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=172, y=354

Test #23:

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

input:

449 261

output:

226
30 5 3 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=449, y=261

Test #24:

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

input:

79 129

output:

117
13 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=79, y=129

Test #25:

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

input:

289 21

output:

20
42 4 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=289, y=21

Test #26:

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

input:

66 312

output:

-1

result:

ok x=66, y=312

Test #27:

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

input:

284 528

output:

-1

result:

ok x=284, y=528

Test #28:

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

input:

470 311

output:

278
31 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=470, y=311

Test #29:

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

input:

407 427

output:

399
29 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=407, y=427

Test #30:

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

input:

241 574

output:

-1

result:

ok x=241, y=574

Test #31:

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

input:

511 26

output:

-1

result:

ok x=511, y=26

Test #32:

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

input:

188 13

output:

5
34 3 1 1 1 

result:

ok x=188, y=13

Test #33:

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

input:

234 149

output:

127
22 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=234, y=149

Test #34:

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

input:

111 252

output:

-1

result:

ok x=111, y=252

Test #35:

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

input:

490 32

output:

-1

result:

ok x=490, y=32

Test #36:

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

input:

595 435

output:

67
15 5 3 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=595, y=435

Test #37:

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

input:

529 367

output:

335
33 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=529, y=367

Test #38:

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

input:

678 474

output:

61
15 4 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=678, y=474

Test #39:

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

input:

72 686

output:

336
9 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok x=72, y=686

Test #40:

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

input:

330 378

output:

54
11 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=330, y=378

Test #41:

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

input:

16 273

output:

268
6 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 ...

result:

ok x=16, y=273

Test #42:

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

input:

613 777

output:

737
35 6 3 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=613, y=777

Test #43:

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

input:

691 132

output:

-1

result:

ok x=691, y=132

Test #44:

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

input:

736 72

output:

5
24 1 1 1 1 

result:

ok x=736, y=72

Test #45:

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

input:

374 531

output:

498
27 7 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=374, y=531

Test #46:

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

input:

172 119

output:

101
19 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=172, y=119

Test #47:

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

input:

97 670

output:

-1

result:

ok x=97, y=670

Test #48:

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

input:

855 158

output:

-1

result:

ok x=855, y=158

Test #49:

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

input:

85 573

output:

558
13 4 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1...

result:

ok x=85, y=573

Test #50:

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

input:

894 197

output:

146
42 8 3 2 2 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 1 

result:

ok x=894, y=197

Test #51:

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

input:

1 1000

output:

-1

result:

ok x=1, y=1000

Test #52:

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

input:

1000 1

output:

1
2000 

result:

ok x=1000, y=1