码迷,mamicode.com
首页 >  
搜索关键字:temp    ( 7776个结果
最长不下降子序列 O(nlogn)
1 #include 2 int a[1000] , temp[1000] ; 3 int n , top ; 4 5 int binary_search (int x) { 6 int fir = 0 ; 7 int last = top ; 8 int mid ; 9...
分类:其他好文   时间:2015-02-03 16:36:51    阅读次数:169
Ubuntu12.1下独立安装PHP的扩张库
Ubuntu是一个在Linux界非常不错的系统  ,其中安装PHP非常普遍,那么如何独立安装PHP扩展库? 参考步骤如下: 1.进入php源码包下的ext;(这里PHP版本php-5.4.37,那扩展包gd库举例) zy@zy-virtual-machine:~/temp/php-5.4.37/ext$ cd gd 2.通过phpize工具生成configure脚本文件 zy@zy-...
分类:Web程序   时间:2015-02-03 15:06:09    阅读次数:186
UVa 253
背景:一次编译通过加一次ac就是这么爽!!!!!! 思路:枚举六个面朝上,每种情况旋转4次的所有情况,一共24种,全部枚举出来比较即可!这里比较巧妙的是把每一种情况都写作一个长度为6的字符串,并在第七位加一个'\0 ',这样就可以用strcmp来比较了。 学习:1. #include #include int main(void){ char l[7],r[7],temp[13...
分类:其他好文   时间:2015-02-03 13:24:10    阅读次数:187
最大连续子序列&&MAX SUM
//错的莫名其妙的O w O第二个的格式也是莫名其妙的Input测试输入包含若干测试用例,每个测试用例占2行,第1行给出正整数K( 2 #include 3 int main() 4 { 5 int first,last,temp,n,i,j,flag,thissum; 6 ...
分类:其他好文   时间:2015-02-02 21:18:54    阅读次数:220
C/C++内存存储
#include #include "string.h"#include "malloc.h"void Swap(int a,int b){ int temp; temp=a; a=b; b=temp;}int Get_Int(int a){ int i=1+a; ...
分类:编程语言   时间:2015-02-02 07:04:47    阅读次数:243
文件和数组的排序
#include #include #include #include using namespace std;template void order(vector &a){ int count = a.size(); T temp; for (int i=0;ia[j+1])...
分类:编程语言   时间:2015-02-01 23:07:29    阅读次数:179
C#学习心得1
1:Unicode转义字符使用 Console.WriteLine(@"C:\TEMP\MyDir\MyFile.doc"); //等价于下面的 Console.WriteLine("C:\\TEMP\\MyDir\\MyFile.doc");在Windows中寻找目录很...
分类:Windows程序   时间:2015-02-01 17:43:14    阅读次数:186
HDOJ 1106 排序
【题意】:直接求解就行。注意这个测试用例 15555555555552。 WA一次(缺少temp为0的判断): if (!strlen(temp)) continue; 【代码:AC】 #include #include #include #include #include using namespace std; #de...
分类:编程语言   时间:2015-02-01 13:32:28    阅读次数:183
HDOJ 1097 A hard puzzle
【题意】:输入a,b,数字a^b最后边的那个数字。思路:知道n个数相乘,最后一位的周期最大为4就行。 【代码】 #include #include using namespace std; int main() { int a = 0, b = 0; while (cin >> a >> b) { int t[4], temp = a%10;...
分类:其他好文   时间:2015-02-01 12:10:18    阅读次数:123
Merge Sort
1 #include 2 #include 3 void Merge( int source[] , int temp[] , int start , int mid , int end ) 4 { 5 int i = start , j = mid + 1 , k = start ; 6...
分类:其他好文   时间:2015-02-01 10:44:06    阅读次数:145
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!