1 #include<iostream> 2 //#include<fstream> 3 using namespace std; 4 int main(){ 5 int n; 6 //fstream file("haha.txt"); 7 //file>>n; 8 cin>>n; 9 int f3 ...
分类:
其他好文 时间:
2020-01-25 19:26:27
阅读次数:
86
#include <bits/stdc++.h> #include <stdio.h> #include <stdlib.h> #include <queue> using namespace std; const int maxn = 50; struct node{ int data; node ...
分类:
其他好文 时间:
2020-01-24 00:07:11
阅读次数:
88
我最后解决是:这个Test connection会自动帮你下载的,但是如果中途一直叫你try again,甚至到后面点这个test connection有弹窗,但是单窗里面的选项你点击后没反应,我是直接卸载IDEA重装了,(浪费一个下午弄这个问题),然后再来一次,就成功了。 我再说一下症状:我新装的 ...
分类:
数据库 时间:
2020-01-23 18:25:15
阅读次数:
113
Making Convolutional Networks Shift Invariant Again Intro 本文提出解决CNN平移不变性丧失的方法,之前说了CNN中的downsample过程由于不满足采样定理,所以没法确保平移不变性。信号处理里面解决这样的问题是利用增大采样频率或者用抗混叠方 ...
分类:
Web程序 时间:
2020-01-23 09:33:00
阅读次数:
226
#include "stdio.h" void main() { int k=1; long i=1,j=1; for(;k<21;k++) { i=i+j; j=j+i; printf("%d,%d \n",i,j); } } ...
分类:
其他好文 时间:
2020-01-22 12:37:41
阅读次数:
52
斐波那契数列。题意很简单,求出斐波那契数列里面第N个数。这个题有好几个思路,分别是迭代,递归和动态规划。虽然是个基础题但是涉及到的思路还是比较全面的,故而都列出来。例子, Example 1: Input: 2Output: 1Explanation: F(2) = F(1) + F(0) = 1 ...
分类:
其他好文 时间:
2020-01-22 10:40:54
阅读次数:
60
A. Zoning Restrictions Again ou are planning to build housing on a street. There are n spots available on the street on which you can build a house. T ...
分类:
其他好文 时间:
2020-01-21 23:14:39
阅读次数:
99
An inorder binary tree traversal can be implemented in a non-recursive way with a stack. For example, suppose that when a 6-node binary tree (with the ...
分类:
其他好文 时间:
2020-01-21 13:21:50
阅读次数:
88
在阮一峰大侠的ECMAScript 6 入门 了解到“尾递归”概念,拿到Java中一试吓一跳,对性能的提升不只是一星半点。 public class BeanInfoDemo { public static void main(String[] args) { Fibonacci(50); } pr ...
分类:
其他好文 时间:
2020-01-18 14:21:33
阅读次数:
81
斐波那契数列递归 斐波那契数列(Fibonacci sequence),又称黄金分割数列、因数学家列昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:1、1、2、3、5、8、13、21、34、……在数学上,斐波那契数列以如下 ...
分类:
编程语言 时间:
2020-01-16 12:42:17
阅读次数:
85