diff options
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 |
