<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[jhber的博客]]></title><description><![CDATA[]]></description><link>https://blog.youkuaiyun.com/jhber</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; jhber]]></copyright><item><title><![CDATA[【无标题】]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/128729666</link><guid>https://blog.youkuaiyun.com/jhber/article/details/128729666</guid><author>jhber</author><pubDate>Wed, 18 Jan 2023 19:42:11 +0800</pubDate><description><![CDATA[所谓 socket（套接字），就是对网络中不同主机上的应用进程之间进行双向通信的端点的抽象。一个套接字就是网络上进程通信的一端，提供了应用层进程利用网络协议交换数据的机制。从所处的地位来讲，套接字上联应用进程，下联网络协议栈，是应用程序通过网络协议进行通信的接口，是应用程序与网络协议根进行交互的接口。socket 可以看成是两个网络应用程序进行通信时，各自通信连接中的端点，这是一个逻辑上的概念。它是网络环境中进程间通信的 API。]]></description><category></category></item><item><title><![CDATA[UVA712]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/88074702</link><guid>https://blog.youkuaiyun.com/jhber/article/details/88074702</guid><author>jhber</author><pubDate>Sat, 02 Mar 2019 13:05:37 +0800</pubDate><description><![CDATA[#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;cstring&amp;gt;
int n,a[8],b[8],m,i,j,c,t=1;
char s[130];
int main()
{
	while(1)
	{
		scanf(&quot;%d&quot;,&amp;amp;n);
		if(!n)return 0;
		printf(&quot;S-Tree #...]]></description><category></category></item><item><title><![CDATA[UVA673]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/88074675</link><guid>https://blog.youkuaiyun.com/jhber/article/details/88074675</guid><author>jhber</author><pubDate>Sat, 02 Mar 2019 13:00:38 +0800</pubDate><description><![CDATA[用栈模拟


#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;cstring&amp;gt;
#include&amp;lt;iostream&amp;gt;
using namespace std;
int stk[1000];
char s[1000];
int main()
{
	//freopen(&quot;out.txt&quot;,&quot;w&quot;,stdout)...]]></description><category></category></item><item><title><![CDATA[UVA536（给定先序中序求后序）]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/88074622</link><guid>https://blog.youkuaiyun.com/jhber/article/details/88074622</guid><author>jhber</author><pubDate>Sat, 02 Mar 2019 12:56:10 +0800</pubDate><description><![CDATA[递归做


#include&amp;lt;cstring&amp;gt;
#include&amp;lt;iostream&amp;gt;
#include&amp;lt;cstdio&amp;gt;
using namespace std;
string s1,s2;
void calc(int L1,int R1,int L2,int R2)
{
	int m=s2.find(s1[L1]);
	if(m&amp;gt;L2) calc(L1+1...]]></description><category></category></item><item><title><![CDATA[UVA1600]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/88073959</link><guid>https://blog.youkuaiyun.com/jhber/article/details/88073959</guid><author>jhber</author><pubDate>Sat, 02 Mar 2019 11:59:31 +0800</pubDate><description><![CDATA[水平菜到连个BFs都写不对了，唉

看leaderboard上面的代码怎么一堆挂着BFS写深搜的23333（怎么有种挂羊头买狗肉的赶脚）

先贴一份我的代码


#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;iostream&amp;gt;
#include&amp;lt;queue&amp;gt;
#include&amp;lt;cstring&amp;gt;...]]></description><category></category></item><item><title><![CDATA[枚举排列与子集生成]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/84330740</link><guid>https://blog.youkuaiyun.com/jhber/article/details/84330740</guid><author>jhber</author><pubDate>Wed, 21 Nov 2018 23:58:10 +0800</pubDate><description><![CDATA[按字典序输出1~n的所有排列。


#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;cstring&amp;gt;
#include&amp;lt;algorithm&amp;gt;
using namespace std;
void print_permutation(int n,int* A,int cur)
{
	if(cur==n){
		for(int i=0;i&amp;lt;n;i++)pri...]]></description><category></category></item><item><title><![CDATA[uva136 丑数]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/84312486</link><guid>https://blog.youkuaiyun.com/jhber/article/details/84312486</guid><author>jhber</author><pubDate>Wed, 21 Nov 2018 00:35:17 +0800</pubDate><description><![CDATA[
#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;iostream&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;set&amp;gt;
#include&amp;lt;queue&amp;gt;
#include&amp;lt;map&amp;gt;
#include&amp;lt;vector&amp;gt;
using namespace std;
typedef long long L]]></description><category></category></item><item><title><![CDATA[uva540Team Queue]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/84312241</link><guid>https://blog.youkuaiyun.com/jhber/article/details/84312241</guid><author>jhber</author><pubDate>Wed, 21 Nov 2018 00:14:47 +0800</pubDate><description><![CDATA[
#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;queue&amp;gt;
#include&amp;lt;map&amp;gt;
using namespace std;
const int maxt=1000+10;
int main()
{
	int t,kase=0;
	while(scanf(&quot;%d&quot;,&amp;amp;t)==1&amp;amp;&amp;amp;t)
	{
		printf(&quot;Scenari...]]></description><category></category></item><item><title><![CDATA[UVA12096The SetStack Computer]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/84311814</link><guid>https://blog.youkuaiyun.com/jhber/article/details/84311814</guid><author>jhber</author><pubDate>Tue, 20 Nov 2018 23:35:35 +0800</pubDate><description><![CDATA[
#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;iostream&amp;gt;
#include&amp;lt;algorithm&amp;gt;
#include&amp;lt;set&amp;gt;
#include&amp;lt;stack&amp;gt;
#include&amp;lt;map&amp;gt;
#include&amp;lt;vector&amp;gt;
using namespace std;
typedef set&amp;lt;]]></description><category></category></item><item><title><![CDATA[UVA - 10815]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/84259748</link><guid>https://blog.youkuaiyun.com/jhber/article/details/84259748</guid><author>jhber</author><pubDate>Mon, 19 Nov 2018 20:42:23 +0800</pubDate><description><![CDATA[
#include&amp;lt;cstdio&amp;gt;
#include&amp;lt;cstring&amp;gt;
#include&amp;lt;set&amp;gt;
#include&amp;lt;sstream&amp;gt;
#include&amp;lt;iostream&amp;gt;
using namespace std;
set&amp;lt;string&amp;gt;dict;
int main()
{
	string s,buf;int i;
	cin&amp;...]]></description><category></category></item><item><title><![CDATA[归并排序求逆序对]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/54800278</link><guid>https://blog.youkuaiyun.com/jhber/article/details/54800278</guid><author>jhber</author><pubDate>Tue, 31 Jan 2017 21:33:28 +0800</pubDate><description><![CDATA[1164: 分治 逆序对
时间限制: 1 Sec  内存限制: 128 MB

题目描述

给一列数a1,a2,...,an，求它的逆序对数，即有多少个有序对(i,j),使得iaj。n可以高达10^6。

输入

第一行输入整数N(2
接下来一行N个正整数数分别是a1,a2,...,an(ai

输出

输出一个数表示逆序对数。

样例输入
4
2 4 3 1
]]></description><category></category></item><item><title><![CDATA[堆排序]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/54800261</link><guid>https://blog.youkuaiyun.com/jhber/article/details/54800261</guid><author>jhber</author><pubDate>Tue, 31 Jan 2017 21:31:23 +0800</pubDate><description><![CDATA[1330: 堆 堆排序
时间限制: 1 Sec  内存限制: 128 MB


题目描述

 输入n个数，要求用堆排序输出从小到大排完序后的结果。

输入

 第一行输入n(n，表示元素个数。
  第二行输入这n个数(longint范围内)。

输出

 按照从小到大的顺序输出。

样例输入
4
3 2 4 1

样例输出
1 2 3 4
不多说了，直接放]]></description><category></category></item><item><title><![CDATA[01背包 采药2]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/54564746</link><guid>https://blog.youkuaiyun.com/jhber/article/details/54564746</guid><author>jhber</author><pubDate>Sun, 15 Jan 2017 21:28:44 +0800</pubDate><description><![CDATA[01背包 采药2
时间限制: 1 Sec  内存限制: 128 MB
提交: 142  解决: 25
[提交][状态]
题目描述

辰辰是个天资聪颖的孩子，他的梦想是成为世界上最伟大的医师。为此，他想拜附近最有威望的医师为师。医师为了判断他的资质，给他出了一个难题。医师把他带到一个到处都是草药的山洞里对他说：“孩子，这个山洞里有一些不同的草药，采每一株都需要一些时间，每一株也有它自身的]]></description><category></category></item><item><title><![CDATA[我有自己的博客了]]></title><link>https://blog.youkuaiyun.com/jhber/article/details/54561772</link><guid>https://blog.youkuaiyun.com/jhber/article/details/54561772</guid><author>jhber</author><pubDate>Sun, 15 Jan 2017 14:18:07 +0800</pubDate><description><![CDATA[我有自己的博客了，主要负责总结知识。]]></description><category></category></item></channel></rss>