<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[siyu]]></title><description><![CDATA[“我知道天下所有的宴席都有终结.但依然希望这一刻,这注定破碎成空的丰美和悲哀,永无停顿.”]]></description><link>https://blog.csdn.net/siyutt</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; siyutt]]></copyright><item><title><![CDATA[Codeforce1062C(数学+快速幂)]]></title><link>https://blog.csdn.net/siyutt/article/details/84192386</link><guid>https://blog.csdn.net/siyutt/article/details/84192386</guid><author>siyutt</author><pubDate>Sat, 17 Nov 2018 20:30:27 +0800</pubDate><description><![CDATA[#Banh-mi
传送门
####思路:有题意可知在区间内取数的位置不影响结果，且要使得答案最大我们要从1开始取。
1 &amp;nbsp; 1 &amp;nbsp; 1 &amp;nbsp; 0 &amp;nbsp; 0 &amp;nbsp; 0
1]&amp;nbsp; 2 &amp;nbsp; 2 &amp;nbsp; 1 &amp;nbsp; 1 &amp;nbsp; 1
&amp;nbsp; &amp;nbsp; &amp;nbsp;2]&amp;nbsp; 4 &amp;nbsp; 3 &amp]]></description><category></category></item><item><title><![CDATA[Longest Valid Parentheses(DP/思维)]]></title><link>https://blog.csdn.net/siyutt/article/details/83039465</link><guid>https://blog.csdn.net/siyutt/article/details/83039465</guid><author>siyutt</author><pubDate>Sat, 13 Oct 2018 16:03:53 +0800</pubDate><description><![CDATA[32. Longest Valid Parentheses
传送门
dp思路：
问题-&amp;gt;最长有效括号子序列长度
状态-&amp;gt;dp[i]以i为结尾的最长有效括号子序列长度(则str[i]=  ‘)’  );
子状态:
如果str[i-1]=  ‘(’  ----&amp;gt;dp[i-2]
如果str[i-1]=  ‘)’  ----&amp;gt;如果str[i-dp[i-1]-1]=  ‘(’  --...]]></description><category></category></item><item><title><![CDATA[hdu6351(暴力+技巧)---2018多校5]]></title><link>https://blog.csdn.net/siyutt/article/details/81482211</link><guid>https://blog.csdn.net/siyutt/article/details/81482211</guid><author>siyutt</author><pubDate>Tue, 07 Aug 2018 15:32:07 +0800</pubDate><description><![CDATA[Beautiful Now

题目传送门

#include &amp;lt;iostream&amp;gt;
#include &amp;lt;fstream&amp;gt;
#include &amp;lt;cstdio&amp;gt;
#include &amp;lt;cstring&amp;gt;
#include &amp;lt;queue&amp;gt;
#include &amp;lt;stack&amp;gt;
#include &amp;lt;vector&amp;gt;
#include]]></description><category></category></item><item><title><![CDATA[hdu6341(dfs剪枝)]]></title><link>https://blog.csdn.net/siyutt/article/details/81388423</link><guid>https://blog.csdn.net/siyutt/article/details/81388423</guid><author>siyutt</author><pubDate>Fri, 03 Aug 2018 15:24:40 +0800</pubDate><description><![CDATA[Let Sudoku Rotate

题目传送门

思路:每个４Ｘ４的方块要么不旋转，要么旋转３次，所以对每个方块旋转次数进行dfs，再通过剪枝优化时间复杂度。剪枝优化是通过判断当前方块的旋转是否影响这个方块所在的列与行的前一部分，如果有冲突那就没有必要继续搜下去。



#include &amp;lt;iostream&amp;gt;
#include &amp;lt;fstream&amp;gt;
#include &amp;lt...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_7]]></title><link>https://blog.csdn.net/siyutt/article/details/81354364</link><guid>https://blog.csdn.net/siyutt/article/details/81354364</guid><author>siyutt</author><pubDate>Thu, 02 Aug 2018 10:56:40 +0800</pubDate><description><![CDATA[Shell 输入/输出重定向




  命令
  描述



  command &amp;amp;gt; file
  将输出重定向到 file。


  command &amp;amp;lt; file
  将输入重定向到 file。


  command &amp;amp;gt;&amp;amp;gt; file
  将输出以追加的方式重定向到 file。


  n &amp;amp;gt; file
  将文件描述符为 n 的文件重定向到 file。


  ...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_6]]></title><link>https://blog.csdn.net/siyutt/article/details/81281329</link><guid>https://blog.csdn.net/siyutt/article/details/81281329</guid><author>siyutt</author><pubDate>Mon, 30 Jul 2018 10:53:37 +0800</pubDate><description><![CDATA[Shell 函数

实例

fun(){
    sum=0
    for((i=1;i &amp;lt;=$# ;i++));do
        let sum+=$i
    done
    return $sum
}
fun 1 2 3 4 5 6 7 8 9 10 11 12 13 14
echo $?]]></description><category></category></item><item><title><![CDATA[简单Linux入门_5]]></title><link>https://blog.csdn.net/siyutt/article/details/81280500</link><guid>https://blog.csdn.net/siyutt/article/details/81280500</guid><author>siyutt</author><pubDate>Mon, 30 Jul 2018 10:19:01 +0800</pubDate><description><![CDATA[Shell 流程控制

if else

格式

if condition1
then
    command1
elif condition2 
then 
    command2
else
    commandN
fi

实例

num1=100
num2=100
if test $num1 -eq $num2
then
    echo &quot;==&quot;
else
    echo &quot;!=&quot;
f...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_4]]></title><link>https://blog.csdn.net/siyutt/article/details/81257901</link><guid>https://blog.csdn.net/siyutt/article/details/81257901</guid><author>siyutt</author><pubDate>Sat, 28 Jul 2018 10:11:12 +0800</pubDate><description><![CDATA[Shell 基本运算符



算术运算符

详细



Shell 基本数值运算方式

方式1:使用expr命令

如a+b:

expr $a + $b

注意:


变量名必须加$
运算符两边必须有空格
乘号必须使用*，避免被当作Shell通配符
自行输出时需要使用反引号 `包含


方式2:使用$[]或$(())表达式

如a+b:

echo $[a+b]

与expr相比，可以省略$，运...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_3]]></title><link>https://blog.csdn.net/siyutt/article/details/81216034</link><guid>https://blog.csdn.net/siyutt/article/details/81216034</guid><author>siyutt</author><pubDate>Thu, 26 Jul 2018 10:46:43 +0800</pubDate><description><![CDATA[Shell 学习

Shell 脚本（shell script），是一种为 shell 编写的脚本程序。  
用文本编辑器(可以使用vim 命令来创建文件)，新建一个文件 test.sh，扩展名为 sh（sh代表shell），注意扩展名并不影响脚本执行。



#!/bin/bash
##! 是一个约定的标记，它告诉系统这个脚本需要什么解释器来执行，即使用哪一种 Shell。
echo &amp;quot;Hell...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_2]]></title><link>https://blog.csdn.net/siyutt/article/details/81215407</link><guid>https://blog.csdn.net/siyutt/article/details/81215407</guid><author>siyutt</author><pubDate>Thu, 26 Jul 2018 10:24:34 +0800</pubDate><description><![CDATA[Linux vim





命令模式：


用户刚刚启动 vi/vim，便进入了命令模式。
此状态下敲击键盘动作会被Vim识别为命令，而非输入字符。比如我们此时按下i，并不会输入一个字符，i被当作了一个命令。
以下是常用的几个命令：
i 切换到输入模式，以输入字符。
x 删除当前光标所在处的字符。
切换到底线命令模式，以在最底一行输入命令。 
若想要编辑文本：启动Vim，进入了命令模式，按下i，...]]></description><category></category></item><item><title><![CDATA[简单Linux入门_1]]></title><link>https://blog.csdn.net/siyutt/article/details/81182402</link><guid>https://blog.csdn.net/siyutt/article/details/81182402</guid><author>siyutt</author><pubDate>Tue, 24 Jul 2018 12:06:37 +0800</pubDate><description><![CDATA[Linux 系统目录结构

/bin： 
bin是Binary的缩写, 这个目录存放着最经常使用的命令。 
/boot： 
这里存放的是启动Linux时使用的一些核心文件，包括一些连接文件以及镜像文件。 
/dev ： 
dev是Device(设备)的缩写, 该目录下存放的是Linux的外部设备，在Linux中访问设备的方式和访问文件的方式是相同的。 
/etc： 
这个目录用来存放所有的系统管理...]]></description><category></category></item><item><title><![CDATA[Codeforce962D(暴力优先队列)]]></title><link>https://blog.csdn.net/siyutt/article/details/79933855</link><guid>https://blog.csdn.net/siyutt/article/details/79933855</guid><author>siyutt</author><pubDate>Fri, 13 Apr 2018 19:59:00 +0800</pubDate><description><![CDATA[Merge Equals

You are given an array of positive integers. While there are at least two equal elements, we will perform the following operation. We choose the smallest value x that occurs in the array...]]></description><category></category></item><item><title><![CDATA[Codeforce962B(二进制枚举暴力)]]></title><link>https://blog.csdn.net/siyutt/article/details/79933332</link><guid>https://blog.csdn.net/siyutt/article/details/79933332</guid><author>siyutt</author><pubDate>Fri, 13 Apr 2018 19:08:05 +0800</pubDate><description><![CDATA[Make a Square

传送门



题意:给你一个数字(没有前导零)，要求你删除一些数字，使得这个数字(不能有前导零)的平方根为整数。没有则输出-1.



思路:数字不大，二进制枚举每一种组合情况。

二进制枚举实现传送门

#include &amp;lt;iostream&amp;gt;
#include &amp;lt;fstream&amp;gt;
#include &amp;lt;cstdio&amp;gt;
#includ...]]></description><category></category></item><item><title><![CDATA[Codeforce962B(暴力)]]></title><link>https://blog.csdn.net/siyutt/article/details/79904106</link><guid>https://blog.csdn.net/siyutt/article/details/79904106</guid><author>siyutt</author><pubDate>Wed, 11 Apr 2018 22:13:00 +0800</pubDate><description><![CDATA[Students in Railway Carriage

There are  
n 
n 
consecutive seat places in a railway carriage. Each place is either empty or occupied by a passenger. 
The university team for the Olympiad consists of ...]]></description><category></category></item><item><title><![CDATA[Codeforce960B(暴力贪心)]]></title><link>https://blog.csdn.net/siyutt/article/details/79887459</link><guid>https://blog.csdn.net/siyutt/article/details/79887459</guid><author>siyutt</author><pubDate>Tue, 10 Apr 2018 20:41:56 +0800</pubDate><description><![CDATA[Minimize the error

You are given two arrays A and B, each of size n. The error, E, between these two arrays is defined . You have to perform exactly k1 operations on array A and exactly k2 operations...]]></description><category></category></item><item><title><![CDATA[Codeforce961C(暴力)]]></title><link>https://blog.csdn.net/siyutt/article/details/79885887</link><guid>https://blog.csdn.net/siyutt/article/details/79885887</guid><author>siyutt</author><pubDate>Tue, 10 Apr 2018 19:00:17 +0800</pubDate><description><![CDATA[Chessboard

Magnus decided to play a classic chess game. Though what he saw in his locker shocked him! His favourite chessboard got broken into 4 pieces, each of size n by n, n is always odd. And what...]]></description><category></category></item><item><title><![CDATA[Codeforce957B(暴力模拟)]]></title><link>https://blog.csdn.net/siyutt/article/details/79719135</link><guid>https://blog.csdn.net/siyutt/article/details/79719135</guid><author>siyutt</author><pubDate>Tue, 27 Mar 2018 20:54:31 +0800</pubDate><description><![CDATA[Mystical Mosaic

There is a rectangular grid of n rows of m initially-white cells each. 
Arkady performed a certain number (possibly zero) of operations on it. In the i-th operation, a non-empty subse...]]></description><category></category></item><item><title><![CDATA[Codeforce954D(最短路)]]></title><link>https://blog.csdn.net/siyutt/article/details/79672574</link><guid>https://blog.csdn.net/siyutt/article/details/79672574</guid><author>siyutt</author><pubDate>Fri, 23 Mar 2018 20:52:32 +0800</pubDate><description><![CDATA[Fight Against Traffic



题意:有一个无向图有n个点m条边，且边权为1，给你s和t，现在要你加一条边，使得s和t之间的最短路径不变。问有多少条这种路径。

思路:从s和t两点分别做一次最短路，然后遍历没有相连的两点，判断相连后是否影响最短路。



#include &amp;lt;iostream&amp;gt;
#include &amp;lt;fstream&amp;gt;
#include &amp;lt...]]></description><category></category></item><item><title><![CDATA[Codeforce931D(简单dfs+思维)]]></title><link>https://blog.csdn.net/siyutt/article/details/79573125</link><guid>https://blog.csdn.net/siyutt/article/details/79573125</guid><author>siyutt</author><pubDate>Thu, 15 Mar 2018 20:04:43 +0800</pubDate><description><![CDATA[Peculiar apple-tree

传送门



题意:有一颗树，树上有n多花，都已经结果并按照一定规则掉落，把它们从1~n进行标号，只有当苹果掉到1时才能采摘。当偶数个掉到同一朵花上时，它们消失不见，如果是奇数则剩下一个。它们掉落的规则由一个大小为n-1的序列确定——–i花上的苹果掉到pi花上。保证它们的终点都为1；

思路:掉落的轨迹可以看出它是一棵树，并且只有同深度的苹果才能互相影响到...]]></description><category></category></item><item><title><![CDATA[Codeforce931C(思维)]]></title><link>https://blog.csdn.net/siyutt/article/details/79560247</link><guid>https://blog.csdn.net/siyutt/article/details/79560247</guid><author>siyutt</author><pubDate>Wed, 14 Mar 2018 20:59:00 +0800</pubDate><description><![CDATA[Laboratory Work

传送门



题意:给你一个长为n的序列，该序列的元素之间的差值不超过二，现在要你找出一个新的大小同为n的序列，其平均数于原序列相等，并且里面的元素大小要在原序列的范围之内。



思路:要求大小为n，平均数相等，元素大小范围在原序列内，这说明要求在原序列中元素之间进行转化，而能转化的只有一种—a+1 + a+3 = 2*（a+2）  所以进行判断转化就可以了

...]]></description><category></category></item></channel></rss>