随笔分类 -  ACM

algorithm
ACM-ICPC国际大学生程序设计竞赛北京赛区(2015)网络练习赛 题目4 : Beautiful String
摘要:We say a string is beautiful if it has the equal amount of 3 or more continuous letters (in increasing order.)Here are some example of valid beautiful... 阅读全文

posted @ 2015-09-18 22:28 马衡 阅读(198) 评论(0) 推荐(0)

ACM-ICPC国际大学生程序设计竞赛北京赛区(2015)网络练习赛 题目5 : Browser Caching
摘要:描述When you browse the Internet, browser usually caches some documents to reduce the time cost of fetching them from remote servers. Let's consider a s... 阅读全文

posted @ 2015-09-18 21:58 马衡 阅读(167) 评论(0) 推荐(0)

NYOJ 1170 最大的数
摘要:描述小明和小红在打赌说自己数学学的好,于是小花就给他们出题了,考考他们谁NB,题目是这样的给你N个数在这n个数之间添加N-1个*或+,使结果最大,但不可以打乱原顺序,请得出这个结果如1 3 5结果是(1+3)*5=20;最大可以添加若干个括号,但一定要保证配对,但是每两个数之间只可能有一个*或+数列... 阅读全文

posted @ 2015-09-17 18:46 马衡 阅读(506) 评论(0) 推荐(0)

导航