码迷,mamicode.com
首页 > 其他好文
CLR 关于强命名程序集 .
如何创建强命名程序集(StrongNameAssembly)创建一个强命名程序集首先需要获得一个用强命名实用工具(StrongNameUtility,即SN.exe,.NETSDK自带)产生的密钥。下面简要介绍一下SN.exe的一些用法。要产生一个公钥/私钥对:a)SN–kMyCompany.Key...
分类:其他好文   时间:2015-08-15 18:06:47    阅读次数:129
BZOJ2976 : [Poi2002]出圈游戏
首先模拟一遍得到n个同余方程,然后用扩展欧几里得求出最小的可行解即可,时间复杂度$O(n^2)$。#include#define N 30int n,i,j,k,x,y,a[N],b[N],d[N],ans;namespace Solve{int flag=1,k=1,m=0,d,x,y;int e...
分类:其他好文   时间:2015-08-15 18:06:33    阅读次数:112
【转】ZOJ Problem Set - 1101 Gamblers:非暴力枚举
思路:将所有数据从小到大排序,这样每次从序列的后面寻找答案ans,自然的确保了最大赌资性.接下来就要枚举其他三个数了 进而 判断 此时的ans是否存在 其他三个数 和 等于ans.而在三个数中至少有一个数在ans的前面 其他的两个数可能在ans的后面 因为存在负数.这样就可以先枚举两个 赌注 进而第...
分类:其他好文   时间:2015-08-15 18:08:50    阅读次数:97
WCF接口获取请求的IP地址
//提供方法执行的上下文环境 OperationContext context = OperationContext.Current; //获取传进的消息属性 MessageProperties properties = cont...
分类:其他好文   时间:2015-08-15 18:07:50    阅读次数:315
PAT 1078. Hashing (25)
1078. Hashing (25)The task of this problem is simple: insert a sequence of distinct positive integers into a hash table, and output the positions of t...
分类:其他好文   时间:2015-08-15 18:07:29    阅读次数:152
POJ 1458 Common Subsequence
Description:A subsequence of a given sequence is the given sequence with some elements (possible none) left out. Given a sequence X = another sequenc....
分类:其他好文   时间:2015-08-15 18:05:44    阅读次数:104
DrawableLayout
提供一个在窗口顶层显示,可从窗口边缘拖出的container组件。DrawableLayout本身作为整个容器,先进行默认显示内容的布局,再进行拖出菜单的内容布局。也就是一个DL包含两个或三个子控件,第一个子控件是默认布局,显示在下层;第二、三个子控件是菜单布局(方向不同),默认不显示,划出时显示在...
分类:其他好文   时间:2015-08-15 18:05:19    阅读次数:570
go read text file into string array
http://stackoverflow.com/questions/5884154/golang-read-text-file-into-string-array-and-write方法一 1 package main 2 3 import ( 4 "bufio" 5 "fmt" 6 ...
分类:其他好文   时间:2015-08-15 18:05:15    阅读次数:94
angular-utils-pagination 使用案例
angular-utils-pagination是基于angular,bootstrap,jquery的一个分页插件,详细介绍以及使用方法参照:Git:https://github.com/michaelbromley/angularUtils/tree/master/src/directives/...
分类:其他好文   时间:2015-08-15 18:03:57    阅读次数:503
HDU 5371 Manacher Hotaru's problem
求出一个连续子序列,这个子序列由三部分ABC构成,其中AB是回文串,A和C相同,也就是BC也是回文串。求这样一个最长的子序列。Manacher算法是在所有两个相邻数字之间插入一个特殊的数字,比如-1,Manacher算法跑完之后,就计算出每个数字为中心的回文子序列的最大长度由题意可以知道,AB和BC...
分类:其他好文   时间:2015-08-15 18:06:32    阅读次数:115
hdu 2015 偶数求和
Problem Description有一个长度为n(n 2 #include 3 using namespace std; 4 int main() 5 { 6 int n,m,a,b; 7 while (~scanf("%d%d",&n,&m)) 8 { 9 ...
分类:其他好文   时间:2015-08-15 18:03:25    阅读次数:103
Bootstrap3组件
1. Glyphicons字体图标出于性能的考虑,所有图标都需要一个基类和对应每个图标的类。注意,为了设置正确的内补(padding),务必在图标和文本之间添加一个空格。图标类只能应用在不包含任何文本内容或子元素的元素上。1 这些图标可以应用到按钮、工具条中的按钮组、导航或输入框等地方。1 2 .....
分类:其他好文   时间:2015-08-15 18:04:33    阅读次数:132
【问题】tableView的每组的头部不不能滚动的解决方案
- (void)scrollViewDidScroll:(UIScrollView*)scrollView{ if (scrollView == self.tableView) { CGFloat sectionHeaderHeight = HeaderHeight; ...
分类:其他好文   时间:2015-08-15 18:04:18    阅读次数:98
椭圆面积的几何证法
分类:其他好文   时间:2015-08-15 18:03:29    阅读次数:133
CRC校验,发送端产生校验码
/****************************************************************************** * Compilation: javac CRC16CCITT.java * Execution: java CRC16CCIT...
分类:其他好文   时间:2015-08-15 18:01:56    阅读次数:316
NSDictionary,NSMutableDictionary 使用
NSDictionarykey --->value索引 --->内容存储键值对(1)三种创建方式:NSDictionary *dict = [NSDictionary dictionaryWithObject:@"Jony" forKey:@"name"]; NSArray *keys = @[@....
分类:其他好文   时间:2015-08-15 18:01:46    阅读次数:89
NSSet 使用
NSSet *s = [NSSet set];NSSet *s2 = [NSSet setWithObjective:@"a", @"b", @"c", nil];NSString *s3 = [s3 anyObject];NSMutableSet *s = [NSMutableSet set];[...
分类:其他好文   时间:2015-08-15 18:01:53    阅读次数:112
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!