我的思路出问题了,为什么不对呢
查看原帖
我的思路出问题了,为什么不对呢
233529
King_Nothing楼主2022/8/23 21:31

rt

#include<bits/stdc++.h>
using namespace std;
int n,r,l;
int main()
{
    cin>>n>>l>>r;
    if((r-l)/n<1) cout<<r%n;
    else cout<<n-1;
    return 0;
}

2022/8/23 21:31
加载中...