- 1、本文档共75页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 5、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 6、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 7、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 8、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
02ACM课件〔lecture02)老少皆宜数学题
ACM程序设计 第二讲 老少皆宜之数学题 今天, 你 了吗? 开胃羹(1) 几个常用单词: 1、vertex ( vertices ) 顶点 2、polygon 多边形 3、convex 凸的 4、concave 凹的 5、segment (线)段(n);分割(v) 开胃羹(2) 再来几个: 1、integer 整数 2、positive 正的 3、negative (adj)负的; (n)负数 4、factorial (n)阶乘;(adj)因子的,阶乘的 5、digital (n)数字;(adj)数字的 ACM数学题特点分析: 题意容易理解 算法相对简单(有些很难的!!) 编程比较容易 ACM/ICPC入门练习的好选择 下面,分类介绍: 从首届“舜宇”杯说起 比赛背景 由于前一年的邀请赛很多学校没有做出一道题,所以,这次的比赛特意准备了几道简单的题目,目的就是让大多数的学校都能拿个气球回去,也好有个交待,于是有… 第一类 1004: Let the Balloon Rise Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges favorite time is guessing the most popular problem. When the contest is over, they will count the balloons of each color and find the result.This year, they decide to leave this lovely job to you. Input Input contains multiple test cases. Each test case starts with a number N (0 N = 1000) -- the total number of balloons distributed. The next N lines contain one color each. The color of a balloon is a string of up to 15 lower-case letters.A test case with N = 0 terminates the input and this test case is not to be processed. ? Output For each case, print the color of balloon for the most popular problem on a single line. It is guaranteed that there is a unique solution for each test case. Sample Input 5 green red blue red red 3 pink orange pink 0 ? 题目评述: 1. 一个让你看到后兴奋的题目… 1004题目分析: 该题算法思想比较简单,就是对输入的字符串进行比较和统计。值得注意的一点是: 如果用C语言来写,要注意可能会把第一个数字后的“回车符”误认为是第一个串,字符串的比较也要用函数和循环语句。 1008: Elevator Problem Description The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at which floors the elevator will stop, in specified order. It costs 6 seconds to move the elevator up one floor, and 4 seconds to move down one floor. The elevator will stay for 5 seconds at each stop.For a given request list, you are to compute the total time spent to fulfill the requests on the list. The elevator is on the 0th floor at the beginni
您可能关注的文档
最近下载
- 江苏省苏锡常镇四市2025届高三全真数学试题模拟试卷(8)含解析.doc VIP
- XX管网改造项目安全预评价报告送审稿-修改稿.doc VIP
- 吉泰科GK800变频器用户手册.pdf
- 2024年度教育系统学校中层后备干部考试知识题库及答案.docx
- 2024年河南省中考语文试卷及答案.pdf VIP
- SaCaDataViz数据可视化分析平台白皮书.pdf VIP
- 2025年江苏省苏锡常镇四市高考数学调研试卷(一)+答案解析(附后).pdf VIP
- 2024年上海市中考综合测试(物理、化学、跨学科)试题卷模拟卷(含答案解析).docx
- Unit1+Presenting+ideas+&+Reflection+课件+-2024-2025学年外研版英语七年级下册+.pptx VIP
- 2025年中国广告喷绘布行业投资分析及发展战略研究咨询报告.docx
文档评论(0)