09 2020 档案
摘要:原题:http://poj.org/problem?id=3349 大致题意: 给定n个长度为6的数组,求问是否存在两个数组a和b顺序相等或者逆序相等。(这里的相等是指循环相等,不用下标一一对应,比如1 2 3 4 5 6 和2 3 4 5 6 1是相等的) 思路: 对数组的每个元素求和并取大素数模
阅读全文
摘要:原题:http://poj.org/problem?id=1182 参考题解:https://blog.csdn.net/niushuai666/article/details/6981689 Language: 食物链 Time Limit: 1000MS Memory Limit: 10000K
阅读全文
摘要:原题:https://codeforces.com/contest/1417/problem/C 题意:给定一个数组a,长度为n,amazingk为大小为i的所有子串中都有的最小的数字。输出i=1~n的k 参考博客:https://blog.csdn.net/ACkingdom/article/de
阅读全文
摘要:原题:https://leetcode-cn.com/problems/find-mode-in-binary-search-tree/ 参考题解:力扣官方题解 给定一个有相同值的二叉搜索树(BST),找出 BST 中的所有众数(出现频率最高的元素)。 假定 BST 有如下定义: 结点左子树中所含结
阅读全文
摘要:参考题解:https://leetcode-cn.com/problems/binary-tree-cameras/solution/jian-kong-er-cha-shu-by-leetcode-solution/(官方题解) 原题:https://leetcode-cn.com/problem
阅读全文
摘要:错误: django.core.exceptions.ImproperlyConfigured: Requested setting REST_FRAMEWORK, but settings are not configured. You must either define the environ
阅读全文
摘要:题目:https://vjudge.net/problem/UVA-11624/origin 我最先想的是先bfs火焰蔓延,用一个三维数组记录不同步数下的火焰情况。(第一位是步数,第二维第三维是坐标)然后再bfsJoe的走路情况。但是在bfs火焰蔓延的地方有些麻烦。 百度了一下有两种想法: 第一种:
阅读全文
摘要:The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room
阅读全文

浙公网安备 33010602011771号