• 题解
  • 题解!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

  • @ 2025-7-16 9:20:12

#include<bits/stdc++.h> using namespace std; int main(){ int n,l,r; cin>>n>>l>>r; int k=l%n; if(l+(n-1-k)<=r){ cout<<n-1<<endl;//情况1 } else{ cout<<r%n<<endl;//情况2 }

return 0;

}

0 条评论

目前还没有评论...