2 条题解

  • 0
    @ 2025-4-7 13:44:59
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
        int n,L,R;
        cin>>n>>L>>R;
        int max_remainder=(R/n)*n-1;
        if (max_remainder>=L){
            cout<<n-1<<endl;
        }else{
            cout<<R%n<<endl;
        }
        return 0;
    }``````
    • @ 2025-4-7 13:50:42

      你的代码绝对是抄的!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • 0
    @ 2025-4-7 13:31:42
    #include<bits/stdc++.h>
    using namespace std;
    int main() {
        int n,l,r;
        cin>>n>>l>>r;
        if (r/n>l/n) 
            cout<<n-1;
    	else 
            cout<<r%n;
        return 0;
    }
    
    • @ 2025-4-7 13:48:11

      你的代码绝对是抄的!!!

    • @ 2025-4-7 13:51:35

      这个人的代码是抄的!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • 1

信息

ID
968
时间
1000ms
内存
256MiB
难度
6
标签
(无)
递交数
56
已通过
16
上传者