mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-11-10 00:18:48 +00:00
P7909 [CSP-J 2021] 分糖果(民间数据)
R60830182
This commit is contained in:
parent
da1529e205
commit
3dedd00a70
11
Luogu/problem/P7909/P7909.cpp
Normal file
11
Luogu/problem/P7909/P7909.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int n, l, r, ans;
|
||||
|
||||
int main() {
|
||||
cin >> n >> l >> r;
|
||||
cout << min((int)(ceil(1.0 * l / n) * n + n - 1), r) % n << endl;
|
||||
return 0;
|
||||
}
|
Loading…
Reference in New Issue
Block a user