码迷,mamicode.com
首页 >  
搜索关键字:nearly prime numbers    ( 9679个结果
C++ primer练习3.17问题解答
问题描述:从cin中读取单词存在vector中,将其中的单词全部变为大写,并且每行八个单词进行输出。 代码(编译g++ -o vector vector.cc -std=c++11利用c11标准): 1 #include<iostream> 2 #include<string> 3 #include ...
分类:编程语言   时间:2020-02-06 12:49:51    阅读次数:68
leetcode 2 两数之和
https://leetcode-cn.com/problems/add-two-numbers/ ListNode root = new ListNode(0); ListNode cur = root; int retain = 0; while (l1!=null || l2!=null || ...
分类:其他好文   时间:2020-02-05 20:18:39    阅读次数:70
PAT Advanced 1060 Are They Equal (25分)
If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both saved as 0 with simple c ...
分类:其他好文   时间:2020-02-05 18:21:41    阅读次数:84
LeetCode-1. Two Sum
Given an array of integers, return indices of the two numbers such that they add up to a specific target. You may assume that each input would have ex ...
分类:其他好文   时间:2020-02-05 13:35:52    阅读次数:62
shell编程题(二十八)
题目: 查找请求数前20个IP(常用于查找攻来源) 答案: #! /bin/bash echo "The numbers of IP address" echo "the first way:" netstat -anlp | grep 80 | grep tcp | awk '{print $5} ...
分类:系统相关   时间:2020-02-05 13:21:36    阅读次数:66
linux使用CGIHTTPServer搭建本地网站
使用linux的版本,是windows自带的Ubuntu.(在windows下安装ubuntu在前面的博文中有写过,也可以直接访问windows的官方网站来查阅。) 使用python的版本,是python2.7. 第一步:将网站文件存储到linux的自己创建的网站文件夹下 我创建了一个文件夹:/te ...
分类:Web程序   时间:2020-02-05 11:52:30    阅读次数:116
The Integers and the Real Numbers
以上我們談了一些 邏輯的基礎,接下來我們會談一些 數學的基礎,也就是整數與實數系統。其實我們已經用了很多,非正式地,接下來我們會正式地討論他們。要 建構 實數系統的一個方法就是利用公理跟集合論來建構。首先我們需要從集合論出發,定義在 set $A$ 上的 二元運算子(binary operator)... ...
分类:其他好文   时间:2020-02-05 10:13:59    阅读次数:62
PAT 甲级 1108 Finding Average (20分)
1108 Finding Average (20分) The basic task is simple: given N real numbers, you are supposed to calculate their average. But what makes it complicated ...
分类:其他好文   时间:2020-02-04 00:16:37    阅读次数:66
深搜--P1036选数
深搜中绝对会用到递归 因此本题也可以使用深搜来做 bool prime(int b) { memset(sz, true, sizeof(sz)); sz[1]=false; for (int i=2;i<=b;i++) { if (sz[i]) { for (int j=2*i;j<=b;j+=i ...
分类:其他好文   时间:2020-02-03 22:36:20    阅读次数:90
Inject shellcode into PE file
先声明这是不免杀的,只是演示。 新增节 一般能实现特定功能的shellcode的长度都比较长,可以分到几个节上的空白区,但是这样麻烦啊,或者把最后一个节扩大,但是最后一个节一般没有执行的属性。所以选择新增一个节表。 修改添加节表 1. 先判断一下最后一个节表后面有没有够40个字节新增一个节表的结构体 ...
分类:系统相关   时间:2020-02-03 15:50:32    阅读次数:87
9679条   上一页 1 ... 47 48 49 50 51 ... 968 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!