码迷,mamicode.com
首页 >  
搜索关键字:pos    ( 22785个结果
poj 1021
图同构。一个神奇的算法居然0ms过。真是不科学。反例可以构造出来。还是没有针对他的数据。#include #include #include #include using namespace std;struct position{ int x,y; }pos[10010];in...
分类:其他好文   时间:2014-07-22 22:55:55    阅读次数:147
hdu 1896 Stones(优先队列)
# include # include # include using namespace std; struct node { int pos; int d; int num; friend bool operator n2.d;//仍的距离从小到大 return...
分类:其他好文   时间:2014-07-21 11:43:44    阅读次数:180
ListView单行刷新
在你要刷新adapter的地方这样写 position是点击listView的行位置 当然在执行下面2行的代码前要改变数据内容 例如: if (orderList[pos].getStatus() == 0) { orderList[pos].setStatus(1); } else { orderList[p...
分类:其他好文   时间:2014-07-21 10:28:52    阅读次数:174
string 到 Color 的转换示例:
string colorstr = "#FF4D4D4D";string hex = colorstr.ToString().Replace("#", "");byte alpha;byte pos = 0;if (hex.Length == 8){ alpha = System.Convert.ToByte(hex.Substring(pos, 2), 16); pos = 2;}else{ a...
分类:其他好文   时间:2014-07-20 09:15:00    阅读次数:345
uva 1368 - DNA Consensus String
题目上给的样例input格式存在一定问题,行末多空格。 在这上面纠结了几次…… #include #include #include const int maxn = 1100; int A[maxn]; int C[maxn]; int G[maxn]; int T[maxn]; char ans[maxn]; int ans_; int m,n; void judge(int pos) ...
分类:其他好文   时间:2014-07-19 23:26:29    阅读次数:347
CodeForces 42C Safe cracking 规律题
题目链接:点击打开链接 3个数为一组,找最大的一个数让它减少,则显然是有解的,分类讨论一下即可 #include #include #include #include #include using namespace std; int n, k; int a[4]; vector >ans; int maxpos(){ int pos = 0; for(int i = 1; i < 4; ...
分类:其他好文   时间:2014-07-19 08:21:07    阅读次数:227
文本分类之情感分析 – 朴素贝叶斯分类器
情感分析正成为研究和社交媒体分析的热点领域,尤其是在用户评论和微博上。它是文本挖掘的一种特殊情况,一般关注在识别正反观点上,虽然它常不很准确,它仍然是有用的。为简单起见(因为训练数据容易获取),我将重点放在2个可能的情感分类:积极的和消极的。 NLTK 朴素贝叶斯分类 NLTK附带了所有你需要的情感分析的入手的东西:一份带有分为POS和NEG类别的电影评论语料,以及一些可训练分类器。我...
分类:其他好文   时间:2014-07-19 02:14:25    阅读次数:338
uva 1586 - Molar mass
在想更好的处理方法,现在却只能有这个糟烂的代码了……不好意思#include #include #include using namespace std; const int maxn=200; char s[maxn]; double ans[maxn]; int get_num(int pos,int len) { int temp; for(int i=pos;i<len...
分类:其他好文   时间:2014-07-18 18:07:51    阅读次数:220
讲讲金融业务(二)--银行自助结算业务系统架构(A)
本篇论文主要读者适合对银行业务感兴趣的技术开发者,我这里尽量用普通读者能读懂的语言来描述银行自助结算业务系统架构。   在讲之前,先要阐述一个概念,即银联:     银联即各家银行的联合体,各家加入银联的银行都是银联的股东,银联的主要业务为:POS/ATM等自助结算收单业务,银联在线支付,互联网手机支付三项业务。   在没有银联的之前,自助结算业务系统架...
分类:其他好文   时间:2014-07-18 12:24:26    阅读次数:211
字符串匹配算法——KMP算法
处理字符串的过程中,难免会遇到字符匹配的问题。常用的字符匹配方法1. 朴素模式匹配算法(Brute-Force算法) 求子串位置的定位函数Index( S, T, pos). 模式匹配:子串的定位操作通常称作串的模式匹配。 目标串:主串S。 模式串:子串T。 匹配成功:若存在T的每个字符依次...
分类:其他好文   时间:2014-07-14 21:03:19    阅读次数:286
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!