mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-24 18:11:59 +00:00
parent
56273f8b48
commit
67cf3c995d
11
S2OJ/1118/1118.cpp
Normal file
11
S2OJ/1118/1118.cpp
Normal file
@ -0,0 +1,11 @@
|
||||
#include <bits/stdc++.h>
|
||||
|
||||
using namespace std;
|
||||
|
||||
int n, l, r;
|
||||
|
||||
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