返回小组 开始 2023-10-06 16:00:00

10.06下午

结束 2023-10-06 17:00:00
Contest is over.
当前 2024-11-22 05:28:50

2

include <stdio.h>

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;

}


zhaoyihao  •  1年前

比赛已结束。