思想:标记出所有非质数,输出所有未被标记的数。 对于n以内的筛选来说,如果n是合数,则有 1 ≤ c ≤ √n ,即 1 ≤ c2 ≤ n , c是n的最小正因数。只要找到了c就可以确定n是合数并将n标记。 1 int n = 15; 2 int mark[16] = { 3 1, 1, 0, 0, ...
分类:
其他好文 时间:
2017-08-25 17:00:10
阅读次数:
140
ifconfigping ip地址帮助:ping -t ip地址ping -c 次数 ip地址ping -s 包的大小关机重启:shutdown -h now reboot清屏:clear == Ctrl + l光标前删除一行 Ctrl + u history !命令号alias 定义别名: ali ...
分类:
系统相关 时间:
2017-08-25 12:21:35
阅读次数:
289
P2904 [USACO08MAR]跨河River Crossing P2904 [USACO08MAR]跨河River Crossing P2904 [USACO08MAR]跨河River Crossing 题目描述 Farmer John is herding his N cows (1 <= ...
分类:
其他好文 时间:
2017-08-25 00:11:01
阅读次数:
186
Given a binary tree and a sum, determine if the tree has a root-to-leaf path such that adding up all the values along the path equals the given sum. F ...
分类:
其他好文 时间:
2017-08-25 00:04:49
阅读次数:
114
Machine Schedule Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 9461 Accepted Submission(s): 47 ...
分类:
系统相关 时间:
2017-08-24 21:16:53
阅读次数:
202
Find the kth largest element in an unsorted array. Note that it is the kth largest element in the sorted order, not the kth distinct element. For exam ...
分类:
其他好文 时间:
2017-08-24 19:52:04
阅读次数:
185
#【字典】 #映射 #字典是无序存储的,没有位置关系 print(id(a)) #打印a的内存地址 #不可变类型:整型,字符串,元组 #可变类型:列表,字典 dictionary = {'name':'zhangw','age':35,'isboy':True,} dictionary2 = {'n... ...
分类:
编程语言 时间:
2017-08-24 10:22:08
阅读次数:
163
1 常见软件系统体系结构B/S、C/S 1.1 C/S l C/S结构即客户端/服务器(Client/Server),例如QQ; l 需要编写服务器端程序,以及客户端程序,例如我们安装的就是QQ的客户端程序; l 缺点:软件更新时需要同时更新客户端和服务器端两端,比较麻烦; l 优点:安全性比较好。 ...
分类:
编程语言 时间:
2017-08-24 00:11:12
阅读次数:
210
gitHub: https://gist.github.com/andforce/36300fa0b7daa938b25e#file-lunch_weixin_time_line weixin://dl/scan 扫一扫weixin://dl/feedback 反馈weixin://dl/momen ...
分类:
微信 时间:
2017-08-23 13:44:37
阅读次数:
350
A Multi-Sensorial Simultaneous Localization and Mapping (SLAM) System for Low-Cost Micro Aerial Vehicles in GPS-Denied Environments 一种在无GPS环境中设计的面向低价微 ...
分类:
移动开发 时间:
2017-08-23 11:52:03
阅读次数:
255