Polycarp watched TV-show where k jury members one by one rated a participant by adding him a certain number of points (may be negative, i. e. points w ...
分类:
其他好文 时间:
2017-07-26 09:37:17
阅读次数:
237
n people are standing on a coordinate axis in points with positive integer coordinates strictly less than 106. For each person we know in which direct ...
分类:
其他好文 时间:
2017-07-25 19:56:35
阅读次数:
288
It's hard times now. Today Petya needs to score 100 points on Informatics exam. The tasks seem easy to Petya, but he thinks he lacks time to finish th ...
分类:
其他好文 时间:
2017-07-25 19:52:18
阅读次数:
213
题目链接:http://www.lightoj.com/volume_showproblem.php?problem=1088 题意: 有一维的n个点和q条线段。询问每条线段上的点有多少个。 思路:寻找这些点中对于每条线段的上下界就可以。 代码: #include <stdio.h> #includ ...
分类:
其他好文 时间:
2017-07-23 15:25:10
阅读次数:
171
创建数据库是指在数据库空间中划出一块空间用来存储相关的数据,表就是存储在对应的数据库里面。首先来看下查看数据库的命令:show databases。 这个是用来查询数据库空间下所有的数据库,其中information_schedma/mysql/performace_schema是用来存储管理或者用 ...
分类:
数据库 时间:
2017-07-22 20:58:17
阅读次数:
205
repnz指令说明:重复执行其后面的指令,CX或ECX存放最多比较次数,DI或EDI存放查找表首地址,AL或AX或EAX存放想查找的内容。当(CX或ECX)= 0 或 ZF=1 退出重复,否则,(CX或ECX)自减一,执行其后的串指令。CX或ECX为0结束是因为已经查表完毕,没有匹配到;ZF=1说明 ...
分类:
其他好文 时间:
2017-07-22 17:00:34
阅读次数:
228
1、像素比:点、points (抽象单位 ) 像素渲染 (栅格化) 物理像素 (调整大小) dpi、ppi 获取像素比 (window.devicePixelRatio) 2、viewport(视口)width 设备宽度 [pixel_value | device-width] user-scala ...
分类:
移动开发 时间:
2017-07-22 16:45:23
阅读次数:
263
Long time ago Alex created an interesting problem about parallelogram. The input data for this problem contained four integer points on the Cartesian ...
分类:
其他好文 时间:
2017-07-22 09:43:30
阅读次数:
156
题目原文: Given two arrays a[] and b[], each containing n distinct 2D points in the plane, design a subquadratic algorithm to count the number of points t ...
分类:
编程语言 时间:
2017-07-22 00:12:01
阅读次数:
236
题目:有非常多工人。相应一个能力描写叙述表,每种能力有一个权值,求每一个工人的能力值。 分析:字符串。hash表,字典树。利用散列表或者字典树存储相应的单词和权值。查询就可以。 说明:注意初始化,计算完将数据清除。 #include <iostream> #include <cstdlib> #in ...
分类:
其他好文 时间:
2017-07-21 23:19:00
阅读次数:
213