<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>yuunoza</author_name>
  <author_url>https://blog.hatena.ne.jp/yuunoza/</author_url>
  <blog_title>自由帳</blog_title>
  <blog_url>https://yuunoza.hatenablog.com/</blog_url>
  <categories>
    <anon>cpp</anon>
    <anon>プロコン</anon>
  </categories>
  <description>今回の話 自分の備忘録としてAOJプロコンの練習をしている時にソートしたい！・・・が，構造体のソートをしたことがなかったので今回書いてみた． 構造体のソート vectorのソート 単純にvectorなどをソートする際には以下で簡単にできる． #include &lt;vector&gt; #include &lt;algorithm&gt; vector&lt;int&gt; v; // 昇順ソート sort(v.begin(), v.end()); 降順ソートがしたければ３番目の引数にソートの基準を入れてあげればいい． // 降順ソート sort(v.begin(), v.end(), std::greater&lt;int&gt;())…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fyuunoza.hatenablog.com%2Fentry%2F2017%2F03%2F02%2F015619&quot; title=&quot;C++ 構造体のソート - 自由帳&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2017-03-02 01:56:19</published>
  <title>C++ 構造体のソート</title>
  <type>rich</type>
  <url>https://yuunoza.hatenablog.com/entry/2017/03/02/015619</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
