建议降红!!
查看原帖
建议降红!!
1393571
封禁用户楼主2024/9/23 20:06

AC

#include<bits/stdc++.h>
using namespace std;
int main(){

    int n,l,r; 
    cin>>n>>l>>r;
    if(l/n==r/n) cout<<n%r; 
    else cout<<l-1;
    return 0;
}

9行!!

2024/9/23 20:06
加载中...