摘要: The designers have come up with a new simple game called “Rake It In”. Two players, Alice and Bob, initially select an integer k and initialize a scor 阅读全文
posted @ 2019-02-20 15:58 清酒令 阅读(221) 评论(0) 推荐(0)
摘要: 题目链接 这题写的一把辛酸泪,第一次用getchar()读入,再加上很少用scanf()读入字符,被输入输出缓冲安排的明明白白,最后放弃治疗,用cin,还是死活没有输出,最后才发现是因为for循环多加了一步,白被坑了有一天。 算法分析:首先把每个男士加入队列,让每一个没配对的男士去向女士请求配对,如 阅读全文
posted @ 2019-02-20 10:17 清酒令 阅读(245) 评论(0) 推荐(0)