Til the Cows Come Home
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 29539
Accepted: 9927
Description
Bessie is out in the field and wants to get back to...
分类:
其他好文 时间:
2014-08-04 21:37:48
阅读次数:
361
1 改变NavBar颜色:选中Navigation Bar 的Tint属性。选中颜色。2 隐藏“back”按钮: self.navigationItem.hidesBackButton = YES;3 隐藏"NavBar" : self.navigationController.navigation...
分类:
移动开发 时间:
2014-08-04 20:39:47
阅读次数:
228
最近研究了下模拟退火,首先戳这里>_顾研08年集训队论文,讲的非常详细
首先随机20个点作为候选解,以此扩展来确定距离工厂最近的点的最远的距离是多少。但是有需要注意到扩展点在边界的情况,因为边界是圆所以很难继续扩展,如论文中提到的两种情况。1.是两工厂垂直平分线与边界交点2.一个工厂的圆与边界相切。单独判断即可。
其中有个很蛋疼的地方,我之前距离用了很多次sqrt,T成狗,比较距离时只需比较距...
分类:
其他好文 时间:
2014-08-03 18:10:16
阅读次数:
215
#include#include#includeusing namespace std;int main(){ string word; vector Str; while(cin>>word) Str.push_back(word); for(auto c:...
分类:
其他好文 时间:
2014-08-03 12:38:05
阅读次数:
223
电信光猫 RG201O-CA2 破解 ======================== 1. 先在路由器底部找到登入帐号和密码 2. 打开 http://192.168.1.1 3. 输入刚才找到的帐号密码,登入路由器 4. 下载路由器配置文件:http://192.168.1.1/back...
分类:
移动开发 时间:
2014-08-02 23:37:45
阅读次数:
554
@Override public boolean onKeyDown(int keyCode, KeyEvent event) { //判断是否按下返回键,event.getRepeatCount() == 0为防止点击的过快 if(keyCode==KeyEvent.KEYCODE_BACK&.....
分类:
其他好文 时间:
2014-08-02 23:15:44
阅读次数:
249
今天做公司项目的时候用到了一个新的东东,
getActionBar().setDisplayHomeAsUpEnabled(true);
这个神奇的东东是使得actionBar上面会出现一个向左的小箭头。
按下它就相当于back,对应的事件是ActionBar.DISPLAY_HOME_AS_UP.
以前做项目为省劲总是在2.0上混,这个东西是在4.0以后默认为false。
...
分类:
移动开发 时间:
2014-08-02 05:14:22
阅读次数:
191
Lexicographicallyalgorithms:1. Iterate array from back to front, and find the first decreasing point: 1,2,4,3 -- 42. Iterate array from back to front,...
分类:
其他好文 时间:
2014-08-02 05:11:02
阅读次数:
199
vector,map这些容器还是在堆上分配的内存,在析构时是释放空间vector在提高性能可以先reserve在push_back()reserve:决定capacity,但没有真正的分配内存,我感觉只是告诉操作系统预留一段空间,但没有真正的分配resize:真正的分配了,可以通过下标访问
分类:
其他好文 时间:
2014-08-01 23:00:12
阅读次数:
263
Problem Description
As the new term comes, the Ignatius Train Station is very busy nowadays. A lot of student want to get back to school by train(because the trains in the Ignatius Train Station is t...
分类:
其他好文 时间:
2014-08-01 13:40:31
阅读次数:
267