<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>inamori</author_name>
  <author_url>https://blog.hatena.ne.jp/inamori/</author_url>
  <blog_title>inamori’s diary</blog_title>
  <blog_url>https://inamori.hateblo.jp/</blog_url>
  <categories>
    <anon>PowerShell</anon>
  </categories>
  <description>Problem 1包除原理を使うのはやめて、本来の書き方ではないのですがループを使いましょう。 while $n = 1000 $s = 0 $k = 1 while($k -lt $n) { if($k % 3 -eq 0 -or $k % 5 -eq 0) { $s += $k } $k += 1 } $s whileはCとだいたい同じです。ただ、比較演算子が違います。&gt;がリダイレクトに使われていたりするからですね。詳しくは、about_comparison_operators for $n = 1000 $s = 0 for($k = 1; $k -lt $n; ++$k) { if($…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Finamori.hateblo.jp%2Fentry%2F20120615%2Fp2&quot; title=&quot;Windows PowerShellでProject Euler（4） ループ - inamori’s 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-06-15 00:00:01</published>
  <title>Windows PowerShellでProject Euler（4） ループ</title>
  <type>rich</type>
  <url>https://inamori.hateblo.jp/entry/20120615/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
