摘要: #include #include using namespace std; #include int flag[100000]={0}; int num[1001] = { 0 }; int ans[1001] = { 0 }; bool cmp(int x, int y) { return x > y; } int main() { int nums; cin >> nums; int... 阅读全文
posted @ 2019-03-03 23:23 keep! 阅读(73) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2019-02-28 23:37 keep! 阅读(0) 评论(0) 推荐(0) 编辑
摘要: 参照mooc上面北京理工大学的教程,爬去中国大学排名,我就直接写了,不写函数了。这个很简单,主要就是按照html文本的标签树一直找下来就可以了。 阅读全文
posted @ 2019-02-28 23:02 keep! 阅读(85) 评论(0) 推荐(0) 编辑
摘要: 这篇博客说的很好了,基本上是我想的 https://www.cnblogs.com/grandyang/p/4325648.html Runtime: 8 ms, faster than 100.00% of C++ online submissions for Search in Rotated 阅读全文
posted @ 2019-02-28 21:50 keep! 阅读(78) 评论(0) 推荐(0) 编辑
摘要: rt 阅读全文
posted @ 2019-02-27 22:39 keep! 阅读(394) 评论(0) 推荐(0) 编辑
摘要: Runtime: 4 ms, faster than 99.79% of C++ online submissions for Longest Palindromic Substring. 我最开始是用这种方法。 阅读全文
posted @ 2019-01-09 00:57 keep! 阅读(418) 评论(0) 推荐(0) 编辑
摘要: 今天学到了和弦 懂音程,记和弦就是小菜 阅读全文
posted @ 2019-01-08 14:11 keep! 阅读(509) 评论(0) 推荐(0) 编辑
摘要: import os,time,msvcrt def shutdown(): cancell() print(" ") print("") print("") print(" *******... 阅读全文
posted @ 2019-01-07 10:01 keep! 阅读(1657) 评论(0) 推荐(0) 编辑
摘要: class Solution {public: int rob(vector<int>& nums) { if (nums.size() <= 1) return nums.empty() ? 0 : nums[0]; return max(rob(nums, 0, nums.size() - 1) 阅读全文
posted @ 2019-01-06 00:57 keep! 阅读(179) 评论(0) 推荐(0) 编辑
摘要: Runtime: 4 ms, faster than 41.82% of C++ online submissions for House Robber.显然这种方法很慢,因为每一次加的时候都要找一遍最大值。 阅读全文
posted @ 2019-01-06 00:40 keep! 阅读(201) 评论(0) 推荐(0) 编辑
Live2D