QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#825492#9770. Middle Pointbruh open (Bosco Wang, Isaac Chan)#WA 7ms11632kbC++172.3kb2024-12-21 19:45:572024-12-21 19:45:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 7ms
memory: 11388kb

input:

2 2
1 1

output:

1
0 0 2 2

result:

ok correct!

Test #2:

score: 0
Accepted
time: 3ms
memory: 11452kb

input:

8 8
5 0

output:

3
0 0 8 0
4 0 0 0
2 0 8 0

result:

ok correct!

Test #3:

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

input:

0 0
0 0

output:

0

result:

ok correct!

Test #4:

score: 0
Accepted
time: 3ms
memory: 11392kb

input:

2024 0
1012 0

output:

1
0 0 2024 0

result:

ok correct!

Test #5:

score: 0
Accepted
time: 7ms
memory: 11388kb

input:

2024 2024
2023 2023

output:

-1

result:

ok correct!

Test #6:

score: 0
Accepted
time: 7ms
memory: 11336kb

input:

8 6
7 3

output:

3
0 0 8 0
4 0 8 0
6 0 8 6

result:

ok correct!

Test #7:

score: 0
Accepted
time: 7ms
memory: 11552kb

input:

2024 2026
2024 2026

output:

0

result:

ok correct!

Test #8:

score: 0
Accepted
time: 3ms
memory: 11392kb

input:

1000000000 1000000000
70 0

output:

-1

result:

ok correct!

Test #9:

score: 0
Accepted
time: 3ms
memory: 11392kb

input:

3 6
2 4

output:

-1

result:

ok correct!

Test #10:

score: 0
Accepted
time: 3ms
memory: 11400kb

input:

7 7
7 2

output:

-1

result:

ok correct!

Test #11:

score: 0
Accepted
time: 7ms
memory: 11324kb

input:

6 2
5 2

output:

-1

result:

ok correct!

Test #12:

score: 0
Accepted
time: 7ms
memory: 11468kb

input:

5 7
5 5

output:

-1

result:

ok correct!

Test #13:

score: 0
Accepted
time: 7ms
memory: 11400kb

input:

4 7
2 3

output:

-1

result:

ok correct!

Test #14:

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

input:

8 2
2 2

output:

2
0 2 8 2
4 2 0 2

result:

ok correct!

Test #15:

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

input:

3 3
0 2

output:

-1

result:

ok correct!

Test #16:

score: 0
Accepted
time: 3ms
memory: 11324kb

input:

7 7
1 4

output:

-1

result:

ok correct!

Test #17:

score: 0
Accepted
time: 7ms
memory: 11580kb

input:

6 3
6 1

output:

-1

result:

ok correct!

Test #18:

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

input:

4 2
2 1

output:

1
0 0 4 2

result:

ok correct!

Test #19:

score: 0
Accepted
time: 7ms
memory: 11612kb

input:

7 2
3 2

output:

-1

result:

ok correct!

Test #20:

score: 0
Accepted
time: 3ms
memory: 11408kb

input:

2 7
0 3

output:

-1

result:

ok correct!

Test #21:

score: 0
Accepted
time: 7ms
memory: 11404kb

input:

1 7
1 0

output:

0

result:

ok correct!

Test #22:

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

input:

5 1
0 0

output:

0

result:

ok correct!

Test #23:

score: 0
Accepted
time: 3ms
memory: 11400kb

input:

8 7
4 3

output:

-1

result:

ok correct!

Test #24:

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

input:

180057652 674822131
110693180 428023738

output:

-1

result:

ok correct!

Test #25:

score: 0
Accepted
time: 7ms
memory: 11364kb

input:

62347541 812142018
42922107 486416913

output:

-1

result:

ok correct!

Test #26:

score: 0
Accepted
time: 7ms
memory: 11396kb

input:

239604722 244429197
78993837 108804105

output:

-1

result:

ok correct!

Test #27:

score: 0
Accepted
time: 7ms
memory: 11632kb

input:

416861903 381749084
375027630 373683256

output:

-1

result:

ok correct!

Test #28:

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

input:

594119084 519068971
429116021 298715088

output:

-1

result:

ok correct!

Test #29:

score: 0
Accepted
time: 7ms
memory: 11392kb

input:

536870912 536870912
233225286 372408647

output:

29
0 0 0 536870912
0 268435456 536870912 536870912
268435456 402653184 536870912 536870912
402653184 469762048 0 0
201326592 234881024 0 0
100663296 117440512 0 0
50331648 58720256 536870912 536870912
293601280 297795584 0 0
146800640 148897792 0 536870912
73400320 342884352 0 0
36700160 171442176 5...

result:

ok correct!

Test #30:

score: 0
Accepted
time: 3ms
memory: 11396kb

input:

536870912 536870912
242171716 210314503

output:

29
0 0 0 536870912
0 268435456 0 536870912
0 402653184 536870912 536870912
268435456 469762048 0 0
134217728 234881024 0 0
67108864 117440512 0 0
33554432 58720256 536870912 0
285212672 29360128 0 0
142606336 14680064 536870912 536870912
339738624 275775488 536870912 0
438304768 137887744 536870912 ...

result:

ok correct!

Test #31:

score: 0
Accepted
time: 3ms
memory: 11332kb

input:

536870912 536870912
251118145 48220392

output:

29
0 0 536870912 0
268435456 0 0 0
134217728 0 0 0
67108864 0 0 536870912
33554432 268435456 0 0
16777216 134217728 0 536870912
8388608 335544320 536870912 536870912
272629760 436207616 0 536870912
136314880 486539264 0 0
68157440 243269632 536870912 0
302514176 121634816 0 0
151257088 60817408 0 53...

result:

ok correct!

Test #32:

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

input:

126070784 536870912
70206899 483718753

output:

29
0 0 0 536870912
0 268435456 0 0
0 134217728 0 0
0 67108864 0 0
0 33554432 0 0
0 16777216 0 536870912
0 276824064 0 536870912
0 406847488 0 0
0 203423744 0 0
0 101711872 0 536870912
0 319291392 0 536870912
0 428081152 0 0
0 214040576 0 536870912
0 375455744 0 536870912
0 456163328 0 536870912
0 49...

result:

ok correct!

Test #33:

score: 0
Accepted
time: 3ms
memory: 11432kb

input:

134541312 536870912
92168682 321624642

output:

28
0 0 0 536870912
0 268435456 0 0
0 134217728 0 0
0 67108864 0 0
0 33554432 0 0
0 16777216 0 536870912
0 276824064 0 0
0 138412032 0 0
0 69206016 0 536870912
0 303038464 0 0
0 151519232 0 536870912
0 344195072 0 536870912
0 440532992 0 0
0 220266496 0 0
0 110133248 0 536870912
0 323502080 0 5368709...

result:

ok correct!

Test #34:

score: 0
Accepted
time: 7ms
memory: 11452kb

input:

605171712 536870912
492293004 159530531

output:

29
0 0 0 536870912
0 268435456 0 536870912
0 402653184 0 0
0 201326592 0 0
0 100663296 0 0
0 50331648 0 536870912
0 293601280 0 0
0 146800640 0 0
0 73400320 0 0
0 36700160 0 536870912
0 286785536 0 536870912
0 411828224 0 536870912
0 474349568 0 536870912
0 505610240 0 536870912
0 521240576 0 0
0 26...

result:

ok correct!

Test #35:

score: 0
Accepted
time: 7ms
memory: 11612kb

input:

816447488 872415232
107288296 282864296

output:

23
0 0 0 872415232
0 436207616 0 0
0 218103808 0 0
0 109051904 0 872415232
0 490733568 0 0
0 245366784 0 872415232
0 558891008 0 872415232
0 715653120 0 0
0 357826560 0 0
0 178913280 816447488 0
408223744 89456640 0 0
204111872 44728320 0 0
102055936 22364160 816447488 0
459251712 11182080 0 0
22962...

result:

ok correct!

Test #36:

score: 0
Accepted
time: 3ms
memory: 11556kb

input:

465043456 805306368
155625924 290419248

output:

24
0 0 0 805306368
0 402653184 0 0
0 201326592 0 0
0 100663296 0 0
0 50331648 0 0
0 25165824 0 805306368
0 415236096 0 805306368
0 610271232 465043456 0
232521728 305135616 465043456 0
348782592 152567808 465043456 805306368
406913024 478937088 0 0
203456512 239468544 465043456 0
334249984 119734272...

result:

ok correct!

Test #37:

score: 0
Accepted
time: 7ms
memory: 11556kb

input:

246022144 587202560
78513033 233147565

output:

24
0 0 0 587202560
0 293601280 0 587202560
0 440401920 0 587202560
0 513802240 0 587202560
0 550502400 0 0
0 275251200 0 587202560
0 431226880 0 587202560
0 509214720 246022144 587202560
123011072 548208640 0 0
61505536 274104320 246022144 0
153763840 137052160 0 587202560
76881920 362127360 0 0
384...

result:

ok correct!

Test #38:

score: 0
Accepted
time: 3ms
memory: 11580kb

input:

536870912 699163134
414335415 699163134

output:

29
0 699163134 536870912 699163134
268435456 699163134 536870912 699163134
402653184 699163134 536870912 699163134
469762048 699163134 0 699163134
234881024 699163134 536870912 699163134
385875968 699163134 536870912 699163134
461373440 699163134 0 699163134
230686720 699163134 536870912 699163134
3...

result:

ok correct!

Test #39:

score: 0
Accepted
time: 3ms
memory: 11464kb

input:

536870912 292943687
423281845 292943687

output:

29
0 292943687 536870912 292943687
268435456 292943687 0 292943687
134217728 292943687 536870912 292943687
335544320 292943687 0 292943687
167772160 292943687 536870912 292943687
352321536 292943687 536870912 292943687
444596224 292943687 0 292943687
222298112 292943687 536870912 292943687
379584512...

result:

ok correct!

Test #40:

score: -100
Wrong Answer
time: 0ms
memory: 11396kb

input:

536870912 31948433
432228266 0

output:

65
0 0 0 0
0 -9223372036854775808 0 0
0 -4611686018427387904 0 0
0 -2305843009213693952 0 0
0 -1152921504606846976 0 0
0 8646911284551352320 0 0
0 -4899916394579099648 0 0
0 -2449958197289549824 0 0
0 7998392938210000896 0 0
0 -5224175567749775360 0 0
0 6611284252979888128 0 0
0 3305642126489944064 ...

result:

wrong output format Expected int32, but "-9223372036854775808" found