上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页
摘要: #include#include #include #include #include #include #include #include #include #include #include #define ... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(111) 评论(0) 推荐(0)
摘要: Setting { "python.linting.pylintArgs": ["--disable=C,R"]}launch{ // 使用 IntelliSense 了解相关属性。 // 悬... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(2913) 评论(0) 推荐(0)
摘要: { // 使用 IntelliSense 了解相关属性。 // 悬停以查看现有属性的描述。 // 欲了解更多信息,请访问: https://go.microsoft.com/fwlink/?l... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(2891) 评论(0) 推荐(0)
摘要: 1. Main类与Scanner1.1 Main类你提交的所有程序都应该以如下形式出现public class Main{ public static void main(String[] args){ ... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(2306) 评论(0) 推荐(0)
摘要: 0. FAQ0.1 提交后提示“答案错误”或者“格式错误”PTA检查答案正确与否是通过字符串匹配实现的。所以可能有以下几种原因:格式错误:程序的输出要与题目中的样例输出格式一样(输出内容根据运行结果不同而变化),... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(1510) 评论(0) 推荐(0)
摘要: 本题的核心在于如何表达出所谓“子字符串”中有相同数目的0或1。在这里可以采用前缀和数组来表示这样的情况,即某个区间的区间和是它长度的一半时,这个区间就是所需的区间之一,此时更新答案即可。当然,也可以使用另一种方案... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(136) 评论(0) 推荐(0)
摘要: 既然要找到一个面积第二大的,内部全是1的矩阵,我们可以把0区域看作背景板,1区域看作目标区域,然后从目标区域内寻找这样的矩阵。单调栈自然可以满足这些需求,也就是通过已知高,并维持栈内高的递增性(一般用来找最大值)... 阅读全文
posted @ 2019-07-28 23:37 完全墨染的樱花 阅读(195) 评论(0) 推荐(0)
摘要: Y_UME has just found a number x in his right pocket. The number is a non-negative integer ranging from 0 t... 阅读全文
posted @ 2019-07-28 23:36 完全墨染的樱花 阅读(123) 评论(0) 推荐(0)
摘要: Given 2N people, you need to assign each of them into either red team or white team such that each team co... 阅读全文
posted @ 2019-07-28 23:36 完全墨染的樱花 阅读(236) 评论(0) 推荐(0)
摘要: 本题是要求你找出一个组内比原字符串权值大的前缀,而一个组内包含了其他字符串的前缀,但可能也适配于这个字符串。所以说要记录这些前缀的个数才能解出这个问题。一个方法是用std::map这样的一个红黑树字典,可以直接把... 阅读全文
posted @ 2019-07-28 23:36 完全墨染的樱花 阅读(495) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 10 ··· 13 下一页