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 971 (Div. 4) 2009C. The Legend of Freya the Frog Solution

  Problem Link    https://codeforces.com/contest/2009/problem/C S olution in C++: /// Author : AH_Tonmoy #include < bits / stdc ++. h &g...

Powered by Blogger.