码迷,mamicode.com
首页 >  
搜索关键字:int    ( 143001个结果
Razor语法示例
隐式代码表达式:@model.Message显示代码表达式:1 + 2 = @( 1 + 2 )无编码代码表达式:@Html.Raw(model.Message)代码块:@{ int x = 123; string y = "because.";}文本和标记相结合:@foreach(var it.....
分类:其他好文   时间:2015-05-26 00:16:31    阅读次数:152
苹果(背包)
#include#include#includeusing namespace std;int bag[1001];struct Case{ int c,w;}apple[1010];/*int cmp(Case a,Case b){ return (1.0*a.w/a.c)>(1.0*b.w/b....
分类:移动开发   时间:2015-05-26 00:13:23    阅读次数:177
开心的小明(背包)
#include#includestruct Case{ int price,importance;}data[25];int main(){ int N,m,T,bag[30000],a,b; scanf("%d",&T); while(T--){memset(bag,0,sizeof(bag))...
分类:其他好文   时间:2015-05-26 00:04:47    阅读次数:132
Mysql性能优化
性能优化分为四大块: 表结构的优化(含索引) SQL语句的优化 底层参数优化 硬件配置优化一.表结构 为字段选择合适的数据类型(int>char>varchar 快) 表结构的设计,将字段多的表分解成多个表,增加中间表, 混用范式与反范式,适当冗余(可用触发器更新冗余列) 索引: ...
分类:数据库   时间:2015-05-26 00:02:35    阅读次数:249
cout 计算顺序问题
cout输出流的执行顺序下面是IBM的一道笔试题#include using namespace std;int fun( ) {cout using namespace std;int fun(int i) { cout << "f"<<i; return i; }int main() {int....
分类:其他好文   时间:2015-05-26 00:02:00    阅读次数:145
给出一个数组A,找出一对 (i, j)使得A[i] <= A[j] (i < j)并且j-i最大
题目:给出一个数组A,找出一对 (i, j)使得A[i] find(const vector &A) 2. { 3. int n = A.size(); 4. if(n == 0) 5. throw new invalid_argum...
分类:编程语言   时间:2015-05-25 23:54:37    阅读次数:245
打印九宫格
import java.util.Scanner;public class Jiugongge { public static void main(String[] args) { Scanner s=new Scanner(System.in); int x...
分类:其他好文   时间:2015-05-25 23:46:15    阅读次数:190
JAVA 类中方法参数与返回值
无参无返回值的方法,用public void 方法名,来声明;有参无返回值的方法,用public void 方法名,来声明;有参有返回值的方法,用public int 方法名(int i,int n),来声明(int 是参数的数据类型指定,也可以是其它数据类型,例如:String、char、doub...
分类:编程语言   时间:2015-05-25 23:43:53    阅读次数:152
CString、std::string格式化字符串
=============================CString================================== ?当有多个字串时,比如 ?? ? int ? n1 ? = ? 5; ?? ? int ? n2 ? = ? 10; ?? ? char ? sz1[] ? = ? "abcdefg"; ??...
分类:其他好文   时间:2015-05-25 22:39:26    阅读次数:144
hihocoder 1014 Trie树 字典树
题目链接: hihocoder 1014 代码: #include #include #include using namespace std; struct node{ int ans; node* next[26]; node() { ans=1; for(int ii=0;ii<26;ii++) ...
分类:其他好文   时间:2015-05-25 22:37:07    阅读次数:258
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!