Files
python/TangDou/CSP-J/J2-2021/1_1.cpp

12 lines
216 B
C++
Raw Normal View History

2025-08-30 18:35:01 +08:00
#include <iostream>
using namespace std;
int main() {
int n, L, R;
cin >> n >> L >> R;
if (R / n > L / n)
cout << n - 1 << endl;
else
cout << R % n << endl;
return 0;
}