Codeforces 268C Beautiful Sets of Points Solution

  1. Solve in C++:
  2. ///**********ALLAH IS ALMIGHTY************///
  3. ///AH Tonmoy
  4. ///Department of CSE
  5. ///Islamic University,Bangladesh
  6. #include<iostream>
  7. using namespace std;
  8. int main()
  9. {
  10. long long m,n,mn,v,mx;
  11. while(cin>>m>>n)
  12. {
  13. v=min(m,n);
  14. cout<<v+1<<endl;
  15. for(int i=0; i<=v; i++)
  16. {
  17. cout<<i<<" "<<v-i<<endl;
  18. }
  19. return 0;
  20. }
  21. }

No comments

Most View Post

Recent post

Codeforces Round 925 (Div. 3) 1931D. Divisible Pairs Solution

    Problem Link  :   https://codeforces.com/contest/1931/problem/D S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. ...

Powered by Blogger.