Created
November 11, 2012 17:41
-
-
Save alculquicondor/4055640 to your computer and use it in GitHub Desktop.
Codeforces 242A
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
x, y, a, b = [int(x) for x in raw_input().split()] | |
A = [] | |
for i in range(a if a>b else b+1, x+1): | |
for j in range(b, min(i, y+1)): | |
A.append((i, j)) | |
print len(A) | |
for x in A: | |
print x[0], x[1] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment