摘要:递推公式f[1]=0;f[i]=(f[i-1]+m)%i; (i>1)# include# include# include# include# include# includeusing namespace std;# define maxn 1000001int main(){ int n,m; while(cin>>n>>m) { int ans=0; for(int i=2;i<=n;i++) ans=(ans+m)%i; printf("%d\n",ans+1); } return 0;}View ...
阅读全文
摘要:最近用c语言编程,用到了--static这个参数,结果出现了以下的错误提示:/usr/bin/ld: cannot find -lccollect2: ld 返回 1而出现这种情况的主要原因是系统里面缺少静态库,所以静态链接是会找不到,解决的方法就是安装对应的库文件就可以了。如下:#yum install -y glibc-static libstdc++-static
阅读全文
摘要:隧道适配器 本地连接* 61: 媒体状态 . . . . . . . . . . . . : 媒体已断开 连接特定的 DNS 后缀 . . . . . . . :隧道适配器 本地连接* 62: 媒体状态 . . . . . . . . . . . . : 媒体已断开 连接特定的 DNS 后缀 . . . . . . . :隧道适配器 isatap.my.domain: 媒体状态 . . . . . . . . . . . . : 媒体已断开 连接特定的 DNS 后缀 . . . . . . . : my.domain当无线网络建立的太多而又没有关闭的时候在cmd里面输入...
阅读全文