background-color:#000; background-size:cover; background-position:50% 50%; text-align:center; color:white; (background-size是css3中新增的属性,background-size ...
分类:
其他好文 时间:
2016-08-12 11:23:10
阅读次数:
139
2038. Minimum Vertex Cover Time limit: 1.0 secondMemory limit: 64 MB A vertex cover of a graph is a set of vertices such that each edge of the graph i ...
分类:
其他好文 时间:
2016-08-06 01:49:32
阅读次数:
269
效果:代码:<!DOCTYPEhtml><html><head> <title></title> <metacharset="utf-8"/> <styletype="text/css"> *{margin:0;padding:0;} .main-div{background:url(imgs/gz.jpg);background-size:cover;height:800px} #mask{height:100..
分类:
其他好文 时间:
2016-07-23 21:16:41
阅读次数:
173
bachground-size属性就是定义背景图片的大小,其值有:auto , 像素值 , 百分比 , cover , contain 。 background-size: auto,默认值,以图片自身大小填充元素,根据元素大小来调节自身比例,不会让图片变形。 背景图片本身大小—width:200p ...
分类:
Web程序 时间:
2016-07-23 18:04:23
阅读次数:
218
题意: 给你一个长度为n的序列,m个询问,每次学问一个数 让你回答序列中乘积不小于它的数对有多少对 思路: 预处理当前序列中不大于当前值的数对有多少,然后用总数减去他的前一个就是答案了 ...
分类:
其他好文 时间:
2016-07-22 23:00:48
阅读次数:
195
分析:开一个300w的数组,统计,然后nlogn统计每个值在在序对第一个出现有多少种情况 时间复杂度:O(nlogn) n在3e6数量级 #include<cstdio> #include<cstdlib> #include<cstring> #include<cmath> #include<ios ...
分类:
其他好文 时间:
2016-07-16 00:13:20
阅读次数:
211
background-size需要两个值,它的类型可以是像素(px)、百分比(%)或是auto,还可以是cover和contain。第一个值为背景图的width,另外一个值用于指定背景图上的height,如果只设定1个值,则第2个默认为auto,但当值为cover和contain时除外。cover: ...
分类:
Web程序 时间:
2016-07-15 13:35:01
阅读次数:
256
题意: 有一群奶牛要去晒日光浴,每头奶牛都有个自己"防晒值"(姑且这么叫吧==)区间min到max,如果太阳强度高于max就会被晒伤,但如果小于min就无法享受日光浴了。 现在L 种防晒霜,每种防晒霜都可以把太阳强度固定在一个spf值,并且最多可供cover头使用。问最多能有几头奶牛可以享受到日光浴 ...
分类:
其他好文 时间:
2016-07-15 13:30:00
阅读次数:
133
IP地址与十进制IP转换#!/usr/bin/envpython#encoding=utf-8importreimportsysimportosdeften_to_two(ten_num):two_str=‘‘whileten_num!=1:a=ten_num%2two_str=two_str+str(a)ten_num=ten_num/2else:two_str=two_str+str(1)two_str=two_str[::-1]iflen(two_str)<8:cover=(8-l..
分类:
编程语言 时间:
2016-07-12 23:34:12
阅读次数:
295
IP地址与十进制IP转换#!/usr/bin/envpython#encoding=utf-8importreimportsysimportosdeften_to_two(ten_num):two_str=‘‘whileten_num!=1:a=ten_num%2two_str=two_str+str(a)ten_num=ten_num/2else:two_str=two_str+str(1)two_str=two_str[::-1]iflen(two_str)<8:cover=(8-l..
分类:
编程语言 时间:
2016-07-12 23:33:37
阅读次数:
529