<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Vector on 111qqz's blog</title><link>https://111qqz.com/en/tags/vector/</link><description>Recent content in Vector on 111qqz's blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><copyright>© 2015-2026 111qqz</copyright><lastBuildDate>Tue, 28 Feb 2017 07:21:49 +0000</lastBuildDate><atom:link href="https://111qqz.com/en/tags/vector/index.xml" rel="self" type="application/rss+xml"/><item><title>cpp vector学习笔记</title><link>https://111qqz.com/en/post/%E5%B7%A5%E7%A8%8B/cpp/2017-02-28-cpp-vector/</link><pubDate>Tue, 28 Feb 2017 07:21:49 +0000</pubDate><guid>https://111qqz.com/en/post/%E5%B7%A5%E7%A8%8B/cpp/2017-02-28-cpp-vector/</guid><description>&lt;p&gt;起因是百度实习二面的时候被问了一道类似这样的题：&lt;/p&gt;
&lt;p&gt;给我下面的代码，问有没有什么问题。&lt;/p&gt;</description></item><item><title>codeforces 29 C. Mail Stamps</title><link>https://111qqz.com/en/post/acm-icpc/2015/2015-12-30-cf29c/</link><pubDate>Wed, 30 Dec 2015 12:27:15 +0000</pubDate><guid>https://111qqz.com/en/post/acm-icpc/2015/2015-12-30-cf29c/</guid><description>&lt;p&gt;&lt;a href="http://codeforces.com/contest/29/problem/C" target="_blank" rel="noreferrer"&gt;http://codeforces.com/contest/29/problem/C&lt;/a&gt;
题意：给出n个边的关系，保证可以构成一条链。正向或者反向输出这个链。
思路：由于下标很大(1E9)，而关系个数只有1E5..需要离散化。。而且离散化的同时不能丢失边的关系。。。实际上。。直接用vector+map就好了。。。 map &amp;gt;e;即可。然后找到一个度为1的点。。做个dfs&amp;hellip;&lt;/p&gt;</description></item></channel></rss>