水题,注意数据范围即可#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...
Mac开机密码忘了,咋办?开不开机啦
1.打开你的Mac,command +S 进入你的终端界面
2.输入/sbin/mount -uaw /
3.输入rm /var/db/.AppleSetupDone (删除)
4.reboot ...
分类:
其他好文 时间:
2014-06-15 12:38:37
阅读次数:
207
水到家了#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
常规处理方法:1、编辑/etc/fstab#vim /etc/fstab修改前 :tmpfs
/dev/shm tmpfs defaults 0 0修改后:tmpfs /dev/shm tmpfs defaults.size=4g 0
02、重新mount /dev/shm#mount -o rem...
分类:
其他好文 时间:
2014-06-12 20:15:35
阅读次数:
220