码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
hdu 1880 魔咒词典(字符串hash)
题目链接:hdu 1880 魔咒词典 题意: 给你一个10w的词典,让你输出对应的字段。 题解: map暴力存字符串肯定会卡内存,这里用BKDR字符串hash一下,用map映射一下。 1 #include<bits/stdc++.h> 2 #define F(i,a,b) for(int i=a;i ...
分类:其他好文   时间:2017-02-04 21:11:07    阅读次数:266
跟鸡蛋有关的问题
还是一筐鸡蛋 1个1个拿完 2个2个拿剩1个 3个3个拿剩1个 4个4个拿剩1个 5个5个拿剩1个 6个6个拿剩1个 7个7个拿拿完 问有多少个鸡蛋 ...
分类:其他好文   时间:2017-02-04 20:16:15    阅读次数:183
Android中app开机自启动的开发
(1)首先添加权限开机启动权限 (2)注册一个BroadcastReceiver来检测android系统开机时发出的开机广播 这里要强调的是,开机启动可以启动app的Activity也可以启动服务,这就看app的具体需求了,我这里是启动的MainActivity (3)在配置文件里面注册服务 ...
分类:移动开发   时间:2017-02-04 19:59:09    阅读次数:238
Java进制转换
java进制转换java中进行二进制,八进制,十六进制,十进制间进行相互转换 十进制转成十六进制:Integer.toHexString(int i)十进制转成八进制Integer.toOctalString(int i)十进制转成二进制Integer.toBinaryString(int i)十六 ...
分类:编程语言   时间:2017-02-04 19:48:29    阅读次数:201
汇编 ? cdecl 函数调用约定,stdcall 函数调用约定
知识点: ? cdecl 函数调用约定 ? stdcall 函数调用约定 ? CALL堆栈平衡 配置属性--> c/c++ -->高级-->调用约定 一、cdecl调用约定 VC++默认约定__cdecl 1、源代码 int __cdecl add1(int a,int b) { return a+... ...
分类:其他好文   时间:2017-02-04 19:48:07    阅读次数:214
29. Divide Two Integers
Divide two integers without using multiplication, division and mod operator.If it is overflow, return MAX_INT.分析不能用除法,所以使用减法不断减 除数,同时对 除数 倍乘,进行加速除数:3 ... ...
分类:其他好文   时间:2017-02-04 18:15:50    阅读次数:154
opencv之读取pts文件
1 #include 2 #include 3 #include 4 using namespace cv; 5 using namespace std; 6 7 8 int main() 9 { 10 Mat image(600, 600, CV_8UC3); 11 vector points; ... ...
分类:其他好文   时间:2017-02-04 16:34:33    阅读次数:237
ServiceContract,OperationContract
代码如下 [ServiceContract] //服务协定定义 using System.ServiceModel; public interface IInterface1 { [OperationContract] //要公开的服务方法 string Function1(int value); ...
分类:其他好文   时间:2017-02-04 16:26:37    阅读次数:189
杭电2023
1 #include 2 double a[51][6]; 3 int main() 4 { 5 int n,m,i,j,t; 6 double s,x; 7 while(~scanf("%d%d",&n,&m)) 8 { 9 for(i=0; i<n; ++i) 10 for(j=0; j<m; ... ...
分类:其他好文   时间:2017-02-04 16:24:21    阅读次数:130
敏感数据加密
今天有同事问我如何给数据库中的敏感数据加密问题,开始没相到什么方法,后来查了下手册,可以通过 PostgreSQL 的 pgcrypto 模块实现,下面是实验步骤: 一 环境准备--1.1 创建外部模块 pgcrypto --1.2 创建测试表 mydb=> create unique index ...
分类:其他好文   时间:2017-02-04 16:21:42    阅读次数:123
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!