c语言记忆化搜索,HNUSTC语言基础简单数据结构acm入门第一讲搜索.ppt

这篇内容介绍了C语言的基础知识,包括for、while、if...else...、switch、case等控制结构,函数调用,变量,数组,结构体等。同时,它也涉及到ACM/ICPC国际大学生程序设计竞赛的规则,每队3名在校学生在5小时内使用C、C++或Java解决7-10个问题。此外,还提到了其他编程竞赛如Topcoder和Codeforces,并推荐了一些参考书目和在线资源。
摘要由CSDN通过智能技术生成

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值