码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
HDU 4708 Rotation Lock Puzzle
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4708测试数据:51 9 9 1 11 9 9 9 99 9 9 9 99 9 9 9 11 1 9 9 181 1 1 #include 2 #include 3 #include 4 using na...
分类:其他好文   时间:2015-04-29 21:28:28    阅读次数:119
BestCoder Round #33
A和B做法和官方题解一样C题我是用背包+map,先把任务按最早開始的时间进行排序,然后去背包,dp[j]表示j时间能得到最大的得分,然后就过了。。代码:A:#include #include #include using namespace std;int n, b;char str[205];in...
分类:其他好文   时间:2015-04-29 21:09:27    阅读次数:94
Slowlog中long_query_time时间设置以下的query
说到慢查询,有点老生常谈了,但是慢查询相关的有个参数可能会被很多人忽略。 log_queries_not_using_indexes 这个参数设置当查询没有使用索引的情况下,是否记录到slowlog中。 如果你使用的mysql版本大于5.6.5,也可以通过设置 log_throttle_queries_not_using_indexes 这个参数表示每分钟允许记录到slowlog且未使用索引的次数。默认值为0,标识没有限制。...
分类:其他好文   时间:2015-04-29 19:57:38    阅读次数:273
HDU 1054 树型dp
#include #include #include #include #include #include #include #include #include #include #define INF 100000000 using namespace std; int n; vector ma[1515]; int dp[1510]; int fun(int x){ ...
分类:其他好文   时间:2015-04-29 19:55:05    阅读次数:139
OpenCV_图像梯度化
OpenCV_图像梯度化 #include "stdafx.h" #include "cv.h" #include "cxcore.h" #include "highgui.h" using namespace std; using namespace cv; int main(int argc, char **argv) { CvPoint center;//定义一个二维坐标的点 do...
分类:其他好文   时间:2015-04-29 19:54:09    阅读次数:180
Wormholes.(POJ-3259)
最短路Bellman的算法,只需用到判断是否存在负圈的部分,因为只要存在负圈,则一定有一条路可以返回起点并且时间还原(一开始题意理解的不好,注意如果返回起点的时间为负数,其实也是可以的,应该是默认了返回起始时间,因为时间不能为负。)  所以,实质就是判断是否存在负圈。 #include #include #include using namespace std; const int INF = ...
分类:其他好文   时间:2015-04-29 19:53:30    阅读次数:139
第八周项目1-实现复数类中的运算符重载
(1)请用类的成员函数,定义复数类重载运算符+、-、*、/,使之能用于复数的加减乘除。 /* * Copyright (c) 2015,烟台大学计算机学院 * All right reserved. * 作者:邵帅 * 文件:Demo.cpp * 完成时间:2015年04月29日 * 版本号:v1.0 */ #include using namespace std; class Complex...
分类:其他好文   时间:2015-04-29 19:53:16    阅读次数:108
3D相机在固定场景中的适配(Unity之3D相机适配)
有时候我们做固定平面的3D游戏的时候,有3D镜头适配的需求,最近正好遇到了,临时编了一个,拿出来和大家一起分享:using UnityEngine; using System.Collections; public class ScreenUnit : MonoBehaviour { private float height = 480; private float width ...
分类:编程语言   时间:2015-04-29 19:48:25    阅读次数:160
递推DP POJ 1163 The Triangle
题目传送门 1 /* 2 数塔 3 自底向上 4 */ 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace std;12 13 const int MAXN...
分类:其他好文   时间:2015-04-29 19:42:27    阅读次数:158
有关C#中使用if else和try catch的问题及效率问题
本来if esle 是流程控制 try catch是异常处理,本身其实是没有可比性的,但是开发过程中有的人很容易混用,而且两者有的时候效果似乎一样,所以我还是用了个简单的测试来简单的比较下。不多说,直接上代码:页面test.aspx.cs的代码如下using System;using System....
分类:Windows程序   时间:2015-04-29 19:34:57    阅读次数:204
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!