<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>noriok</author_name>
  <author_url>https://blog.hatena.ne.jp/noriok/</author_url>
  <blog_title>n-diary</blog_title>
  <blog_url>https://noriok.hatenablog.com/</blog_url>
  <categories>
    <anon>Codeforces</anon>
  </categories>
  <description>139A - A. Petr and Book calc :: Int -&gt; [Int] -&gt; Int calc n pages = calc' n (cycle pages) (cycle [1..7]) where calc' n (p:pages) (d:dayWeek) | n &lt;= p = d | otherwise = calc' (n-p) pages dayWeek main = do s &lt;- getLine t &lt;- getLine print $ calc (read s) (map read $ words t)</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fnoriok.hatenablog.com%2Fentry%2F2012%2F08%2F31%2F031113&quot; title=&quot;Codeforces 139A - A. Petr and Book - n-diary&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>2012-08-31 03:11:13</published>
  <title>Codeforces 139A - A. Petr and Book</title>
  <type>rich</type>
  <url>https://noriok.hatenablog.com/entry/2012/08/31/031113</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
