提交时间:2021-12-06 13:56:42
运行 ID: 33475
#include <bits/stdc++.h> using namespace std; int main() { //freopen("candy.in","r",stdin); //freopen("candy.out","w",stdout); int n,l,r; cin>>n>>l>>r; cout<<(r/n==l/n?r%n:n-1)<<endl; return 0; }