码迷,mamicode.com
首页 >  
搜索关键字:多校 hdu4885 模拟    ( 31305个结果
XTUOJ 1176 I Love Military Chess(模拟)
I Love Military Chess Accepted : 45   Submit : 141 Time Limit : 1000 MS   Memory Limit : 65536 KB  题目描述 陆军棋,又称陆战棋,简称军棋,是中国近代的一种两人棋类,设计根据军队中的军阶。每一方有25枚棋子...
分类:其他好文   时间:2014-05-13 08:22:28    阅读次数:286
POJ 1379 模拟退火法
Run Away Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 5631   Accepted: 1728 Description One of the traps we will encounter in the Pyramid is located in the ...
分类:其他好文   时间:2014-05-13 07:53:49    阅读次数:362
HDU 4022 Bombing STL 模拟题
手动模拟。。 #include #include #include #include #include #include #include #include using namespace std; #define N 10100 #define inf 1000000010 mapx,y; struct X{ int x,y; bool operator<(const X&a)const{...
分类:其他好文   时间:2014-05-13 07:29:10    阅读次数:294
XTUOJ 1173 Five Tiger(模拟)
?? Five Tiger Accepted : 34   Submit : 107 Time Limit : 1000 MS   Memory Limit : 65536 KB 题目描述 五虎棋是流传在东北民间的一种游戏,GG小的时候,经常被表哥虐得很惨。 由于各个地区的规则可能不大相同,并且GG的回忆不...
分类:其他好文   时间:2014-05-13 06:27:33    阅读次数:251
NYOJ714 Card Trick 【队列模拟】
Card Trick 时间限制:1000 ms  |  内存限制:65535 KB 难度:3 描述 The magician shuffles a small pack of cards, holds it face down and performs the following procedure: The top card is moved to the bottom of ...
分类:其他好文   时间:2014-05-13 05:17:49    阅读次数:249
通过XShell链接虚拟机的CentOS
今天在Win7环境通过XShell链接VirtualBox的CentOS;始终链接不上,原来是因为虚拟机选择网络链接方式不对[推荐连接方式:Host-only Adapter(主机模式)。 在网上查了相关资料得知: 知识提要: VBox在主机中模拟出一张专供虚拟机使用的网卡,所有虚拟机都是连接到该网卡上的,我们可以通过设置这张网卡来实现上网及其他很多功能。主机模式通过虚拟机及网卡的设置可以完...
分类:其他好文   时间:2014-05-13 05:10:38    阅读次数:288
leetcode第一刷_Text Justification
这个题的接受率好低,搞得我一直不敢做。后来认真的看了一下题目,不是很难嘛,字符串的题目ac率就是低,除了难,还因为它的测试用例太多。 思路不难,主要是因为特殊情况太多。纯模拟,我把所有的情况罗列一下,仔细一点的话就能写好了。 1. 当word为空,也就是""时,应该返回一行跟L数目相等的空格。这种情况需要提前判断和处理。 2. 当当前行不是最后一行时,应该尽可能多的放单词,单词不能截断,在这...
分类:其他好文   时间:2014-05-13 00:16:01    阅读次数:341
HDU 4028 The time of a day STL 模拟题
暴力出奇迹。。 #include #include #include #include #include #include #include #include using namespace std; #define ll __int64 #define N 42 ll n,m,ans; ll Gcd(ll x,ll y){ if(x>y)swap(x,y); while(x){ y%=...
分类:其他好文   时间:2014-05-12 23:11:06    阅读次数:445
poj1379+POJ2420+hdu3932(最短距离+费马点+模拟淬火算法)
Run Away Time Limit: 3000MS   Memory Limit: 65536K Total Submissions: 5632   Accepted: 1729 Description One of the traps we will encounter in the Pyramid is located in the...
分类:其他好文   时间:2014-05-12 22:51:43    阅读次数:496
Eclipse中查看Android模拟器SD卡目录
有时候用到Android模拟器来模拟SD卡相关操作,在Eclipse中可以直接查看SD卡目录; 首先,新建模拟器的时候要创建SD卡,存储的大小根据需要创建; 启动模拟器,在Eclipse中打开视图窗口:Window--Show View--File Explorer; 可以看到下面有mnt目录,mnt--sdcard 就是SD卡的目录, 也就是代码中 Environment...
分类:移动开发   时间:2014-05-12 22:38:13    阅读次数:498
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!