上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 49 下一页

2013年7月26日

摘要: 神经网络线性分类器编写代码并将其线性分类过程封装成PYTHON的一个模块,调用代码如下: #!/usr/bin/env python#-*- coding: utf-8 -*-#email:myhaspl@qq.com#author:麦好#2013-07-25#线性神经网络分类import mplannliner as nplann traindata1=[[[9,25],-1],[[5,8],-1],[[15,31],-1],[[35,62],-1],[[19,40],-1],[[28,65],1],[[20,59],1],[[9,41],1]... 阅读全文

posted @ 2013-07-26 18:12 冰天雪域 阅读(259) 评论(0) 推荐(0) 编辑

摘要: Alice and Bob's game never ends. Today, they introduce a new game. In this game, both of them have N different rectangular cards respectively. Alice wants to use his cards to cover Bob's. The card A can cover the card B if the height of A is not smaller than B and the width of A is not small 阅读全文

posted @ 2013-07-26 18:10 冰天雪域 阅读(146) 评论(0) 推荐(0) 编辑

摘要: Vases and FlowersTime Limit: 4000/2000 MS (Java/Others)Memory Limit: 65535/32768 K (Java/Others) Total Submission(s): 347Accepted Submission(s): 108 Problem Description Alice is so popular that she can receive many flowers everyday. She has N vases numbered from 0 to N-1. When she receive som... 阅读全文

posted @ 2013-07-26 18:07 冰天雪域 阅读(556) 评论(0) 推荐(0) 编辑

摘要: 1.指向数组元素的指针变量实例代码:#includeusing namespace std;int main(){ int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int *p; for(p=a[0];pusing namespace std;int main(){ int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int *p; for(p=&a[0][0];pusing namespace std;int main(){ int a[3][4]={1,2,3,4,5,6,7,8,9,10,11,12}; int 阅读全文

posted @ 2013-07-26 18:05 冰天雪域 阅读(202) 评论(0) 推荐(0) 编辑

摘要: A. Cakeminatortime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou are given a rectangular cake, represented as an r × c grid. Each cell either has an evil strawberry, or is empty. For example, a3 × 4 cake may look as follows:The cakemina 阅读全文

posted @ 2013-07-26 18:03 冰天雪域 阅读(440) 评论(0) 推荐(0) 编辑

摘要: 删除vector中的元素1.删除指定的所有对象STL中remove()只是将待删除元素之后的元素移动到vector的前端,而不是删除。若要真正移除,需要搭配使用erase()。例子:vector vecTemp; vecTemp.push_back(2); vecTemp.push_back(4); vecTemp.push_back(2); vecTemp.push_back(5);//原始元素顺序为2,4,2,5 remove(vecTemp.begin(),vecTemp.end(),2);//remove后的结果为4,5,2,5可以看到除了前面的4,5是正确的后面的没有用了若真要删除, 阅读全文

posted @ 2013-07-26 18:01 冰天雪域 阅读(679) 评论(0) 推荐(0) 编辑

摘要: 题意:给你N个花瓶,编号是0 到 N - 1 ,初始状态花瓶是空的,每个花瓶最多插一朵花。然后有2个操作。操作1,a b c ,往在a位置后面(包括a)插b朵花,输出插入的首位置和末位置。操作2,a b ,输出区间[a , b ]范围内的花的数量,然后全部清空。 很显然这是一道线段树。区间更新,区间求和,这些基本的操作线段树都可以logN的时间范围内完成。操作2,很显然就是线段树的区间求和,求出[a , b]范围内的花朵的数量,区间更新,将整个区间全部变成0。操作1,这里我们首先需要找出他的首位置和末位置,所以需要二分他的位置。首先我们二分他的首位置, l = a , r = n ,在这个区间 阅读全文

posted @ 2013-07-26 18:00 冰天雪域 阅读(210) 评论(0) 推荐(0) 编辑

摘要: 将汇编的指令画在图片上==可以贴图法操作==动动图片图案指示就行了。(堆积木编译器) 阅读全文

posted @ 2013-07-26 17:58 冰天雪域 阅读(121) 评论(0) 推荐(0) 编辑

摘要: 安装Connector/Python:# wget http://cdn.mysql.com/Downloads/Connector-Python/mysql-connector-python-1.0.11.zip# unzip mysql-connector-python-1.0.11.zip# cd mysql-connector-python-1.0.11 # python setup.py install 测试Connector/Python是否装上:>>> from distutils.sysconfig import get_python_lib>>& 阅读全文

posted @ 2013-07-26 17:56 冰天雪域 阅读(556) 评论(0) 推荐(0) 编辑

摘要: crtmpserver的架构简介 一、层 Layers . 机器层 Machine layer . 操作系统层 Operating System Layer This layer is composed of libraries with functions that make the entire Evostream ecosystem compatible to any Operating System. OS-specific functions used in the whole solution are made transparent to curr... 阅读全文

posted @ 2013-07-26 17:54 冰天雪域 阅读(356) 评论(0) 推荐(0) 编辑


上一页 1 ··· 39 40 41 42 43 44 45 46 47 ··· 49 下一页

Copyright © 2024 冰天雪域
Powered by .NET 8.0 on Kubernetes