<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[Qian998的博客]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/Qian998</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; Qian998]]></copyright><item><title><![CDATA[codeforces 839 C Journey]]></title><link>https://blog.csdn.net/Qian998/article/details/77141691</link><guid>https://blog.csdn.net/Qian998/article/details/77141691</guid><author>Qian998</author><pubDate>Sun, 13 Aug 2017 13:12:29 +0800</pubDate><description><![CDATA[C. Journey

time limit per test
2 seconds

memory limit per test
256 megabytes

input
standard input

output
standard output


There are n cities and 
n - 1 roads in the Seven Kingdoms]]></description><category></category></item><item><title><![CDATA[codeforces 839 B Game of the Rows]]></title><link>https://blog.csdn.net/Qian998/article/details/77141613</link><guid>https://blog.csdn.net/Qian998/article/details/77141613</guid><author>Qian998</author><pubDate>Sun, 13 Aug 2017 12:55:07 +0800</pubDate><description><![CDATA[B. Game of the Rows

time limit per test
1 second

memory limit per test
256 megabytes

input
standard input

output
standard output


Daenerys Targaryen has an army consisting of k gro]]></description><category></category></item><item><title><![CDATA[codeforces 835 C Star sky]]></title><link>https://blog.csdn.net/Qian998/article/details/76516654</link><guid>https://blog.csdn.net/Qian998/article/details/76516654</guid><author>Qian998</author><pubDate>Tue, 01 Aug 2017 12:19:44 +0800</pubDate><description><![CDATA[先做一个预处理，求出sum[x][y][t]，表示矩形(0,0)~(x,y) 在时间t时的所有点的亮度总和，sum[x][y][t] += sum[x-1][y][t] + sum[x][y-1][t] - sum[x-1][y-1][t]。
之后对于每个查询就可以在O(1)时间内求出，ans = sum[rx][ry][t] - sum[rx][ly-1][t] - sum[lx-1][ry][t] + sum[lx-1][ly-1][t]]]></description><category></category></item><item><title><![CDATA[codeforces 834 C The Meaningless Game]]></title><link>https://blog.csdn.net/Qian998/article/details/76436740</link><guid>https://blog.csdn.net/Qian998/article/details/76436740</guid><author>Qian998</author><pubDate>Mon, 31 Jul 2017 14:32:45 +0800</pubDate><description><![CDATA[题目：http://codeforces.com/contest/834/problem/C 
大致题意：  
有n轮比赛，每轮比赛有多个回合，每个回合规定一个自然数k，赢的人分数 * k^2 ，输的人分数 * k 。对于每轮比赛，输入 分数 a和b 判断是否是符合比赛规则的分数。 
解法： 
对于每轮比赛，如果 a * b == K * K * K ( K = k1 * k2 …  km，m个回]]></description><category></category></item><item><title><![CDATA[codeforces 822 C Hacker, pack your bags!]]></title><link>https://blog.csdn.net/Qian998/article/details/74202075</link><guid>https://blog.csdn.net/Qian998/article/details/74202075</guid><author>Qian998</author><pubDate>Mon, 03 Jul 2017 15:25:29 +0800</pubDate><description><![CDATA[题目：http://codeforces.com/contest/822/problem/C 
大致题意：  
给出n个区间和cost，以及一个数x，从n个区间取出两个不重合的区间使得他们的区间大小恰好为x， 并使得两个cost和最小 
解法：  
对于每个区间，一个区间起点之前的区间都与这个区间不重合，用一个数组动态记录这个区间之前的所有区间大小对应的cost最小值，那么就可以求出这个区间和之前区]]></description><category></category></item><item><title><![CDATA[codeforces 822 B Crossword solving]]></title><link>https://blog.csdn.net/Qian998/article/details/74193064</link><guid>https://blog.csdn.net/Qian998/article/details/74193064</guid><author>Qian998</author><pubDate>Mon, 03 Jul 2017 14:31:14 +0800</pubDate><description><![CDATA[题目：http://codeforces.com/contest/822/problem/B 
大致题意：  
给出两个字符串，问第一个字符串变成第二个字符串的子串最少需要做多少次replace，并输出replace的位置。 
解法：  
直接暴力求解，中间记录replace的次数和位置，保留最小值和对于的位置 
代码：#include <iostream>
using namespace std;]]></description><category></category></item><item><title><![CDATA[codeforces 822 A I'm bored with life]]></title><link>https://blog.csdn.net/Qian998/article/details/74191539</link><guid>https://blog.csdn.net/Qian998/article/details/74191539</guid><author>Qian998</author><pubDate>Mon, 03 Jul 2017 14:23:55 +0800</pubDate><description><![CDATA[题目：http://codeforces.com/contest/822/problem/A 
大致题意：  
给两个数求他们阶层的最大公约数。  
解法：  
显然答案是两个数最小值的阶层，因为其中一个数小于等于12，所以直接求最小值的阶层不会溢出。 
代码： 
#include <iostream> 
using namespace std; 
int main(){ 
    int n,m;]]></description><category></category></item><item><title><![CDATA[mysql-5.7.18 解压缩 winx64 配置]]></title><link>https://blog.csdn.net/Qian998/article/details/73758570</link><guid>https://blog.csdn.net/Qian998/article/details/73758570</guid><author>Qian998</author><pubDate>Tue, 27 Jun 2017 00:20:33 +0800</pubDate><description><![CDATA[1.下载mysql-5.7.18,解压缩 
2.在环境变量的系统变量的path中添加解压缩bin文件夹目录 
3.运行cmd，输入 mysqld –initialize-insecure 生成data文件夹 
4.在windows目录创建my.ini，输入以下内容，修改basedir和datadir为mysql-5.7.18的解压缩路径[client]
port=3306
default-chara]]></description><category></category></item><item><title><![CDATA[codeforces 821 B Okabe and Banana Trees]]></title><link>https://blog.csdn.net/Qian998/article/details/73747834</link><guid>https://blog.csdn.net/Qian998/article/details/73747834</guid><author>Qian998</author><pubDate>Mon, 26 Jun 2017 22:22:56 +0800</pubDate><description><![CDATA[题目：http://codeforces.com/contest/821/problem/B 
大致题意： 
给两个正整数m,b,画出一条直线y = -x/m + b，求直线下的一个矩形使得获取的香蕉数最多，每个点(x,y)的香蕉数目为 x+y。 
解法： 
可推得公式，矩形右上角为(x,y)的香蕉总数为  
(x+1) * x / 2 * (y+1) + (y+1) * y /2 * (x+1)]]></description><category></category></item><item><title><![CDATA[lua 在 windows 系统的环境配置]]></title><link>https://blog.csdn.net/Qian998/article/details/73603962</link><guid>https://blog.csdn.net/Qian998/article/details/73603962</guid><author>Qian998</author><pubDate>Thu, 22 Jun 2017 14:28:54 +0800</pubDate><description><![CDATA[lua在windows系统的安装参考链接： 
http://lua-users.org/wiki/BuildingLuaInWindowsForNewbies 
1.下载最新版lua 
链接：http://www.lua.org/download.html 
对lua-5.3.4.tar.gz 进行解压缩得到lua-5.3.4文件夹 
2.下载gcc编译器 
链接：http://tdm-gcc.td]]></description><category></category></item><item><title><![CDATA[unity中关于rigidbody成员AddForce方法和AddTorque方法介绍]]></title><link>https://blog.csdn.net/Qian998/article/details/52185092</link><guid>https://blog.csdn.net/Qian998/article/details/52185092</guid><author>Qian998</author><pubDate>Thu, 11 Aug 2016 17:52:27 +0800</pubDate><description><![CDATA[一、AddForce方法
public void AddForce(Vector3 force, ForceMode mode = ForceMode.Force);
功能：对刚体施加一个直线方向的力。
参数介绍：
force 决定力的方向和大小
mode 决定作用力的模式，缺省方式为ForceMode.Force
二、AddTorque方法
public void AddTorqu]]></description><category></category></item></channel></rss>