码迷,mamicode.com
首页 >  
搜索关键字:stars    ( 386个结果
poj 2482 Stars in Your Window (线段树扫描线)
题目大意: 求一个窗体覆盖最多的星星的权值。 思路分析: 每个星星看成 左下点为x y 右上点为x+w-1 y+h-1 的矩形。 然后求出最大覆盖的和。 #include <cstdio> #include <iostream> #include <cstring> #include <algori ...
分类:Windows程序   时间:2017-08-13 15:17:40    阅读次数:175
POJ2352 Stars
B - Stars Time Limit:1000MS Memory Limit:65536KB 64bit IO Format:%I64d & %I64u Submit Status Practice POJ 2352 Description Astronomers often examine s ...
分类:其他好文   时间:2017-08-13 13:21:00    阅读次数:190
星星的制作
<div class="dark"> <div class="stars"></div> <div class="stars2"></div></div> .stars2 { width: 2px; height: 2px; background: transparent; box-shadow: ...
分类:其他好文   时间:2017-08-10 14:37:59    阅读次数:164
前端常用网站
1. https://www.gitbook.com GitBook是一个基于 Node.js 的命令行工具,可使用 Github/Git 和 Markdown 来制作精美的电子书 。同时,可搜索一些技术文章(搜索后,按 most stars 排序) 2. 图片加载效果: https://loadi ...
分类:Web程序   时间:2017-08-08 12:42:47    阅读次数:170
POJ 2481 Cows
题目链接:http://poj.org/problem?id=2481 解题思路:可以先尝试HDU 1541 Stars 。这道题相当于Stars的变形,只不过需要稍微思考。按E从大到小排序,E相同S从小到大对S E数组排序,使用一个一维BIT,初始为0,之后对于每一个[S, E]: ans[i] ...
分类:其他好文   时间:2017-08-05 06:44:01    阅读次数:130
Codeforces Round #427 (Div. 2) Problem C Star sky (Codeforces 835C) - 前缀和
The Cartesian coordinate system is set in the sky. There you can see n stars, the i-th has coordinates (xi, yi), a maximum brightness c, equal for all ...
分类:其他好文   时间:2017-08-01 09:48:54    阅读次数:290
poj 2352 stars
题目大意:给定一些点的坐标,定义一个点的值为在该点左下方(可以在水平左侧或竖直下方)的所有点的数量之和。 思路: 树状数组 因为题目按照y坐标升序排列,用一个树状数组,记录每个x出现的次数 模板题 #include<iostream> #include<cstdio> #include<cmath> ...
分类:其他好文   时间:2017-07-23 10:15:02    阅读次数:161
有道美句。。
A book that remains shut is but a block. 有书闭卷不阅读,无异是一块木头。 I learned the value of hard work by working hard. 只有真的努力了,才会知道努力的价值。 Behind every beautiful ...
分类:其他好文   时间:2017-07-19 20:31:34    阅读次数:183
City of stars
City of stars 英:[?s?t?] [?v; (?)v] [stɑ?z] 美:[?s?ti] [?v] [stɑ?z] Are you shining just for me? 英:[ɑ?] [ju?] [??a?n??] [d??st] [f??; f?] [mi?] 美:[ɑr] [ ...
分类:其他好文   时间:2017-07-11 11:16:36    阅读次数:205
April 20 2017 Week 16 Thursday
We are all in the gutter, but some of us are looking at the stars. 我们都生活在阴沟里,但仍有人仰望星空。 In the past most of us had learned in our historical textbooks ...
分类:其他好文   时间:2017-06-30 00:05:36    阅读次数:205
386条   上一页 1 ... 15 16 17 18 19 ... 39 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!