fork download
  1. Case #1:
  2. 0 1
  3. Case #2:
  4. 0 1
  5. Case #3:
  6. 666665666667000000 235042059
  7. Case #4:
  8. 249999500000 1
  9. Case #5:
  10. 249999000001 2
  11. Case #6:
  12. 499999000000 1
  13. Case #7:
  14. 16841689027335900 1
  15. Case #8:
  16. 3340958684220274 1
  17. Case #9:
  18. 151581792885443713 987482457
  19. Case #10:
  20. 25296007323620596 1
  21. Case #11:
  22. 202203687302301762 105963621
  23. Case #12:
  24. 29268557048244750 336806951
  25. Case #13:
  26. 119126030763726856 1
  27. Case #14:
  28. 241360486715056592 1
  29. Case #15:
  30. 116346495509196673 970185681
  31. Case #16:
  32. 28745392510482810 692527661
  33. Case #17:
  34. 8544109271125850 598368519
  35. Case #18:
  36. 51492828988375000 105879273
  37. Case #19:
  38. 21534780512165564 482357077
  39. Case #20:
  40. 2827817268417225 973460119
  41. Case #21:
  42. 127218573494646820 837661489
  43. Case #22:
  44. 249724014379318610 1
  45. Case #23:
  46. 90644955640731632 1
  47. Case #24:
  48. 74985934512643896 10995746
  49. Case #25:
  50. 500660595759473 910220863
  51. Case #26:
  52. 329293222707364678 973453052
  53. Case #27:
  54. 425037170240195376 871364712
  55. Case #28:
  56. 2628635919393040 1
  57. Case #29:
  58. 319262444343522946 991615879
  59. Case #30:
  60. 5323658288267721 67213985
  61. Case #31:
  62. 27695612154073120 1
  63. Case #32:
  64. 38508740619699928 22114543
  65. Case #33:
  66. 84115102741727288 1
  67. Case #34:
  68. 25667545526764953 859362711
  69. Case #35:
  70. 12680223841439968 515352053
  71. Case #36:
  72. 276796139565040372 1
  73. Case #37:
  74. 418123941323635664 1
  75. Case #38:
  76. 110986729328824180 1
  77. Case #39:
  78. 103744350589883553 541550221
  79. Case #40:
  80. 1795379590897970 1
  81. Case #41:
  82. 16691190105624642 1
  83. Case #42:
  84. 26416433605503480 581432662
  85. Case #43:
  86. 9124159875447380 1
  87. Case #44:
  88. 30942461585391872 1
  89. Case #45:
  90. 113539819099059080 577741405
  91. Case #46:
  92. 129298041454643433 574498665
  93. Case #47:
  94. 22703843717459737 284504384
  95. Case #48:
  96. 7249445739929162 614332386
  97. Case #49:
  98. 392702967983084992 1
  99. Case #50:
  100. 59743068197322896 1
  101. Case #51:
  102. 74425843744400400 1
  103. Case #52:
  104. 41679638907315574 284592347
  105. Case #53:
  106. 932800726856590 1
  107. Case #54:
  108. 168378628414989392 604948662
  109. Case #55:
  110. 9395636766121984 1
  111. Case #56:
  112. 149549215658426016 782200760
  113. Case #57:
  114. 454856515220440881 806346020
  115. Case #58:
  116. 100411074197099232 1
  117. Case #59:
  118. 8051937516909272 1
  119. Case #60:
  120. 250096268724969170 697114469
  121. Case #61:
  122. 115893183790498532 1
  123. Case #62:
  124. 138693298865213626 159548938
  125. Case #63:
  126. 185121235394290584 1
  127. Case #64:
  128. 27311821838033260 1
  129. Case #65:
  130. 15011561094742930 1
  131. Case #66:
  132. 42531412550339166 196981259
  133. Case #67:
  134. 50819400521514856 959870641
  135. Case #68:
  136. 17320701047482648 786137789
  137. Case #69:
  138. 266029605745350000 750812540
  139. Case #70:
  140. 189368247125441950 1
  141. Case #71:
  142. 88269142443297180 1
  143. Case #72:
  144. 191401829753177761 68780626
  145. Case #73:
  146. 33433018723897940 464703729
  147. Case #74:
  148. 295561899358490 1
  149. Case #75:
  150. 2210094790269948 454514081
  151. Case #76:
  152. 2085835516789248 624934429
  153. Case #77:
  154. 24737045311124820 857005750
  155. Case #78:
  156. 1475595000217108 514364171
  157. Case #79:
  158. 66218009283320440 1
  159. Case #80:
  160. 107008631103592730 516273262
  161. Case #81:
  162. 78933908161149340 1
  163. Case #82:
  164. 46187617457785472 676580104
  165. Case #83:
  166. 5019121491066830 1
  167. Case #84:
  168. 46361649752338760 996441969
  169. Case #85:
  170. 383608932777533120 433870586
  171. Case #86:
  172. 36161527959403848 855675623
  173. Case #87:
  174. 14258074525639428 1
  175. Case #88:
  176. 36691205412801940 1
  177. Case #89:
  178. 247382847214543744 62047473
  179. Case #90:
  180. 32276488326590300 1
  181. Case #91:
  182. 427512751691391040 1
  183. Case #92:
  184. 414146099461485618 261213744
  185. Case #93:
  186. 40842452721029768 989922034
  187. Case #94:
  188. 195673452246648600 346350131
  189. Case #95:
  190. 49082889895050960 1
  191. Case #96:
  192. 109490045648315921 354782070
  193. Case #97:
  194. 422697121517067096 713138951
  195. Case #98:
  196. 148471729795148244 442334054
  197. Case #99:
  198. 241864300706850696 129155338
  199. Case #100:
  200. 222380049260088030 1
  201.  
Not running #stdin #stdout 0s 0KB
stdin
Standard input is empty
stdout
Standard output is empty