码迷,mamicode.com
首页 >  
搜索关键字:cmp    ( 878个结果
[转]Java汉字按照拼音排序
最近项目上使用到汉字排序的问题,网上搜索了一下后普遍使用下面的方法比较。@Test public void test_sort_pinyin() { Collator cmp = Collator.getInstance(java.util.Locale.CHINA); Str...
分类:编程语言   时间:2016-01-20 18:51:43    阅读次数:176
[2016-01-19][C++][关于next_permutation]
[2016-01-19][C++][关于next_permutation][2016-01-19][POJ][1256]见POJ 1256next_permutation有第三个参数cmp函数地址,可以用来指定顺序...next_permutation生成方法123456取出6,取出5,已经取出的数...
分类:编程语言   时间:2016-01-19 19:07:09    阅读次数:146
HDU 1074 Doing Homework
好难想到... ... 状态压缩DP,写的较搓#include#include#include#include#include#include#include#includeusing namespace std;const int maxn=15;string CMP[40000];struct ...
分类:其他好文   时间:2016-01-18 19:13:41    阅读次数:188
HDU 1069 Monkey and Banana
最长上升序列变形#include#include#include#includeusing namespace std;const int maxn=1000;struct X{ int x,y,z;} s[maxn];int n,tot;int dp[maxn];bool cmp(const...
分类:其他好文   时间:2016-01-17 12:18:38    阅读次数:123
根据结构体的一部分,进行排序,从而对该结构体排序
先附上我写的 不能通过的代码#include#includeusing namespace std;struct arrow{ int a,b;};bool cmp(arrow a,arrow b){ return a.a+"); for(q=0;q\n"...
分类:编程语言   时间:2016-01-11 19:56:56    阅读次数:167
常见汇编代码
# 常见汇编代码 #1. 编写程序:比较AX,BX,CX中带符号数的大小,将最大的数放在AX中 code segment assume cs:code mov ax,32 mov bx,74 mov cx,23 sort: cmp ax,bx jge X ;如果ax大于等于bx就跟cx比较 ...
分类:其他好文   时间:2016-01-08 00:19:54    阅读次数:138
其他数出现两次的数组中三个只出现一次的数
#include #include //#include /* 注:algorithm是C++头文件,不能用于纯C中*/typedef struct{ int num1; int num2; int num3;}ThreeNumber;int isOdd(int num);int cmp(const...
分类:编程语言   时间:2016-01-06 11:33:44    阅读次数:129
bistu新生-1004
#include "stdio.h"#include "stdlib.h"#include "math.h"int cmp(const void *a,const void *b){return(*(int *)a-*(int *)b); }int main(){int i,j,n,T,x[1000...
分类:其他好文   时间:2015-12-31 00:10:26    阅读次数:184
计算机学院大学生程序设计竞赛(2015’12) 1002 Polygon
#include#include#include#include#includeusing namespace std;struct Point{ double x; double y;} p[1001], px[10001];int n;double eps=1e-8;int cmp(...
分类:其他好文   时间:2015-12-27 19:04:51    阅读次数:209
Hdoj—1789
//大意理解 先排序 最早交的里面选最大值 扫描完了加没写的 排序后 应该是早交的和扣分多的在前 用结构体吧/*#include#includeint cmp(void const* a,void const*b){ if(*(st*)a->t==*(st*)b->t) return *...
分类:其他好文   时间:2015-12-26 16:39:16    阅读次数:193
878条   上一页 1 ... 44 45 46 47 48 ... 88 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!