上一页 1 2 3 4 5 6 7 8 9 10 ··· 39 下一页
摘要: class test//class 类{ public static void main (String[] args) { System.out.println("Hello world\n"); }}hellow world!!!一个类相当于一个class文件,如... 阅读全文
posted @ 2015-08-19 10:43 Painting、时光 阅读(98) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5399/*先特判有重复数的情况,如果有就输出-1如果全是数字那么就判是否符合条件剩下的就是m!的(cout-1)次*//***********************************************... 阅读全文
posted @ 2015-08-18 20:36 Painting、时光 阅读(155) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3829/*题意:要求变成合法的串需要操作多少次有两个操作1.添加 2.交换先扫一遍得到肯定要添的数字从前往后,如果发现有数字n++,如果n#include #include... 阅读全文
posted @ 2015-08-18 10:35 Painting、时光 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 只要文件在%SystemRoot%\system32\ 下calc 打开计算器mspaint 打开画图notepad 打开记事本winmine 扫雷http://wenku.baidu.com/link?url=1_fVv8yM4XJAfbiq1lShVYmRJhWXjQZj4HdvMR1ULoj4... 阅读全文
posted @ 2015-08-18 09:56 Painting、时光 阅读(126) 评论(0) 推荐(0) 编辑
摘要: DOS 命令c: 切换盘符dir列出当前目录下的所有文件md 创建一个目录rd 删除一个目录cd.. 退一级cd\ 返回根目录 反斜线exit 退出 dos命令行cd\查找路径进入 斜线del 删除文件(也可以删除目录下的所有文件)JAVA 由SUN(stanford University Ne... 阅读全文
posted @ 2015-08-18 09:46 Painting、时光 阅读(131) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3822/*dp[i][j][k]定义为覆盖了i行j列用了>=k个棋子的概率状态转移方程dp[i][j][k] = dp[i-1][j][k-1]*1.0*(j*(n-i+1))... 阅读全文
posted @ 2015-08-17 21:22 Painting、时光 阅读(119) 评论(0) 推荐(0) 编辑
摘要: 转自http://blog.csdn.net/mxymxy1994mxy/article/details/47679971#include#include#include#includeusing namespace std;//C++扩栈#pragma comment(linker, "/STAC... 阅读全文
posted @ 2015-08-17 19:26 Painting、时光 阅读(143) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5380/*双端队列题意:加油问题,从起始到终点。,每走一步需要消耗1L油,中途可以买卖油,有一个最大油量,问你到达终点的最少花费是多少用一个双端队列维护*//****************************... 阅读全文
posted @ 2015-08-17 19:24 Painting、时光 阅读(180) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5392/*先把循环长度提取出来,再求这些长度的最小公倍数把质因数都分解出来,每个质因数取最大所有数之积就是最小公倍数*//**********************************************... 阅读全文
posted @ 2015-08-17 14:02 Painting、时光 阅读(345) 评论(0) 推荐(0) 编辑
摘要: /************************************************* Author :Powatr* Created Time :2015-8-17 10:52:03* File Name :欧式筛法.cpp *****************... 阅读全文
posted @ 2015-08-17 10:55 Painting、时光 阅读(349) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 10 ··· 39 下一页