上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页
摘要: bool operator a.r; } 优先队列数组实现 阅读全文
posted @ 2015-08-21 20:22 Painting、时光 阅读(81) 评论(0) 推荐(0) 编辑
摘要: 逆元 inv应用于取模运算中加法 (a + b) % p = a % p + b % p;减法 (a - b) % p = a % p - b % p;乘法 (a * b) % p = a % p * b % p;但是除法(a / b) % p :a * b % p = c;已知 b, c, p 求... 阅读全文
posted @ 2015-08-21 14:58 Painting、时光 阅读(322) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5414/************************************************* Author :Powatr* Created Time :2015-8-21 10:45... 阅读全文
posted @ 2015-08-21 10:59 Painting、时光 阅读(223) 评论(0) 推荐(0) 编辑
摘要: 成员变量(全局变量)存放在堆里面,占用内存,初始化为0局部变量 不占用内存,存放在栈里面,没有初始值关键字 :public, private 关键字权限的意思 在一个类里面,如果主函数不调用类里面的东西,那么用private把它私有化,保证封装性,只留一个入口static 静态存储变量是除了创建对象... 阅读全文
posted @ 2015-08-21 10:12 Painting、时光 阅读(142) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5410/*先01背包一下再完全背包一下*//************************************************* Author :Powatr* Created Time... 阅读全文
posted @ 2015-08-20 19:53 Painting、时光 阅读(150) 评论(0) 推荐(0) 编辑
摘要: System.out.print()最后输出没有回车System.out.println()最后输出有回车System.out.print()输出格式是拼接型的比如输出1+2=3System.out.print(1+"+"+2+"="+3);形参的三种形式int,double/float,boole... 阅读全文
posted @ 2015-08-20 10:30 Painting、时光 阅读(147) 评论(0) 推荐(0) 编辑
摘要: http://acm.zju.edu.cn/onlinejudge/showProblem.do?problemCode=3827/*输出用f*//************************************************* Author :Powatr* Cre... 阅读全文
posted @ 2015-08-19 16:44 Painting、时光 阅读(149) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=4911/*裸题有重复的不能用树状数组!!!!sort的时候会出错*//************************************************* Author :Powatr*... 阅读全文
posted @ 2015-08-19 16:41 Painting、时光 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5400/************************************************* Author :Powatr* Created Time :2015-8-18 13:00... 阅读全文
posted @ 2015-08-19 14:46 Painting、时光 阅读(135) 评论(0) 推荐(0) 编辑
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=5396/*题目大意:给你一些表达式,问你不考虑乘除优先级,问所有可能性之和为多少比方说 (1+2)+3 1+(2+3) 算不同定义dp[i][j] 表示从i到j之和令k为两个表达式之间的符号如果k为* 状态转... 阅读全文
posted @ 2015-08-19 13:39 Painting、时光 阅读(116) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 9 ··· 39 下一页