首页 > 其他
图解密码技术一些笔记
因为明年的工作可能要涉及到加密的问题,所以要看一下加密方面,刚好之前对于web开发方面的加密,https也一直有疑问,于是就买了本图解密码技术来看看 1.如何保证数据只能单向解密: 比较流行的一个就是公钥和私钥,公钥负责加密,私钥负责解密,只要私钥没有被拿到,数据就不会被破解,比较流行的 就是RSA
分类:其他   时间:2016-02-07 13:35:03    收藏:0  评论:0  赞:0  阅读:126
从一个小项目看return 引用 重载运算符
#ifndef _ARRAY_H_ #define _ARRAY_H_ class Array { private: int mLength; int* mSpace; public: Array(int length); Array(const Array& obj); int length();
分类:其他   时间:2016-02-07 13:34:49    收藏:0  评论:0  赞:0  阅读:268
Search Insert Position
Given a sorted array and a target value, return the index if the target is found. If not, return the index where it would be if it were inserted in or
分类:其他   时间:2016-02-07 13:34:42    收藏:0  评论:0  赞:0  阅读:227
新年庆祝~~~啦啦啦~~~
听别人说信息班应该用不同的方式来庆祝新年 哇咔咔! 那就只能以独特的方式庆祝咯……#include<cstdio>#include<cmath>#include<cstring>#include<iostream>#include<algorithm>#include<functional>#inc
分类:其他   时间:2016-02-07 13:34:20    收藏:0  评论:0  赞:0  阅读:141
HDU 2412 Party at Hali-Bula
树形DP水题。判断取法是否唯一,dp的时候记录一下每个状态从下面的子节点推导过来的时候是否唯一即可。 #include<cstdio> #include<cstring> #include<cmath> #include<ctime> #include<map> #include<vector> #
分类:其他   时间:2016-02-07 13:33:59    收藏:0  评论:0  赞:0  阅读:199
【AC自动机】HDU中模板题汇总(待更新)
【HDU2222】 最纯粹的裸题,错误点详见注释。 1 #include<iostream> 2 #include<cstdio> 3 #include<cstring> 4 #include<algorithm> 5 #include<queue> 6 using namespace std; 7
分类:其他   时间:2016-02-07 13:33:52    收藏:0  评论:0  赞:0  阅读:221
HDU 3749 Financial Crisis
Financial Crisis 题意:给一个图,包含N ( 3 <= N <= 5000 )个点, M ( 0 <= M <= 10000 )条边 and Q ( 1 <= Q <= 1000 )次查询.查询:两个点是否是点-双连通; 点-双连通:两点至少存在两条"点不重复"的路径;简称双连通(b
分类:其他   时间:2016-02-07 13:33:45    收藏:0  评论:0  赞:0  阅读:371
spoj 375 Query on a tree(树链剖分,线段树)
Query on a tree Time Limit: 851MS Memory Limit: 1572864KB 64bit IO Format: %lld & %llu Submit Status Description You are given a tree (an acyclic undi
分类:其他   时间:2016-02-07 13:33:38    收藏:0  评论:0  赞:0  阅读:195
如何使用dos命令打开当前用户、当前日期、当前时间以及当前用户加当前时间?
1、dos命令安装mysqld --stall、启动net start mysql、进入MySQL数据库mysql -uroot -p后,输入select user();当前用户 select current_date();当前日期 select current_time();当前时间 select
分类:其他   时间:2016-02-07 13:33:31    收藏:0  评论:0  赞:0  阅读:255
isinstance()和type()
当我们拿到一个对象的引用时,如何知道这个对象是什么类型、有哪些方法呢? 使用type() 首先,我们来判断对象类型,使用type()函数: 基本类型都可以用type()判断: >>> type(123) <class 'int'> >>> type('str') <class 'str'> >>>
分类:其他   时间:2016-02-07 13:32:55    收藏:0  评论:0  赞:0  阅读:259
HDU-1869六度分离
Problem Description 1967 年,美国著名的社会学家斯坦利·米尔格兰姆提出了一个名为“小世界现象(small world phenomenon)”的著名假说,大意是说,任何2个素不相识的人中间最多只隔着6个人,即只用6个人就可以将他们联系在一起,因此他的理论也被称为 “六度分离”
分类:其他   时间:2016-02-07 13:32:48    收藏:0  评论:0  赞:0  阅读:176
Search for a Range
Given a sorted array of integers, find the starting and ending position of a given target value. Your algorithm's runtime complexity must be in the or
分类:其他   时间:2016-02-07 13:32:26    收藏:0  评论:0  赞:0  阅读:142
UVA11069 - A Graph Problem(DP)
UVA11069 - A Graph Problem(DP) 题目链接 题目大意:给你n个点。要你找出有多少子串符合要求。首先没有连续的数字,其次不能再往里面加入不论什么的数字而不违反第一条要求。 解题思路:要发现每一个数字选定后。之后能够有两种选择。所以f(n) = f(n + 2) + f(n
分类:其他   时间:2016-02-07 13:32:20    收藏:0  评论:0  赞:0  阅读:83
序列化
序列化: (1)概念:将内存中的java对象保存到文件中的过程称为序列化, (2)步骤: //1、将需要保存的对象的所在类实现序列化接口:Serializable Class Student implements Serializable{} //2、创建序列化对象: ObjectOutputStr
分类:其他   时间:2016-02-07 13:32:12    收藏:0  评论:0  赞:0  阅读:136
第四周 2.7-2.13
寒假过半。惶恐。 2.7 HDU 5622 KK's Chemical 只要不成环,每个点贡献就是K - 1. 所以先处理好环的。再找出每个环,数长度,算贡献。 1 #include <iostream> 2 #include <cstdio> 3 #include <cstring> 4 usin
分类:其他   时间:2016-02-07 13:31:51    收藏:0  评论:0  赞:0  阅读:215
模拟ArrayList底层实现
package chengbaoDemo; import java.util.ArrayList; import java.util.Arrays; import comman.Human; /** * ArrayList 底层实现 */ public class MyArrayList { /**
分类:其他   时间:2016-02-07 13:31:44    收藏:0  评论:0  赞:0  阅读:272
计算机专业课程英语缩写名词统计
PCI(Peripheral Component Interconnect) USB(Universal Serial Bus) AGP(Accelerated Graphic Ports) PCI EXPRESS RAID(Redundant Arrays of Independent Disks
分类:其他   时间:2016-02-07 13:31:37    收藏:0  评论:0  赞:0  阅读:247
Xcode-push到远程仓库不能使用邮箱名,需使用昵称
1.Xcode-push到远程仓库不能使用邮箱 2.Xcode-push到远程仓库需使用昵称
分类:其他   时间:2016-02-07 13:31:31    收藏:0  评论:0  赞:0  阅读:202
迭代器和生成器
定义一个函数,函数中用 yield 暂停函数,则这个函数就是一个生成器。生成器返回一个迭代器。 yield 和 return 的区别: 1. 执行函数时, 到了return ,函数就结束了。 执行到了yield ,暂停, 如果yield 后面还有 语句, 下次调用 __next__() 方法可以继续
分类:其他   时间:2016-02-07 13:31:15    收藏:0  评论:0  赞:0  阅读:211
输入输出流——字符流部分
字符流 读数据:BufferedReader步骤: (1)创建FileReader和BufferedReader对象 FileReader f =new FileReader(文件路径); BufferedReader read=new BufferedReader(f); (2)调用readLin
分类:其他   时间:2016-02-07 13:31:08    收藏:0  评论:0  赞:0  阅读:116
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!