You are playing the following Nim Game with your friend: There is a heap of stones on the table, each time one of you take turns to remove 1 to 3 ston ...
分类:
其他好文 时间:
2017-12-02 22:13:33
阅读次数:
149
using System; using System.Web; using LitJson; public class CodeTest : IHttpHandler { public void ProcessRequest (HttpContext context) { context.Respo... ...
分类:
微信 时间:
2017-11-30 15:48:18
阅读次数:
352
ModelSim 使用笔记1 ModelSim提供了简单仿真方式,还有一种要建立project,目前这种方式暂时够我用了。 总结了以下,做了一个简单的《modelsim quick start》。 简单方针模式下面,操作步骤如下(黄色字符部分为每个操作对应的script指令,打开modelsim软件 ...
分类:
其他好文 时间:
2017-11-30 12:15:53
阅读次数:
118
参考教程:http://www.tensorfly.cn/tfdoc/tutorials/mnist_pros.html 安装要求: Spyder(Python3.5) Anaconda 下载MNIST数据集 在网上下载数据集,放在"MNIST_data"文件下 回归模型 权重衰减 我们通过添加一个 ...
分类:
其他好文 时间:
2017-11-29 21:55:43
阅读次数:
234
Given an array of n positive integers and a positive integer s, find the minimal length of a contiguous subarray of which the sum ≥ s. If there isn't ...
分类:
其他好文 时间:
2017-11-29 13:37:09
阅读次数:
118
{a1,a2,a3,a4.......an}n推石头,A先拿,若a1^a2^a3^a4^.....^an==0,B胜 证明:因为异或后的数代表所有石头数在二进制表示后,对应位上有偶数个还是奇数个1; 比如5(d)=101(b) ,7(d)=111(b), 7^5=010(b) ,第一个0代表7和5在 ...
分类:
其他好文 时间:
2017-11-28 19:55:40
阅读次数:
153
类对象:就是类的对象。好比狗。 例如, 牌子上会有这样的信息:狗脊椎动物门哺乳纲食肉目犬科。部分例如, 牌子上会有这样的信息:狗脊椎动物门哺乳纲食肉目犬科。部分例如, 牌子上会有这样的信息:狗脊椎动物门哺乳纲食肉目犬科。部分例如, 牌子上会有这样的信息:狗脊椎动物门哺乳纲食肉目犬科。部分例如, 牌子 ...
分类:
编程语言 时间:
2017-11-27 11:03:32
阅读次数:
144
平时中我习惯用jquery写轮播效果,实现过程不是很难,也很方便,为了加深对js面向对象的理解,我打算用面向对象实现一个简单的轮播,这里采用了字面量的方式实现。为了实现这个过程,我们要自己动手封装一个运动函数animate,在这里我采用的是匀速运动的方式,这种方式可能体验不是很好,后面分析js代码我 ...
分类:
Web程序 时间:
2017-11-27 01:22:37
阅读次数:
290
import tensorflow as tf import numpy as np def add_layer(inputs,in_size,out_size,activation_function=None): Weights = tf.Variable(tf.random_normal([in... ...
分类:
其他好文 时间:
2017-11-27 01:16:28
阅读次数:
152
最后输出的结果是一个逐渐靠近[0.1,0.3]数组 ...
分类:
其他好文 时间:
2017-11-26 19:35:14
阅读次数:
108