描述已知w是一个大于10但不大于1000000的无符号整数,若w是n(n≥2)位的整数,则求出w的后n-1位的数。输入第一行为M,表示测试数据组数。接下来M行,每行包含一个测试数据。输出输出M行,每行为对应行的n-1位数(忽略前缀0)。如果除了最高位外,其余位都为0,则输出0。样例输入4102359...
分类:
其他 时间:
2015-02-07 15:46:21
收藏:
0 评论:
0 赞:
0 阅读:
258
CheckBoxPreference 选中为true 取消选中为false 它的值会以boolean的形式储存在SharedPreferences中。复制代码 2011-9-3 01:13:55 上传下载附件(27.8 KB) import android.content.Context;impor...
分类:
其他 时间:
2015-02-07 15:45:31
收藏:
0 评论:
0 赞:
0 阅读:
242
棋盘分割Time Limit: 1000MSMemory Limit: 10000KTotal Submissions: 12698Accepted: 4503Description将一个8*8的棋盘进行如下分割:将原棋盘割下一块矩形棋盘并使剩下部分也是矩形,再将剩下的部分继续如此分割,这样割了(n...
分类:
其他 时间:
2015-02-07 15:44:51
收藏:
0 评论:
0 赞:
0 阅读:
162
在ThinkPHP中,查询数据库是必不可少的操作。那么,getField()方法和select()方法都是查询的方法,到底有什么不同呢?案例来说明:A、select()方法例子11 $access=M('access')->where(array('role_id'=>$rid))-...
分类:
其他 时间:
2015-02-07 15:44:41
收藏:
0 评论:
0 赞:
0 阅读:
352
一、什么是XML。 可扩展标记语言(EXtensible Markup Language),标准通用标记语言的子集,是一种用于标记电子文件使其具有结构性的标记语言。二、XML特点 1、XML与操作系统、编程语言和开发平台无关。、 2、实现不同系统、不同语言之间的数据交互。三、XML基本结构 ...
分类:
其他 时间:
2015-02-07 15:44:21
收藏:
0 评论:
0 赞:
0 阅读:
182
兄弟郊游问题时间限制:3000ms | 内存限制:65535KB难度:2描述兄弟俩骑车郊游,弟弟先出发,每分钟X米,M分钟后,哥哥带一条狗出发。以每分钟Y米的速度去追弟弟,而狗则以每分钟Z米的速度向弟弟跑去,追上弟弟后又立即返回,直到哥哥追上弟弟时,狗跑了多少米?输入第一行输入一个整数N,表示测试数...
分类:
其他 时间:
2015-02-07 15:44:01
收藏:
0 评论:
0 赞:
0 阅读:
290
Calculate a + bInputThe input will consist of a series of pairs of integers a and b,separated by a space, one pair of integers per line.OutputFor each...
分类:
其他 时间:
2015-02-07 15:43:31
收藏:
0 评论:
0 赞:
0 阅读:
308
Mergeksorted linked lists and return it as one sorted list. Analyze and describe its complexity.方法一:实现merger2Lists,然后两个两个List Merge,直到最后,不过超时了class So...
分类:
其他 时间:
2015-02-07 15:42:51
收藏:
0 评论:
0 赞:
0 阅读:
167
题目描述:Longest Common PrefixWrite a function to find the longest common prefix string amongst an array of strings.代码如下:class Solution {public: string...
分类:
其他 时间:
2015-02-07 15:42:31
收藏:
0 评论:
0 赞:
0 阅读:
165
什么是DMA DMA,Direct Memory Access,直接内存访问,是一种不经过CPU而直接从内存存取数据的数据交换模式。在DMA模式下,CPU只需要向DMA控制器下达指令,传输数据由DMA来完成,数据传送完再把信息反馈给CPU,这样能够减少CPU的资源占有率。DMA由硬件实现,从共用系....
分类:
其他 时间:
2015-02-07 15:41:31
收藏:
0 评论:
0 赞:
0 阅读:
280
1 /* 2 有n种物品和一个容量为v的背包,每件物品可以无限使用, 3 第i件物品的费用为c[i],价值为w[i],求解哪些物品装入背包 4 费用不超过背包容量且价值总和最大 5 基本思路是dp[i][j] = max{dp[i-1][j-k*c[i]] k*c[i]v24 就是25 for(i....
分类:
其他 时间:
2015-02-07 15:41:21
收藏:
0 评论:
0 赞:
0 阅读:
183
传送门:Network题意:给出一张无向图,求割点的个数。分析:模板裸题,直接上模板。#include #include #include #include #include #include #include #include #include #include #include #include...
分类:
其他 时间:
2015-02-07 15:40:51
收藏:
0 评论:
0 赞:
0 阅读:
207
1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 using namespace std; 8 #define LEN 128 9 typedef struct task_que 10 { 11...
分类:
其他 时间:
2015-02-07 15:40:21
收藏:
0 评论:
0 赞:
0 阅读:
209
题目描述:Integer to RomanGiven an integer, convert it to a roman numeral.Input is guaranteed to be within the range from 1 to 3999.罗马数字的计数方法:基本字符IVXLCDM相应...
分类:
其他 时间:
2015-02-07 15:40:11
收藏:
0 评论:
0 赞:
0 阅读:
174
鉴于GridView的强大,鄙人突然心血来潮,想把GridView单独拿出来整理一下。(一)gridview如何加自增长列1 protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)2 {3 ...
分类:
其他 时间:
2015-02-07 15:40:01
收藏:
0 评论:
0 赞:
0 阅读:
141
第二章 Qt常用工具的介绍(1)No.1 qmake相信编写过Makefile的开发人员,随着工程中源码的级数递增和以类型、功能、模块组织源码的子目录的增多,都不愿意重复机械地手工编写这个工程管理文件。手写Makefile比较困难也容易出错。还没有编写过Makefile,甚至还不知道Makefile...
分类:
其他 时间:
2015-02-07 15:39:41
收藏:
0 评论:
0 赞:
0 阅读:
249
grunt.initConfig方法用于模块配置,它接受一个对象作为参数。该对象的成员与使用的同名模块一一对应。每个目标的具体设置,需要参考该模板的文档。就cssmin来讲,minify目标的参数具体含义如下:expand:如果设为true,就表示下面文件名的占位符(即*号)都要扩展成具体的文件名。...
分类:
其他 时间:
2015-02-07 15:39:21
收藏:
0 评论:
0 赞:
0 阅读:
434
一:测试用例
{CSDN:CODE:599777}
二:知识补充
1:saveOrUpdate 既可以执行insert也可以执行update。取决于对象有没有id
2:部分更新
Session session = factory.getCurrentSession();
session.beginTransaction();
Query query = (Quer...
分类:
其他 时间:
2015-02-07 14:36:41
收藏:
0 评论:
0 赞:
0 阅读:
327
Problem Description
You are given N positive integers, denoted as x0, x1 ... xN-1. Then give you some intervals [l, r]. For each interval, you need to find a number x to make as small as possible!
Input
The first line is an integer T (T <= 10), indicat...
分类:
其他 时间:
2015-02-07 14:36:31
收藏:
0 评论:
0 赞:
0 阅读:
348
Struts2自定义类型转换器分为局部类型转换器和全局类型转换器
(1)局部类型转换器
如果页面传来一个参数reg.action?birthday=2010-11-12到后台action,然后属性用date类型是可以接收到的,但是如果传的是20101112这样类型的字符串,用date类型是获取不到,并且会出现错误的,struts2提供了一种类型转换器供我们使用。
以下为局部类型转...
分类:
其他 时间:
2015-02-07 14:36:01
收藏:
0 评论:
0 赞:
0 阅读:
258