想到 最小公倍数 其余的就好搞了 ,可是没想到#include #include #include #include #include #include #include #include #include #include #include #include #includeusing names...
分类:
数据库 时间:
2014-08-09 23:11:49
阅读次数:
313
题目大意:不断将放进来的数字插入要求位置,最后将他们的值按在其所在顺序排序简单的线段树问题,单点查询,从反向点一个个插入,线段树表示区间内还有多少空位,像找第几小的数那样自顶向下递归知道x==y代码: 1 #include 2 #include 3 #include 4 using names...
分类:
其他好文 时间:
2014-08-09 02:30:46
阅读次数:
274
求一个无向图的桥(可能存在重边),输出割边的数目,并按顺序输出割边的序号(输入的顺序)。由于内存的限制 , 无法使用邻接矩阵 , 只能用邻接表了 .第一次用了邻接表,超内存了; 1 #include 2 #include 3 #include 4 #include 5 using names...
分类:
其他好文 时间:
2014-08-08 23:58:46
阅读次数:
649
lampp下的mysql配置文件路径: /opt/lampp/etc/my.cnf 1 配置默认字符集 於mysqld项下添加 character-set-server=utf-8 init_connect =‘SET NAMES utf8‘ 於client项下添加 default-character-set =utf8 酱紫就ok了...
分类:
数据库 时间:
2014-08-08 16:39:46
阅读次数:
319
Description
The ancient Berlanders believed that the longer the name, the more important its bearer is. Thus, Berland kings were famous for their long names. But long names are somewhat inconvenien...
分类:
其他好文 时间:
2014-08-08 16:05:26
阅读次数:
219
1. 在String中添加字段,一定要在最上面添加 xmlns:xliff="urn:oasis:names:tc:xliff:document:1.2" 。否则,会报错 unbound prefix 。2. 复制其他.java文件时,会连同.R文件一同带过来,要在import中去掉,否则 R.st...
分类:
移动开发 时间:
2014-08-08 09:29:05
阅读次数:
294
如图:关键点:1.scroll: 1, //虚拟滚动,解决大数据一次性加载慢的问题,同时解决分页2.function merge(names)//自定义函数$(function () { //查询 $("#querybtn").click(function () { ...
分类:
其他好文 时间:
2014-08-07 21:38:40
阅读次数:
297
//1、先确定变量关系,将问题分为3个维,用for语句嵌套搭建循环框架//2、内层用判断语句确定满足题目的条件//注意,设置一个变量用于计数?#includeusing namespace std;int main(){ int m=0; for(int i=1;iusing names...
分类:
其他好文 时间:
2014-08-07 18:22:00
阅读次数:
330
When you define a new interface, you are defining a new reference data type. You can use interface names anywhere you can use any other data type name...
分类:
其他好文 时间:
2014-08-05 15:23:49
阅读次数:
231
?:
>>> 1 >> int >> dict < int >> int < map
False
后来几经周折,和 Fireboo 讨论了下,是
1.不同对象(除了 number 之外),是按照 type names 比较,
2.当相同类型对象不支持适当比较的时候,采用 address 比较
3.l...
分类:
编程语言 时间:
2014-08-05 11:12:29
阅读次数:
273