//Kruskal 算法的实现#include #include #include #include #include #include #include using namespace std; struct node{ int u; int v; int w;};int father[101];...
分类:
编程语言 时间:
2014-12-11 10:19:55
阅读次数:
213
//通过super调用父类构造方法和隐藏方法package mypack;class Father { public Father() { // TODO Auto-generated constructor stub System.out.println("null father"); } p.....
分类:
编程语言 时间:
2014-11-29 10:05:15
阅读次数:
173
class Father{ Father(int a) { System.out.println("father run"); }}class Son extends Father{ Son() { Super(2); System....
分类:
其他好文 时间:
2014-11-28 14:04:49
阅读次数:
104
My father was a self-taught mandolin player. He was one of the best string instrument players in our town. He could not read music, but if he heard a tune a few times, he could play it. When he was yo...
分类:
其他好文 时间:
2014-11-27 14:36:15
阅读次数:
230
package ex01.pyrmont;
public class Son extends Father {
public void a(){
System.out.println("a from son");
super.a();
}
public void b(){
System.out.println("b...
分类:
其他好文 时间:
2014-11-27 10:49:54
阅读次数:
162
Father Christmas flymouseTime Limit: 1000msMemory Limit: 131072KBThis problem will be judged onPKU. Original ID:316064-bit integer IO format:%lld Java...
分类:
其他好文 时间:
2014-11-20 21:35:35
阅读次数:
254
dp求期望的题。 设 E[i]表示在结点i处,要走出迷宫所要走的边数的期望。E[1]即为所求。 叶子结点: E[i] = ki*E[1] + ei*0 + (1-ki-ei)*(E[father[i]] + 1); = ki*E[1] + (1-ki-ei)*E[...
分类:
其他好文 时间:
2014-11-20 18:34:02
阅读次数:
187
父页面 Father.htm 源码如下: 全面兼容的Iframe 与父页面交互操作 父页面通过 iframe Name 调用子页面的函数或者获取子页面元素的内容 ...
分类:
其他好文 时间:
2014-11-19 12:35:00
阅读次数:
136
刚刚研究完观察者设计模式,yii2随处用到的东西,记录竟总结一下,可能印象会更深一些/** * 观察者模式 */ class Father{ private $_observers = array(); public function register($sub){ /* 注册观察者...
分类:
Web程序 时间:
2014-11-18 23:03:50
阅读次数:
230
题意: 有一个金币堆的金字塔,最上层就有一个金币,以后的i层都是边长为i的实心三角形,给你层数,问:一共有多少个金币?(用科学计数法表示,并且保留两位小数)解题思路: 根据题意可知求出1*n+2*(n-1)+3*(n-2)+4*(n-3)+.......+(n-2)*3+(n-1)*2+n*1的.....
分类:
其他好文 时间:
2014-11-17 17:25:32
阅读次数:
132