码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
IOC:AutoFac使用demo
使用autofac 实现依赖注入1.引用 autofac.dll 和 autofac.configuration.dll2.新增接口 IDALusing System;using System.Collections.Generic;using System.Linq;using System.Te...
分类:其他好文   时间:2015-08-02 15:02:10    阅读次数:106
判断奇偶
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 判断奇偶{ class Program { static void Main(string...
分类:其他好文   时间:2015-08-02 14:59:06    阅读次数:108
三个数中找最大
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 三个数中找最大{ class Program { static void Main(str...
分类:其他好文   时间:2015-08-02 14:58:56    阅读次数:156
BFS POJ 2251 Dungeon Master
题目传送门 1 /* 2 BFS:这题很有意思,像是地下城,图是立体的,可以从上张图到下一张图的对应位置,那么也就是三维搜索,多了z坐标轴 3 */ 4 #include 5 #include 6 #include 7 #include 8 using namespace std; ...
分类:其他好文   时间:2015-08-02 14:54:12    阅读次数:96
hdu5339Untitled 暴搜
//给一个数a和一个数组b //问从数组选最少个数数ci使得a mod c1 mod c2 mod… mod cr=0 //由于b的长度<=20 先从大到小排序,然后直接暴搜就行 #include #include #include #include using namespace std ; const int maxn...
分类:其他好文   时间:2015-08-02 13:48:49    阅读次数:84
运营商电话
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 运营商电话{ class Program { static void Main(strin...
分类:其他好文   时间:2015-08-02 13:16:46    阅读次数:121
喷水装置(一)--nyoj题目6
喷水装置(一)时间限制:3000ms | 内存限制:65535KB难度:3描述现有一块草坪,长为20米,宽为2米,要在横中心线上放置半径为Ri的喷水装置,每个喷水装置的效果都会让以它为中心的半径为实数Ri(0 2 #include 3 #include 4 #include 5 using name...
分类:其他好文   时间:2015-08-02 13:15:39    阅读次数:109
判断奇数偶数
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 奇偶判断{ class Program { static void Main(string...
分类:其他好文   时间:2015-08-02 13:10:20    阅读次数:105
Rails
http://acm.hust.edu.cn/vjudge/problem/viewProblem.action?id=10753经典的出栈入栈问题:模拟栈就好了。#include#include#include#define N 1002;using namespace std;void cal(...
分类:其他好文   时间:2015-08-02 13:05:08    阅读次数:77
欧拉函数
description:欧拉函数用于求解与n互质且小于或等于n的数的个数  。例如 数8, 与8互质且小于等于8的数有1, 3, 5,7四个 算法分析: euler(n) = n *(1- 1/p1) *( 1- 1/p2) *( 1- 1/p3)*........其中p1,p2,p3..........为素数并且整除n code: #include using namespace std...
分类:其他好文   时间:2015-08-02 11:53:26    阅读次数:155
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!