<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[海贼王OP的博客]]></title><description><![CDATA[ACM练习新手]]></description><link>https://blog.csdn.net/weixin_43824551</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; weixin_43824551]]></copyright><item><title><![CDATA[《狂人日记》（书感）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/118933924</link><guid>https://blog.csdn.net/weixin_43824551/article/details/118933924</guid><author>weixin_43824551</author><pubDate>Tue, 20 Jul 2021 14:58:46 +0800</pubDate><description><![CDATA[感谢《觉醒年代》，重新认识了鲁迅先生，入手一本《呐喊》，有感，记于此。
声明：不是专业的书评人，仅谈感想，不做逐字逐句的分析。
三种状态
书中人发现身边人吃人，经历的三种状态。
第一种：发现身边人吃人，劝他们改悔。
原文如下：
我偏要对这伙人说，“你们可以改了，从真心改起！要晓得将来容不得吃人的人，活在世上。
“你们要不改，自己也会吃尽。即使生得多，也会给真的人除灭了，同猎人打完狼子一样！——同虫子一样！”
......
可是偏要说，“你们立刻改了，从真心改起！你们要晓得将来是容不得吃人的人，……”

第二]]></description><category></category></item><item><title><![CDATA[关于第十三届河南省ACM-ICPC的参赛感悟]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/117365487</link><guid>https://blog.csdn.net/weixin_43824551/article/details/117365487</guid><author>weixin_43824551</author><pubDate>Fri, 28 May 2021 16:29:31 +0800</pubDate><description><![CDATA[1.赛前准备
赛前向学校请了两个星期的假，算上五一假期，大概是小一个月。赛前正式的训练赛打了两次，用的是其他省份的题目，ACM的规则。坦白的说，打完练习赛我是有冲金的想法的，但是我没有表达，因为队伍里有一个热情高涨的人，我不想在比赛前把队伍搞得很浮躁。综上，我的赛前的练习是针对黑皮书和英语翻译，放平心态，准备迎战。
2.赛前规划
因为很久没有打比赛了，所以比赛前队伍的目标是保铜争银。赛前我对自己的实力没什么自信，很久没有打比赛了，不知道和外面的差距有多大。比赛前一天在酒店，凌晨一点半才睡着。
3.比赛过程
]]></description><category></category></item><item><title><![CDATA[《明朝那些事儿》（书感）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/116835322</link><guid>https://blog.csdn.net/weixin_43824551/article/details/116835322</guid><author>weixin_43824551</author><pubDate>Sat, 15 May 2021 10:32:46 +0800</pubDate><description><![CDATA[能上历史书的都属聪明人
真正的对决都是聪明人的游戏，凡是在历史长河里留下的人都是聪明人。不要拿现在的思想去揣测。跨时代的自信是无知。没有人是傻子。
好的阴谋总是阳谋
好的阴谋总是阳谋，让你不得不这样做才是最大的阴谋。阴谋诡计总是见不得光的，光明正大的计策才是君子所为。
事出反常必有妖
事出反常必有妖。很多人做出奇怪的决定都是外部因素影响。一件事情太顺利了，就要想想是不是陷阱，如果你觉得非常自信不可能是陷阱，就回去看看第一条。一件事情太困难了，就想想是不是有人阻止，他们可能是为你好，也可能是不理解你，解决阻力]]></description><category></category></item><item><title><![CDATA[《代码清洁之道》（书感）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/116835083</link><guid>https://blog.csdn.net/weixin_43824551/article/details/116835083</guid><author>weixin_43824551</author><pubDate>Sat, 15 May 2021 10:09:04 +0800</pubDate><description><![CDATA[拖了很久了，写了吧。
检查代码
检查每一段代码，完善测试，不要提交不确定的代码。实际做开发时，建议先想好怎么测试，包括每个函数的测试。
保持学习状态
很多情况下，你的任务不是你的熟悉领域。所以，不学习是没办法的。
直面矛盾，学会拒绝
有些东西要拒绝，强加的任务，减少的时间，莫名的需求等等。

...]]></description><category></category></item><item><title><![CDATA[[每日一题-第一期]数学考试]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/116172766</link><guid>https://blog.csdn.net/weixin_43824551/article/details/116172766</guid><author>weixin_43824551</author><pubDate>Mon, 26 Apr 2021 21:16:11 +0800</pubDate><description><![CDATA[数学考试
思路
前缀和。不用同时求出最合适的两个和，甚至随着数组的刷新,并不是最大的组合组成最后的结果。参考数据：-100 11 22 22 11 -100
代码
//数学考试
#include &lt;iostream&gt;
#include &lt;cstdio&gt;
#include &lt;cstring&gt;
using namespace std;
typedef long long ll;
ll a[2000005];
int main() {
    int _; 
    cin &]]></description><category></category></item><item><title><![CDATA[[每日一题-第一期]tokitsukaze and Soldie]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/116131570</link><guid>https://blog.csdn.net/weixin_43824551/article/details/116131570</guid><author>weixin_43824551</author><pubDate>Sun, 25 Apr 2021 16:12:16 +0800</pubDate><description><![CDATA[tokitsukaze and Soldie
思路
先按照容纳量排序，挨个判断，如果当前人数无法接受，就删除能力最小的那个
补充
c++优先队列(priority_queue)用法详解
代码
//tokitsukaze and Soldie
#include &lt;iostream&gt;
#include &lt;cstdio&gt;
#include &lt;cstring&gt;
#include &lt;algorithm&gt;
#include &lt;queue&gt;
#define ll]]></description><category></category></item><item><title><![CDATA[连连看]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/115269348</link><guid>https://blog.csdn.net/weixin_43824551/article/details/115269348</guid><author>weixin_43824551</author><pubDate>Sat, 27 Mar 2021 18:21:06 +0800</pubDate><description><![CDATA[题目
解释
剪枝的搜索，BFS与DFS都可以
代码
//连连看
#include&lt;iostream&gt;
#include&lt;algorithm&gt;
#include&lt;stdio.h&gt;
#include&lt;math.h&gt;
#include&lt;queue&gt;
using namespace std;
struct xjf{
	int x, y, loststop, fan;
}now,well;
int dis[4][2] = { {0,1 }, { 0,-1 }]]></description><category></category></item><item><title><![CDATA[云计算实训]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/111656607</link><guid>https://blog.csdn.net/weixin_43824551/article/details/111656607</guid><author>weixin_43824551</author><pubDate>Thu, 24 Dec 2020 21:23:27 +0800</pubDate><description><![CDATA[]]></description><category></category></item><item><title><![CDATA[定时获取微博热搜爬虫连接MySQL（项目）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/110880986</link><guid>https://blog.csdn.net/weixin_43824551/article/details/110880986</guid><author>weixin_43824551</author><pubDate>Tue, 08 Dec 2020 20:21:42 +0800</pubDate><description><![CDATA[前言
这个项目的第三篇博客，增加了定时爬取和日志写入，解决了一些稳定性的问题。
代码设计
# -*- encoding: utf-8 -*-
# ---------------------------------------------
# 微博热搜
# ---------------------------------------------
import time
import re
import json
import sys
import copy
import pymysql
import req]]></description><category></category></item><item><title><![CDATA[获取微博热搜爬虫连接MySQL（项目）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/110477869</link><guid>https://blog.csdn.net/weixin_43824551/article/details/110477869</guid><author>weixin_43824551</author><pubDate>Wed, 02 Dec 2020 13:16:08 +0800</pubDate><description><![CDATA[前言
之前写过一个爬取热搜的代码，存在本地文件里，现在把数据存在MySQL里。
数据库设计

代码设计
# -*- encoding: utf-8 -*-
# ---------------------------------------------
# 微博热搜
# ---------------------------------------------
import time
import re
import json
import sys
import copy
import pymysql
fro]]></description><category></category></item><item><title><![CDATA[C++语言的输入输出（杂记）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/110230860</link><guid>https://blog.csdn.net/weixin_43824551/article/details/110230860</guid><author>weixin_43824551</author><pubDate>Fri, 27 Nov 2020 14:58:12 +0800</pubDate><description><![CDATA[前言
最开始我是拒绝写这篇博客的，常言道“大行不顾细谨，大礼不辞小让”。
为了以后有个查验的方式，就写吧。
限定宽度
#include&lt;iostream&gt;
#include&lt;iomanip&gt;
using namespace std;
int main(){
	cout &lt;&lt; setw(3) &lt;&lt; 12 &lt;&lt; endl;//宽度三
	return 0;
}
//默认右对齐
//如果长度宽过3，setw失效

限定补位
#include&lt;iost]]></description><category></category></item><item><title><![CDATA[收作业小工具（工具）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/109008910</link><guid>https://blog.csdn.net/weixin_43824551/article/details/109008910</guid><author>weixin_43824551</author><pubDate>Sun, 11 Oct 2020 10:51:01 +0800</pubDate><description><![CDATA[平台：

64位系统

说明：

全班的作业在一个文件夹中，标准化命名后统计出谁没交作业

所用库：


#有几个用不上
from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from lxml import etree
from tkinter import *
import requests
import random
import pyautogui
import pyperclip
import ]]></description><category></category></item><item><title><![CDATA[腾讯文档自动填写工具（工具）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/109008281</link><guid>https://blog.csdn.net/weixin_43824551/article/details/109008281</guid><author>weixin_43824551</author><pubDate>Sun, 11 Oct 2020 10:41:02 +0800</pubDate><description><![CDATA[平台：

chrome，QQ

说明：

班委会提供一个腾讯文档链接，把找到自己的部分，把今天的体温填写完成。

所用库：


from selenium import webdriver
from selenium.webdriver.common.keys import Keys
from lxml import etree
import tkinter as tk 
import requests
import random
import pyautogui
import pyperclip
impo]]></description><category></category></item><item><title><![CDATA[获取微博热搜爬虫（项目）]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/109008014</link><guid>https://blog.csdn.net/weixin_43824551/article/details/109008014</guid><author>weixin_43824551</author><pubDate>Sun, 11 Oct 2020 09:55:50 +0800</pubDate><description><![CDATA[平台：Crawlab（可以没有）

说明：

爬取当前微博热搜，存入TXT。补充说明，整理所有热搜，存入另一个TXT。

所用库：

Selector，requests，BeautifulSoup

任务分解：

1.爬取页面

2.准确找到目标位置

3.存入TXT

代码：


# -*- encoding: utf-8 -*-
# ---------------------------------------------
# 微博热搜
# -------------------------------]]></description><category></category></item><item><title><![CDATA[【多校联赛】The Crime-solving Plan of Groundhog]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107887558</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107887558</guid><author>weixin_43824551</author><pubDate>Sat, 08 Aug 2020 23:09:17 +0800</pubDate><description><![CDATA[The Crime-solving Plan of Groundhog
题意：
给定n个介于0到9之间的数字，请使用它们生成两个正整数，且不带前导零，乘积最小化。输出乘积。
题解：
选出最小的挑出来（非零），剩下的组成最小值，相乘
个人问题：
首先没有考虑到大数，其次arr[i] = arr[i] * k + ans;和arr[i] *=  k + ans;含义不同
代码：
///The Crime-solving Plan of Groundhog（大数+最小排序）
#include &lt;iostre]]></description><category></category></item><item><title><![CDATA[【每日一题】Dividing]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107862224</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107862224</guid><author>weixin_43824551</author><pubDate>Fri, 07 Aug 2020 14:50:22 +0800</pubDate><description><![CDATA[Dividing
题意：

题解：

代码：
///Dividing
#include &lt;bits/stdc++.h&gt;
using namespace std;
typedef long long ll;
const int mod = 1e9 + 7;
ll n, k, ans = 0;
void calc(ll n, ll k)
{
for (ll l = 2, r; l &lt;= min(n, k); l = r + 1)
{
r = min(n / (n / l), k);
ans =]]></description><category></category></item><item><title><![CDATA[【多校联赛】Mask Allocation]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107737748</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107737748</guid><author>weixin_43824551</author><pubDate>Sat, 01 Aug 2020 22:16:49 +0800</pubDate><description><![CDATA[Mask Allocation
题意：
给定n*m个物品，要求构造出k堆物品，并使这些堆可以任意组合为n堆m个物品与m堆n个物品，求最小的k以及对应方案。
题解：
借用他人思路，简单的贪心（本质有递归的意思）

代码：
///Mask Allocation
#include &lt;iostream&gt;
#include &lt;algorithm&gt;
#include &lt;cmath&gt;
#include &lt;cstdio&gt;
#include &lt;string&gt;
#in]]></description><category></category></item><item><title><![CDATA[【多校联赛】Combination of Physics and Maths]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107725295</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107725295</guid><author>weixin_43824551</author><pubDate>Sat, 01 Aug 2020 08:08:04 +0800</pubDate><description><![CDATA[Combination of Physics and Maths
题意：
计算上面的压强
题解：
首先最大值一定是单列，所以直接遍历就可以了
代码：
///Combination of Physics and Maths
#include &lt;iostream&gt;
#include &lt;algorithm&gt;
#include &lt;cmath&gt;
#include &lt;cstdio&gt;
#include &lt;string&gt;
#include &lt;cstring&]]></description><category></category></item><item><title><![CDATA[【多校联赛】Drop Voicing]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107702695</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107702695</guid><author>weixin_43824551</author><pubDate>Thu, 30 Jul 2020 23:17:39 +0800</pubDate><description><![CDATA[Drop Voicing
题意：

题解：
题目不考虑这次操作二，相当于是放一个数就记一次，所以遍历每一个数做头，然后看当前情况下需要调整多少次
代码：
///题目
#include &lt;iostream&gt;
#include &lt;algorithm&gt;
#include &lt;cmath&gt;
#include &lt;cstdio&gt;
#include &lt;string&gt;
#include &lt;cstring&gt;
using namespace std;
int]]></description><category></category></item><item><title><![CDATA[【多校联赛】Easy Construction]]></title><link>https://blog.csdn.net/weixin_43824551/article/details/107624823</link><guid>https://blog.csdn.net/weixin_43824551/article/details/107624823</guid><author>weixin_43824551</author><pubDate>Tue, 28 Jul 2020 00:11:19 +0800</pubDate><description><![CDATA[Easy Construction

题意：
求一个1−n的排列p，对于每个 i（i属于1−n），该排列中存在长度为 i 的连续的子序列，它的和对n取模后为k
题解：

代码：
///Easy Construction
#include &lt;iostream&gt;
#include &lt;algorithm&gt;
#include &lt;cmath&gt;
#include &lt;cstdio&gt;
#include &lt;string&gt;
#include &lt;cstring&g]]></description><category></category></item></channel></rss>