摘要: 算法思想 1.Start with a grid full of walls. 2.Pick a cell, mark it as part of the maze. Add the walls of the cell to the wall list. 3.While there are wall 阅读全文
posted @ 2020-09-23 21:01 tao10203 阅读(140) 评论(0) 推荐(1)
摘要: 欧拉筛法的基本思想 在埃氏筛法的基础上,让每个合数只被它的最小的质因子筛选一次,以达到不重复的目的。本算法的关键就在于让每个合数只被它的最小的质因子筛选一次,记住这句话,后面会解释。 /*求小于等于n的素数的个数*/ #include<stdio.h> #include<string.h> usin 阅读全文
posted @ 2020-09-23 20:14 tao10203 阅读(549) 评论(0) 推荐(0)