找点
时间限制:2000 ms | 内存限制:65535 KB
难度:2
描述
上数学课时,老师给了LYH一些闭区间,让他取尽量少的点,使得每个闭区间内至少有一个点。但是这几天LYH太忙了,你们帮帮他吗?
输入多组测试数据。
每组数据先输入一个N,表示有N个闭区间(N≤100)。
接下来N行,每行输入两个数a,b(0≤a≤b≤100),表示区间的两...
分类:
其他好文 时间:
2014-07-16 16:18:17
阅读次数:
163
Searching
To open the search panel for the active file, press
Ctrl + F. Someoptions and actions available through this panel can be controlled from thekeyboard:
Toggle Regular Expression...
分类:
其他好文 时间:
2014-07-16 16:32:20
阅读次数:
187
Ctrl+D 选词 (反复按快捷键,即可继续向下同时选中下一个相同的文本进行同时编辑)
Ctrl+鼠标左键 可以同时选择要编辑的多处文本
Shift+鼠标右键(或使用鼠标中键)可以用鼠标进行竖向多行选择
Ctrl+Shift+D 复制整行,插入在该行之前
Ctrl+Shift+K 删除整行
Ctrl+L 选择整行(按住-继续选择下行)
Ctrl+Shift+L 鼠标选中多行(按下快捷键...
分类:
其他好文 时间:
2014-07-16 16:21:15
阅读次数:
219
★使用器件
使用了3块80c51的单片机,其中U1为主机控制其他两个从机U2,U3。每个单片机上都有一个数码管用来显示数据。主机上有两个按键KEY_1,KEY_2,分别用来控制不同的从机。
★实现目标
主要实现的目标就是通过写多机通讯来了解他们其中的协议,以及简单协议的写法!本程序主要达到了一下效果,主机可以通过发送命令来控制从机:发送数据给从机、接收从机的数据。然后将从机或者主机显示的数据...
分类:
其他好文 时间:
2014-07-16 16:17:33
阅读次数:
340
Search and Replace - Multiple Files
Searching
To open the search panel for files, press Ctrl
+ Shift +
F. You can use thekeyboard to control some search panel options and search actions:
...
分类:
其他好文 时间:
2014-07-16 16:17:14
阅读次数:
212
Search and Replace
Sublime Text features two main types of search:
Search - Single FileSearch - Multiple Files
We’ll examine them in turn, but first let’s talk about a powerful tool for searc...
分类:
其他好文 时间:
2014-07-16 16:18:52
阅读次数:
312
xargs是给命令传递参数的一个过滤器,也是组合多个命令的一个工具。它把一个数据流分割为一些足够小的块,以方便过滤器和命令进行处理。通常情况下,xargs从管道或者stdin中读取数据,但是它也能够从文件的输出中读取数据。xargs的默认命令是echo,这意味着通过管道传递给xargs的输入将会包含换行和空白,不过通过xargs的处理,换行和空白将被空格取代。
1.选项解释
-0 当sdtin...
分类:
其他好文 时间:
2014-07-16 16:18:32
阅读次数:
262
在分析安卓源码过程中看到几处使用变长结构体的例子,比如下面的结构体:
struct command
{
/* list of commands in an action */
struct listnode clist;
int (*func)(int nargs, char **args);
int nargs;
char *args[1];
...
分类:
其他好文 时间:
2014-07-16 16:16:29
阅读次数:
381
今天根据最新的需求要对LED灯的提示闪烁频率进行修改,将之前默认的2000ms改为10000ms,但是修改之后没有产生预料中的效果,而是变成了常量,百思不得其解,最后还是read the fucking code,从上层到底层,一路追下来,最终发现了问题所在,下面直接上MTK的LED driver代码:...
分类:
其他好文 时间:
2014-07-16 16:33:24
阅读次数:
279
冥想改变自己...
分类:
其他好文 时间:
2014-07-16 16:41:37
阅读次数:
228
我们在linux常常用到一个程序需要加入参数,现在了解一下perl中的有关控制参数的函数.getopt.在linux有的参数有二种形式.一种是--help,另一种是-h.也就是-和--的分别。--表示完整参数.-表示简化参数.
在perl中也分这二种.
Getopt::Std模块的功能: 初始化perl命令行中所接受的参数,简化了命令行参数的解析。 简化参数例子:
#!/usr...
分类:
其他好文 时间:
2014-07-16 16:16:50
阅读次数:
245
#include
#include
#define uchar unsigned char
#define uint unsigned int
sbit dula=P2^6;
sbit wela=P2^7;
sbit adwr=P3^6;
sbit adrd=P3^7;
uchar code table[]={
0x3f,0x06,0x5b,0x4f,0x66,
0x6d...
分类:
其他好文 时间:
2014-07-16 16:15:47
阅读次数:
240
Gallery - Beautiful很酷很炫的图片效果----IT is SHow Time
/translator/assets/css/bootstrap.min.css" />
/translator/assets/css/font-awesome.min.css" />
/translator/assets/css/colorbox.css"...
分类:
其他好文 时间:
2014-07-16 16:16:07
阅读次数:
266
瑶瑶的第K大
Time Limit: 10000/5000MS (Java/Others)Memory Limit: 512000/256000KB (Java/Others)
SubmitStatisticNext Problem
Problem Description
一天,萌萌的妹子--瑶瑶(tsyao)很无聊,就来找你玩。可是你们都不知道玩什么。。。尴尬了一阵子,机...
分类:
其他好文 时间:
2014-07-16 16:15:23
阅读次数:
211
There are proven psychological principles to user interfaces that work.Whether you have a team of design experts or are just building with programmer art, you can use these principles to make your gam...
分类:
其他好文 时间:
2014-07-16 16:33:00
阅读次数:
243
/*
A - 简单dp 例题
Time Limit:1000MS Memory Limit:30000KB 64bit IO Format:%I64d & %I64u
Submit
Status
Description
A military contractor for the Department of Defense has just completed a series o...
分类:
其他好文 时间:
2014-07-16 16:15:03
阅读次数:
278
post方式的的请求过程:
// 设置是否向httpUrlConnection输出,因为这个是post请求,参数要放在
// http正文内,因此需要设为true, 默认情况下是false;
httpUrlConnection.setDoOutput(true);
// 设置是否从httpUrlConnection读入,默认情况下是true;
httpUrlConnection.se...
分类:
其他好文 时间:
2014-07-16 16:14:42
阅读次数:
3111