码迷,mamicode.com
首页 >  
搜索关键字:le    ( 2309个结果
hdu5391Zball in Tina Town
//求(n-1)!%n //n 为合数,答案为0,n为素数 , 威尔逊定理可得 //判定一个自然数是否为素数的充分必要条件。即:当且仅当p为素数时:( p -1 )! ≡ -1 ( mod p ) //答案为(n-1) 注意4的时候 #include #include #include using namespace std ; const int maxn = 1e5 +10 ; int le...
分类:其他好文   时间:2015-08-16 16:44:44    阅读次数:132
解决Thinkpad E450 外接显示器后没有声音的问题
昨天把公司配的ThinkPad E450 带回来了,今天用的时候一切正常没什么问题。因为要看边看视频边做点别的,我就外接一台显示器,说出来我的这台显示器,你们绝对想不到是什么显示器。我的这台显示器是一台联想的显示器,联想的显示器有什么特别的,真是的。别急,听我说:你见过LEGEND牌的显示器吗?LE...
分类:其他好文   时间:2015-08-16 16:29:12    阅读次数:5497
【LeetCode】104 - Maximum Depth of Binary Tree
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:其他好文   时间:2015-08-15 22:42:42    阅读次数:138
hdu 1711 Number Sequence(kmp)
题意:裸kmp思路:kmp模板#include#include#includeusing namespace std;#define MaxSize 10005int s[1000005],t[10005];int next2[MaxSize];void GetNext(int t[],int le...
分类:其他好文   时间:2015-08-14 13:37:05    阅读次数:109
手写一个节点大小平衡树(SBT)模板,留着用
看了一下午,感觉有了些了解,应该没有错,有错希望斧正,感谢 #include #include struct s { int key,left,right,size; }tree[10010]; int top; void left_rot(int &x)// 左旋 { int y=tree[x].right; tree[x].right=tree[y].left; tree[y].le...
分类:其他好文   时间:2015-08-13 20:15:29    阅读次数:153
UTF8,UTF16,UTF32,UTF16-LE,UTF16-BE,GBK 之间的转换
Unicode是Unicode.org制定的编码标准,目前得到了绝大部分操作系统和编程语言的支持。Unicode.org官方对Unicode的定义是:Unicode provides a unique number for every character。可见,Unicode所做的是为每个字符定义了...
分类:其他好文   时间:2015-08-12 23:28:27    阅读次数:140
360编程题:挑选镇长
#include using namespace std; typedef struct Relation_ { int first; int end; }Re; typedef struct Leader_ { int mun; int*pResult; }Le; Le GetLeader(int Sum,int M,Re*pRelation) { int i=0; int*p1...
分类:其他好文   时间:2015-08-12 10:14:04    阅读次数:137
FFT快速傅里叶模板
FFT快速傅里叶模板…… /* use way: assign : h(x) = f(x) * g(x) f(x):len1 g(x):len2 1. len = 1; while(len < 2 * len1 || len < 2 * len2) len <<= 1; 2. for i=0 to len1-1 : x1[i](f(i),0) for i=le...
分类:其他好文   时间:2015-08-12 01:25:00    阅读次数:137
【VBA研究】生成随机密码
作者:iamlaosong 很简单的一个功能,网上也有很多在线生成器,也有小工具可以下载,这儿用VBA做一个,结果就保存到当前工作表中,简单、快速。生成函数也可以放到其它程序中使用。函数实现的流程是:用一个变量保存所有用到的字符,然后根据级别取不同的子串,最后产生随机数,从子串中取出字符合并出随机密码。程序如下: '生成密码并保存到当前工作表中 Sub GetPassword() le...
分类:编程语言   时间:2015-08-11 18:46:21    阅读次数:162
2、跑马灯测试程序(设置一定范围的gpio)
C:\Users\LiTao\Desktop\儿童智能硬件资料\nrf51822\nRF51822EK_TM配套资料\EK_TM测试程序\跑马灯测试程序 1 int main(void) 2 { 3 uint8_t output_state = 0; 4 5 // Configure LE...
分类:其他好文   时间:2015-08-11 07:04:31    阅读次数:154
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!