上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页
摘要: A game of numbers has the following rules: at the beginning, two distinct positive integers are given by the judge. Then each player in turn must give 阅读全文
posted @ 2021-03-09 22:38 XA科研 阅读(49) 评论(0) 推荐(0) 编辑
摘要: The above picture is from Sina Weibo, showing May 23rd, 2019 as a very cool "Prime Day". That is, not only that the corresponding number of the date 2 阅读全文
posted @ 2021-03-09 21:40 XA科研 阅读(29) 评论(0) 推荐(0) 编辑
摘要: There is a classical process named partition in the famous quick sort algorithm. In this process we typically choose one element as the pivot. Then th 阅读全文
posted @ 2021-03-06 18:26 XA科研 阅读(47) 评论(0) 推荐(0) 编辑
摘要: The string APPAPT contains two PAT's as substrings. The first one is formed by the 2nd, the 4th, and the 6th characters, and the second one is formed 阅读全文
posted @ 2021-03-06 17:18 XA科研 阅读(44) 评论(0) 推荐(0) 编辑
摘要: The "eight queens puzzle" is the problem of placing eight chess queens on an 8 chessboard so that no two queens threaten each other. Thus, a solution 阅读全文
posted @ 2021-03-06 00:49 XA科研 阅读(47) 评论(0) 推荐(0) 编辑
摘要: 模板: #include<bits/stdc++.h> using namespace std; const int maxn=10; int a[maxn];//a[i]表示第i行上的皇后放于a[i]列上,假设a[3]=7:放在第3行第7列上 int cnt=0,n; bool check(int 阅读全文
posted @ 2021-03-06 00:32 XA科研 阅读(43) 评论(0) 推荐(0) 编辑
摘要: Given a collection of number segments, you are supposed to recover the smallest number from them. For example, given { 32, 321, 3214, 0229, 87 }, we c 阅读全文
posted @ 2021-03-05 23:01 XA科研 阅读(61) 评论(0) 推荐(0) 编辑
摘要: Given any permutation of the numbers {0, 1, 2,..., N−1}, it is easy to sort them in increasing order. But what if Swap(0, *) is the ONLY operation tha 阅读全文
posted @ 2021-03-05 22:42 XA科研 阅读(56) 评论(0) 推荐(0) 编辑
摘要: The magic shop in Mars is offering some magic coupons. Each coupon has an integer N printed on it, meaning that when you use this coupon with a produc 阅读全文
posted @ 2021-03-05 21:50 XA科研 阅读(74) 评论(0) 推荐(0) 编辑
摘要: 最近在读一本神书,真是相见恨晚,如果高中就遇见这本书,我一定读它几十遍,可惜现在该考研了,不过还是可以用零碎时间读完的,而且对考研绝对有帮助。后期再透漏书名。 昨天又发现了一本神书,准备开学就购买。真感觉自己捡到宝了,再次感谢华科的学长推荐的课程。 阅读全文
posted @ 2021-03-05 21:34 XA科研 阅读(37) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 23 下一页