<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>難易度-1400 - IQパズルステップ</title>
	<atom:link href="https://chokomon.com/tag/difficulty-1400/feed/" rel="self" type="application/rss+xml" />
	<link>https://chokomon.com</link>
	<description>ちょこっと頭を良くするIQパズル問題集</description>
	<lastBuildDate>Fri, 30 Sep 2022 13:52:32 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	

<image>
	<url>https://chokomon.com/wp-content/uploads/2022/02/cropped-icon512-32x32.png</url>
	<title>難易度-1400 - IQパズルステップ</title>
	<link>https://chokomon.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>【クラス・構造体メニュー】コンストラクタ (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/26-class_primer-02-02-00663/</link>
					<comments>https://chokomon.com/26-class_primer-02-02-00663/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Wed, 28 Sep 2022 13:52:44 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[クラス・構造体メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6965</guid>

					<description><![CDATA[【クラス・構造体メニュー】&#62; 【静的メンバ】STEP: 2 コンストラクタ (paizaランク C 相当)&#160;[難易度:&#160;1445&#160;±17] ※リンク先へ移動するためには[paiza]へのログインが必要です…]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/26-class_primer/">クラス・構造体メニュー</a>】&gt; <a href="https://paiza.jp/works/mondai/class_primer/class_primer__constructor" target="_blank" rel="noreferrer noopener">【静的メンバ】STEP: 2 コンストラクタ (paizaランク C 相当)</a>&nbsp;[難易度:&nbsp;<strong>1445&nbsp;±17</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img fetchpriority="high" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/26-02-02-01.png" alt="" class="wp-image-6966"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>エンジニアのあなたの会社には、既に次のような社員クラス class employee が存在しています。<br><br>メンバ変数<br><code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">整数 number, 文字列 name</mark></code><br><br>メンバ関数</p>



<p class="has-gray-background-color has-background">getnumber(){<br>    return number;<br>}<br>getname(){<br>    return name;<br>}</p>



<p>現状、この社員クラスの全てのメンバ変数・メンバ関数を設定するためには、<code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">インスタンス名.変数名 </mark></code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color"><code>= 変数</code>&nbsp;</mark>といった具合に直接代入をしなくてはなりません。<br>それは面倒なので、コンストラクタという機能を用いて、インスタンスを作成する際に<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">&nbsp;<code>インスタンス名 = new クラス名(number,name)</code>&nbsp;</mark>とすることでメンバ変数を設定できるように書き換えましょう。</p>



<p>入力で<mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">&nbsp;<code>make number name</code></mark>&nbsp;と入力された場合は各変数に number , name を持つ社員を作成し、<code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">getnum n</mark></code>と入力された場合は n 番目に作成された社員の number を、<code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">getname n</mark></code>&nbsp;と入力された場合は n 番目に作成された社員の name を出力してください。</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    //Classを定義
    class employee {
        //プロパティを定義
        private $number;
        private $name;
        
        //インスタンス化するときに引数を受け取れるようにする
        public function __construct($number, $name) {
            $this-&gt;number = $number;
            $this-&gt;name = $name;
        }
        //数字を取得するメソッドを追加
        public function getnum() {
            return $this-&gt;number;
        }
        public function getname() {
            return $this-&gt;name;
        }
    }
    
    $n = trim(fgets(STDIN));
    for($i=0; $i&lt;$n; $i++) {
        $s = explode(" ", trim(fgets(STDIN)));
        
        $commond = $s[0];
        $num = $s[1];
        
        switch($commond) {
            case "make" :
                $name = $s[2];
                $employee[] = new employee($num, $name);
                break;
            case "getnum" :
                echo ($employee[$num-1]-&gt;getnum()). "\n";
                break;
            case "getname" :
                echo ($employee[$num-1]-&gt;getname()). "\n";
                break;
        }
    }
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="660" height="200" src="https://chokomon.com/wp-content/uploads/2022/09/26-02-02-02.png" alt="" class="wp-image-6969"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/26-class_primer-02-02-00663/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【クラス・構造体メニュー】構造体の検索 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/26-class_primer-01-02-00657/</link>
					<comments>https://chokomon.com/26-class_primer-01-02-00657/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Tue, 20 Sep 2022 09:59:57 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[クラス・構造体メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6927</guid>

					<description><![CDATA[【クラス・構造体メニュー】&#62; 【構造体の更新】STEP: 2 構造体の検索 (paizaランク C 相当)&#160;[難易度:&#160;1417&#160;±13] ※リンク先へ移動するためには[paiza]へのログインが必要です…]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/26-class_primer/">クラス・構造体メニュー</a>】&gt; <a href="https://paiza.jp/works/mondai/class_primer/class_primer__find" target="_blank" rel="noreferrer noopener">【構造体の更新】STEP: 2 構造体の検索 (paizaランク C 相当)</a>&nbsp;[難易度:&nbsp;<strong>1417&nbsp;±13</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/26-01-02-01.png" alt="" class="wp-image-6928"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>クラスの学級委員である paiza 君は、クラスのみんなに次のような形式でアカウントの情報を送ってもらうよう依頼しました。</p>



<p class="has-gray-background-color has-background">名前 年齢 誕生日 出身地</p>



<p>送ってもらったデータを使いやすいように整理したいと思った paiza 君はクラス全員分のデータを次のような構造体でまとめることにしました。</p>



<p class="has-gray-background-color has-background">student{<br>    name : 名前<br>    old : 年齢<br>    birth : 誕生日<br>    state : 出身地<br>}</p>



<p></p>



<p>年齢ごとの生徒の名簿を作る仕事を任された paiza 君はクラスメイトのうち、決まった年齢の生徒を取り出したいと考えました。<br>取り出したい生徒の年齢が与えられるので、その年齢の生徒の名前を出力してください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>1<br>koko 23 04/10 tokyo<br>23</p>



<p><strong>出力値（例）</strong><br>koko</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    // Studentというクラス(型)を宣言。クラスの1文字目は大文字
    class Student {
     
      // プロパティ
      public $name;
      public $old;
      public $birth;
      public $state;
      //  メソッド
      function showData(){
        
      }
    }
    //クラスStudentのインスタンスを作成
    $deta = new Student;
    
    $n = trim(fgets(STDIN));
    for($i=0; $i&lt;$n; $i++) {
        list($name, $old, $birth, $state) = explode(" ", trim(fgets(STDIN)));
        
        $student[] = array("name"=&gt;$name,
            "old"=&gt;$old, "birth"=&gt;$birth, "state"=&gt;$state);
    }

    $k = trim(fgets(STDIN));
    
    $key = array_search($k, array_column($student, "old"));
    print_r($student[$key]["name"]);
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/26-01-02-02.png" alt="" class="wp-image-6929"/></figure>



<h2 class="wp-block-heading">解説</h2>



<p>連想配列の値からキーを取得する　<strong>array_search()</strong>　を使用しました。</p>



<p>第一引数に検索したい文字列、第二引数に連想配列を入れます。</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $fruits = array(
        "apple" =&gt;"リンゴ",
        "grape" =&gt;"ブドウ",
        "orange"=&gt;"オレンジ");
    
    echo array_search("リンゴ", $fruits);    //apple
?&gt;</pre></div>



<p></p>



<p>array_search()の注意点としては、</p>



<p>1)値に対してキーが存在しない場合は <strong>false</strong> が返ってきます。</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $fruits = array(
        "apple" =&gt;"リンゴ",
        "grape" =&gt;"ブドウ",
        "orange"=&gt;"オレンジ");

    echo array_search("メロン", $fruits);    //false
?&gt;</pre></div>



<p></p>



<p>2)同じ値が二つ以上ある場合</p>



<p>同じ値が二つ以上ある場合は、最初に見つかったキーを返します。</p>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $age = array(
        "taro"  =&gt; 14,
        "jiro"  =&gt; 15,
        "yuko"  =&gt; 20,
        "hanako"=&gt; 14);
    
    echo array_search(14, $age);    //taro (一番最初に見つかったキーが返る
?&gt;</pre></div>



<p></p>



<p>多次元の連想配列なので、第二引数に <strong>array_column()</strong> を使っています。</p>



<p></p>



<p></p>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/26-class_primer-01-02-00657/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】区間の長さ 1 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-09-01-00651/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-09-01-00651/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Sun, 18 Sep 2022 03:54:43 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6896</guid>

					<description><![CDATA[【累積和メニュー】> 【区間の長さ】STEP: 1 区間の長さ 1 (paizaランク C 相当) [難易度: 1429 ±54] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__syakutori_length_step1" target="_blank" rel="noreferrer noopener">【区間の長さ】STEP: 1 区間の長さ 1 (paizaランク C 相当)</a> [難易度: <strong>1429 ±54</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-09-01-01.png" alt="" class="wp-image-6897"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>以下の 10 個の整数からなる数列が与えられます。</p>



<p class="has-gray-background-color has-background">1 5 9 1 20 5 3 6 5 4</p>



<p></p>



<p>この数列において、総和が 15 以下の区間のうち、最大の長さを求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>なし</p>



<p><strong>出力値（例）</strong><br>与えられた数列において、総和が 15 以下の区間のうち、最も長いものの長さを求めてください。</p>



<p>末尾に改行を入れ、余計な文字、空行を含んではいけません。</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $a = [1, 5, 9, 1, 20, 5, 3, 6, 5, 4];
    
    $k = 15;
    $maxLength = 0;
    
    for ($i=0; $i&lt;count($a); $i++) {
        $r = $i+1;
        $sectionSum = 0;
        while ($r &lt; count($a)+1) {
            $sectionSum += $a[$r-1];
            if ($sectionSum &gt; $k) break;
            $r++;
        }
        $maxLength = max($maxLength, $r-$i-1);
    }
    echo $maxLength;
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-09-01-02.png" alt="" class="wp-image-6898"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-09-01-00651/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】【区間の数え上げ】 区間の数え上げ 4 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-08-04-00650/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-08-04-00650/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Fri, 16 Sep 2022 04:19:07 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6891</guid>

					<description><![CDATA[【累積和メニュー】> FINAL問題【区間の数え上げ】 区間の数え上げ 4 (paizaランク C 相当) [難易度: 1404 ±50] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__syakutori_count_boss" target="_blank" rel="noreferrer noopener">FINAL問題【区間の数え上げ】 区間の数え上げ 4 (paizaランク C 相当)</a> [難易度: <strong>1404 ±50</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-08-04-01.png" alt="" class="wp-image-6892"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>1 行目に整数 N, K が与えられます。</p>



<p>2 行目に N 個の整数 a_1, a_2, ..., a_N からなる数列 a が与えられます。</p>



<p>この数列において、長さが 1 以上で総和が K 以下の区間がいくつあるか求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>10 15<br>1 5 9 1 20 5 3 6 5 4</p>



<p><strong>出力値（例）</strong><br>21</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    list($n, $k) = explode(" ", trim(fgets(STDIN)));
    $a = explode(" ", trim(fgets(STDIN)));
    
    $count = 0;
    
    for ($i=0; $i&lt;count($a); $i++) {
        $r = $i+1;
        $sectionSum = 0;
        while ($r &lt; count($a)+1) {
            $sectionSum += $a[$r-1];
            if ($sectionSum &gt; $k) break;
            $r++;
        }
        $count += $r-$i-1;
    }
    echo $count;
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-08-04-02.png" alt="" class="wp-image-6893"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-08-04-00650/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】区間の数え上げ 2 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-08-02-00648/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-08-02-00648/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Fri, 16 Sep 2022 03:31:35 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6878</guid>

					<description><![CDATA[【累積和メニュー】> 【区間の数え上げ】STEP: 2 区間の数え上げ 2 (paizaランク C 相当) [難易度: 1447 ±51] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__syakutori_count_step2" target="_blank" rel="noreferrer noopener">【区間の数え上げ】STEP: 2 区間の数え上げ 2 (paizaランク C 相当)</a> [難易度: <strong>1447 ±51</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-08-02-01.png" alt="" class="wp-image-6879"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>10 個の整数 a_1, a_2, ..., a_10 からなる数列 a が与えられます。</p>



<p>この数列において、長さが 1 以上で総和が 15 以下の区間がいくつあるか求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>1 5 9 1 20 5 3 6 5 4</p>



<p><strong>出力値（例）</strong><br>21</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $a = explode(" ", trim(fgets(STDIN)));
    
    $k = 15;
    $count = 0;
    
    for ($i=0; $i&lt;count($a); $i++) {
        $r = $i+1;
        $sectionSum = 0;
        while ($r &lt; count($a)+1) {
            $sectionSum += $a[$r-1];
            if ($sectionSum &gt; $k) break;
            $r++;
        }
        $count += $r-$i-1;
    }
    echo $count;
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-08-02-02.png" alt="" class="wp-image-6880"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-08-02-00648/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】2 次元上のいもす法 5 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-07-05-00645/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-07-05-00645/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Thu, 15 Sep 2022 08:44:23 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6861</guid>

					<description><![CDATA[【累積和メニュー】> 【2 次元上のいもす法】STEP: 5 2 次元上のいもす法 5 (paizaランク C 相当) [難易度: 1431 ±52] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__2d_imos_step5" target="_blank" rel="noreferrer noopener">【2 次元上のいもす法】STEP: 5 2 次元上のいもす法 5 (paizaランク C 相当)</a> [難易度: <strong>1431 ±52</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-07-05-01.png" alt="" class="wp-image-6862"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>1 行目に整数 N, K が与えられます。</p>



<p>2 行目に a_i, b_i, c_i, d_i (1 ≦ i ≦ K) が K 行で与えられます。</p>



<p>N 行 N 列のマスがあり、最初、マスには全て 0 が書かれています。</p>



<p>K 個の長方形領域の左上の座標 (a_i, b_i) と右下の座標 (c_i, d_i) が与えられます。それぞれの範囲に対して、その範囲に含まれるマスに 1 を加算していきます。</p>



<p>N 行 N 列のマスに書かれた値のうち、最大の値をいもす法を用いて求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>5 5<br>1 1 3 3<br>2 2 4 4<br>3 3 5 5<br>1 3 3 5<br>3 1 5 3</p>



<p><strong>出力値（例）</strong><br>5</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    list($n, $k) = explode(" ", trim(fgets(STDIN)));
    
    $sRow = array_fill(0, $n+1, 0);
    $s = array_fill(0, $n+1, $sRow);
    
    for ($i=0; $i&lt;$k; $i++) {
        list($a, $b, $c, $d) = explode(" ", trim(fgets(STDIN)));
        $x1[] = $a;
        $y1[] = $b;
        $x2[] = $c;
        $y2[] = $d;
        
        $s[$y1[$i]-1][$x1[$i]-1]++;
        $s[$y2[$i]][$x2[$i]]++;
        $s[$y1[$i]-1][$x2[$i]]--;
        $s[$y2[$i]][$x1[$i]-1]--;
    }
    
    // 横方向への累積和
    for ($i=0; $i&lt;$n+1; $i++) {
        for ($j=1; $j&lt;$n+1; $j++) {
            $s[$i][$j] += $s[$i][$j-1];
        }
    }
    
    // 縦方向の累積和
    for ($i=1; $i&lt;$n+1; $i++) {
        for ($j=0; $j&lt;$n+1; $j++) {
            $s[$i][$j] += $s[$i-1][$j];
        }
    }
    //print_r($s);
    
    // 最大値を調べる
    $tile_max = 0;
    for ($i=0; $i&lt;$n+1; $i++) {
        for ($j=0; $j&lt;$n+1; $j++) {
            if ($tile_max &lt; $s[$i][$j]) {
                $tile_max = $s[$i][$j];
            }
        }
    }
    echo $tile_max;
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-07-05-02.png" alt="" class="wp-image-6863"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-07-05-00645/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】2 次元上のいもす法 3 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-07-03-00643/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-07-03-00643/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Thu, 15 Sep 2022 03:29:09 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6848</guid>

					<description><![CDATA[【累積和メニュー】&#62; 【2 次元上のいもす法】STEP: 3 2 次元上のいもす法 3 (paizaランク C 相当)&#160;[難易度:&#160;1414&#160;±51] ※リンク先へ移動するためには[paiza]へのログイ…]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】&gt; <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__2d_imos_step3" target="_blank" rel="noreferrer noopener">【2 次元上のいもす法】STEP: 3 2 次元上のいもす法 3 (paizaランク C 相当)</a>&nbsp;[難易度:&nbsp;<strong>1414&nbsp;±51</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-07-03-01.png" alt="" class="wp-image-6849"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>1 行目に a_i, b_i, c_i, d_i (1 ≦ i ≦ 5) が 5 行で与えられます。</p>



<p>5 行 5 列のマスがあり、最初、マスには全て 0 が書かれています。</p>



<p>5 つの長方形領域の左上の座標 (a_i, b_i) と右下の座標 (c_i, d_i) が与えられます。それぞれの範囲に対して、その範囲に含まれるマスに 1 を加算していきます。</p>



<p>5 行 5 列のマスに書かれた値のうち、最大の値をいもす法を用いて求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>1 1 3 3<br>2 2 4 4<br>3 3 5 5<br>1 3 3 5<br>3 1 5 3</p>



<p><strong>出力値（例）</strong><br>5</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $sRow = array_fill(0, 6, 0);
    $s = array_fill(0, 6, $sRow);

    for ($i=0; $i&lt;5; $i++) {
        list($a, $b, $c, $d) = explode(" ", trim(fgets(STDIN)));
        $x1[] = $a;
        $y1[] = $b;
        $x2[] = $c;
        $y2[] = $d;
        
        $s[$y1[$i]-1][$x1[$i]-1]++;
        $s[$y2[$i]][$x2[$i]]++;
        $s[$y1[$i]-1][$x2[$i]]--;
        $s[$y2[$i]][$x1[$i]-1]--;
    }
    
    // 横方向への累積和
    for ($i=0; $i&lt;6; $i++) {
        for ($j=1; $j&lt;6; $j++) {
            $s[$i][$j] += $s[$i][$j-1];
        }
    }
    
    // 縦方向の累積和
    for ($i=1; $i&lt;6; $i++) {
        for ($j=0; $j&lt;6; $j++) {
            $s[$i][$j] += $s[$i-1][$j];
        }
    }
    //print_r($s);
    
    // 最大値を調べる
    $tile_max = 0;
    for ($i=0; $i&lt;6; $i++) {
        for ($j=0; $j&lt;6; $j++) {
            if ($tile_max &lt; $s[$i][$j]) {
                $tile_max = $s[$i][$j];
            }
        }
    }
    echo $tile_max;
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-07-03-02.png" alt="" class="wp-image-6850"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-07-03-00643/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】1 次元上のいもす法 1 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-06-01-00637/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-06-01-00637/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Tue, 13 Sep 2022 05:56:39 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6816</guid>

					<description><![CDATA[【累積和メニュー】> 【1 次元上のいもす法】STEP: 1 1 次元上のいもす法 1 (paizaランク C 相当) [難易度: 1443 ±44] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__1d_imos_step1" target="_blank" rel="noreferrer noopener">【1 次元上のいもす法】STEP: 1 1 次元上のいもす法 1 (paizaランク C 相当)</a> [難易度: <strong>1443 ±44</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-06-01-01.png" alt="" class="wp-image-6817"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>横に並んだ 10 個のマスがあり、最初、マスには全て 0 が書かれています。<br><br>以下の 5 つの範囲が与えられます。それぞれの範囲に対して、その範囲に含まれるマスに 1 を加算していきます。<br><br>すべての加算が終わった時点での 10 個のマスに書かれた値のうち、最大の値をいもす法を用いて求めてください。<br></p>



<p class="has-gray-background-color has-background">1 マス目から 3 マス目<br>1 マス目から 8 マス目<br>3 マス目から 8 マス目<br>3 マス目から 6 マス目<br>7 マス目から 9 マス目</p>



<p></p>



<p><strong>入力値（例）</strong><br>なし</p>



<p><strong>出力値（例）</strong><br>すべての加算が終わった時点での 10 個のマスに書かれた値のうち、最大の値をいもす法を用いて求めてください。</p>



<p>末尾に改行を入れ、余計な文字、空行を含んではいけません。</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $a = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0];
    
    $l = [1, 1, 3, 3, 7];
    $r = [3, 8, 8, 6, 9];
    
    for ($i=0; $i&lt;5; $i++) {
        $a[$l[$i]-1]++;
        $a[$r[$i]]--;
    }
    
    for ($i=0; $i&lt;11; $i++) {
        if ($i &gt; 0) $a[$i] += $a[$i-1];
    }
    //print_r($a);
    
    echo max($a);
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-06-01-02.png" alt="" class="wp-image-6818"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-06-01-00637/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】【二次元累積和】 二次元累積和 7 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-05-07-00636/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-05-07-00636/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Mon, 12 Sep 2022 02:13:42 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6811</guid>

					<description><![CDATA[【累積和メニュー】> FINAL問題【二次元累積和】 二次元累積和 7 (paizaランク C 相当) [難易度: 1417 ±42] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__2dsection_sum_boss2" target="_blank" rel="noreferrer noopener">FINAL問題【二次元累積和】 二次元累積和 7 (paizaランク C 相当)</a> [難易度: <strong>1417 ±42</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-05-07-01.png" alt="" class="wp-image-6812"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>1 行目に整数 N, M, Q が与えられます。</p>



<p>2 行目以降に N 行 M 列の整数の二次元配列 A が与えられます。</p>



<p>2 + N 行目以降に Q 行に渡って整数 a_i, b_i, c_i, d_i (0 ≦ i ≦ Q - 1) が与えられます。</p>



<p>A の j 行目 k 列目を A_{j, k} (0 ≦ j ≦ N - 1, 0 ≦ k ≦ M - 1) と表すことにします。</p>



<p>i 番目の長方形領域の左上の要素を A_{a_i, b_i}, 右下の要素を A_{c_i, d_i} としたとき、これら Q 個の長方形領域内の整数の和を累積和を用いて求め、改行区切りで出力してください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>5 5 3<br>1 2 3 4 5<br>2 3 4 5 6<br>3 4 5 6 7<br>4 5 6 7 8<br>5 6 7 8 9<br>1 1 3 3<br>2 2 4 4<br>0 0 2 2</p>



<p><strong>出力値（例）</strong><br>45<br>63<br>27</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    list($n, $m, $q) = explode(" ", trim(fgets(STDIN)));
    
    for ($i=0; $i&lt;$n; $i++) {
        $a[$i] = explode(" ", trim(fgets(STDIN)));
    }
    //print_r($a);
    
    $h = $n; $w = $m;
    
    $sRow = array_fill(0, $w+1, 0);
    $s = array_fill(0, $h+1, $sRow);
    
    for ($i=0; $i&lt;$h; $i++) {
        for ($j=0; $j&lt;$w; $j++) {
            $s[$i+1][$j+1] = $a[$i][$j]+$s[$i][$j+1]+$s[$i+1][$j]-$s[$i][$j];
        }
    }
    
    for ($i=0; $i&lt;$q; $i++) {
        list($ax, $by, $cx, $dy) = explode(" ", trim(fgets(STDIN)));    
        
        $sy = $ax; $sx = $by; $ly = $cx; $lx = $dy;
        $ans = $s[$ly+1][$lx+1]-$s[$sy][$lx+1]-$s[$ly+1][$sx]+$s[$sy][$sx];
        echo $ans. "\n";
    }
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="200" src="https://chokomon.com/wp-content/uploads/2022/09/27-05-07-02.png" alt="" class="wp-image-6813"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-05-07-00636/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
		<item>
		<title>【累積和メニュー】区間の和 1 (paizaランク C)-解答例-PHP編</title>
		<link>https://chokomon.com/27-prefix_sum_problems-01-01-00611/</link>
					<comments>https://chokomon.com/27-prefix_sum_problems-01-01-00611/#respond</comments>
		
		<dc:creator><![CDATA[東鳥子]]></dc:creator>
		<pubDate>Tue, 06 Sep 2022 23:58:58 +0000</pubDate>
				<category><![CDATA[paiza-問題集]]></category>
		<category><![CDATA[累積和メニュー]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[ランクC]]></category>
		<category><![CDATA[難易度-1400]]></category>
		<guid isPermaLink="false">https://chokomon.com/?p=6654</guid>

					<description><![CDATA[【累積和メニュー】> 【区間の和】STEP: 1 区間の和 1 (paizaランク C 相当) [難易度: 1480 ±23] ※リンク先へ移動するためには[paiza]へのログインが必要です。 解答例]]></description>
										<content:encoded><![CDATA[
<p>【<a href="https://chokomon.com/paiza_mondai/27-prefix_sum_problems/">累積和メニュー</a>】> <a href="https://paiza.jp/works/mondai/prefix_sum_problems/prefix_sum_problems__section_sum_step1" target="_blank" rel="noreferrer noopener">【区間の和】STEP: 1 区間の和 1 (paizaランク C 相当)</a> [難易度: <strong>1480 ±23</strong>]



<p>※リンク先へ移動するためには[<a href="https://paiza.jp/works" target="_blank" rel="noreferrer noopener">paiza</a>]へのログインが必要です。</p>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="300" src="https://chokomon.com/wp-content/uploads/2022/09/27-01-01-01.png" alt="" class="wp-image-6655"/></figure>



<div class="wp-block-dvaux-frame sc_frame_wrap inline"><div class="sc_frame_title inline" style="background-color:#ccc">問題文</div><div class="sc_frame" style="background-color:#fff;border-color:#ccc">
<p>10 個の整数 a_0, a_1, a_2, ..., a_9 からなる数列 a を用意します。</p>



<p>a_0, a_1, a_2, ..., a_9 をそれぞれ</p>



<p><code><mark style="background-color:rgba(0, 0, 0, 0)" class="has-inline-color has-light-orange-color">1 5 9 7 5 3 2 5 8 4</mark></code></p>



<p>としたとき、この数列の a_2 から a_7 までの和 (a_2 + a_3 + ... + a_7) を、累積和を使うことで求めてください。</p>



<p></p>



<p><strong>入力値（例）</strong><br>なし</p>



<p><strong>出力値（例）</strong><br>用意した数列 a の a_2 から a_7 までの和を、累積和を使うことで求め、一行で出力してください。末尾に改行を入れ、余計な文字、空行を含んではいけません。</p>
</div></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<h2 class="wp-block-heading">解答例</h2>



<div class="wp-block-urvanov-syntax-highlighter-code-block"><pre class="urvanov-syntax-highlighter-plain-tag">&lt;?php
    $a = [1, 5, 9, 7, 5, 3, 2, 5, 8, 4];
    
    for ($i=0; $i&lt;10; $i++) {
        if ($i == 0) {
            $s[$i] = $a[$i];
        } else {
            $s[$i] = $s[$i-1] + $a[$i];
        }
    }
    //print_r($s);
    $ans = $s[7] - $s[1];
    echo $ans. "\n";
?&gt;</pre></div>



<div style="height:30px" aria-hidden="true" class="wp-block-spacer"></div>



<figure class="wp-block-image aligncenter size-full"><img loading="lazy" decoding="async" width="660" height="160" src="https://chokomon.com/wp-content/uploads/2022/09/27-01-01-02.png" alt="" class="wp-image-6656"/></figure>
]]></content:encoded>
					
					<wfw:commentRss>https://chokomon.com/27-prefix_sum_problems-01-01-00611/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
