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 1526. Martian Plates

i and j can be eqal
Posted by Spatarel Dan Constantin 16 Apr 2012 18:40
i and j can be eqal!

This made my get a WA#6.

Here are some interesting tests:
Input:
1000 4 2 1
1 1
Output:
7

Input:
1000 4 1 1
1 1
Output:
1