码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
文件和数组的排序
#include #include #include #include using namespace std;template void order(vector &a){ int count = a.size(); T temp; for (int i=0;ia[j+1])...
分类:编程语言   时间:2015-02-01 23:07:29    阅读次数:179
HDU 1717 小数化分数2
http://acm.hdu.edu.cn/showproblem.php?pid=1717之前莫名WA了挺多次的有趣的题orz 感觉还是写麻烦了注意字符串处理代码: 0MS 1068K#include #include using namespace std;int gcd(int m, int ...
分类:其他好文   时间:2015-02-01 21:44:34    阅读次数:223
C#第一周
长字符的表示 1 namespace ConsoleApplication6 2 { 3 class Program 4 { 5 static void Main(string[] args) 6 { 7 string name...
分类:Windows程序   时间:2015-02-01 21:44:10    阅读次数:206
HDU 4771 Stealing Harry Potter's Precious
http://acm.hdu.edu.cn/showproblem.php?pid=4771题意:给定一副NxM的地图, '#'不可走, '.'可走, '@'为起点再给出K个(0#include #include #include using namespace std;#define _ ios_...
分类:其他好文   时间:2015-02-01 21:39:15    阅读次数:174
POJ 3080 Blue Jeans
这题绝对是被坑的滴血,我真想对网上某某人说,去你大爷的。 这题的思路挺简单,本来我以为要用的什么高深的算法,可是听别人说,直接暴力就可以解决,于是就做了。本来很快写好代码,可是语句代码坑了我好长好长时间。 #include #include #include #include #include #include using namespace std; char dna[11][65]; ch...
分类:其他好文   时间:2015-02-01 20:29:30    阅读次数:207
poj 2236
并查集水题 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 int n,m,t; 9 struct node10 {11 int x,y;12 }A[1005...
分类:其他好文   时间:2015-02-01 20:18:09    阅读次数:121
POJ 1961 Period (KMP)
解题思路:  利用next 数组的性质求解重复子串。循环节的长度为i - next[i]; #include #include #include #include #include #include #include using namespace std; const int maxn = 1000000 + 10; char s[maxn]; int n; int next[...
分类:其他好文   时间:2015-02-01 19:12:28    阅读次数:186
HDU 1254
http://acm.hdu.edu.cn/showproblem.php?pid=1254暴搜,状态是四维的(箱子和人的坐标),向一个方向推箱子还要判断人能否走到推的位置,1A#include #include #include #include using namespace std;int n...
分类:其他好文   时间:2015-02-01 19:02:44    阅读次数:171
HDU 1587 Flowers【贪心】
题意:给出n种花的价钱,和总的金额m,问最多能够买到多少朵花。先排序,然后就是便宜的花在能够买的范围内能够多买就多买#include #include #include #include using namespace std;int a[10010];int main(){ int n,m...
分类:其他好文   时间:2015-02-01 18:56:00    阅读次数:191
C# 面向对象
C# 面向对象 葫芦娃大战奥特曼----显示效果-----using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace....
分类:Windows程序   时间:2015-02-01 17:38:23    阅读次数:237
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!