diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-07-24 13:11:33 +0300 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-07-24 13:11:33 +0300 |
| commit | 6b548332bfc6469756526002971c422f43f86d0a (patch) | |
| tree | 261fde23f07c3e20cea375030f0c52863b59228c /contests/08-03-2022(Div.3)/B | |
| parent | cff8cae22ee9c25d193ff976143813f93e658e55 (diff) | |
| download | competitive-programming-6b548332bfc6469756526002971c422f43f86d0a.tar.xz competitive-programming-6b548332bfc6469756526002971c422f43f86d0a.zip | |
Removed some empty *.cpp files and Solved some new problems
Diffstat (limited to 'contests/08-03-2022(Div.3)/B')
| -rwxr-xr-x | contests/08-03-2022(Div.3)/B | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/contests/08-03-2022(Div.3)/B b/contests/08-03-2022(Div.3)/B deleted file mode 100755 index dd8bb54..0000000 --- a/contests/08-03-2022(Div.3)/B +++ /dev/null @@ -1,23 +0,0 @@ -#include<bits/stdc++.h> - -using namespace std; - -int modDiv(int r, int a){ - // law r % a == 0, return r-1 % a + r-1 /a, else return r % a + r /a; - if(r % a == 0){ - return (r-1) % a + (r-1)/a; - } - return r % a + r / a; -} - -int main(){ - int tt; - while(tt--){ - cout << "tt: " << tt; - int l, r, a; - cin >> l >> r >> a; - cout << modDiv(r, a); - } - - return 0; -}
\ No newline at end of file |
