<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=2419_-_%C3%8Ent%C3%A2lnire</id>
	<title>2419 - Întâlnire - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=2419_-_%C3%8Ent%C3%A2lnire"/>
	<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;action=history"/>
	<updated>2026-05-01T04:49:26Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=4118&amp;oldid=prev</id>
		<title>Vardai Erwin: /* Date de ieșire */</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=4118&amp;oldid=prev"/>
		<updated>2023-04-22T18:03:01Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Date de ieșire&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 18:03, 22 April 2023&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-l8&quot;&gt;Line 8:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 8:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Date de ieșire==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Date de ieșire==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;Programul &lt;/del&gt;va afișa pe ecran numărul &#039;&#039;&#039;S&#039;&#039;&#039;, reprezentând oboseala minimă posibilă acumulată de cei doi prieteni.&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Dacă datele sunt introduse corect, pe ecran se va afișa: &quot;Datele de intrare corespund restricțiilor impuse.&quot; și programul &lt;/ins&gt;va afișa pe ecran numărul &#039;&#039;&#039;S&#039;&#039;&#039;, reprezentând oboseala minimă posibilă acumulată de cei doi prieteni. &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;În caz contrar, se va afișa pe ecran: &quot;Datele de intrare nu corespund restricțiilor impuse.&quot;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Restricții și precizări==&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;==Restricții și precizări==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vardai Erwin</name></author>
	</entry>
	<entry>
		<id>https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=4027&amp;oldid=prev</id>
		<title>Vardai Erwin: /* Exemplul 1 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=4027&amp;oldid=prev"/>
		<updated>2023-04-22T15:00:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exemplul 1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 15:00, 22 April 2023&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-l18&quot;&gt;Line 18:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 18:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Intrare&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Intrare&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;:3 4&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;:3  &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-side-deleted&quot;&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:&lt;/ins&gt;4&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Ieșire&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;;Ieșire&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; 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 style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;:Datele de intrare corespund restricțiilor impuse.&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:1&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;:1&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;br&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Vardai Erwin</name></author>
	</entry>
	<entry>
		<id>https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=3695&amp;oldid=prev</id>
		<title>Tuca Liviu Razvan: Pagină nouă: ==Cerință== Doi prieteni se afla pe axa &#039;&#039;&#039;Ox&#039;&#039;&#039;, in puncte cu coordonate întregi. Primul se află în punctul &#039;&#039;&#039;x1 = a&#039;&#039;&#039;, iar al doilea se află în punctul &#039;&#039;&#039;x2 = b&#039;&#039;&#039;. Fiecare se poate mișca cu o poziție, la stânga sau la dreapta, de un număr nelimitat de ori. Când se mișcă, oboseala se modifică după următoarea regulă: la &#039;&#039;&#039;prima&#039;&#039;&#039; mișcare oboseala crește cu &#039;&#039;&#039;1&#039;&#039;&#039;, la &#039;&#039;&#039;a doua&#039;&#039;&#039; mișcare oboseala crește cu &#039;&#039;&#039;2&#039;&#039;&#039;, la &#039;&#039;&#039;a treia&#039;&#039;&#039; cu &#039;&#039;&#039;3&#039;&#039;&#039; și...</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2419_-_%C3%8Ent%C3%A2lnire&amp;diff=3695&amp;oldid=prev"/>
		<updated>2023-04-15T16:27:43Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: ==Cerință== Doi prieteni se afla pe axa &amp;#039;&amp;#039;&amp;#039;Ox&amp;#039;&amp;#039;&amp;#039;, in puncte cu coordonate întregi. Primul se află în punctul &amp;#039;&amp;#039;&amp;#039;x1 = a&amp;#039;&amp;#039;&amp;#039;, iar al doilea se află în punctul &amp;#039;&amp;#039;&amp;#039;x2 = b&amp;#039;&amp;#039;&amp;#039;. Fiecare se poate mișca cu o poziție, la stânga sau la dreapta, de un număr nelimitat de ori. Când se mișcă, oboseala se modifică după următoarea regulă: la &amp;#039;&amp;#039;&amp;#039;prima&amp;#039;&amp;#039;&amp;#039; mișcare oboseala crește cu &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;, la &amp;#039;&amp;#039;&amp;#039;a doua&amp;#039;&amp;#039;&amp;#039; mișcare oboseala crește cu &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;, la &amp;#039;&amp;#039;&amp;#039;a treia&amp;#039;&amp;#039;&amp;#039; cu &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039; și...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Cerință==&lt;br /&gt;
Doi prieteni se afla pe axa &amp;#039;&amp;#039;&amp;#039;Ox&amp;#039;&amp;#039;&amp;#039;, in puncte cu coordonate întregi. Primul se află în punctul &amp;#039;&amp;#039;&amp;#039;x1 = a&amp;#039;&amp;#039;&amp;#039;, iar al doilea se află în punctul &amp;#039;&amp;#039;&amp;#039;x2 = b&amp;#039;&amp;#039;&amp;#039;. Fiecare se poate mișca cu o poziție, la stânga sau la dreapta, de un număr nelimitat de ori. Când se mișcă, oboseala se modifică după următoarea regulă: la &amp;#039;&amp;#039;&amp;#039;prima&amp;#039;&amp;#039;&amp;#039; mișcare oboseala crește cu &amp;#039;&amp;#039;&amp;#039;1&amp;#039;&amp;#039;&amp;#039;, la &amp;#039;&amp;#039;&amp;#039;a doua&amp;#039;&amp;#039;&amp;#039; mișcare oboseala crește cu &amp;#039;&amp;#039;&amp;#039;2&amp;#039;&amp;#039;&amp;#039;, la &amp;#039;&amp;#039;&amp;#039;a treia&amp;#039;&amp;#039;&amp;#039; cu &amp;#039;&amp;#039;&amp;#039;3&amp;#039;&amp;#039;&amp;#039; și asa mai departe. De exemplu, dacă un prieten se mișcă mai întâi la stânga, apoi la dreapta, și apoi iar la stânga, oboseala lui devine 1 + 2 + 3 = 6.&lt;br /&gt;
&lt;br /&gt;
Prietenii vor să se întâlnească într-un punct cu coordonata număr întreg. Aflați oboseala totală &amp;#039;&amp;#039;&amp;#039;minimă&amp;#039;&amp;#039;&amp;#039; pe care cei doi cei doi o vor acumula.&lt;br /&gt;
&lt;br /&gt;
==Date de intrare==&lt;br /&gt;
Programul citește de la tastatură numerele &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; si &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Date de ieșire==&lt;br /&gt;
Programul va afișa pe ecran numărul &amp;#039;&amp;#039;&amp;#039;S&amp;#039;&amp;#039;&amp;#039;, reprezentând oboseala minimă posibilă acumulată de cei doi prieteni.&lt;br /&gt;
&lt;br /&gt;
==Restricții și precizări==&lt;br /&gt;
*1 ≤ &amp;#039;&amp;#039;&amp;#039;a&amp;#039;&amp;#039;&amp;#039; ≤ 1000&lt;br /&gt;
*1 ≤ &amp;#039;&amp;#039;&amp;#039;b&amp;#039;&amp;#039;&amp;#039; ≤ 1000&lt;br /&gt;
*&amp;#039;&amp;#039;&amp;#039;a≠b&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
&lt;br /&gt;
==Exemplul 1==&lt;br /&gt;
;Intrare&lt;br /&gt;
&lt;br /&gt;
:3 4&lt;br /&gt;
&lt;br /&gt;
;Ieșire&lt;br /&gt;
&lt;br /&gt;
:1&lt;br /&gt;
&lt;br /&gt;
==Rezolvare==&lt;br /&gt;
===Rezolvare ver. 1===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line=&amp;quot;1&amp;quot; start=&amp;quot;1&amp;quot;&amp;gt;&lt;br /&gt;
def validare(a, b):&lt;br /&gt;
    # Verifică dacă a și b sunt în intervalul [0,1000] și diferite între ele.&lt;br /&gt;
    if 0 &amp;lt;= a &amp;lt;= 1000 and 0 &amp;lt;= b &amp;lt;= 1000 and a != b:&lt;br /&gt;
        return True&lt;br /&gt;
    return False&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def oboseala_minima(a, b):&lt;br /&gt;
    if a &amp;gt; b:&lt;br /&gt;
        a, b = b, a&lt;br /&gt;
&lt;br /&gt;
    ok = True  # Inițializăm ok cu True, pentru a intra în bucla while.&lt;br /&gt;
    s = 0  # Inițializăm variabila s cu 0.&lt;br /&gt;
    i = 1  # Inițializăm i cu 1.&lt;br /&gt;
&lt;br /&gt;
    while ok:&lt;br /&gt;
        if a != b:&lt;br /&gt;
            a += 1  # Incrementăm a.&lt;br /&gt;
            s += i  # Adăugăm la s valoarea lui i.&lt;br /&gt;
            if a == b:&lt;br /&gt;
                ok = False  # În cazul în care a ajunge egal cu b, ieșim din bucla while.&lt;br /&gt;
            else:&lt;br /&gt;
                b -= 1  # Decrementăm b.&lt;br /&gt;
                s += i  # Adăugăm la s valoarea lui i.&lt;br /&gt;
        else:&lt;br /&gt;
            ok = False  # În cazul în care a ajunge egal cu b, ieșim din bucla while.&lt;br /&gt;
        i += 1  # Incrementăm i.&lt;br /&gt;
&lt;br /&gt;
    print(s)  # Afișăm valoarea finală a variabilei s.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    a = int(input())  # Citim prima valoare.&lt;br /&gt;
    b = int(input())  # Citim a doua valoare.&lt;br /&gt;
    if validare(a, b):  # Verificăm dacă valorile citite sunt valide, folosind funcția validare.&lt;br /&gt;
        print(&amp;quot;Datele de intrare corespund restricțiilor impuse.&amp;quot;)&lt;br /&gt;
        oboseala_minima(a, b)  # Dacă valorile sunt valide, apelăm funcția oboseala_minima.&lt;br /&gt;
    else:&lt;br /&gt;
        print(&amp;quot;Datele de intrare nu corespund restricțiilor impuse.&amp;quot;)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tuca Liviu Razvan</name></author>
	</entry>
</feed>