int main() {
//freopen("candy.in", "r", stdin); //freopen("candy.out", "w", stdout); int n, L, R; scanf("%d%d%d", &n, &L, &R); if (R / n == L / n) { printf("%d", R % n); } else { n = n - 1; printf("%d", n); } return 0;
}
比赛已结束。