QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#315568#8173. T Tile Placement Countingucup-team1878#AC ✓17ms3924kbC++2019.7kb2024-01-27 14:18:462024-01-27 14:18:47

详细

Test #1:

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

input:

4 4

output:

2

result:

ok "2"

Test #2:

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

input:

2 8

output:

0

result:

ok "0"

Test #3:

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

input:

12 3456

output:

491051233

result:

ok "491051233"

Test #4:

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

input:

1 1

output:

0

result:

ok "0"

Test #5:

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

input:

20 999999999999999983

output:

0

result:

ok "0"

Test #6:

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

input:

24 999999999999999994

output:

0

result:

ok "0"

Test #7:

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

input:

24 999999999999999955

output:

0

result:

ok "0"

Test #8:

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

input:

28 999999999999999928

output:

846645622

result:

ok "846645622"

Test #9:

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

input:

28 999999999999999971

output:

0

result:

ok "0"

Test #10:

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

input:

28 999999999999999901

output:

0

result:

ok "0"

Test #11:

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

input:

28 999999999999999945

output:

0

result:

ok "0"

Test #12:

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

input:

30 1000000000000000000

output:

0

result:

ok "0"

Test #13:

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

input:

4 144115188075855868

output:

479168365

result:

ok "479168365"

Test #14:

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

input:

4 288230376151711740

output:

661413713

result:

ok "661413713"

Test #15:

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

input:

4 576460752303423484

output:

854857972

result:

ok "854857972"

Test #16:

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

input:

8 144115188075855868

output:

266363233

result:

ok "266363233"

Test #17:

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

input:

8 288230376151711740

output:

862901307

result:

ok "862901307"

Test #18:

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

input:

8 576460752303423484

output:

455991900

result:

ok "455991900"

Test #19:

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

input:

12 144115188075855868

output:

226857121

result:

ok "226857121"

Test #20:

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

input:

12 288230376151711740

output:

717445399

result:

ok "717445399"

Test #21:

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

input:

12 576460752303423484

output:

935277864

result:

ok "935277864"

Test #22:

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

input:

16 144115188075855868

output:

631950327

result:

ok "631950327"

Test #23:

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

input:

16 288230376151711740

output:

73767413

result:

ok "73767413"

Test #24:

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

input:

16 576460752303423484

output:

329402693

result:

ok "329402693"

Test #25:

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

input:

20 144115188075855868

output:

125405814

result:

ok "125405814"

Test #26:

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

input:

20 288230376151711740

output:

794579293

result:

ok "794579293"

Test #27:

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

input:

20 576460752303423484

output:

726571847

result:

ok "726571847"

Test #28:

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

input:

24 144115188075855868

output:

310529292

result:

ok "310529292"

Test #29:

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

input:

24 288230376151711740

output:

493789216

result:

ok "493789216"

Test #30:

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

input:

24 576460752303423484

output:

606221157

result:

ok "606221157"

Test #31:

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

input:

28 144115188075855868

output:

964541053

result:

ok "964541053"

Test #32:

score: 0
Accepted
time: 16ms
memory: 3656kb

input:

28 288230376151711740

output:

42971353

result:

ok "42971353"

Test #33:

score: 0
Accepted
time: 17ms
memory: 3656kb

input:

28 576460752303423484

output:

179569141

result:

ok "179569141"

Test #34:

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

input:

6 5

output:

0

result:

ok "0"

Test #35:

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

input:

14 28

output:

0

result:

ok "0"

Test #36:

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

input:

25 6365

output:

0

result:

ok "0"

Test #37:

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

input:

18 529543996

output:

0

result:

ok "0"

Test #38:

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

input:

10 675199829716849556

output:

0

result:

ok "0"

Test #39:

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

input:

20 425279816112802872

output:

269059955

result:

ok "269059955"

Test #40:

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

input:

8 38212554426330756

output:

207344318

result:

ok "207344318"

Test #41:

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

input:

24 666881067086698696

output:

245351821

result:

ok "245351821"

Test #42:

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

input:

4 728683474913510792

output:

466882081

result:

ok "466882081"

Test #43:

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

input:

28 201838304882525604

output:

217184228

result:

ok "217184228"

Test #44:

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

input:

4 8560

output:

596875387

result:

ok "596875387"

Test #45:

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

input:

12 60764

output:

930662011

result:

ok "930662011"

Test #46:

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

input:

8 45272

output:

239612337

result:

ok "239612337"

Test #47:

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

input:

8 84616

output:

826857610

result:

ok "826857610"

Test #48:

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

input:

4 316408

output:

529567983

result:

ok "529567983"

Test #49:

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

input:

8 12

output:

1182

result:

ok "1182"

Test #50:

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

input:

8 16

output:

16644

result:

ok "16644"

Test #51:

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

input:

4 8

output:

6

result:

ok "6"

Test #52:

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

input:

12 16

output:

5253822

result:

ok "5253822"

Extra Test:

score: 0
Extra Test Passed