Codeforces 268C Beautiful Sets of Points Solution
- Solve in C++:
- ///**********ALLAH IS ALMIGHTY************///
- ///AH Tonmoy
- ///Department of CSE
- ///Islamic University,Bangladesh
- #include<iostream>
- using namespace std;
- int main()
- {
- long long m,n,mn,v,mx;
- while(cin>>m>>n)
- {
- v=min(m,n);
- cout<<v+1<<endl;
- for(int i=0; i<=v; i++)
- {
- cout<<i<<" "<<v-i<<endl;
- }
- return 0;
- }
- }
No comments