Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<bits/stdc++.h>
- using namespace std;
- int main(){
- int x,y,a,b;
- scanf("%d %d %d %d", &x, &y, &a, &b);
- vector<int>m,n;
- for(int i=a; i<=x; i++){
- for(int j=b; j<=min(i-1,b); j++){
- m.push_back(i), n.push_back(j);
- }
- }
- printf("%d\n", (int)m.size());
- for(int k=0; k<(int)m.size(); k++){
- printf("%d %d\n", m[k], n[k]);
- }
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement