妹啊,,,做kmp的题,,,从分类里面找的,,结果是一道水题,,,,唉!人生何处不水题,,既然看到了,,顺便水过吧。。。。。。题目:
Soda Surpler
Time Limit: 2000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 103Accepted Submission(s): 75
Problem Description
Tim is an absolutely obsessive soda drinker, he simply cannot get enough. Most annoyingly though, he almost never has any money, so his only obvious legal way to obtain more soda is to take the money he gets when he recycles empty soda bottles to buy new ones.
In addition to the empty bottles resulting from his own consumption he sometimes find empty bottles in the street. One day he was extra thirsty, so he actually drank sodas until he couldn't afford a new one.
Input
Three non-negative integerse, f, c,wheree< 1000 equals the number of empty soda bottles in Tim's possession at the start of the day,f< 1000 the number of empty soda bottles found during the day, and 1 <c< 2000 the
number of empty bottles required to buy a new soda.
Output
How many sodas did Tim drink on his extra thirsty day?
Sample Input
Sample Output
ac代码:
分享到:
相关推荐
杭电ACM基础题
杭电152道水题 适合初学者参考 呵呵 也是为了获取的、点积分 豪侠资料 哈哈
杭州电子科大OJ题目汇总,个人编辑,题目不多,相对简单
杭电ACM水题题目及代码.docx
杭电acm 第1090题的.cpp文件
杭电 数据库 历年 真题 试卷杭电 数据库 历年 真题 试卷杭电 数据库 历年 真题 试卷杭电 数据库 历年 真题 试卷杭电 数据库 历年 真题 试卷
杭电oj1000题解题报告
杭电OJ上面的一些水题的代码,才学了C和C++一段时间的孩纸可以拿来练一练手的,对于高手们都是小case了~~
杭电acm1000,很小,很简单的源代码,真的不错……
蓝桥杯部分往届题目 杭电ACM离线试题 之前联系的题目
杭电ACM的部分答案,希望能够初学者一些帮助
杭电oj 1047习题
杭电2006年通信考研真题,全扫描,高清晰的哦
杭电数电实验课内题设计答案 (2).pdf杭电数电实验课内题设计答案 (2).pdf杭电数电实验课内题设计答案 (2).pdf杭电数电实验课内题设计答案 (2).pdf杭电数电实验课内题设计答案 (2).pdf杭电数电实验课内题设计答案 (2)...
杭电数据结构01年到15年真题,其他的官网上有 杭电数据结构01年到15年真题,其他的官网上有 杭电数据结构01年到15年真题,其他的官网上有 杭电数据结构01年到15年真题,其他的官网上有
杭电ACM试题种类的分类。杭电ACM试题种类的分类。杭电ACM试题种类的分类。杭电ACM试题种类的分类。
2016 年 杭电 笔试 第二题 Ruby解法
(857)去年考杭电弄得一些真题还有答案,还有一些我记的笔记。感觉数据结构重复的知识点比较多,其他的仅供参考。
杭电ACM离线题库(1000-4955)
杭电离线题库最新版本,已经到29页,题目更多,种类更全,让外出无网人员也能轻松阅读题目!