输出所有形如aabb的4位完全平方数(即前两位数字相等,后两位也相等),此题也就是7744问题 此题不可用 if(sqrt(n)==floor(sqrt(n))),判断sqrt(n)是否为整数,因为存在一个精度问题。 floor函数用法:floor(x),有时候也写做Floor(x),其功能是“向下 ...
分类:
其他好文 时间:
2017-01-10 19:32:34
阅读次数:
215
//c++// #includeusing namespace std;int main(){int n,j,t,start;while (cin >> n,n){start =0;t = 0;while(n--){cin >> j;if (j>start){t += 6*(j-start);}el ...
分类:
其他好文 时间:
2017-01-10 14:58:47
阅读次数:
111
CKeditor 配置使用一、使用方法:1、在页面<head>中引入ckeditor核心文件ckeditor.js<script type="text/javascript" src="ckeditor/ckeditor.js"></script> 2、在使用编辑器的地方插入HTML控件<texta ...
分类:
其他好文 时间:
2017-01-09 21:59:48
阅读次数:
271
Description 请用HASH链式法来解决冲突,且规定链表在链表头插入新元素。 规定HASH函数为:h(x) = x % 11,即哈希数组下标为0~10. 给定两种操作: I 操作,插入一个新的正整数K到哈希表中 F 操作,查询整数K是否在哈希表中,若不在,输出-1;若存在,输出目前K在所在链 ...
分类:
其他好文 时间:
2017-01-08 18:55:10
阅读次数:
159
2个多小时,弱智了。。(连A都做不对,就不要做D了(迷)) ...
分类:
其他好文 时间:
2017-01-08 17:42:35
阅读次数:
224
一.C风格字符串 ◆ 1、字符串是用字符型数组存储的,字符串要求其尾部以’\0’作为结束标志。如: char string[ ]=”C++ programming language”;用sizeof来测string长度为25个字节,而实际串本身长度(含空格)为24个字节,多出来的一个就是串结束符’\ ...
分类:
编程语言 时间:
2017-01-08 14:01:16
阅读次数:
217
angularJS(5) 一,数据循环:特别要注意作用域 使用ng-repeat指令。 <div ng-app="myApp" ng-controller="myCtrl"> <ul> <li ng-repeat="x in names">{{x}}</li> </ul> </div> <scrip ...
分类:
Web程序 时间:
2017-01-07 21:11:33
阅读次数:
243
Description There are N cities and N-1 roads in Magic-Island. You can go from one city to any other. One road only connects two cities. One day, The k ...
分类:
其他好文 时间:
2017-01-07 20:38:37
阅读次数:
164
org.apache.ibatis.binding.BindingException: Invalid bound statement (not found): da.huying.usermanage.mapper.UserMapper.queryUserById at org.apache.ib ...
分类:
Web程序 时间:
2017-01-07 19:27:07
阅读次数:
552