题目链接:http://acm.hnu.cn/online/?action=problem&type=show&id=12885&courseid=274解题报告:一共有n个发射装置,有一个接收装置,接收装置能够正确接收并把接收到的信号准确的译码出来的条件是:Ti > 6 * (B +(T1 + T...
分类:
其他好文 时间:
2014-08-10 23:57:00
阅读次数:
408
题目描述:
如果两个字符串的字符一样,但是顺序不一样,被认为是兄弟字符串,比如bad和adb即为兄弟字符串,现提供一个字符串,如何在字典中迅速找到它的兄弟字符串,请描述数据结构和查询过程。
思路一:用计数排序
设计一个数组,对单词每个字母计数加1,对兄弟单词每个字母计数减去1,如果最后这个数组的计数是0,那么就为兄弟单词
bool isBrotherWord(string &str1, s...
分类:
其他好文 时间:
2014-08-09 02:36:47
阅读次数:
255
Ruby 中的 Fiber 通常称为纤程,是一种非抢占式的多线程模型。
纤程不能在外部被终止,只能等待其主动让出执行权。
RGSS3 在事件解释器 Game_Interpreter 与显示文字信息的窗口 Window_Message 中都用到了纤程。
以 Window_Message 为例。
#------------------------------------------...
分类:
其他好文 时间:
2014-08-06 02:02:50
阅读次数:
324
Bad CowtractorsTime Limit:1000MSMemory Limit:65536KTotal Submissions:10194Accepted:4333DescriptionBessie has been hired to build a cheap internet netw...
分类:
其他好文 时间:
2014-08-05 22:15:30
阅读次数:
327
Problem I
Teen Girl Squad
Input: Standard Input
Output: Standard Output
-- 3 spring rolls please.
-- MSG'D!!
-- Oh! My stomach lining!
Strong Bad
You are part of a grou...
分类:
其他好文 时间:
2014-08-05 14:09:29
阅读次数:
286
起初没400 Bad request
过一段时间就产生了
[pid: 14558|app: 0|req: 23/23] 123.127.3.37 () {38 vars in 653 bytes} [Mon Aug 4 21:29:55 2014] GET / => generated 0 bytes in 6 msecs (HTTP/1.1 500) 4 headers in 147 by...
分类:
其他好文 时间:
2014-08-05 00:44:10
阅读次数:
724
警告信息“Nested weights are bad for performance”的消除方法 原因分析:在布局进行嵌套使用时,父布局与子布局都使用了android:layout_weight,但不是必须使用时,便会出现如题所示的警告信息。 解决方法:根据实际情况,去除子布局中非必须使用的a.....
分类:
其他好文 时间:
2014-08-04 13:49:17
阅读次数:
210
Bad Cowtractors
Time Limit: 1000MS
Memory Limit: 65536K
Total Submissions: 10634
Accepted: 4504
Description
Bessie has been hired to build a cheap internet network amon...
分类:
其他好文 时间:
2014-08-02 18:28:53
阅读次数:
233
502 Bad Gateway可能性之一(Ubuntu 12.04+Nginx+uWSGI+Django )
原来是Ubuntu12.04源列表中的Nginx版本太低了(才1.1.9貌似),自己去官网下了最新的,编译安装,搞定!
Nginx配置
Nginx的配置文件是/etc/nginx/nginx.conf,其中设置了一些必要的参数,我们发现其中这样的语句:
...
分类:
其他好文 时间:
2014-08-02 10:04:43
阅读次数:
211