mirror of
https://github.com/wczffl-503/OI-Codes.git
synced 2025-05-10 16:20:27 +08:00
10 lines
187 B
C++
10 lines
187 B
C++
#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;
|
|
} |