标签:io os sp for bs nbsp br ios return
#include<iostream>
using namespace std;
int fun(int n, int m)
{
int i, r = 0;
for (i = 2; i <= n; i++)
r = (r + m) % i;
return r+1;
}
void main()
{
int i, m;
cin >> i >> m;
cout << fun( i, m );
}
标签:io os sp for bs nbsp br ios return
原文地址:http://www.cnblogs.com/a972290869/p/4166018.html