自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(31)
  • 资源 (2)
  • 收藏
  • 关注

原创 c#---List共享空间的情况

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace rand{ class Program { class E { public int a; public int

2016-03-26 16:39:33 567

原创 c#---HashSet对类的判重

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace rand{ class Program { class E { public int a; public int

2016-03-25 13:33:26 1318

原创 Divided Product

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Given two positive integers N and M, please divide N into several integers A1, A2, …, Ak (k >= 1), so that:0 < A1 < A2 < … < Ak;A1 + A2 + … + Ak = N;A1, A2

2016-03-18 15:32:56 304

原创 HIHO Drinking Game

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Little Hi and Little Ho are playing a drinking game called HIHO. The game comprises N rounds. Each round, Little Hi pours T milliliter of water into Little Ho

2016-03-18 11:48:47 370

原创 Lost in the City

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Little Hi gets lost in the city. He does not know where he is. He does not know which direction is north.Fortunately, Little Hi has a map of the city. The map

2016-03-17 22:12:38 616

原创 Clicker

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Little Ho is obsessed with a computer game called “Clicker”. In this game player spends coins to raise his heroes’ level and gains more coins by sending his h

2016-03-17 20:47:19 364

原创 Have Lunch Together

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Everyday Littile Hi and Little Ho meet in the school cafeteria to have lunch together. The cafeteria is often so crowded that two adjacent seats are hard to f

2016-03-17 15:11:58 451

原创 Highway

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 In the city, there is a one-way straight highway starts from the northern end, traverses the whole city southward, and finishes at the southern end. Due to so

2016-03-17 12:01:52 410

原创 Hamiltonian Cycle

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Given a directed graph containing n vertice (numbered from 1 to n) and m edges. Can you tell us how many different Hamiltonian Cycles are there in this graph?

2016-03-16 21:29:40 481

原创 Browser Caching

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 When you browse the Internet, browser usually caches some documents to reduce the time cost of fetching them from remote servers. Let’s consider a simplified

2016-03-16 16:56:46 516

原创 Combination Lock ---线段树

Finally, you come to the interview room. You know that a Microsoft interviewer is in the room though the door is locked. There is a combination lock on the door. There are N rotators on the lock, each

2016-03-16 12:31:26 405

原创 String Matching Content Length

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 We define the matching contents in the strings of strA and strB as common substrings of the two strings. There are two additional restrictions on the common s

2016-03-15 20:46:30 442

原创 Beautiful String

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 We say a string is beautiful if it has the equal amount of 3 or more continuous letters (in increasing order.)Here are some example of valid beautiful strings

2016-03-15 19:10:36 373

原创 Lucky Substrings

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 A string s is LUCKY if and only if the number of different characters in s is a fibonacci number. Given a string consisting of only lower case letters, output

2016-03-15 17:34:23 298

原创 买零食

时间限制:5000ms 单点时限:1000ms 内存限制:256MB 描述 小Ho很喜欢在课间去小卖部买零食。然而不幸的是,这个学期他又有在一教的课,而一教的小卖部姐姐以冷若冰霜著称。第一次去一教小卖部买零食的时候,小Ho由于不懂事买了好一大堆东西,被小卖部姐姐给了一个“冷若冰霜”的眼神,食欲都下降了很多。从那以后,小Ho就学乖了,去小卖部买东西只敢同时买3包以内的零食,并且价格加起来必须是

2016-03-13 15:42:38 698

原创 c#---写Excel

加入引用:using Excel = Microsoft.Office.Interop.Excel;using System.Reflection; // 引用这个才能使用Missing字段 右键—>添加引用 Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Applicat

2016-03-13 13:06:26 370

原创 c#---传址

using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace rand{ class Program { static void swap(ref int p, ref int q) { int tm

2016-03-07 16:10:49 401

原创 c#---产生随机数

Random r = new Random();r.NextDouble() //产生0、1之间的随机数 int i1=r.Next(0,1001); //产生0到1000的随机数int i2=r.Next(0,10); //产生0到9的随机数int i3=r.Next(0,101); //产生0到100的随机数

2016-03-07 16:03:35 481

原创 Coordinates

时间限制:10000ms 单点时限:1000ms 内存限制:256MB 描述 Give you two integers P and Q. Let all divisors of P be X-coordinates. Let all divisors of Q be Y-coordinates.For example, when P=6 and Q=2, we can get the co

2016-03-06 19:33:56 619

原创 STL---按行读取数字串,并分割转为数字

t2.txt 效果 代码#include "iostream"#include "fstream"using namespace std;int main(){ ifstream fin; fin.open("t2.txt"); char str[100]; int N = 13; for(i=0; i<N; i++) { f

2016-03-06 15:31:20 648

原创 c#---写文件

using System.IO; //写文件 public void write() { try { string path = @"f:\t1.txt"; //创建并写入(将覆盖已有文件) ...

2016-03-06 14:51:30 596

原创 STL---随机数发生器

#include <iostream> #include <stdlib.h> //rand() srand()#include <time.h> using namespace std;//产生[low, high)之间的随机数double randval(double low, double high) { double val; val = ((d

2016-03-05 12:13:13 1434

原创 STL---对于set中元素是否有序的探究

#include "iostream"#include "set"using namespace std;int main(){ set<int> s; s.insert(1); s.insert(3); s.insert(2); set<int>::iterator it; it = s.begin(); while(it != s.e

2016-03-04 17:48:28 3783

原创 STL---下一个排列

#include "iostream"#include "algorithm"using namespace std;int main(){ int a[3] = {3, 1, 2}; sort(a, a+3); //从小到大排序, 如果不排序,则得不到全部排列结果 do { for(int i=0; i<3; i++)

2016-03-04 16:22:18 384

原创 STL---迭代器

#include "iostream"#include "vector"using namespace std;int main(){ vector<int> v; vector<int>::iterator it; // !! 定义 int i, sum; for(i=0; i<10; i++) v.push_back(i);

2016-03-04 16:13:58 250

原创 STL---容器

vector 定义vector<int> v;vector<double> v;vector<STU> v; //存放结构体vector<int> v(5); //长度为5常用操作v[i]; //取值v.front(); //获取并返回首元素v.back(); //获取并返回尾元素v.push_back(x); //向尾部插入元素xv.siz

2016-03-04 16:08:35 331

转载 c#---释放空间

释放类,参见: http://blog.csdn.net/zlwzlwzlw/article/details/7918633 http://www.cnblogs.com/Fooo/archive/2008/12/27/1363649.htmlpublic class TestClass : System.IDisposable{ //供程序员显式调用的Dispose方法 pu

2016-03-04 13:46:41 1187

原创 c#---指针

参见: http://www.cnblogs.com/xiaotie/archive/2012/07/06/2579853.html http://www.cnblogs.com/panjun-Donet/archive/2008/08/01/1258312.html在项目属性中选择: 对需要使用指针的地方用 “ unsafe { } ”括住, 即:unsafe{ int* a;

2016-03-03 22:14:38 314

原创 c、c#---计时器

c计时器 用法1:#include "time.h"clock_t start, finish;start = clock();... ...finish = clock();double duration = (double) (finish-start)/CLOCKS_PER_SEC; //时间以秒为单位用法2:#include "time.h"... ...cout << "Time

2016-03-03 20:07:48 571

原创 python---通过networkx使图着色结果可视化

假定邻接矩阵为: 0 1 1 1 0 0 1 0 1 0 1 1 1 0 0 0 1 1 0 0 1 1 1 0 1 1 0 0 1 0 1 0 0 1 1 1 0 1 1 1 0 0 1 0 1 0 0 1 1 0 1 1 1 0 0 1 0 0 0 0 1 1 1 0根据图着色算法以求得着色方案: 1 2 3 3 1 2 2 3接下来可视化图着色结果import network

2016-03-03 00:09:34 14670 7

原创 python---matplotlib安装、networkx的使用

python版本:2.7.5 matplotlib版本: matplotlib-1.4.2-cp27-none-win32.whl matplotlib下载地址:http://matplotlib.org/downloads.htmlnetworkx的安装直接easy_install即可。 安装matplotlib 系统中已安装好numy,接下来通过easy_install安装six, da

2016-03-02 19:03:00 3325

Rx_Net35_SP1

.Net 3.5 下使用 System.Threading.Tasks。安装后,在目录 C:\Program Files (x86)\Microsoft Reactive Extensions\Redist\DesktopV2 下找到 System.Threading.dll,添加引用即可

2019-03-13

简单的CNN示例代码,简单的CNN示例代码,

c++ 的简单的CNN示例代码。码。

2017-03-04

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除