- 6
- 0
- 约1.35万字
- 约 86页
- 2017-06-14 发布于北京
- 举报
ACM程序设计 ACM题目特点 由于ACM竞赛题目的输入数据和输出数据一般有多组(不定),并且格式多种多样,所以,如何处理题目的输入输出是对大家的一项最基本的要求。这也是困扰初学者的一大问题。 下面,分类介绍: 一个超级简单的题目(ex-1): Problem Description Your task is to calculate a + b. Input The input will consist of a series of pairs of integers a and b, separated by a space, one pair of integers per line.? OutputFor each pair of input integers a and b you should output the sum of a and b in one line, and with one line of output for each line in input. Sample input1 510 20 Sample output630 初学者很常见的一种写法: #includestdio.h void main() { int a,b; scanf(“%d %d”,a,b); Printf(“%d”,a+b)
您可能关注的文档
- 9古诗两首《jt夜书所见》《九月九日忆山东兄弟》李慧兰.ppt
- 大学语文诗经.ppt
- 9第三节太阳病变证痞证上热下寒证.ppt
- 9用北美的范围、位置.ppt
- 大气压强2015.10.ppt
- 9资源环境信息系统(GIS07).ppt
- 9第九讲中国现代经济与生活.ppt
- 大物解题法2:运动与力.ppt
- abh0816第一节领导的本质与内容.ppt
- 大脑思维导图.ppt
- unidir -人工智能与国际安全:理解风险并为建立信任措施铺平道路 AI and International Security - Understanding the Risks and Paving the Path for Confidence-Building Measures.pdf
- unidir -通过负责任行为的规范、规则和原则推进空间安全的非洲视角 African Perspectives for Advancing Space Security Through Norms, Rules and Principles of Responsible Behaviours - Workshop Summary Report.pdf
- wfp -约旦学校供餐计划影响评估 Jordan, School Meal Programme Impact Evaluation.pdf
- wfp -注意差距 莱索托案例研究 Mind the Gap -Lesotho Case Study.pdf
- unesco -数字公共产品与新兴技术促进公平和包容的知识获取 Dubai Declaration on Open Educational Resources (OER) digital public goods and emerging technologies for equitable and inclusive access to knowledge.pdf
- unidir -致命自主武器系统领域新兴技术相关提案 Proposals Related to Emerging Technologies in the Area of Lethal Autonomous Weapons Systems- A Resource Paper (updated).pdf
- who -脊髓灰质炎过渡战略框架:监测与评估 Polio transition strategic framework - Monitoring and evaluation.pdf
- who -高效实用的结核病治疗试验平台会议报告 Platform for efficient and practical tuberculosis treatment trials.pdf
- unesco -国际性教育技术指导纲要:循证方法 International technical guidance on sexuality education - an evidence-informed approach.pdf
- UNIDIR_unidir -涉足浑浊之水:海底通信电缆与负责任的国家行为 Wading Murky Waters - Subsea Communications Cables and Responsible State Behaviour.pdf
原创力文档

文档评论(0)