<?xml version="1.0" encoding="utf-8" ?><rss version="2.0"><channel><title><![CDATA[何处几年的博客]]></title><description><![CDATA[刷题帖]]></description><link>https://blog.youkuaiyun.com/The_Architect</link><language>zh-cn</language><generator>https://blog.youkuaiyun.com/</generator><copyright><![CDATA[Copyright &copy; The_Architect]]></copyright><item><title><![CDATA[PyTorch安装流程]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/121163280</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/121163280</guid><author>The_Architect</author><pubDate>Fri, 05 Nov 2021 15:03:28 +0800</pubDate><description><![CDATA[1、安装pytorch需要提前安装好anaconda 和 cuda

 cuda安装教程：nvcc -V不是内部或外部命令，也不是可运行的程序_Nefu_lyh的博客-优快云博客





2.打开Anaconda Prompt; 更换镜像源，创建虚拟环境；



配置anaconda镜像源：（清华镜像源）-------下载加速用；

 conda config --add channels Index of /anaconda/pkgs/free/win-64/ ...]]></description><category></category></item><item><title><![CDATA[H - An easy problem 线段树]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98474048</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98474048</guid><author>The_Architect</author><pubDate>Sun, 04 Aug 2019 20:42:17 +0800</pubDate><description><![CDATA[One day, a useless calculator was being built by Kuros. Let's assume that number X is showed on the screen of calculator. At first, X = 1. This calculator only supports two types of operation.
1. ...]]></description><category></category></item><item><title><![CDATA[数据结构实验之链表九：双向链表]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98317165</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98317165</guid><author>The_Architect</author><pubDate>Sat, 03 Aug 2019 11:20:32 +0800</pubDate><description><![CDATA[Problem Description

学会了单向链表，我们又多了一种解决问题的能力，单链表利用一个指针就能在内存中找到下一个位置，这是一个不会轻易断裂的链。但单链表有一个弱点——不能回指。比如在链表中有两个节点A,B，他们的关系是B是A的后继，A指向了B，便能轻易经A找到B,但从B却不能找到A。一个简单的想法便能轻易解决这个问题——建立双向链表。在双向链表中，A有一个指针指向了节点B，同时，B...]]></description><category></category></item><item><title><![CDATA[Spell checker]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98187211</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98187211</guid><author>The_Architect</author><pubDate>Fri, 02 Aug 2019 12:01:42 +0800</pubDate><description><![CDATA[Description

You, as a member of a development team for a new spell checking program, are to write a module that will check the correctness of given words using a known dictionary of all correct words...]]></description><category></category></item><item><title><![CDATA[数据结构实验之链表七：单链表中重复元素的删除]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98082759</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98082759</guid><author>The_Architect</author><pubDate>Thu, 01 Aug 2019 17:47:08 +0800</pubDate><description><![CDATA[Problem Description

按照数据输入的相反顺序（逆位序）建立一个单链表，并将单链表中重复的元素删除（值相同的元素只保留最后输入的一个）。

Input

第一行输入元素个数 n (1 &lt;= n &lt;= 15)；
第二行输入 n 个整数，保证在 int 范围内。

Output

第一行输出初始链表元素个数；
第二行输出按照逆位序所建立的初始链表；
第三行输出删除重复元素...]]></description><category></category></item><item><title><![CDATA[数据结构实验之链表六：有序链表的建立]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98073941</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98073941</guid><author>The_Architect</author><pubDate>Thu, 01 Aug 2019 16:36:34 +0800</pubDate><description><![CDATA[Problem Description

输入N个无序的整数，建立一个有序链表，链表中的结点按照数值非降序排列，输出该有序链表。

Input

第一行输入整数个数N；
第二行输入N个无序的整数。

Output

依次输出有序链表的结点值。

Sample Input


6
33 6 22 9 44 5

Sample Output


5 6 9 22 33 44

Hint

不得使用数组...]]></description><category></category></item><item><title><![CDATA[数据结构实验之链表四：有序链表的归并]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98072725</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98072725</guid><author>The_Architect</author><pubDate>Thu, 01 Aug 2019 16:26:45 +0800</pubDate><description><![CDATA[Problem Description

分别输入两个有序的整数序列（分别包含M和N个数据），建立两个有序的单链表，将这两个有序单链表合并成为一个大的有序单链表，并依次输出合并后的单链表数据。

Input

第一行输入M与N的值；
第二行依次输入M个有序的整数；
第三行依次输入N个有序的整数。

Output

输出合并后的单链表所包含的M+N个有序的整数。

Sample Input


6...]]></description><category></category></item><item><title><![CDATA[逆序建立链表]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98069855</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98069855</guid><author>The_Architect</author><pubDate>Thu, 01 Aug 2019 16:03:03 +0800</pubDate><description><![CDATA[oblem Description

输入整数个数N，再输入N个整数，按照这些整数输入的相反顺序建立单链表，并依次遍历输出单链表的数据。

Input

第一行输入整数N;；
第二行依次输入N个整数，逆序建立单链表。

Output

依次输出单链表所存放的数据。

Sample Input


10
11 3 5 27 9 12 43 16 84 22 

Sample Output


22 ...]]></description><category></category></item><item><title><![CDATA[数据结构实验之链表一：顺序建立链表]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/98068500</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/98068500</guid><author>The_Architect</author><pubDate>Thu, 01 Aug 2019 15:52:45 +0800</pubDate><description><![CDATA[Problem Description

输入N个整数，按照输入的顺序建立单链表存储，并遍历所建立的单链表，输出这些数据。

Input

第一行输入整数的个数N；
第二行依次输入每个整数。

Output

输出这组整数。

Sample Input


8
12 56 4 6 55 15 33 62

Sample Output


12 56 4 6 55 15 33 62

Hint

不...]]></description><category></category></item><item><title><![CDATA[二分图匹配——匈牙利算法板子]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/97805789</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/97805789</guid><author>The_Architect</author><pubDate>Tue, 30 Jul 2019 18:08:31 +0800</pubDate><description><![CDATA[7
1 5
2 5
5 1
5 3
3 6
7 4
4 8

代码：


#include&lt;iostream&gt;
#include&lt;cstring&gt;
#include&lt;algorithm&gt;
#include&lt;vector&gt;
#include&lt;stdio.h&gt;
using namespace std;
const int MAXN=555...]]></description><category></category></item><item><title><![CDATA[糖果玉米的孩子]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/97286956</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/97286956</guid><author>The_Architect</author><pubDate>Thu, 25 Jul 2019 19:04:09 +0800</pubDate><description><![CDATA[描述

玉米田迷宫是一种受欢迎的万圣节款待。参观者可以看到入口，必须在面对僵尸，电锯挥舞的精神病患者，嬉皮士和其他恐怖的迷宫中漫步，寻找出口。
一种流行的迷宫步行策略可确保访客最终找到出口。只需选择右侧或左侧墙壁，然后按照它即可。当然，不能保证哪种策略（左或右）会更好，而且所采用的路径很少是最有效的。（它也不适用于不在边缘的出口的迷宫;这个类型的迷宫没有在这个问题中表示。）
作为即将被转换为迷...]]></description><category></category></item><item><title><![CDATA[海底总动员]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/97045004</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/97045004</guid><author>The_Architect</author><pubDate>Tue, 23 Jul 2019 22:39:53 +0800</pubDate><description><![CDATA[描述

尼莫是一个顽皮的男孩。有一天，他独自进入了深海。不幸的是，他迷路了，找不到回家的路。因此，他向他父亲马林发出了一个信号，要求他帮忙。
检查地图后，马林发现大海就像一个有墙壁和门的迷宫。所有壁都平行于X轴或Y轴。假设壁的厚度为零。
所有的门都在墙上打开，长度为1.除非墙上有门，否则马林不能通过墙。因为通过一扇门是危险的（门附近可能有一些恶毒的medusas），Marlin想要通过尽可能少...]]></description><category></category></item><item><title><![CDATA[Catch That Cow]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96842466</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96842466</guid><author>The_Architect</author><pubDate>Mon, 22 Jul 2019 11:53:14 +0800</pubDate><description><![CDATA[描述

农夫约翰已被告知逃亡牛的位置，并希望立即抓住她。他开始于一个点Ñ（0≤Ñ≤100,000）上的数线和牛是在点ķ（0≤ķ上相同数目的线≤100,000）。农夫约翰有两种交通方式：步行和传送。

*行走：FJ可以在一分钟内从任意点X移动到X-1或X+ 1点
*传送：FJ可以在一分钟内从任意点X移动到点2×X.

如果母牛不知道它的追求，根本不动，那么农夫约翰需要多长时间才能找回...]]></description><category></category></item><item><title><![CDATA[顺序表应用6：有序顺序表查询]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96732802</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96732802</guid><author>The_Architect</author><pubDate>Sun, 21 Jul 2019 16:30:13 +0800</pubDate><description><![CDATA[Problem Description

顺序表内按照由小到大的次序存放着n个互不相同的整数，任意输入一个整数，判断该整数在顺序表中是否存在。如果在顺序表中存在该整数，输出其在表中的序号；否则输出“No Found!"。

Input

第一行输入整数n (1 &lt;= n &lt;= 100000)，表示顺序表的元素个数；
第二行依次输入n个各不相同的有序非负整数，代表表里的元素；
第三行输...]]></description><category></category></item><item><title><![CDATA[顺序表应用5：有序顺序表归并]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96706383</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96706383</guid><author>The_Architect</author><pubDate>Sun, 21 Jul 2019 11:52:05 +0800</pubDate><description><![CDATA[Problem Description

已知顺序表A与B是两个有序的顺序表，其中存放的数据元素皆为普通整型，将A与B表归并为C表，要求C表包含了A、B表里所有元素，并且C表仍然保持有序。

Input

输入分为三行：
第一行输入m、n（1&lt;=m,n&lt;=10000）的值，即为表A、B的元素个数；
第二行输入m个有序的整数，即为表A的每一个元素；
第三行输入n个有序的整数，即为表B的...]]></description><category></category></item><item><title><![CDATA[顺序表应用4：元素位置互换之逆置算法]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96703317</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96703317</guid><author>The_Architect</author><pubDate>Sun, 21 Jul 2019 11:11:17 +0800</pubDate><description><![CDATA[Problem Description

一个长度为len(1&lt;=len&lt;=1000000)的顺序表，数据元素的类型为整型，将该表分成两半，前一半有m个元素，后一半有len-m个元素（1&lt;=m&lt;=len)，设计一个时间复杂度为O(N)、空间复杂度为O(1)的算法，改变原来的顺序表，把顺序表中原来在前的m个元素放到表的后段，后len-m个元素放到表的前段。
注意：先将顺序表元...]]></description><category></category></item><item><title><![CDATA[顺序表应用3：元素位置互换之移位算法]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96701507</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96701507</guid><author>The_Architect</author><pubDate>Sun, 21 Jul 2019 10:46:41 +0800</pubDate><description><![CDATA[Problem Description

一个长度为len(1&lt;=len&lt;=1000000)的顺序表，数据元素的类型为整型，将该表分成两半，前一半有m个元素，后一半有len-m个元素（1&lt;=m&lt;=len)，借助元素移位的方式，设计一个空间复杂度为O(1)的算法，改变原来的顺序表，把顺序表中原来在前的m个元素放到表的后段，后len-m个元素放到表的前段。
注意：先将顺序表元素...]]></description><category></category></item><item><title><![CDATA[顺序表应用2：多余元素删除之建表算法]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96631201</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96631201</guid><author>The_Architect</author><pubDate>Sat, 20 Jul 2019 21:04:30 +0800</pubDate><description><![CDATA[Problem Description

一个长度不超过10000数据的顺序表，可能存在着一些值相同的“多余”数据元素（类型为整型），编写一个程序将“多余”的数据元素从顺序表中删除，使该表由一个“非纯表”（值相同的元素在表中可能有多个）变成一个“纯表”（值相同的元素在表中只保留第一个）。
要求：
   1、必须先定义线性表的结构与操作函数，在主函数中借助该定义与操作函数调用实现问题功能；
...]]></description><category></category></item><item><title><![CDATA[顺序表应用1：多余元素删除之移位算法]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96626555</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96626555</guid><author>The_Architect</author><pubDate>Sat, 20 Jul 2019 20:22:06 +0800</pubDate><description><![CDATA[Problem Description

一个长度不超过10000数据的顺序表，可能存在着一些值相同的“多余”数据元素（类型为整型），编写一个程序将“多余”的数据元素从顺序表中删除，使该表由一个“非纯表”（值相同的元素在表中可能有多个）变成一个“纯表”（值相同的元素在表中只保留第一个）。
要求：
   1、必须先定义线性表的结构与操作函数，在主函数中借助该定义与操作函数调用实现问题功能；
...]]></description><category></category></item><item><title><![CDATA[Tiling  Java大数]]></title><link>https://blog.youkuaiyun.com/The_Architect/article/details/96429476</link><guid>https://blog.youkuaiyun.com/The_Architect/article/details/96429476</guid><author>The_Architect</author><pubDate>Thu, 18 Jul 2019 13:59:33 +0800</pubDate><description><![CDATA[Description

In how many ways can you tile a 2xn rectangle by 2x1 or 2x2 tiles?
Here is a sample tiling of a 2x17 rectangle.





Input

Input is a sequence of lines, each line containing an intege...]]></description><category></category></item></channel></rss>