码迷,mamicode.com
首页 >  
搜索关键字:import include 引号 单书名号 objectivec    ( 160216个结果
[HDU 1166 敌兵布阵] 线段树 或 树状数组
1 #include 2 #include 3 #include 4 using namespace std; 5 int n,C[50005]; 6 //-------------------------- 7 int lowbit(int x){ 8 return x&-x; 9 }1...
分类:其他好文   时间:2014-07-22 23:12:33    阅读次数:311
2014华为编程比赛-筷子问题
//华为编程:筷子,找到第一个单对的筷子#include #define max 37int main(){ int n,i,j; int a[max]; int flag=0; int error=-1; scanf("%d",&n); if(n>max) { printf("...
分类:其他好文   时间:2014-07-22 23:12:15    阅读次数:325
Codeforces Round #243 (Div. 1)
---恢复内容开始---A枚举l,r 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #include 8 #include 9 #include10 using namespace std;11 #defin....
分类:其他好文   时间:2014-07-22 23:12:13    阅读次数:311
Chap3: question: 11 - 18
11. double 数值的整数次方note: 浮点数表示时有误差,判等时必须自己根据精度要求实现。#include #include using namespace std;bool equal(double num1, double num2) // key 1{ if(num1 - num2 ...
分类:其他好文   时间:2014-07-22 23:11:56    阅读次数:436
数组与指针——参数
引入:#include#includevoidfun(char**q){exit;}voidmain(){char**p,a[6][8];p=a;fun(a);}编译不能通过!ERROR:不能将”char(*)[8]”类型的值分配到”char**”类型的实体。ERROR:”char(*)[8]”类型...
分类:其他好文   时间:2014-07-22 23:11:34    阅读次数:313
Mysql Cookbook学习笔记第二章
1,使用python链接mysql # -*- coding: utf-8 -*-# connect.py --连接到MySQL服务器import sysimport MySQLdbtry: conn = MySQLdb.connect(db = "cookbook", host = "localh...
分类:数据库   时间:2014-07-22 23:11:15    阅读次数:518
Change ICON of MFC Application and Dialog
Change ICON of MFC Application and Dialoghttp://www.codeproject.com/Tips/406870/Change-ICON-of-MFC-Application-and-Dialog#include "FirstApp.h"#include...
分类:移动开发   时间:2014-07-22 23:10:35    阅读次数:553
[ACM] Color the ball [线段树水题][数组开大]
DescriptionN个气球排成一排,从左到右依次编号为1,2,3....N.每次给定2个整数a b(a 2 #include 3 #define maxn 300000 4 class Node{ 5 public: 6 int l,r; 7 __int64 add;//附加...
分类:其他好文   时间:2014-07-22 23:10:14    阅读次数:295
ios-表视图-demo7-cell的编辑
//// RootTableViewController.m// editcell//// Created by liyang on 14-4-29.// Copyright (c) 2014年 liyang. All rights reserved.//#import "RootTabl...
分类:移动开发   时间:2014-07-22 23:10:14    阅读次数:459
递归小题中的空间换时间思想
题目: 如数: 1 1 2 3 5 8 13 21 34 55 ......序号: 0 1 2 3 4 5 6 7 89 ...... 由用户输入序号,输出对应的数值。效果:实现代码:#include int bian(int num);//static int shu[100]={1,1};int...
分类:其他好文   时间:2014-07-22 23:10:13    阅读次数:353
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!