Codeforces 1374A. Required Remainder Solution

  1. Solution in C++:
  2. ///**********ALLAH IS ALMIGHTY************///
  3. ///AH Tonmoy
  4. ///Department of CSE,23rd batch
  5. ///Islamic University,Bangladesh
  6. #include<iostream>
  7. using namespace std;
  8. int main()
  9. {
  10. int x,y,n,t;
  11. cin>>t;
  12. while(t--)
  13. {
  14. cin>>x>>y>>n;
  15. cout<<(n-y)/x*x+y<<endl;
  16. }
  17. }

1 comment:

  1. https://artisanal-builder-5141.ck.page/87f55a4a30

    ReplyDelete

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.