码迷,mamicode.com
首页 >  
搜索关键字:NPU    ( 4242个结果
数位dp
D - Bomb HDU - 3555 The counter-terrorists found a time bomb in the dust. But this time the terrorists improve on the time bomb. The number sequence o ...
分类:其他好文   时间:2018-09-24 00:55:54    阅读次数:256
动态规划 完全平方数
Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) which sum to n. Example 1: Example 2: ...
分类:其他好文   时间:2018-09-23 22:41:01    阅读次数:475
POJ 1426 - Find The Multiple - [DP][BFS]
题目链接:http://poj.org/problem?id=1426 Given a positive integer n, write a program to find out a nonzero multiple m of n whose decimal representation con ...
分类:其他好文   时间:2018-09-23 22:37:00    阅读次数:229
训练网络
解决训练任务,包括两部分内容: 第一部分:针对给定的训练样本计算输出。这与query()函数所做的工作没什么区别。 第二部分:将计算所得到的输出与期望的目标值做对比,使用差值来指导网络权重的更新。 其中,第一部分的代码如下所示: 这部分与query()中的区别在于多了一个期望值,因为我们需要期望值来 ...
分类:其他好文   时间:2018-09-23 22:24:16    阅读次数:230
poj2236 (并查集)
Wireless Network Time Limit: 10000MS Memory Limit: 65536K Total Submissions: 38915 Accepted: 16135 Description An earthquake takes place in Southeast ...
分类:其他好文   时间:2018-09-23 22:17:20    阅读次数:152
TensorFlow activatefunction 和可视化(2)
# View more python learning tutorial on my Youtube and Youku channel!!! # Youtube video tutorial: https://www.youtube.com/channel/UCdyjiB5H8Pu7aDTNVXT... ...
分类:其他好文   时间:2018-09-23 18:27:50    阅读次数:188
Python计算该天是该年第几天
# 题目:输入某年某月某日,判断这一天是这一年的第几天?# 程序分析:以3月5日为例,应该先把前两个月的加起来,然后再加上5天即本年的第几天,特殊情况,闰年且输入月份大于2时需考虑多加一天:# 程序源代码:year = int(input('输入年:'))month = int(input('输入月... ...
分类:编程语言   时间:2018-09-23 18:26:22    阅读次数:313
1007 正整数分组
将一堆正整数分为2组,要求2组的和相差最小。 例如:1 2 3 4 5,将1 2 4分为1组,3 5分为1组,两组和相差1,是所有方案中相差最少的。 Input Output Input示例 Output示例 分成两组当两组的数据都趋向于算术平均值的时候此时的差值最小,res来表示一个背包,背包的空 ...
分类:其他好文   时间:2018-09-23 18:21:57    阅读次数:186
【leetcode】5. Longest Palindromic Substring
Given a string s, find the longest palindromic substring in s. You may assume that the maximum length of s is 1000. Example 1: Example 2: DP的做法,递推公式: ...
分类:其他好文   时间:2018-09-23 18:08:16    阅读次数:203
js注册事件的各种方式
第一种:HTML行内注册 缺点:事件的代码太多,会使HTML的页面会乱掉 。未有分离HTML和Js代码 第二种:也是行内进行注册 html: js: 缺点:没有把HTML和Js代码进行分离。如果为按钮注册一个事件,需要翻到HTML上写onclick。并且函数名重复会很困扰。 第三种:分离HTML和j ...
分类:Web程序   时间:2018-09-23 16:31:29    阅读次数:569
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!