<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[GKHack's Blog]]></title><description><![CDATA[]]></description><link>https://blog.csdn.net/GKHack</link><language>zh-cn</language><generator>https://blog.csdn.net/</generator><copyright><![CDATA[Copyright &copy; GKHack]]></copyright><item><title><![CDATA[TCP详解]]></title><link>https://blog.csdn.net/GKHack/article/details/69943578</link><guid>https://blog.csdn.net/GKHack/article/details/69943578</guid><author>GKHack</author><pubDate>Mon, 10 Apr 2017 10:32:46 +0800</pubDate><description><![CDATA[三次握手Three-way Handshake 

一个虚拟连接的建立是通过三次握手来实现的 

1. (B) --> [SYN] --> (A) 

假如服务器A和客户机B通讯. 当A要和B通信时，B首先向A发一个SYN
 (Synchronize) 标记的包，告诉A请求建立连接. 

注意: 一个 SYN包就是仅SYN标记设为1的TCP包(参见TCP包头Resources).]]></description><category></category></item><item><title><![CDATA[Codeforces Round #246 (Div. 2) 432C Prime Swaps(脑洞)]]></title><link>https://blog.csdn.net/GKHack/article/details/51888167</link><guid>https://blog.csdn.net/GKHack/article/details/51888167</guid><author>GKHack</author><pubDate>Tue, 12 Jul 2016 13:28:57 +0800</pubDate><description><![CDATA[C. Prime Swaps


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



You have an array a[1], a[2], ..., a[n], con]]></description><category></category></item><item><title><![CDATA[BestCoder Round #81 (div.2)C HDOJ5672 String(双指针法)]]></title><link>https://blog.csdn.net/GKHack/article/details/51236255</link><guid>https://blog.csdn.net/GKHack/article/details/51236255</guid><author>GKHack</author><pubDate>Sun, 24 Apr 2016 22:02:40 +0800</pubDate><description><![CDATA[String
Time Limit: 2000/1000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 813    Accepted Submission(s): 258



Problem Description

There is a string S.S]]></description><category></category></item><item><title><![CDATA[NOJ2102 帅神妹纸的生日礼物(双指针)]]></title><link>https://blog.csdn.net/GKHack/article/details/51236223</link><guid>https://blog.csdn.net/GKHack/article/details/51236223</guid><author>GKHack</author><pubDate>Sun, 24 Apr 2016 21:57:26 +0800</pubDate><description><![CDATA[帅神妹纸的生日礼物

时间限制(普通/Java) : 1000 MS/ 3000 MS          运行内存限制 : 65536 KByte
总提交 : 427            测试通过 : 41 


比赛描述


    A协大牛帅神的妹纸最近又要过生日了，然而妹纸心里早已有一个想要的礼物，妹纸想要的礼物就是10种稀有的钻石，帅神为了满足妹纸的要求，四处打探知道了]]></description><category></category></item><item><title><![CDATA[UVALive 7512 November 11th(脑洞)]]></title><link>https://blog.csdn.net/GKHack/article/details/51007405</link><guid>https://blog.csdn.net/GKHack/article/details/51007405</guid><author>GKHack</author><pubDate>Tue, 29 Mar 2016 17:04:08 +0800</pubDate><description><![CDATA[题目链接:点击打开链接
给出坏凳子的位置, 座位不能挨着坐, 问最多可以做多少人, 以及最少可以坐多少人使得不能再有可以坐的位置.
最多可以坐多少人, 只要中间空一个即可, 本题wa点在最少坐的人数, 中间空两个也可以... 比如.S..S.所以空的位置大于2时, 分母为3.
AC代码:
#include "iostream"
#include "cstdio"
#include "cst]]></description><category></category></item><item><title><![CDATA[UVALive 7410 Kingdom of Black and White(脑洞 + stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/51007297</link><guid>https://blog.csdn.net/GKHack/article/details/51007297</guid><author>GKHack</author><pubDate>Tue, 29 Mar 2016 16:54:57 +0800</pubDate><description><![CDATA[题目链接:点击打开链接
给出一个由01构成字符串, 可以修改字符一次, 问连续的0或1最大的平方和是多少.
题目即求最长的0串或者1串, 先求出给出字符串的平方和, 遍历一次, 分两种情况, 一种是当前为1, 一种是一般情况. 当前为1时, 要判断
前一段与后一段和是否大于最大. 求出最多增长加到ans即可.
AC代码:
#include "iostream"
#include "cst]]></description><category></category></item><item><title><![CDATA[IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) 653B Bear and Compressing(dfs + stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50977751</link><guid>https://blog.csdn.net/GKHack/article/details/50977751</guid><author>GKHack</author><pubDate>Fri, 25 Mar 2016 11:11:48 +0800</pubDate><description><![CDATA[B. Bear and Compressing


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Limak is a little polar bear. Polar]]></description><category></category></item><item><title><![CDATA[IndiaHacks 2016 - Online Edition (Div. 1 + Div. 2) 653C Bear and Up-Down(暴力)]]></title><link>https://blog.csdn.net/GKHack/article/details/50970363</link><guid>https://blog.csdn.net/GKHack/article/details/50970363</guid><author>GKHack</author><pubDate>Thu, 24 Mar 2016 11:42:52 +0800</pubDate><description><![CDATA[C. Bear and Up-Down


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



The life goes up and down, just like ni]]></description><category></category></item><item><title><![CDATA[Codeforces Round #344 (Div. 2) 631C Report(脑洞+stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50803815</link><guid>https://blog.csdn.net/GKHack/article/details/50803815</guid><author>GKHack</author><pubDate>Fri, 04 Mar 2016 16:51:06 +0800</pubDate><description><![CDATA[C. Report


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Each month Blake gets the report containing main ]]></description><category></category></item><item><title><![CDATA[Manthan, Codefest 16 633D Fibonacci-ish(脑洞+stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50758771</link><guid>https://blog.csdn.net/GKHack/article/details/50758771</guid><author>GKHack</author><pubDate>Sun, 28 Feb 2016 09:11:48 +0800</pubDate><description><![CDATA[D. Fibonacci-ish


time limit per test
3 seconds


memory limit per test
512 megabytes


input
standard input


output
standard output



Yash has recently learnt about the Fibonac]]></description><category></category></item><item><title><![CDATA[Manthan, Codefest 16 633C Spy Syndrome 2(dfs + stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50758729</link><guid>https://blog.csdn.net/GKHack/article/details/50758729</guid><author>GKHack</author><pubDate>Sun, 28 Feb 2016 08:27:26 +0800</pubDate><description><![CDATA[C. Spy Syndrome 2


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



After observing the results of Spy Syndro]]></description><category></category></item><item><title><![CDATA[BestCoder Round #43B HDOJ5265 pog loves szh II(脑洞)]]></title><link>https://blog.csdn.net/GKHack/article/details/50757352</link><guid>https://blog.csdn.net/GKHack/article/details/50757352</guid><author>GKHack</author><pubDate>Sat, 27 Feb 2016 22:36:22 +0800</pubDate><description><![CDATA[pog loves szh II
Time Limit: 4000/2000 MS (Java/Others)    Memory Limit: 65536/65536 K (Java/Others)
Total Submission(s): 2346    Accepted Submission(s): 677



Problem Description

Pog and Sz]]></description><category></category></item><item><title><![CDATA[Educational Codeforces Round 4 612D The Union of k-Segments(stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50658675</link><guid>https://blog.csdn.net/GKHack/article/details/50658675</guid><author>GKHack</author><pubDate>Sun, 14 Feb 2016 09:10:48 +0800</pubDate><description><![CDATA[D. The Union of k-Segments


time limit per test
4 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



You are given n segments on the ]]></description><category></category></item><item><title><![CDATA[Codeforces Round #342 (Div. 2) 625C K-special Tables(脑洞)]]></title><link>https://blog.csdn.net/GKHack/article/details/50658593</link><guid>https://blog.csdn.net/GKHack/article/details/50658593</guid><author>GKHack</author><pubDate>Sat, 13 Feb 2016 10:52:09 +0800</pubDate><description><![CDATA[C. K-special Tables


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



People do many crazy things to stand ou]]></description><category></category></item><item><title><![CDATA[Codeforces Round #342 (Div. 2) 625B War of the Corporations(stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50658539</link><guid>https://blog.csdn.net/GKHack/article/details/50658539</guid><author>GKHack</author><pubDate>Sat, 13 Feb 2016 10:25:58 +0800</pubDate><description><![CDATA[B. War of the Corporations


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



A long time ago, in a galaxy far ]]></description><category></category></item><item><title><![CDATA[Codeforces Round #342 (Div. 2) 625A Guest From the Past(贪心)]]></title><link>https://blog.csdn.net/GKHack/article/details/50658531</link><guid>https://blog.csdn.net/GKHack/article/details/50658531</guid><author>GKHack</author><pubDate>Sat, 13 Feb 2016 10:08:10 +0800</pubDate><description><![CDATA[A. Guest From the Past


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



Kolya Gerasimov loves kefir very much]]></description><category></category></item><item><title><![CDATA[Wunder Fund Round 2016 (Div. 1 + Div. 2 combined) 618C Constellation(计算几何+stl)]]></title><link>https://blog.csdn.net/GKHack/article/details/50615171</link><guid>https://blog.csdn.net/GKHack/article/details/50615171</guid><author>GKHack</author><pubDate>Sun, 31 Jan 2016 17:17:17 +0800</pubDate><description><![CDATA[C. Constellation


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



Cat Noku has obtained a map of the night s]]></description><category></category></item><item><title><![CDATA[Educational Codeforces Round 4 612C Replace To Make Regular Bracket Sequence(脑洞)]]></title><link>https://blog.csdn.net/GKHack/article/details/50605043</link><guid>https://blog.csdn.net/GKHack/article/details/50605043</guid><author>GKHack</author><pubDate>Fri, 29 Jan 2016 09:43:17 +0800</pubDate><description><![CDATA[C. Replace To Make Regular Bracket Sequence


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



You are given st]]></description><category></category></item><item><title><![CDATA[Codeforces Round #340 (Div. 2) 617D Polyline(暴力)]]></title><link>https://blog.csdn.net/GKHack/article/details/50598942</link><guid>https://blog.csdn.net/GKHack/article/details/50598942</guid><author>GKHack</author><pubDate>Thu, 28 Jan 2016 10:32:49 +0800</pubDate><description><![CDATA[D. Polyline


time limit per test
1 second


memory limit per test
256 megabytes


input
standard input


output
standard output



There are three points marked on the coordinate ]]></description><category></category></item><item><title><![CDATA[Codeforces Round #340 (Div. 2) 617C Watering Flowers(计算几何)]]></title><link>https://blog.csdn.net/GKHack/article/details/50585575</link><guid>https://blog.csdn.net/GKHack/article/details/50585575</guid><author>GKHack</author><pubDate>Tue, 26 Jan 2016 11:01:33 +0800</pubDate><description><![CDATA[C. Watering Flowers


time limit per test
2 seconds


memory limit per test
256 megabytes


input
standard input


output
standard output



A flowerbed has many flowers and two fo]]></description><category></category></item></channel></rss>