[java] view plaincopyprint?publicvoidshowToast(Stringmsg){Looper.prepare();Toast.makeText(getApplicationContext(),msg,Toast.LENGTH_SHORT).show();Loope...
分类:
移动开发 时间:
2014-11-03 12:48:51
阅读次数:
158
题目:http://www.luogu.org/problem/show?pid=2267题解:这题略吊。 看了之后发现不能用组合数学直接得出公式,然后如果直接暴力也不知道如何去排除两个颜色序列相同的情况。 然后去膜拜题解 -----------------------------...
分类:
其他好文 时间:
2014-11-03 12:47:22
阅读次数:
179
题目:http://www.luogu.org/problem/show?pid=2265题解:ans=C(n+m,n)%p 求一下逆元就行代码; 1 #include 2 #include 3 #include 4 #include 5 #include 6 #include 7 #incl...
分类:
其他好文 时间:
2014-11-03 12:47:20
阅读次数:
179
本文git版本1.9.6一、git的基本对象类型二、查看git对象信息三、理解git存储结构1、Git中有四种基本对象类型,组成了Git更高级的数据结构:blobs每个blob代表一个(版本的)文件,blob只包含文件的数据,而忽略文件的其他元数据,如名字、路径、格式等。trees每个tree代表了一..
分类:
其他好文 时间:
2014-11-03 01:33:42
阅读次数:
208
转换数据库的编码格式:alter database databasename character set utf8;#检查数据表所有字段的状态->show full columns from phplamp;#发现address字段的Collation项非utf8,修改它!->alter table...
分类:
数据库 时间:
2014-11-03 01:13:59
阅读次数:
236
传送门Description The TV shows such as You Are the One has been very popular. In order to meet the need of boys who are still single, TJUT hold the show....
分类:
其他好文 时间:
2014-11-02 22:19:42
阅读次数:
169
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1758晕。。。。状压没考虑循环方向然后错了好久。。这点要注意。。。(其实就是01背包变成了完全背包QAQ我们...
分类:
其他好文 时间:
2014-11-02 22:11:16
阅读次数:
233
1 import groovy.swing.* 2 import javax.swing.* 3 import java.awt.* 4 5 def swing = new SwingBuilder() 6 swing.frame(title:"hello",show:true) 7 { 8...
分类:
其他好文 时间:
2014-11-02 20:58:41
阅读次数:
177
查看、添加、提交、删除、找回,重置修改文件git help# 显示command的helpgit show # 显示某次提交的内容 git show $idgit co --# 抛弃工作区修改git co . # 抛弃工作区修改git add# 将工作文件修改提交到本地暂存区git add . # ...
分类:
其他好文 时间:
2014-11-02 19:33:34
阅读次数:
224
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=4198约瑟夫变形根据f(n)=(f(n-1)+m)%n因为是求倒数第几个那么我们只要求出f(倒数第几个)的值...
分类:
其他好文 时间:
2014-11-02 19:28:41
阅读次数:
169