码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
简单的扫雷代码,适合初学者
using UnityEngine; using System.Collections; public class Grid { public int x; // 记录x坐标 public int y; // 记录y坐标 public bool hasBoom; // 是否有雷 pub...
分类:其他好文   时间:2015-06-26 09:19:23    阅读次数:126
UVa 10188 - Automated Judge Script
题目:给你一些题目的输出结果,判断是AC,PE还是WA。 分析:模拟。按照题意模拟即可,注意PE条件为所有数字字符出现顺序相同即可。 说明:想起很多年前写的OJ的后台判题程序了╮(╯▽╰)╭。 #include #include #include #include #include #include using namespace std; char list1[101][1...
分类:其他好文   时间:2015-06-26 09:14:54    阅读次数:142
UVa1587 Box
#include #include #include using namespace std;int main(){ set s; // 12个数字中不能出现3个以上不同的值,最多只有三种值:长、宽、高 int face[6]; int i = 0, w, h; while (cin >> w >>...
分类:其他好文   时间:2015-06-26 09:07:25    阅读次数:113
LeetCode之“链表”:Linked List Cycle && Linked List Cycle II
1.Linked List Cycle 题目链接 题目要求: Given a linked list, determine if it has a cycle in it. Follow up: Can you solve it without using extra space? ...
分类:其他好文   时间:2015-06-26 00:21:19    阅读次数:211
csharp: get Web.Services WebMethod
using System;using System.Collections.Generic;using System.Linq;using System.Web;using System.Web.Services.Description;using System.Web.Services.Proto...
分类:Web程序   时间:2015-06-26 00:11:38    阅读次数:221
OpenCV入门:(二:加载,显示,修改以及保存图片)
目标: 1.从图片文件打开图片(imread) 2.显示图片(namedWindow和imshow) 3.转换当前图片为灰色图片(cvtColor) 4.保存图片(imwrite) 代码: #include #include #include #include using namespace cv;...
分类:其他好文   时间:2015-06-25 22:55:05    阅读次数:1656
[综] PCA降维
http://blog.json.tw/using-matlab-implementing-pca-dimension-reduction設有m筆資料, 每筆資料皆為n維, 如此可將他們視為一個mxn matrix。若資料的維度太大時, 可能不利於分析, 例如這m筆資料用作機器學習。PCA的想法是算...
分类:其他好文   时间:2015-06-25 22:43:49    阅读次数:199
hdu 1083 Courses
描述:有p门的课,每门课都有若干学生,现在要为每个课程分配一名课代表,每个学生只能担任一门课的课代表,如果每个课都能找到课代表,则输出"YES",否则"NO"。 二分匹配 #include #include #define maxn 305 using namespace std; int c,s; int rem[maxn][maxn]; int visit[maxn],map[maxn];...
分类:其他好文   时间:2015-06-25 21:20:40    阅读次数:139
C++ Primer 学习笔记_9_标准库类型(续3) -- biteset
?? 标准库类型(四) --biteset 序言:     位是用来保存一组项或条件的yes/no信息[标识]的简洁方法。 [cpp] view plaincopyprint? #include   using std::bitset;   #include using std::bitset; 正文: 1、bitset对象的定义和初...
分类:编程语言   时间:2015-06-25 21:18:33    阅读次数:155
hdu 2546 饭卡
单独拿5块出来买最贵的东西,然后对接下来的m-5块钱和n-1道菜做01背包处理 #include #include #include #define maxn 1000+5 using namespace std; int n,m; int p[maxn]; int dp[maxn]; int main() { while(cin>>n&&n) { for(int i=0;i>p[i]...
分类:其他好文   时间:2015-06-25 21:16:25    阅读次数:117
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!