上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 57 下一页
该文被密码保护。 阅读全文
posted @ 2019-04-01 22:18 heyuhhh 阅读(5) 评论(0) 推荐(0) 编辑
摘要: Stone Game II Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 609 Accepted Submission(s): 350 题目链 阅读全文
posted @ 2019-03-21 21:57 heyuhhh 阅读(171) 评论(0) 推荐(0) 编辑
摘要: S-Nim Time Limit: 5000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 10368 Accepted Submission(s): 4262 题目链接:htt 阅读全文
posted @ 2019-03-21 21:24 heyuhhh 阅读(228) 评论(0) 推荐(0) 编辑
摘要: Nim 题目链接:http://poj.org/problem?id=2975 Description: Nim is a 2-player game featuring several piles of stones. Players alternate turns, and on his/her 阅读全文
posted @ 2019-03-21 21:18 heyuhhh 阅读(230) 评论(0) 推荐(0) 编辑
摘要: Matches Game 题目链接:http://poj.org/problem?id=2234 Description: Here is a simple game. In this game, there are several piles of matches and two players. 阅读全文
posted @ 2019-03-21 21:14 heyuhhh 阅读(237) 评论(0) 推荐(0) 编辑
摘要: B - Reversi 题目链接:https://atcoder.jp/contests/agc031/tasks/agc031_b 题意: 给出n个数,然后现在你可以对一段区间修改成相同的值,前提是左右端点的值相同。问最后这n个数有多少种不同的值。 题解: 设dp[i]表示只考虑1~i这段,有多少 阅读全文
posted @ 2019-03-21 21:10 heyuhhh 阅读(155) 评论(0) 推荐(0) 编辑
摘要: 出题的诀窍 题目链接:https://ac.nowcoder.com/acm/contest/393/C 题解: 由于他是在每一行选取一个元素,然后纵向来比较,这里行的顺序是不会影响的,所以我们将每一个数存入哈希表中,然后对每一个数来进行考虑。 第一行的数,对答案的贡献为mn-1,而第二行对答案的贡 阅读全文
posted @ 2019-03-21 20:56 heyuhhh 阅读(135) 评论(0) 推荐(0) 编辑
摘要: Constellations 题目链接:http://poj.org/problem?id=3690 Description: The starry sky in the summer night is one of the most beautiful things on this planet. 阅读全文
posted @ 2019-03-21 20:47 heyuhhh 阅读(209) 评论(0) 推荐(0) 编辑
摘要: Codeforces Round #547 (Div. 3) 题目链接:https://codeforces.com/contest/1141 A,B咕咕了... C. Polycarp Restores Permutation 题意: 有一个n的排列,但现在只给出相邻两位的差,问原排列是多少,如果 阅读全文
posted @ 2019-03-21 20:40 heyuhhh 阅读(354) 评论(0) 推荐(0) 编辑
摘要: C. Vasya And The Mushrooms 题目链接:https://codeforces.com/contest/1016/problem/C 题意: emmm,说不清楚,还是直接看题目吧。 题解: 这个题人行走的方式是有一定的规律的,最后都是直接走到底,然后从另外一行走回来。并且通过画 阅读全文
posted @ 2019-03-17 22:25 heyuhhh 阅读(139) 评论(0) 推荐(0) 编辑
上一页 1 ··· 32 33 34 35 36 37 38 39 40 ··· 57 下一页