码迷,mamicode.com
首页 >  
搜索关键字:st    ( 5888个结果
POJ 3693 Maximum repetition substring
刚开始一直WA,一直以为是自己往前延展的时候写错了,后来才发现是ST写错了 +-*/的优先级要比位运算优先级高,以后碰上不清楚优先级的运算一定要加括号 #include #include #include #include using namespace std; #define N 100010 char s[N]; int r[N],wa[N],wb[N],wv[N],ws[N],sa...
分类:其他好文   时间:2015-04-13 10:59:50    阅读次数:99
Assembly-Line scheduling------code in c++
#include #include #include using namespace std; int num_of_st; void getdata(vector & v, int n) { if (!v.empty()) throw runtime_error("v empty"); int t; for (int i = 0; i > t...
分类:编程语言   时间:2015-04-13 09:43:23    阅读次数:189
[AndroidTips]startService与bindService的区别
Service的生命周期方法比Activity少一些,只有onCreate, onStart, onDestroy我们有两种方式启动一个Service,他们对Service生命周期的影响是不一样的。1 通过startService Service会经历 onCreate --> onStart st...
分类:移动开发   时间:2015-04-13 00:02:59    阅读次数:255
ST表
比如维护一个最大值,注意初始化的log[0] = -1 Σ( ° △ °|||)︴逢写必错有木有! 1 #include 2 #include 3 #include 4 #include 5 #include 6 #define REP(i, s, n) for(int i = s; i ...
分类:其他好文   时间:2015-04-12 14:48:02    阅读次数:186
centos install rtl8188CUS wlan driver
system: Centos6.6 wlan: nw 336v2 step 1  insert usb              #lsusb -- find your device step 2 download driver             link1     link2             kernel-devel,gcc is necessary  st...
分类:其他好文   时间:2015-04-12 09:22:26    阅读次数:185
题目1108:堆栈的使用
题目描述: 堆栈是一种基本的数据结构。堆栈具有两种基本操作方式,push 和 pop。Push一个值会将其压入栈顶,而 pop 则会将栈顶的值弹出。现在我们就来验证一下堆栈的使用。输入: 对于每组测试数据,第一行是一个正整数 n,0 st=new Stack();11 Str...
分类:其他好文   时间:2015-04-11 19:14:43    阅读次数:194
C++洗牌算法
1、使用标准库中的random_shuffle()函数实现很简单,代码如下: int main() {     vectorint> s_stl;     for (int i=0; i    random_shuffle(s_stl.begin(),s_stl.end());     cout "使用C++算法库:";     for (vectorint>::iterator it=s_st...
分类:编程语言   时间:2015-04-11 13:19:49    阅读次数:237
C++ 虚函数表解析(转)——转自陈皓
http://blog.csdn.net/haoelC++ 虚函数表解析 - 陈皓专栏 【空谷幽兰,心如皓月】 - 博客频道 - CSDN.NEThttp://blog.csdn.net/haoel/article/details/1948051/#includeusing namespace st...
分类:编程语言   时间:2015-04-11 11:46:42    阅读次数:136
How to Convert a workbook/WorkSheet to PDF
如何将Workbook/Worksheet保存为PDF, 这个主要用到了ExportAsFixedFormat方法 ,可以将Workbook、Sheet、Chart 或 Range转换为PDF 或XPS格式 1 Sub ConvertSheetToPDF() 2 Dim fileName As St...
分类:其他好文   时间:2015-04-11 06:33:12    阅读次数:199
结构体数组排序
using System;using System.Collections;using System.Collections.Generic;using System.Text;namespace 结构体冒泡排序{ class Program { struct student { public st...
分类:编程语言   时间:2015-04-10 20:11:20    阅读次数:122
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!