C++最短代码:
#import<iostream> main(){int n,l,r;std::cin>>n>>l>>r;std::cout<<(l/n==r/n?r%n:n-1);} 不加换行83B 欢迎补充!!!