QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#479177#7420. K-pop StringsUrdAC ✓3921ms80624kbC++171.8kb2024-07-15 15:41:352024-07-15 15:41:35

Details

Tip: Click on the bar to expand more detailed information

Test #1:

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

input:

1 16

output:

35

result:

ok 1 number(s): "35"

Test #2:

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

input:

4 0

output:

1499400

result:

ok 1 number(s): "1499400"

Test #3:

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

input:

15 5

output:

911125634

result:

ok 1 number(s): "911125634"

Test #4:

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

input:

35 5

output:

93640047

result:

ok 1 number(s): "93640047"

Test #5:

score: 0
Accepted
time: 284ms
memory: 7324kb

input:

100 16

output:

991183816

result:

ok 1 number(s): "991183816"

Test #6:

score: 0
Accepted
time: 2673ms
memory: 36508kb

input:

22 16

output:

960803400

result:

ok 1 number(s): "960803400"

Test #7:

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

input:

20 16

output:

235606959

result:

ok 1 number(s): "235606959"

Test #8:

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

input:

17 15

output:

730957706

result:

ok 1 number(s): "730957706"

Test #9:

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

input:

17 16

output:

730957706

result:

ok 1 number(s): "730957706"

Test #10:

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

input:

18 16

output:

532450312

result:

ok 1 number(s): "532450312"

Test #11:

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

input:

3 15

output:

40460

result:

ok 1 number(s): "40460"

Test #12:

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

input:

3 16

output:

40460

result:

ok 1 number(s): "40460"

Test #13:

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

input:

4 14

output:

1374450

result:

ok 1 number(s): "1374450"

Test #14:

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

input:

4 15

output:

1374450

result:

ok 1 number(s): "1374450"

Test #15:

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

input:

4 16

output:

1374450

result:

ok 1 number(s): "1374450"

Test #16:

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

input:

5 14

output:

46692030

result:

ok 1 number(s): "46692030"

Test #17:

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

input:

5 15

output:

46692030

result:

ok 1 number(s): "46692030"

Test #18:

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

input:

5 16

output:

46692030

result:

ok 1 number(s): "46692030"

Test #19:

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

input:

6 14

output:

587910217

result:

ok 1 number(s): "587910217"

Test #20:

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

input:

6 15

output:

587910217

result:

ok 1 number(s): "587910217"

Test #21:

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

input:

6 16

output:

587910217

result:

ok 1 number(s): "587910217"

Test #22:

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

input:

7 14

output:

975651911

result:

ok 1 number(s): "975651911"

Test #23:

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

input:

7 15

output:

975651911

result:

ok 1 number(s): "975651911"

Test #24:

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

input:

7 16

output:

975651911

result:

ok 1 number(s): "975651911"

Test #25:

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

input:

8 14

output:

640435461

result:

ok 1 number(s): "640435461"

Test #26:

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

input:

8 15

output:

640435461

result:

ok 1 number(s): "640435461"

Test #27:

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

input:

8 16

output:

640435461

result:

ok 1 number(s): "640435461"

Test #28:

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

input:

9 14

output:

835601883

result:

ok 1 number(s): "835601883"

Test #29:

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

input:

9 15

output:

835601883

result:

ok 1 number(s): "835601883"

Test #30:

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

input:

9 16

output:

835601883

result:

ok 1 number(s): "835601883"

Test #31:

score: 0
Accepted
time: 5ms
memory: 3832kb

input:

10 14

output:

817470300

result:

ok 1 number(s): "817470300"

Test #32:

score: 0
Accepted
time: 5ms
memory: 4060kb

input:

10 15

output:

817470300

result:

ok 1 number(s): "817470300"

Test #33:

score: 0
Accepted
time: 5ms
memory: 3776kb

input:

10 16

output:

817470300

result:

ok 1 number(s): "817470300"

Test #34:

score: 0
Accepted
time: 13ms
memory: 4184kb

input:

11 14

output:

53700186

result:

ok 1 number(s): "53700186"

Test #35:

score: 0
Accepted
time: 13ms
memory: 4144kb

input:

11 15

output:

53700186

result:

ok 1 number(s): "53700186"

Test #36:

score: 0
Accepted
time: 13ms
memory: 4252kb

input:

11 16

output:

53700186

result:

ok 1 number(s): "53700186"

Test #37:

score: 0
Accepted
time: 40ms
memory: 5280kb

input:

12 14

output:

98056471

result:

ok 1 number(s): "98056471"

Test #38:

score: 0
Accepted
time: 40ms
memory: 5196kb

input:

12 15

output:

98056471

result:

ok 1 number(s): "98056471"

Test #39:

score: 0
Accepted
time: 40ms
memory: 5148kb

input:

12 16

output:

98056471

result:

ok 1 number(s): "98056471"

Test #40:

score: 0
Accepted
time: 124ms
memory: 7796kb

input:

13 14

output:

859256927

result:

ok 1 number(s): "859256927"

Test #41:

score: 0
Accepted
time: 125ms
memory: 7736kb

input:

13 15

output:

859256927

result:

ok 1 number(s): "859256927"

Test #42:

score: 0
Accepted
time: 120ms
memory: 7800kb

input:

13 16

output:

859256927

result:

ok 1 number(s): "859256927"

Test #43:

score: 0
Accepted
time: 391ms
memory: 14284kb

input:

14 14

output:

241086631

result:

ok 1 number(s): "241086631"

Test #44:

score: 0
Accepted
time: 382ms
memory: 14208kb

input:

14 15

output:

241086631

result:

ok 1 number(s): "241086631"

Test #45:

score: 0
Accepted
time: 391ms
memory: 14272kb

input:

14 16

output:

241086631

result:

ok 1 number(s): "241086631"

Test #46:

score: 0
Accepted
time: 1208ms
memory: 33712kb

input:

15 14

output:

518906901

result:

ok 1 number(s): "518906901"

Test #47:

score: 0
Accepted
time: 1214ms
memory: 33704kb

input:

15 15

output:

518906901

result:

ok 1 number(s): "518906901"

Test #48:

score: 0
Accepted
time: 1203ms
memory: 33760kb

input:

15 16

output:

518906901

result:

ok 1 number(s): "518906901"

Test #49:

score: 0
Accepted
time: 3906ms
memory: 80408kb

input:

16 14

output:

523929203

result:

ok 1 number(s): "523929203"

Test #50:

score: 0
Accepted
time: 3909ms
memory: 80624kb

input:

16 15

output:

523929203

result:

ok 1 number(s): "523929203"

Test #51:

score: 0
Accepted
time: 3921ms
memory: 80408kb

input:

16 16

output:

523929203

result:

ok 1 number(s): "523929203"

Test #52:

score: 0
Accepted
time: 389ms
memory: 11936kb

input:

17 14

output:

283163356

result:

ok 1 number(s): "283163356"

Test #53:

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

input:

2 15

output:

1190

result:

ok 1 number(s): "1190"

Test #54:

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

input:

2 16

output:

1190

result:

ok 1 number(s): "1190"

Test #55:

score: 0
Accepted
time: 1053ms
memory: 22084kb

input:

18 14

output:

856842771

result:

ok 1 number(s): "856842771"

Test #56:

score: 0
Accepted
time: 1060ms
memory: 22212kb

input:

18 15

output:

856842771

result:

ok 1 number(s): "856842771"

Test #57:

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

input:

3 14

output:

40460

result:

ok 1 number(s): "40460"

Test #58:

score: 0
Accepted
time: 183ms
memory: 7544kb

input:

19 14

output:

7934790

result:

ok 1 number(s): "7934790"

Test #59:

score: 0
Accepted
time: 2911ms
memory: 49444kb

input:

19 15

output:

200270800

result:

ok 1 number(s): "200270800"

Test #60:

score: 0
Accepted
time: 2895ms
memory: 49408kb

input:

19 16

output:

200270800

result:

ok 1 number(s): "200270800"

Test #61:

score: 0
Accepted
time: 450ms
memory: 11888kb

input:

20 14

output:

548507915

result:

ok 1 number(s): "548507915"

Test #62:

score: 0
Accepted
time: 446ms
memory: 11680kb

input:

20 15

output:

548507915

result:

ok 1 number(s): "548507915"

Test #63:

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

input:

2 14

output:

1190

result:

ok 1 number(s): "1190"

Test #64:

score: 0
Accepted
time: 93ms
memory: 5616kb

input:

21 14

output:

870542379

result:

ok 1 number(s): "870542379"

Test #65:

score: 0
Accepted
time: 1091ms
memory: 19908kb

input:

21 15

output:

772538126

result:

ok 1 number(s): "772538126"

Test #66:

score: 0
Accepted
time: 1086ms
memory: 19852kb

input:

21 16

output:

772538126

result:

ok 1 number(s): "772538126"

Test #67:

score: 0
Accepted
time: 221ms
memory: 7372kb

input:

22 14

output:

367190876

result:

ok 1 number(s): "367190876"

Test #68:

score: 0
Accepted
time: 221ms
memory: 7612kb

input:

22 15

output:

367190876

result:

ok 1 number(s): "367190876"

Test #69:

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

input:

1 15

output:

35

result:

ok 1 number(s): "35"

Test #70:

score: 0
Accepted
time: 71ms
memory: 5172kb

input:

23 14

output:

926139921

result:

ok 1 number(s): "926139921"

Test #71:

score: 0
Accepted
time: 490ms
memory: 11476kb

input:

23 15

output:

837524370

result:

ok 1 number(s): "837524370"

Test #72:

score: 0
Accepted
time: 486ms
memory: 11212kb

input:

23 16

output:

837524370

result:

ok 1 number(s): "837524370"

Test #73:

score: 0
Accepted
time: 151ms
memory: 6336kb

input:

24 14

output:

653211440

result:

ok 1 number(s): "653211440"

Test #74:

score: 0
Accepted
time: 157ms
memory: 6344kb

input:

24 15

output:

653211440

result:

ok 1 number(s): "653211440"

Test #75:

score: 0
Accepted
time: 1092ms
memory: 18140kb

input:

24 16

output:

625596476

result:

ok 1 number(s): "625596476"

Test #76:

score: 0
Accepted
time: 47ms
memory: 4492kb

input:

25 14

output:

210481423

result:

ok 1 number(s): "210481423"

Test #77:

score: 0
Accepted
time: 328ms
memory: 8736kb

input:

25 15

output:

459501483

result:

ok 1 number(s): "459501483"

Test #78:

score: 0
Accepted
time: 320ms
memory: 8432kb

input:

25 16

output:

459501483

result:

ok 1 number(s): "459501483"

Test #79:

score: 0
Accepted
time: 96ms
memory: 5236kb

input:

26 14

output:

700174844

result:

ok 1 number(s): "700174844"

Test #80:

score: 0
Accepted
time: 91ms
memory: 5256kb

input:

26 15

output:

700174844

result:

ok 1 number(s): "700174844"

Test #81:

score: 0
Accepted
time: 692ms
memory: 12312kb

input:

26 16

output:

122186674

result:

ok 1 number(s): "122186674"

Test #82:

score: 0
Accepted
time: 44ms
memory: 4560kb

input:

27 14

output:

913367039

result:

ok 1 number(s): "913367039"

Test #83:

score: 0
Accepted
time: 193ms
memory: 6808kb

input:

27 15

output:

186251380

result:

ok 1 number(s): "186251380"

Test #84:

score: 0
Accepted
time: 193ms
memory: 6464kb

input:

27 16

output:

186251380

result:

ok 1 number(s): "186251380"

Test #85:

score: 0
Accepted
time: 85ms
memory: 5024kb

input:

28 14

output:

983307681

result:

ok 1 number(s): "983307681"

Test #86:

score: 0
Accepted
time: 80ms
memory: 5048kb

input:

28 15

output:

983307681

result:

ok 1 number(s): "983307681"

Test #87:

score: 0
Accepted
time: 393ms
memory: 8584kb

input:

28 16

output:

927000585

result:

ok 1 number(s): "927000585"

Test #88:

score: 0
Accepted
time: 33ms
memory: 4592kb

input:

29 14

output:

882936948

result:

ok 1 number(s): "882936948"

Test #89:

score: 0
Accepted
time: 158ms
memory: 5968kb

input:

29 15

output:

722751349

result:

ok 1 number(s): "722751349"

Test #90:

score: 0
Accepted
time: 162ms
memory: 6208kb

input:

29 16

output:

722751349

result:

ok 1 number(s): "722751349"

Test #91:

score: 0
Accepted
time: 66ms
memory: 4736kb

input:

30 14

output:

108117242

result:

ok 1 number(s): "108117242"

Test #92:

score: 0
Accepted
time: 62ms
memory: 4604kb

input:

30 15

output:

108117242

result:

ok 1 number(s): "108117242"

Test #93:

score: 0
Accepted
time: 311ms
memory: 7576kb

input:

30 16

output:

193651384

result:

ok 1 number(s): "193651384"

Test #94:

score: 0
Accepted
time: 36ms
memory: 4404kb

input:

31 14

output:

513230800

result:

ok 1 number(s): "513230800"

Test #95:

score: 0
Accepted
time: 118ms
memory: 5448kb

input:

31 15

output:

674328439

result:

ok 1 number(s): "674328439"

Test #96:

score: 0
Accepted
time: 118ms
memory: 5428kb

input:

31 16

output:

674328439

result:

ok 1 number(s): "674328439"

Test #97:

score: 0
Accepted
time: 63ms
memory: 4892kb

input:

32 14

output:

416220793

result:

ok 1 number(s): "416220793"

Test #98:

score: 0
Accepted
time: 63ms
memory: 4700kb

input:

32 15

output:

416220793

result:

ok 1 number(s): "416220793"

Test #99:

score: 0
Accepted
time: 214ms
memory: 6448kb

input:

32 16

output:

320541366

result:

ok 1 number(s): "320541366"

Test #100:

score: 0
Accepted
time: 36ms
memory: 4504kb

input:

33 14

output:

621313042

result:

ok 1 number(s): "621313042"

Test #101:

score: 0
Accepted
time: 106ms
memory: 5180kb

input:

33 15

output:

344434925

result:

ok 1 number(s): "344434925"

Test #102:

score: 0
Accepted
time: 108ms
memory: 5196kb

input:

33 16

output:

344434925

result:

ok 1 number(s): "344434925"

Test #103:

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

input:

34 14

output:

456772536

result:

ok 1 number(s): "456772536"

Test #104:

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

input:

34 15

output:

456772536

result:

ok 1 number(s): "456772536"

Test #105:

score: 0
Accepted
time: 198ms
memory: 5904kb

input:

34 16

output:

41377116

result:

ok 1 number(s): "41377116"

Test #106:

score: 0
Accepted
time: 38ms
memory: 4664kb

input:

35 14

output:

19615141

result:

ok 1 number(s): "19615141"

Test #107:

score: 0
Accepted
time: 102ms
memory: 5028kb

input:

35 15

output:

746309694

result:

ok 1 number(s): "746309694"

Test #108:

score: 0
Accepted
time: 94ms
memory: 5148kb

input:

35 16

output:

746309694

result:

ok 1 number(s): "746309694"

Test #109:

score: 0
Accepted
time: 64ms
memory: 4944kb

input:

36 14

output:

393489643

result:

ok 1 number(s): "393489643"

Test #110:

score: 0
Accepted
time: 63ms
memory: 4940kb

input:

36 15

output:

393489643

result:

ok 1 number(s): "393489643"

Test #111:

score: 0
Accepted
time: 166ms
memory: 5664kb

input:

36 16

output:

441641679

result:

ok 1 number(s): "441641679"

Test #112:

score: 0
Accepted
time: 31ms
memory: 4356kb

input:

37 14

output:

46923435

result:

ok 1 number(s): "46923435"

Test #113:

score: 0
Accepted
time: 101ms
memory: 5108kb

input:

37 15

output:

886630375

result:

ok 1 number(s): "886630375"

Test #114:

score: 0
Accepted
time: 101ms
memory: 5092kb

input:

37 16

output:

886630375

result:

ok 1 number(s): "886630375"

Test #115:

score: 0
Accepted
time: 59ms
memory: 4640kb

input:

38 14

output:

449547036

result:

ok 1 number(s): "449547036"

Test #116:

score: 0
Accepted
time: 59ms
memory: 4608kb

input:

38 15

output:

449547036

result:

ok 1 number(s): "449547036"

Test #117:

score: 0
Accepted
time: 163ms
memory: 5564kb

input:

38 16

output:

812627363

result:

ok 1 number(s): "812627363"

Test #118:

score: 0
Accepted
time: 41ms
memory: 4468kb

input:

39 14

output:

719463683

result:

ok 1 number(s): "719463683"

Test #119:

score: 0
Accepted
time: 94ms
memory: 5036kb

input:

39 15

output:

741109614

result:

ok 1 number(s): "741109614"

Test #120:

score: 0
Accepted
time: 94ms
memory: 5048kb

input:

39 16

output:

741109614

result:

ok 1 number(s): "741109614"

Test #121:

score: 0
Accepted
time: 67ms
memory: 4896kb

input:

40 14

output:

578267772

result:

ok 1 number(s): "578267772"

Test #122:

score: 0
Accepted
time: 67ms
memory: 5036kb

input:

40 15

output:

578267772

result:

ok 1 number(s): "578267772"

Test #123:

score: 0
Accepted
time: 155ms
memory: 5592kb

input:

40 16

output:

87606680

result:

ok 1 number(s): "87606680"

Test #124:

score: 0
Accepted
time: 39ms
memory: 4400kb

input:

41 14

output:

236787740

result:

ok 1 number(s): "236787740"

Test #125:

score: 0
Accepted
time: 103ms
memory: 5368kb

input:

41 15

output:

38008293

result:

ok 1 number(s): "38008293"

Test #126:

score: 0
Accepted
time: 102ms
memory: 5216kb

input:

41 16

output:

38008293

result:

ok 1 number(s): "38008293"

Test #127:

score: 0
Accepted
time: 66ms
memory: 4672kb

input:

42 14

output:

733637961

result:

ok 1 number(s): "733637961"

Test #128:

score: 0
Accepted
time: 65ms
memory: 4732kb

input:

42 15

output:

733637961

result:

ok 1 number(s): "733637961"

Test #129:

score: 0
Accepted
time: 169ms
memory: 5660kb

input:

42 16

output:

434859171

result:

ok 1 number(s): "434859171"

Test #130:

score: 0
Accepted
time: 39ms
memory: 4400kb

input:

43 14

output:

47849093

result:

ok 1 number(s): "47849093"

Test #131:

score: 0
Accepted
time: 104ms
memory: 5140kb

input:

43 15

output:

193064473

result:

ok 1 number(s): "193064473"

Test #132:

score: 0
Accepted
time: 103ms
memory: 5208kb

input:

43 16

output:

193064473

result:

ok 1 number(s): "193064473"

Test #133:

score: 0
Accepted
time: 65ms
memory: 4788kb

input:

44 14

output:

686919557

result:

ok 1 number(s): "686919557"

Test #134:

score: 0
Accepted
time: 65ms
memory: 4776kb

input:

44 15

output:

686919557

result:

ok 1 number(s): "686919557"

Test #135:

score: 0
Accepted
time: 162ms
memory: 5644kb

input:

44 16

output:

566574323

result:

ok 1 number(s): "566574323"

Test #136:

score: 0
Accepted
time: 41ms
memory: 4404kb

input:

45 14

output:

260321674

result:

ok 1 number(s): "260321674"

Test #137:

score: 0
Accepted
time: 98ms
memory: 5180kb

input:

45 15

output:

506139919

result:

ok 1 number(s): "506139919"

Test #138:

score: 0
Accepted
time: 102ms
memory: 5172kb

input:

45 16

output:

506139919

result:

ok 1 number(s): "506139919"

Test #139:

score: 0
Accepted
time: 67ms
memory: 4720kb

input:

46 14

output:

511432655

result:

ok 1 number(s): "511432655"

Test #140:

score: 0
Accepted
time: 68ms
memory: 4768kb

input:

46 15

output:

511432655

result:

ok 1 number(s): "511432655"

Test #141:

score: 0
Accepted
time: 162ms
memory: 5856kb

input:

46 16

output:

481315001

result:

ok 1 number(s): "481315001"

Test #142:

score: 0
Accepted
time: 45ms
memory: 4860kb

input:

47 14

output:

384592237

result:

ok 1 number(s): "384592237"

Test #143:

score: 0
Accepted
time: 107ms
memory: 5288kb

input:

47 15

output:

567984582

result:

ok 1 number(s): "567984582"

Test #144:

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

input:

47 16

output:

567984582

result:

ok 1 number(s): "567984582"

Test #145:

score: 0
Accepted
time: 73ms
memory: 4940kb

input:

48 14

output:

892965619

result:

ok 1 number(s): "892965619"

Test #146:

score: 0
Accepted
time: 69ms
memory: 4984kb

input:

48 15

output:

892965619

result:

ok 1 number(s): "892965619"

Test #147:

score: 0
Accepted
time: 160ms
memory: 5896kb

input:

48 16

output:

212857460

result:

ok 1 number(s): "212857460"

Test #148:

score: 0
Accepted
time: 43ms
memory: 4504kb

input:

49 14

output:

556984122

result:

ok 1 number(s): "556984122"

Test #149:

score: 0
Accepted
time: 114ms
memory: 5388kb

input:

49 15

output:

742291499

result:

ok 1 number(s): "742291499"

Test #150:

score: 0
Accepted
time: 114ms
memory: 5420kb

input:

49 16

output:

742291499

result:

ok 1 number(s): "742291499"

Test #151:

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

input:

50 0

output:

28839309

result:

ok 1 number(s): "28839309"

Test #152:

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

input:

50 1

output:

28839309

result:

ok 1 number(s): "28839309"

Test #153:

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

input:

50 2

output:

978420101

result:

ok 1 number(s): "978420101"

Test #154:

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

input:

50 3

output:

978420101

result:

ok 1 number(s): "978420101"

Test #155:

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

input:

50 4

output:

874479757

result:

ok 1 number(s): "874479757"

Test #156:

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

input:

50 5

output:

874479757

result:

ok 1 number(s): "874479757"

Test #157:

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

input:

50 6

output:

552575330

result:

ok 1 number(s): "552575330"

Test #158:

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

input:

50 7

output:

552575330

result:

ok 1 number(s): "552575330"

Test #159:

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

input:

50 8

output:

987131197

result:

ok 1 number(s): "987131197"

Test #160:

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

input:

50 9

output:

987131197

result:

ok 1 number(s): "987131197"

Test #161:

score: 0
Accepted
time: 9ms
memory: 3780kb

input:

50 10

output:

167332917

result:

ok 1 number(s): "167332917"

Test #162:

score: 0
Accepted
time: 9ms
memory: 3920kb

input:

50 11

output:

167332917

result:

ok 1 number(s): "167332917"

Test #163:

score: 0
Accepted
time: 29ms
memory: 4256kb

input:

50 12

output:

8338708

result:

ok 1 number(s): "8338708"

Test #164:

score: 0
Accepted
time: 29ms
memory: 4236kb

input:

50 13

output:

8338708

result:

ok 1 number(s): "8338708"

Test #165:

score: 0
Accepted
time: 70ms
memory: 4824kb

input:

50 14

output:

350736024

result:

ok 1 number(s): "350736024"

Test #166:

score: 0
Accepted
time: 70ms
memory: 4816kb

input:

50 15

output:

350736024

result:

ok 1 number(s): "350736024"

Test #167:

score: 0
Accepted
time: 180ms
memory: 5792kb

input:

50 16

output:

547343798

result:

ok 1 number(s): "547343798"

Test #168:

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

input:

99 0

output:

288066947

result:

ok 1 number(s): "288066947"

Test #169:

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

input:

99 1

output:

407223503

result:

ok 1 number(s): "407223503"

Test #170:

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

input:

99 2

output:

407223503

result:

ok 1 number(s): "407223503"

Test #171:

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

input:

99 3

output:

180967522

result:

ok 1 number(s): "180967522"

Test #172:

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

input:

99 4

output:

180967522

result:

ok 1 number(s): "180967522"

Test #173:

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

input:

99 5

output:

115126923

result:

ok 1 number(s): "115126923"

Test #174:

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

input:

99 6

output:

115126923

result:

ok 1 number(s): "115126923"

Test #175:

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

input:

99 7

output:

756367923

result:

ok 1 number(s): "756367923"

Test #176:

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

input:

99 8

output:

756367923

result:

ok 1 number(s): "756367923"

Test #177:

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

input:

99 9

output:

348304157

result:

ok 1 number(s): "348304157"

Test #178:

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

input:

99 10

output:

348304157

result:

ok 1 number(s): "348304157"

Test #179:

score: 0
Accepted
time: 29ms
memory: 4360kb

input:

99 11

output:

919024542

result:

ok 1 number(s): "919024542"

Test #180:

score: 0
Accepted
time: 29ms
memory: 4644kb

input:

99 12

output:

919024542

result:

ok 1 number(s): "919024542"

Test #181:

score: 0
Accepted
time: 78ms
memory: 5512kb

input:

99 13

output:

618568674

result:

ok 1 number(s): "618568674"

Test #182:

score: 0
Accepted
time: 81ms
memory: 5332kb

input:

99 14

output:

618568674

result:

ok 1 number(s): "618568674"

Test #183:

score: 0
Accepted
time: 187ms
memory: 6620kb

input:

99 15

output:

161030851

result:

ok 1 number(s): "161030851"

Test #184:

score: 0
Accepted
time: 186ms
memory: 6476kb

input:

99 16

output:

161030851

result:

ok 1 number(s): "161030851"

Test #185:

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

input:

100 0

output:

681164487

result:

ok 1 number(s): "681164487"

Test #186:

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

input:

100 1

output:

681164487

result:

ok 1 number(s): "681164487"

Test #187:

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

input:

100 2

output:

656785158

result:

ok 1 number(s): "656785158"

Test #188:

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

input:

100 3

output:

656785158

result:

ok 1 number(s): "656785158"

Test #189:

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

input:

100 4

output:

645848758

result:

ok 1 number(s): "645848758"

Test #190:

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

input:

100 5

output:

645848758

result:

ok 1 number(s): "645848758"

Test #191:

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

input:

100 6

output:

63066030

result:

ok 1 number(s): "63066030"

Test #192:

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

input:

100 7

output:

63066030

result:

ok 1 number(s): "63066030"

Test #193:

score: 0
Accepted
time: 6ms
memory: 4008kb

input:

100 8

output:

15459138

result:

ok 1 number(s): "15459138"

Test #194:

score: 0
Accepted
time: 6ms
memory: 4040kb

input:

100 9

output:

15459138

result:

ok 1 number(s): "15459138"

Test #195:

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

input:

100 10

output:

552094543

result:

ok 1 number(s): "552094543"

Test #196:

score: 0
Accepted
time: 18ms
memory: 4180kb

input:

100 11

output:

552094543

result:

ok 1 number(s): "552094543"

Test #197:

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

input:

100 12

output:

436446274

result:

ok 1 number(s): "436446274"

Test #198:

score: 0
Accepted
time: 48ms
memory: 4740kb

input:

100 13

output:

436446274

result:

ok 1 number(s): "436446274"

Test #199:

score: 0
Accepted
time: 132ms
memory: 5868kb

input:

100 14

output:

721859177

result:

ok 1 number(s): "721859177"

Test #200:

score: 0
Accepted
time: 133ms
memory: 5952kb

input:

100 15

output:

721859177

result:

ok 1 number(s): "721859177"

Test #201:

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

input:

1 14

output:

35

result:

ok 1 number(s): "35"

Test #202:

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

input:

1 0

output:

35

result:

ok 1 number(s): "35"

Test #203:

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

input:

2 0

output:

1190

result:

ok 1 number(s): "1190"

Test #204:

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

input:

3 0

output:

42875

result:

ok 1 number(s): "42875"

Test #205:

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

input:

4 0

output:

1499400

result:

ok 1 number(s): "1499400"

Test #206:

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

input:

1 1

output:

35

result:

ok 1 number(s): "35"

Test #207:

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

input:

2 1

output:

1190

result:

ok 1 number(s): "1190"

Test #208:

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

input:

3 1

output:

40460

result:

ok 1 number(s): "40460"

Test #209:

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

input:

4 1

output:

1499400

result:

ok 1 number(s): "1499400"

Test #210:

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

input:

5 1

output:

52437350

result:

ok 1 number(s): "52437350"

Test #211:

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

input:

2 2

output:

1190

result:

ok 1 number(s): "1190"

Test #212:

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

input:

3 2

output:

40460

result:

ok 1 number(s): "40460"

Test #213:

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

input:

4 2

output:

1374450

result:

ok 1 number(s): "1374450"

Test #214:

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

input:

5 2

output:

52437350

result:

ok 1 number(s): "52437350"

Test #215:

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

input:

6 2

output:

835562307

result:

ok 1 number(s): "835562307"

Test #216:

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

input:

3 3

output:

40460

result:

ok 1 number(s): "40460"

Test #217:

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

input:

4 3

output:

1374450

result:

ok 1 number(s): "1374450"

Test #218:

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

input:

5 3

output:

46692030

result:

ok 1 number(s): "46692030"

Test #219:

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

input:

6 3

output:

835562307

result:

ok 1 number(s): "835562307"

Test #220:

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

input:

7 3

output:

243160728

result:

ok 1 number(s): "243160728"

Test #221:

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

input:

4 4

output:

1374450

result:

ok 1 number(s): "1374450"

Test #222:

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

input:

5 4

output:

46692030

result:

ok 1 number(s): "46692030"

Test #223:

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

input:

6 4

output:

587910217

result:

ok 1 number(s): "587910217"

Test #224:

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

input:

7 4

output:

243160728

result:

ok 1 number(s): "243160728"

Test #225:

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

input:

8 4

output:

685973492

result:

ok 1 number(s): "685973492"

Test #226:

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

input:

5 5

output:

46692030

result:

ok 1 number(s): "46692030"

Test #227:

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

input:

6 5

output:

587910217

result:

ok 1 number(s): "587910217"

Test #228:

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

input:

7 5

output:

975651911

result:

ok 1 number(s): "975651911"

Test #229:

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

input:

8 5

output:

685973492

result:

ok 1 number(s): "685973492"

Test #230:

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

input:

9 5

output:

759563643

result:

ok 1 number(s): "759563643"

Test #231:

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

input:

6 6

output:

587910217

result:

ok 1 number(s): "587910217"

Test #232:

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

input:

7 6

output:

975651911

result:

ok 1 number(s): "975651911"

Test #233:

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

input:

8 6

output:

640435461

result:

ok 1 number(s): "640435461"

Test #234:

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

input:

9 6

output:

759563643

result:

ok 1 number(s): "759563643"

Test #235:

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

input:

10 6

output:

254435821

result:

ok 1 number(s): "254435821"

Test #236:

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

input:

7 7

output:

975651911

result:

ok 1 number(s): "975651911"

Test #237:

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

input:

8 7

output:

640435461

result:

ok 1 number(s): "640435461"

Test #238:

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

input:

9 7

output:

835601883

result:

ok 1 number(s): "835601883"

Test #239:

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

input:

10 7

output:

254435821

result:

ok 1 number(s): "254435821"

Test #240:

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

input:

11 7

output:

132182305

result:

ok 1 number(s): "132182305"

Test #241:

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

input:

8 8

output:

640435461

result:

ok 1 number(s): "640435461"

Test #242:

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

input:

9 8

output:

835601883

result:

ok 1 number(s): "835601883"

Test #243:

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

input:

10 8

output:

817470300

result:

ok 1 number(s): "817470300"

Test #244:

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

input:

11 8

output:

132182305

result:

ok 1 number(s): "132182305"

Test #245:

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

input:

12 8

output:

266655880

result:

ok 1 number(s): "266655880"

Test #246:

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

input:

9 9

output:

835601883

result:

ok 1 number(s): "835601883"

Test #247:

score: 0
Accepted
time: 5ms
memory: 3848kb

input:

10 9

output:

817470300

result:

ok 1 number(s): "817470300"

Test #248:

score: 0
Accepted
time: 13ms
memory: 4488kb

input:

11 9

output:

53700186

result:

ok 1 number(s): "53700186"

Test #249:

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

input:

12 9

output:

266655880

result:

ok 1 number(s): "266655880"

Test #250:

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

input:

13 9

output:

287356847

result:

ok 1 number(s): "287356847"

Test #251:

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

input:

10 10

output:

817470300

result:

ok 1 number(s): "817470300"

Test #252:

score: 0
Accepted
time: 13ms
memory: 4408kb

input:

11 10

output:

53700186

result:

ok 1 number(s): "53700186"

Test #253:

score: 0
Accepted
time: 40ms
memory: 5268kb

input:

12 10

output:

98056471

result:

ok 1 number(s): "98056471"

Test #254:

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

input:

13 10

output:

287356847

result:

ok 1 number(s): "287356847"

Test #255:

score: 0
Accepted
time: 19ms
memory: 4296kb

input:

14 10

output:

766627505

result:

ok 1 number(s): "766627505"

Test #256:

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

input:

11 11

output:

53700186

result:

ok 1 number(s): "53700186"

Test #257:

score: 0
Accepted
time: 40ms
memory: 5148kb

input:

12 11

output:

98056471

result:

ok 1 number(s): "98056471"

Test #258:

score: 0
Accepted
time: 124ms
memory: 7792kb

input:

13 11

output:

859256927

result:

ok 1 number(s): "859256927"

Test #259:

score: 0
Accepted
time: 19ms
memory: 4296kb

input:

14 11

output:

766627505

result:

ok 1 number(s): "766627505"

Test #260:

score: 0
Accepted
time: 52ms
memory: 5280kb

input:

15 11

output:

38776983

result:

ok 1 number(s): "38776983"

Test #261:

score: 0
Accepted
time: 40ms
memory: 5452kb

input:

12 12

output:

98056471

result:

ok 1 number(s): "98056471"

Test #262:

score: 0
Accepted
time: 124ms
memory: 7800kb

input:

13 12

output:

859256927

result:

ok 1 number(s): "859256927"

Test #263:

score: 0
Accepted
time: 391ms
memory: 14228kb

input:

14 12

output:

241086631

result:

ok 1 number(s): "241086631"

Test #264:

score: 0
Accepted
time: 52ms
memory: 5424kb

input:

15 12

output:

38776983

result:

ok 1 number(s): "38776983"

Test #265:

score: 0
Accepted
time: 144ms
memory: 7356kb

input:

16 12

output:

762853130

result:

ok 1 number(s): "762853130"

Test #266:

score: 0
Accepted
time: 123ms
memory: 7748kb

input:

13 13

output:

859256927

result:

ok 1 number(s): "859256927"

Test #267:

score: 0
Accepted
time: 393ms
memory: 14164kb

input:

14 13

output:

241086631

result:

ok 1 number(s): "241086631"

Test #268:

score: 0
Accepted
time: 1219ms
memory: 33772kb

input:

15 13

output:

518906901

result:

ok 1 number(s): "518906901"

Test #269:

score: 0
Accepted
time: 133ms
memory: 7352kb

input:

16 13

output:

762853130

result:

ok 1 number(s): "762853130"

Test #270:

score: 0
Accepted
time: 389ms
memory: 12108kb

input:

17 13

output:

283163356

result:

ok 1 number(s): "283163356"