提交时间:2021-12-06 18:15:06

运行 ID: 33500

#include <iostream> using namespace std; int main() { int n, l, r, tmp; cin >> n >> l >> r; cout << (l/n*n+n-1<=r ? n-1:r-l/n*n); return 0; }