摘要: C - Matrix Chain Multiplication(Stack应用) There is a famous railway station in PopPush City. Country there is incredibly hilly. The station was built i 阅读全文
posted @ 2020-03-05 23:16 liyexin 阅读(169) 评论(0) 推荐(0)
摘要: 地址:http://codeforces.com/contest/1305 题意:A题写这么长,实际上意思很简单,给出两组长度相等的数,让你给出排列顺序,保证每一列上下加起来不同。 解析:很水了,小+大=大+小,根据这个,只要上下均按从小到大的顺序排列就可以了。 #include<cstdio> # 阅读全文
posted @ 2020-03-05 23:14 liyexin 阅读(174) 评论(0) 推荐(0)