码迷,mamicode.com
首页 >  
搜索关键字:using stacks    ( 53729个结果
多文件上传简单实现
五一假期后的第一天上班,无聊,做了一个简单的多文件上传,如下:using System;using System.Collections.Generic;using System.ComponentModel;using System.Drawing;using System.Data;using ...
分类:其他好文   时间:2014-05-10 02:11:14    阅读次数:387
HDU 3032 Nim or not Nim?(sg函数)
题目链接暴力出来,竟然眼花了以为sg(i) = i啊....看表要认真啊!!!#include #include #include using namespace std;#define LL __int64int dp[10001];int sg(int x){ int flag[10001...
分类:其他好文   时间:2014-05-09 18:00:34    阅读次数:274
寻找最大的K个数(下)
接着昨天的写,里面的代码包含昨天的 1 #include 2 using namespace std; 3 #define N 50 4 5 //初始化数组 6 int a[] = {6, 2, 3, 4, 4, 3, 1, 2, 4, 4}; 7 //int a[] = {10,...
分类:其他好文   时间:2014-05-09 17:38:03    阅读次数:379
CentOS系统环境下安装MongoDB
原因:因为工作需要,集中管理log4j日志到MongoDB!进入MongoDB下载中心:http://www.mongodb.org/downloadsWe recommend using these binary distributions (官方推荐使用二进制版本!)根据自己的实际系统环境,下载...
分类:数据库   时间:2014-05-09 16:35:35    阅读次数:393
hdu 1598 find the most comfortable road
http://acm.hdu.edu.cn/showproblem.php?pid=1598 1 #include 2 #include 3 #include 4 #define maxn 2000 5 using namespace std; 6 const int inf=1<<30; 7...
分类:其他好文   时间:2014-05-05 10:53:38    阅读次数:344
hdu 1599 find the mincost route
http://acm.hdu.edu.cn/showproblem.php?pid=1599floyd找最小环。 1 #include 2 #include 3 #include 4 #define maxn 200 5 using namespace std; 6 const int inf...
分类:其他好文   时间:2014-05-05 10:52:15    阅读次数:315
createprocess并行运算
#include "stdafx.h"#include "windows.h"#include using namespace std;int _tmain(int argc, _TCHAR* argv[]){ STARTUPINFO si; PROCESS_INFORMATION...
分类:其他好文   时间:2014-05-05 10:31:18    阅读次数:412
行编辑程序、括号匹配检验
行编辑程序、括号匹配检验程序都是利用的栈的数据结构。而这两个 小程序也非常好的显示了栈先进后出的思想。由于程序本身很简短、清晰,所 以也就不做多的解释了,直接上代码了。 行编辑程序: #include #include using namespace std; int main() { stack sta; char ch = getchar(); while(ch!=EOF) ...
分类:其他好文   时间:2014-05-04 18:55:11    阅读次数:423
HDU-1015-Safecracker
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1015 深搜简单题 代码如下: #include #include #include #include using namespace std; string a; int t; int v,w,x,y,z; int vis[20]; int b[6]; int flag; int cmp(int...
分类:其他好文   时间:2014-05-04 18:09:00    阅读次数:352
HDU 3033 分组背包
题意: 给定n个物品 m元,k种商品 下面n行 tpye w v 表示物品的牌子,价格,价值(每个物品只有1件) 问:每个牌子至少买一件能获得的最大价值是多少 思路:分组背包 #include #include #include #include #include using namespace std; #define ll int ll n, m, k; l...
分类:其他好文   时间:2014-05-04 18:03:15    阅读次数:248
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!