http://acm.sdibt.edu.cn/JudgeOnline/problem.php?id=1404
Time Limit: 1 Sec Memory Limit: 64 MB
Submit: 17 Solved: 3
[Submit][STATUS][DISCUSS]
Description
给出一组图形(矩形或圆)和一组点的数据,判断点的位置。
Inp...
分类:
其他好文 时间:
2014-10-22 14:39:05
阅读次数:
220
http://acm.sdibt.edu.cn/JudgeOnline/problem.php?id=1207
Time Limit: 1 Sec Memory Limit: 64 MB
Submit: 6 Solved: 6
[Submit][STATUS][DISCUSS]
Description
Given a two-dimensional array of po...
分类:
其他好文 时间:
2014-10-22 14:38:44
阅读次数:
274
字节单位换算公式:
1 GB = 1024 MB1 MB = 1024 KB1 KB = 1024 Bytes1 Byte = 8 bits
将字节单位转化为目标单位
根据公式我写了一段C++代码,用于将输入的以字节为单位的数值,转换为目标单位数值。代码中的枚举类型用的是C++11的语法。
enum class Unit{ Byte, KB, MB, GB, TB, PB, EB};...
分类:
其他好文 时间:
2014-10-20 23:22:06
阅读次数:
297
1026: [SCOI2009]windy数
Time Limit: 1 Sec Memory Limit: 162 MB
Submit: 2615 Solved: 1155
[Submit][Status]
Description
windy定义了一种windy数。不含前导零且相邻两个数字之差至少为2的正整数被称为windy数。 windy想知道,在A和B之间,包括A和B,总共...
如题出现错误,紧急解决办法如下:$vlaue是需要用json_encode()转换,里面包含有中文。执行后全是null,所以会出现如题的错误那么如何解决这个问题呢?在综合了网上资料的情况下以及自己实际解决这个问题的办法:在json_encode()前加上下面一句话:$var=mb_check_encoding($var,..
分类:
Web程序 时间:
2014-10-20 15:20:46
阅读次数:
286
1057. Amount of Degrees
Time limit: 1.0 second
Memory limit: 64 MB
Create a code to determine the amount of integers, lying in the set [X;Y] and being a sum of exactlyK different integer de...
分类:
其他好文 时间:
2014-10-20 15:16:05
阅读次数:
227
2014年10月20日 10:45:19有些时候调用接口的时候返回数据的编码不是utf-8的,需要转码1 foreach ($arrInfo as $k => $v) {2 $encodeing = mb_detect_encoding($v, array('ASCII','GB2312',...
分类:
Web程序 时间:
2014-10-20 11:28:17
阅读次数:
419
??
查看表空间使用情况
select upper(f.tablespace_name) "表空间名",
d.tot_grootte_mb "表空间大小(m)",
d.tot_grootte_mb - f.total_bytes "已使用空间(m)",
to_char(round((d.tot_grootte_mb - f.total_byt...
分类:
数据库 时间:
2014-10-19 21:26:45
阅读次数:
281
1306. Sequence Median
Time limit: 1.0 second
Memory limit: 1 MB
Language limit: C, C++, Pascal
Given a sequence of N nonnegative integers. Let's define the median of such sequence. If N is...
分类:
其他好文 时间:
2014-10-19 18:40:09
阅读次数:
265
php截取中文的使用是随处可见的,譬如,博客首页显示简介,可能会用到,或一些相册简介会用到,以前不知道,还傻傻的自己去写函数用来做“智能截取”,效果还不十分好,幸运的是,今天因为一位同学做项目,让我一起看看,于是想到老师曾经说过的mb_substr()函数,仔细查查它的用法,原来这个函数就可以实现,...
分类:
Web程序 时间:
2014-10-19 11:25:42
阅读次数:
189