以下是个人学习笔记,仅供学习参考。 1.关于子元素的margin-top作用在无margin-top-border的父元素上导致子元素的margin-top溢出问题。 在给没有margin-top-border父元素中的子元素添加margin-top时,发现没有直接表现出来,而是作用到父元素身上,就 ...
分类:
其他好文 时间:
2017-05-29 11:07:55
阅读次数:
3587
#include<cstdio> #include<cstring> #include<algorithm> using namespace std; int read(){ int ans=0,f=1,c=getchar(); while(c<'0'||c>'9'){if(c=='-') f=-1 ...
分类:
其他好文 时间:
2017-05-28 20:49:51
阅读次数:
251
Nuske vs Phantom Thnook Time limit : 4sec / Memory limit : 256MB Score : 700 points Problem Statement Nuske has a grid with N rows and M columns of sq ...
分类:
其他好文 时间:
2017-05-28 20:15:12
阅读次数:
231
摘自阮一峰的es6教程 http://es6.ruanyifeng.com/#docs/let ...
分类:
其他好文 时间:
2017-05-28 19:00:15
阅读次数:
219
题目链接:hdu 4355 Party All the Time 题意: 有n个人,在一个一维的坐标轴上,现在让他们聚在一起。 每个人移动一段距离会产生一个 不开心值=S3*W,现在问你最小的全部加起来的不开心值是多少。 题解: 目标函数是一个凸函数,直接上三分就行了。 1 #include<bit ...
分类:
其他好文 时间:
2017-05-28 18:55:56
阅读次数:
235
方法一: DFS 方法二:生成函数 每个数可以重复一定次数,求排列组合数,这是裸的指数型生成函数; 1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 double c1[15],c2[15]; 6 int a[15]; 7 int num ...
分类:
其他好文 时间:
2017-05-28 12:25:55
阅读次数:
153
百度2017春招笔试真题编程题集合 1.买帽子 思路:直接排序数出第三个即可 1 #include <iostream> 2 #include <cstdio> 3 #include <vector> 4 #include <algorithm> 5 6 using namespace std; 7 ...
分类:
其他好文 时间:
2017-05-27 23:04:53
阅读次数:
344
问题提出: 12.0f-11.9f = 0.10000038,"减不尽"为什么? 8888.88*100 = 888887.9999999999 ??? 来自MSDN的解释:http://msdn.microsoft.com/zh-cn/c151dt3s.aspx 原因分析:http://www.c ...
分类:
其他好文 时间:
2017-05-27 18:01:49
阅读次数:
222
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <meta http-equiv ...
分类:
其他好文 时间:
2017-05-27 16:10:08
阅读次数:
140
參考http://zhidao.baidu.com/link?url=NU8UcLsp6CCgRZzeMgnb7v0p7Z78eLYloYW355Z9fQa__pm_lFBtpfSs61ZR2Wq2yX1ljRrgiP2NGOccH_CttK 桥接 通过使用物理机网卡 具有独立ip NAT 把物理机 ...
分类:
其他好文 时间:
2017-05-26 21:58:28
阅读次数:
258