1.可变的方法参数:params public void DrawLine(params Point [] p){}-->DrawLine(p1,p2); orDrawLine(p1,p2,p3);2.向上引用(方法重定义):父类引用子类实例,调用时,则调用父类的方法3.virtual,o...
分类:
其他好文 时间:
2014-06-17 00:15:04
阅读次数:
228
水题,注意数据范围即可#include #include #include using
namespace std;typedef pair Point;int main(){ int x,y; cin >> x >>y;
Point a,b; if((x>0 && y > ...
分类:
其他好文 时间:
2014-06-16 10:47:47
阅读次数:
226
在最新的WWDC14上面,苹果发布了iOS8的一些新特性,而其中最让程序员兴奋的特性莫过于Extension,或者称之为Widget。下面就来尝鲜试验一把。一、Extension简介首先,苹果只支持下面这种类型的Extension
Point,也不支持第三方应用自己设置Extension Point...
分类:
移动开发 时间:
2014-06-16 00:35:22
阅读次数:
392
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying to reach the...
分类:
其他好文 时间:
2014-06-15 19:28:54
阅读次数:
246
Size visibleSize = Director::getInstance()->getVisibleSize();
Point origin = Director::getInstance()->getVisibleOrigin();
std::string path = FileUtils::getInstance()->fullPathForFilename("story.js...
水到家了#include #include #include using namespace std;struct Point{ int index, pos; Point(int index_ = 0, int pos_ = 0){ index = index_; ...
分类:
其他好文 时间:
2014-06-14 21:21:40
阅读次数:
281
题目:
链接:点击打开链接
题意:
输入n个点,要求选m个点满足连接m个点的m-1条边权值和sum与点的权值和ans最小,即sum/ans最小,并输出所选的m个点,如果有多种情况就选第一个点最小的,如果第一个点也相同就选第二个点最小的........
求一个图中的一颗子树,使得Sum(edge weight)/Sum(point weight)最小~
数据...
分类:
其他好文 时间:
2014-06-14 07:05:34
阅读次数:
350
第一种音量调节的示例#region 音量控制 private Point
mouse_offset; private void pictureBox7_MouseDown(object sender, MouseEventArgs
e) { ...
题目
A robot is located at the top-left corner of a m x n grid (marked 'Start' in the diagram below).
The robot can only move either down or right at any point in time. The robot is trying t...
分类:
其他好文 时间:
2014-06-10 18:43:37
阅读次数:
254