定时器0方式2
#include
#define uchar unsigned char
#define uint unsigned int
sbit led1=P1;
uint num;
void main()
{
TMOD=0x02;
TH0=6;
TL0=6;
EA=1;
ET0=1;
TR0=1;
while(1)
{
if(num==3686)
{
...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
225
感言:以后中国高中生的专场还是慎入!!!!
A题目还是比较简单
AC代码:
#include
#include
using namespace std;
struct p
{
int number;
int val;
}num[105];
bool cmp(p x,p y)
{
if(x.val==y.val)
return x.number>...
分类:
其他好文 时间:
2014-07-22 22:49:34
阅读次数:
186
解题报告
没什么好说的,大于m的往后面放,,,re了一次,,,
#include
#include
#include
#include
using namespace std;
struct node
{
int x,cd;
}num[1000000];
int main()
{
int n,m,c;
cin>>n>>m;
int i;
for...
分类:
其他好文 时间:
2014-07-22 22:49:16
阅读次数:
247
非阻塞的程序 应该保障的一些特性 : 等待无关性wait-free:能确保每次的调用在有限的步数之内完成,不管其他调用的步骤有多少。杀掉几个线程 锁无关性lock-free:执行这段程序的某些线程会被延迟,但必须确保至少...
分类:
其他好文 时间:
2014-07-22 09:10:35
阅读次数:
374
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-22 08:31:36
阅读次数:
205
超时代码:#include using namespace std;//写一个函数判断是否是素数bool isPrime(int num){int i=2;//coutnum)return true; else return false;}int main(){ int T; cin>>...
分类:
其他好文 时间:
2014-07-21 10:01:49
阅读次数:
246
#include
#include
#include
#define ZERO 0
const int FIRST_CHAR = '0';
char num[11111][20] ;
typedef struct node
{
struct node *child[20]; /* 存储下一个字符 */
int n; /* 记录当前单词出现的次数 */
}node, *No...
分类:
其他好文 时间:
2014-07-20 11:32:38
阅读次数:
215
使用EXP导出数据时,到结尾处报exp-OOO56,ORA-01455:转换列溢出整数数据类型。上网查找原因,大部分说是因为export命令会将表的statistics值转成整数,当这个值超过2^32-1时,就会报错,可以查看dba_tables和dba_indexes的num_rows值是否超过了该值。如果超过了手工修改:dbms..
分类:
其他好文 时间:
2014-07-20 10:46:37
阅读次数:
275
#!/bin/bash#初始化环境变量source.bash_profile#日志名中的固有日期格式f_name=`date+%Y%m%d`#日志的路径及名称log_file=/backup/db/rman/log/rman$f_name-0401.logecho$log_file#统计日志文件行数#line_num=`wc-l$log_file|awk‘{print$1}‘`#echo$line_num#如果日志文件不存在..
分类:
其他好文 时间:
2014-07-20 10:18:28
阅读次数:
304
常用KEY:1.监控端口net.tcp.port[,3306]2.监控进程proc.num[mysqld]3.查看CPU核数system.cpu.num4.查看系统的系统启动时间和当前时间system.boottime、system.localtime5.查看系统的简单信息system.uname6.查看windowns系统当前网卡的进出流量net.if.out[{HOST.NAME},bytes]、..
分类:
其他好文 时间:
2014-07-20 10:17:37
阅读次数:
231