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

RESTful APIs with CRUD Operations in Laravel 12| (2025)

  RESTful APIs serve as the foundation of modern web development. They follow a set of rules called Representational State Transfer (REST) t...

Powered by Blogger.