ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1949. The Best Picture in the Galaxy

WA27
Posted by 👨‍💻tproger👨‍💻[GTGU] 27 Apr 2019 23:41
Try this tests:

5 2
9 66 15
83 112 26
41 109 16
56 78 18
66 158 18
Ans: 11100

6 1
87 120 37
42 124 36
27 108 18
17 56 13
97 149 29
61 84 27
Ans: 100101