Problems
Queue
Competitions
Ranking
Articles
Signup
Signin
bolt
Try our new interface for solving problems
Try
Problems
Pretty
Statement
Solutions
Statistics
Discussion
Pretty
Time limit
0.4
seconds
Memory limit
256
MiB
Examples
Input example #1
content_copy
4 42
Output example #1
content_copy
13
Input example #2
content_copy
2000 10009
Output example #2
content_copy
1295
Wall