2018年10月20日

实现自己的shell--MIT xv6 shell

摘要: 参考代码: #include <stdlib.h> #include <unistd.h> #include <stdio.h> #include <fcntl.h> #include <string.h> #include <assert.h> #include <sys/types.h> #in 阅读全文

posted @ 2018-10-20 10:14 solvit 阅读(898) 评论(0) 推荐(0)

逆元打表

摘要: 逆元打表模板: long long re[N],inv[N],fac[N]; void init(int n){ re[0] = inv[1] = fac[0] = 1; for(int i = 1;i <= n;++i) fac[i] = fac[i-1] * i % mod; for(int i 阅读全文

posted @ 2018-10-20 09:53 solvit 阅读(432) 评论(0) 推荐(0)

导航