标签:
#include <cstdio>
using namespace std;
int main(){
int n,a,b,ans;
scanf("%d%d%d",&n,&a,&b);
ans = (a + b)%n;
if(ans < 0) ans += n;
if(ans == 0) ans = n;
printf("%d\n",ans);
return 0;
}
[2016-03-31][codeforces][659A][Round House]
标签:
原文地址:http://www.cnblogs.com/qhy285571052/p/3bc009608ec2048301f9c9831dae00be.html