提交时间:2021-12-08 13:26:01

运行 ID: 33818

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