C语言基础,简单数据结构,ACM入门讲座搜索部分
Bjut:mark063
2010.10.30
1
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
C语言是什么
for
while
if…else…
switch , case
函数调用
变量,数组,结构体声明
&,*,->,||,&&,==,++,+=
输入输出scanf, printf,freopen(“in.txt”,”r”,stdin);
2
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
ACM/ICPC
ACM-ICPC以团队的形式代表各学校参赛,每队由3名队员组成。每位队员必须是在校学生,有一定的年龄限制,并且最多可以参加2次全球总决赛和5次区域选拔赛。
比赛期间,每队使用1台电脑需要在5个小时内使用C、C++或Java中的一种编写程序解决7到10个问题。程序完成之后提交裁判运行,运行的结果会判定为正确或错误两种
3
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
其他比赛
Topcoder,Codeforces平均每周一次,还定期有其他形式的比赛,要求快速准确的构造算法写代码能力
有道难题,百度之星,每年5,6月份
数学建模,校内赛4,5月,全国9月
4
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
参考书目
图书馆有关acm的书
网上OJ
5
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
天津赛区
哈尔滨赛区
6
Evaluation only.
Created with Aspose.Slides for .NET 3.5 Client Profile 5.2.0.0.
Copyright 2004-2011 Aspose Pty Ltd.
POJ 2027 No Brainer
Time Limit: 1000MSMemory Limit: 30000K
Total Submissions: 15196Accepted: 10314
Description
Zombies love to eat brains. Yum.
Input
The first line contains a single integer n indicating the number of data sets. The following n lines each represent a data set. Each data set will be formatted according to the following description: A single data set consists of a line "X Y", where X is the number of brains the zombie eats and Y is the number of brains the zombie requires to stay alive.
Output
For each data set, there will be exactly one line of output. This line will be "MMM BRAINS" if the number of brains the zombie eats is greater than or equal to the number of brains the zombie requires to stay alive. Otherwise, the line will be "NO BRAINS".
Sample Input
3 4 5 3 3 4 3
Sample