上一页 1 2 3 4 5 6 ··· 10 下一页
2020年8月8日

质因数分解统计

摘要: int divide(int number) { int tot = 0; for (int i = 2; i <= number; i++) { if (number % i == 0) { tot++; prime[tot] = i; while (number % i == 0) { prim 阅读全文
posted @ 2020-08-08 17:10 xlinsist 阅读(158) 评论(0) 推荐(0) 编辑
2020年8月2日

分块

摘要: LL fenkuai(LL k){ LL j; LL ans=0; for (LL i=1;i<=k;i=j+1){ j=n/(n/i); ans+=(j-i+1)%mod*((n/i)%mod)%mod; ans%=mod; } return ans; } 阅读全文
posted @ 2020-08-02 10:04 xlinsist 阅读(64) 评论(0) 推荐(0) 编辑
2020年7月31日

java类和比较

摘要: //优先队列 static Comparator<Integer> cmp = new Comparator<Integer>() { public int compare(Integer e1, Integer e2) { return e2 - e1; } }; //Arrays.sort(a, 阅读全文
posted @ 2020-07-31 22:33 xlinsist 阅读(238) 评论(0) 推荐(0) 编辑
2020年7月16日

日记:记忆与认知的延伸(游戏篇)

摘要: the world is a chessboard 阅读全文
posted @ 2020-07-16 15:31 xlinsist 阅读(138) 评论(0) 推荐(0) 编辑
2020年7月15日

java learning

摘要: template import java.io.*; import java.util.*; public class Main { FastScanner in; PrintWriter out; long mod = 998_244_353L; // (long) 1e9 + 7 || (lon 阅读全文
posted @ 2020-07-15 16:31 xlinsist 阅读(147) 评论(0) 推荐(0) 编辑
2020年6月28日

presentation: friendship and growth

摘要: shadiao gestures 阅读全文
posted @ 2020-06-28 23:09 xlinsist 阅读(129) 评论(0) 推荐(0) 编辑
2020年6月6日

素数欧拉筛法

摘要: 线性筛素数 int pnum=0; int pa[maxn]; bool pvis[maxn]; void prime_init() { memset(pvis,0,sizeof(pvis)); FOR(i,2,MAX) { if (!pvis[i]) { pvis[i]=1; pnum++; pa 阅读全文
posted @ 2020-06-06 14:11 xlinsist 阅读(137) 评论(0) 推荐(0) 编辑
2020年6月3日

writing: Farewell my princess

摘要: adapted from poj 2482 text **Fleeting time does not blur the memory of you. Has it really been three years since i first saw you? I still remember, vi 阅读全文
posted @ 2020-06-03 17:06 xlinsist 阅读(117) 评论(0) 推荐(0) 编辑
2020年5月28日

writing: Flexibility: key for humans to live through extraordinary times

摘要: With the outbreak of COVID-19, it seems that 2020 is not a perfect beginning of this decade. However, it doesn’t dim everything from then on. Just as  阅读全文
posted @ 2020-05-28 16:37 xlinsist 阅读(119) 评论(0) 推荐(0) 编辑
2020年5月27日

kotlin笔记:copy from a man in integrity

摘要: 偶尔能在代码中认识些有趣的人不失为件有趣的事 阅读全文
posted @ 2020-05-27 23:38 xlinsist 阅读(125) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 10 下一页