<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>https://discopal.ispras.ru/index.php?action=history&amp;feed=atom&amp;title=Geome_try%2Fcodechef_MCO16204</id>
		<title>Geome try/codechef MCO16204 - История изменений</title>
		<link rel="self" type="application/atom+xml" href="https://discopal.ispras.ru/index.php?action=history&amp;feed=atom&amp;title=Geome_try%2Fcodechef_MCO16204"/>
		<link rel="alternate" type="text/html" href="https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;action=history"/>
		<updated>2026-04-19T03:56:27Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.26.4</generator>

	<entry>
		<id>https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=21288&amp;oldid=prev</id>
		<title>StasFomin в 12:31, 7 октября 2022</title>
		<link rel="alternate" type="text/html" href="https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=21288&amp;oldid=prev"/>
				<updated>2022-10-07T12:31:10Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 12:31, 7 октября 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l56&quot; &gt;Строка 56:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 56:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*/&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;*/&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Участник:StasFomin|StasFomin]] 02:39, 19 мая 2022 (UTC): Вы невнимательны и игнорировали и курс и задания. Решения ожидается только на Python.&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;{{:Практикуемся_В_Алгоритмах}}&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[Категория:Проблемы в решении]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>StasFomin</name></author>	</entry>

	<entry>
		<id>https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=20686&amp;oldid=prev</id>
		<title>StasFomin в 02:39, 19 мая 2022</title>
		<link rel="alternate" type="text/html" href="https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=20686&amp;oldid=prev"/>
				<updated>2022-05-19T02:39:46Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='ru'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 02:39, 19 мая 2022&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l57&quot; &gt;Строка 57:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Строка 57:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/source&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;{{checkme|&lt;/del&gt;[[Участник:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Geome try&lt;/del&gt;|&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;Ельчинов Егор&lt;/del&gt;]] &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;21&lt;/del&gt;:&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;25&lt;/del&gt;, &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;12 &lt;/del&gt;мая 2022 (UTC)}}&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Участник:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;StasFomin&lt;/ins&gt;|&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;StasFomin&lt;/ins&gt;]] &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;02&lt;/ins&gt;:&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;39&lt;/ins&gt;, &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;19 &lt;/ins&gt;мая 2022 (UTC)&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;: Вы невнимательны и игнорировали и курс и задания. Решения ожидается только на Python.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;{{:Практикуемся_В_Алгоритмах&lt;/ins&gt;}}&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;[[Категория:Проблемы в решении]]&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>StasFomin</name></author>	</entry>

	<entry>
		<id>https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=20664&amp;oldid=prev</id>
		<title>Geome try: Новая страница: «Codechef/MCO16204  &lt;source lang=&quot;cpp&quot;&gt; #include &lt;bits/stdc++.h&gt;  int main() {     size_t cnt = 0;     std::cin &gt;&gt; cnt;     std::vector&lt;int64_t&gt; lst(cnt), rst(…»</title>
		<link rel="alternate" type="text/html" href="https://discopal.ispras.ru/index.php?title=Geome_try/codechef_MCO16204&amp;diff=20664&amp;oldid=prev"/>
				<updated>2022-05-12T21:25:26Z</updated>
		
		<summary type="html">&lt;p&gt;Новая страница: «&lt;a href=&quot;/Permission_denied&quot; title=&quot;Permission denied&quot;&gt;Codechef/MCO16204&lt;/a&gt;  &amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt; #include &amp;lt;bits/stdc++.h&amp;gt;  int main() {     size_t cnt = 0;     std::cin &amp;gt;&amp;gt; cnt;     std::vector&amp;lt;int64_t&amp;gt; lst(cnt), rst(…»&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Codechef/MCO16204]]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
#include &amp;lt;bits/stdc++.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
int main() {&lt;br /&gt;
    size_t cnt = 0;&lt;br /&gt;
    std::cin &amp;gt;&amp;gt; cnt;&lt;br /&gt;
    std::vector&amp;lt;int64_t&amp;gt; lst(cnt), rst(cnt);&lt;br /&gt;
    for (auto it = lst.rbegin(); it != lst.rend(); ++it) {&lt;br /&gt;
        std::cin &amp;gt;&amp;gt; *it;&lt;br /&gt;
    }&lt;br /&gt;
    for (auto it = rst.rbegin(); it != rst.rend(); ++it) {&lt;br /&gt;
        std::cin &amp;gt;&amp;gt; *it;&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    auto dim = cnt + 1;&lt;br /&gt;
    std::vector&amp;lt;int64_t&amp;gt; dp_ans(dim * dim);&lt;br /&gt;
    dp_ans[0 * dim + 0] = 0;&lt;br /&gt;
    for (size_t i = 1; i &amp;lt; dim; ++i) {&lt;br /&gt;
        dp_ans[i * dim + 0] = lst[i - 1] - dp_ans[(i - 1) * dim + 0];&lt;br /&gt;
        dp_ans[0 * dim + i] = rst[i - 1] - dp_ans[0 * dim + (i - 1)];&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    for (size_t l = 1; l &amp;lt; dim; ++l) {&lt;br /&gt;
        for (size_t r = 1; r &amp;lt; dim; ++r) {&lt;br /&gt;
            dp_ans[l * dim + r] = std::max(lst[l - 1] - dp_ans[(l - 1) * dim + r],&lt;br /&gt;
                                           rst[r - 1] - dp_ans[l * dim + (r - 1)]);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
&lt;br /&gt;
    std::cout &amp;lt;&amp;lt; dp_ans.back() &amp;lt;&amp;lt; '\n';&lt;br /&gt;
&lt;br /&gt;
    return 0;&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
/*&lt;br /&gt;
import numpy as np&lt;br /&gt;
&lt;br /&gt;
if __name__ == '__main__':&lt;br /&gt;
    cnt = int(input())&lt;br /&gt;
    lst = np.fromiter(map(int, input().split()), dtype=np.int64)[::-1]&lt;br /&gt;
    rst = np.fromiter(map(int, input().split()), dtype=np.int64)[::-1]&lt;br /&gt;
    dim = cnt + 1&lt;br /&gt;
    dp_ans = np.zeros(dim * dim, dtype=np.int64)&lt;br /&gt;
    dp_ans[0 * dim + 0] = 0&lt;br /&gt;
    for l in range(1, dim):&lt;br /&gt;
        dp_ans[l * dim + 0] = lst[l - 1] - dp_ans[(l - 1) * dim + 0]&lt;br /&gt;
    for r in range(1, dim):&lt;br /&gt;
        dp_ans[0 * dim + r] = rst[r - 1] - dp_ans[0 * dim + (r - 1)]&lt;br /&gt;
    for l in range(1, dim):&lt;br /&gt;
        for r in range(1, dim):&lt;br /&gt;
            dp_ans[l * dim + r] = max(lst[l - 1] - dp_ans[(l - 1) * dim + r], \&lt;br /&gt;
                                      rst[r - 1] - dp_ans[l * dim + (r - 1)])&lt;br /&gt;
    print(dp_ans[cnt * dim + cnt])&lt;br /&gt;
*/&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{checkme|[[Участник:Geome try|Ельчинов Егор]] 21:25, 12 мая 2022 (UTC)}}&lt;/div&gt;</summary>
		<author><name>Geome try</name></author>	</entry>

	</feed>