上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页
摘要: 处理多线程任务时,如果不加临界区,CPU来回切换,导致数据出现错误,所以需要用到临界区。 读者可以把Enter和leave屏蔽了看看什么效果。 阅读全文
posted @ 2016-10-07 19:12 卷珠帘 阅读(547) 评论(0) 推荐(0)
摘要: 首先这里的far,在32位系统已经废除不用了。它是C/C++语言在16位系统中用以标明指针是个远指针的修饰符。 远指针是说指针所指向的地址已经超出了64K(2的十六次方),所以需要使用DS加偏移量的方法来寻址,而不能直接寻址。其反义的修饰符是near。 举例: int far *fptr; fptr 阅读全文
posted @ 2016-10-06 11:58 卷珠帘 阅读(5469) 评论(0) 推荐(0)
摘要: 题目链接:D. Lakes in Berland time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output The map of Berl 阅读全文
posted @ 2016-10-04 00:22 卷珠帘 阅读(244) 评论(0) 推荐(0)
摘要: #include #include #include #include using namespace std; const int maxn = 1e3+5; int dp[maxn][maxn]; char s1[maxn]; char p[maxn]; int main() { int T;cin>>T; while(T--) { int n... 阅读全文
posted @ 2016-10-03 11:08 卷珠帘 阅读(184) 评论(0) 推荐(0)
摘要: Barricade Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 1117 Accepted Submission(s): 340 Proble 阅读全文
posted @ 2016-09-26 23:37 卷珠帘 阅读(330) 评论(0) 推荐(0)
摘要: 众所周知,private里面的变量不可以输出,但是也可以通过特殊途径获得。 1.通过指针暴力内存,把它索罗出来,方法:调试,破掉语法。 并且还可以对类对象进行修改。 1 // Thread.cpp : 定义控制台应用程序的入口点。 2 // 3 4 #include "stdafx.h" 5 #in 阅读全文
posted @ 2016-09-25 12:42 卷珠帘 阅读(666) 评论(0) 推荐(0)
摘要: QSC and Master Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/131072 K (Java/Others)Total Submission(s): 612 Accepted Submission(s): 214 阅读全文
posted @ 2016-09-19 17:43 卷珠帘 阅读(459) 评论(0) 推荐(0)
摘要: C. Thor time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Thor is getting used to the Eart 阅读全文
posted @ 2016-09-07 21:29 卷珠帘 阅读(339) 评论(0) 推荐(0)
摘要: C. Reberland Linguistics time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output First-rate speci 阅读全文
posted @ 2016-09-05 23:47 卷珠帘 阅读(227) 评论(0) 推荐(0)
摘要: D. Directed Roads time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output ZS the Coder and Chris 阅读全文
posted @ 2016-08-31 22:15 卷珠帘 阅读(202) 评论(0) 推荐(0)
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 18 下一页