<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>acokikoy</author_name>
  <author_url>https://blog.hatena.ne.jp/acokikoy/</author_url>
  <blog_title>acokikoy's notes</blog_title>
  <blog_url>https://acokikoy.hatenablog.com/</blog_url>
  <categories>
    <anon>Codewars</anon>
    <anon>Python</anon>
  </categories>
  <description>毎朝ちびちびCodewars。 記事が下書きのままずっと放置されていたのを、遅ればせながら公開しました。 [7 kyu] Find all pairs www.codewars.com 今日のお題： &quot;&quot;&quot;与えられる整数のリストに、同じ数値のペアが何組あるか数える 例： [] --&gt; 0 （空リスト） [0, 0, 0, 0] --&gt; 2 (0のペアが2こ） [1, 2, 5, 6, 5, 2] --&gt; 2 (2と5のペア） [1, 2, 2, 20, 6, 20, 2, 6, 2] --&gt; 4 （2のペア2こ, 6と20のペアが1こずつ） def duplicates(arr): Args:…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Facokikoy.hatenablog.com%2Fentry%2F2019%2F08%2F07%2F202625&quot; title=&quot;毎朝Codewars@2019.07.24(水): Find all pairs - acokikoy&amp;#39;s notes&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>2019-08-07 20:26:25</published>
  <title>毎朝Codewars@2019.07.24(水): Find all pairs</title>
  <type>rich</type>
  <url>https://acokikoy.hatenablog.com/entry/2019/08/07/202625</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
