题目链接题意:给k对数,每对ai, ri。求一个最小的m值,令m%ai =
ri;分析:由于ai并不是两两互质的,
所以不能用中国剩余定理。只能两个两个的求。a1*x+r1=m=a2*y+r2联立得:a1*x-a2*y=r2-r1;设r=r2-r2;互质的模线性方程组m=r[i](mod
a[i])...
分类:
其他好文 时间:
2014-06-11 07:25:30
阅读次数:
203
本文内容 开发环境 演示上下拉动刷新最新和加载更多 ListView 参考资料
本文演示上下拉动,刷新最新和加载更多,这个效果很常见,比如,新闻资讯类 APP,当向下拉动时,加载最新的资讯;向上拉动时,加载更多之前的。 开发环境
Windows 2008 R2 64 位 ADT V22.6.2 演示...
分类:
移动开发 时间:
2014-06-10 12:43:25
阅读次数:
274
Given a binary tree, check whether it is a
mirror of itself (ie, symmetric around its center).For example, this binary tree
is symmetric: 1 / \ ...
分类:
其他好文 时间:
2014-06-10 11:51:42
阅读次数:
213
我的数据库版本是sql server 2008 r2,系统环境是windows
server2008. 对于sql server 2008 r2上报rs报表的匿名访问问题,我这边尝试过两个可行方案:
(1)使用ReportViewer展现报表,实现ReportViewer.ReportSer...
分类:
其他好文 时间:
2014-06-10 09:38:53
阅读次数:
253
Win2008远程多用户登陆的配置方法 在使用Windows
2008远程登录功能时,如果需要进行多用户登录,可以采用以下配置方法: 首先要启用远程桌面这一功能:右击“我的电脑”→ 属性 → 远程配置 →
远程桌面,就可以配置相应的远程桌面功能了。下面是配置多用户登陆的方法: 打开 控制...
1.对想要复制的数据库右键,“任务”,“生成脚本”
2.下面需要注意的是,默认情况下,只会生成仅架构的脚本,也就是说仅仅有表结构,而没有数据的空壳。所以需要额外的设置。在设置脚本编写选项,选择“高级”
然后在“要编写脚本的数据类型”,选择“架构和数据” 3.运行生成的脚本。 注意修改数据库文件...
分类:
数据库 时间:
2014-06-08 20:59:49
阅读次数:
227
题目
Given a binary tree, check whether it is a mirror of itself (ie, symmetric around its center).
For example, this binary tree is symmetric:
1
/ 2 2
/ \ / 3 4 4 3
...
分类:
其他好文 时间:
2014-06-08 18:12:04
阅读次数:
248
android:layout_width="match_parent"
android:layout_height="wrap_content"
android:gravity="center_vertical"
android:orientation="horizontal" >
android:layout_width="wrap...
分类:
其他好文 时间:
2014-06-08 17:58:54
阅读次数:
633
ImageView的Scaletype决定了图片在View上显示时的样子,如进行何种比例的缩放,及显示图片的整体还是部分,等等。设置的方式包括:1.
在layout xml中定义android:scaleType="CENTER"2. 或在代码中调用imageView.setScaleType(Im...
分类:
移动开发 时间:
2014-06-08 00:36:23
阅读次数:
342