<?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=0929_-_Punct_Segment</id>
	<title>0929 - Punct Segment - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=0929_-_Punct_Segment"/>
	<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0929_-_Punct_Segment&amp;action=history"/>
	<updated>2026-05-01T04:33:35Z</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=0929_-_Punct_Segment&amp;diff=9341&amp;oldid=prev</id>
		<title>Tita Marian at 19:27, 9 January 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0929_-_Punct_Segment&amp;diff=9341&amp;oldid=prev"/>
		<updated>2024-01-09T19:27:14Z</updated>

		<summary type="html">&lt;p&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 19:27, 9 January 2024&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-l10&quot;&gt;Line 10:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 10:&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;*Segmentul are lungimea nenulă.&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;*Segmentul are lungimea nenulă.&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;== Exemplul 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;== Exemplul 1 ==&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;Intrare&lt;/del&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;punctsegmentin.txt&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;  2 2 1 1 3 3&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;  2 2 1 1 3 3&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;; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ieșire&lt;/del&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;punctsegmentout.txt&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;  Datele de intrare respecta cerintele impuse.&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;  Datele de intrare respecta cerintele impuse.&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;  DA&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;  DA&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;&amp;lt;br&amp;gt;&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;&amp;lt;br&amp;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;== Exemplul 2 ==&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;== Exemplul 2 ==&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;Intrare&lt;/del&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;punctsegmentin.txt&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;  -1500 500 -1500 500 1000 800&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;  -1500 500 -1500 500 1000 800&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;; &lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;Ieșire&lt;/del&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;punctsegmentout.txt&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;  Datele de intrare nu respecta cerintele impuse.&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;  Datele de intrare nu respecta cerintele impuse.&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;&amp;lt;br&amp;gt;&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;&amp;lt;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Tita Marian</name></author>
	</entry>
	<entry>
		<id>https://wiki.universitas.ro/index.php?title=0929_-_Punct_Segment&amp;diff=8200&amp;oldid=prev</id>
		<title>Tita Marian: Pagină nouă: == Cerinţa == Se dau un punct și un segment în plan. Să se verifice dacă punctul se găsește pe segment. == Date de intrare == Fișierul de intrare &#039;&#039;&#039;punctsegmentin.txt&#039;&#039;&#039; conține pe prima linie &#039;&#039;&#039;6&#039;&#039;&#039; numere naturale separate prin spații, respectiv: &#039;&#039;&#039;X1&#039;&#039;&#039;, &#039;&#039;&#039;Y1&#039;&#039;&#039;, &#039;&#039;&#039;X2&#039;&#039;&#039;, &#039;&#039;&#039;Y2&#039;&#039;&#039;, &#039;&#039;&#039;X3&#039;&#039;&#039;, &#039;&#039;&#039;Y3&#039;&#039;&#039;. Segmentul are capetele &#039;&#039;&#039; (X2, Y2)&#039;&#039;&#039;și &#039;&#039;&#039; (X3, Y3) &#039;&#039;&#039;. == Date de ieșire ==  Fișierul de ieșire &#039;&#039;&#039;punctsegmentout.txt&#039;&#039;&#039; va conține pe prima linie &#039;&#039;...</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0929_-_Punct_Segment&amp;diff=8200&amp;oldid=prev"/>
		<updated>2023-12-16T21:07:21Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: == Cerinţa == Se dau un punct și un segment în plan. Să se verifice dacă punctul se găsește pe segment. == Date de intrare == Fișierul de intrare &amp;#039;&amp;#039;&amp;#039;punctsegmentin.txt&amp;#039;&amp;#039;&amp;#039; conține pe prima linie &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; numere naturale separate prin spații, respectiv: &amp;#039;&amp;#039;&amp;#039;X1&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y1&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;X2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;X3&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y3&amp;#039;&amp;#039;&amp;#039;. Segmentul are capetele &amp;#039;&amp;#039;&amp;#039; (X2, Y2)&amp;#039;&amp;#039;&amp;#039;și &amp;#039;&amp;#039;&amp;#039; (X3, Y3) &amp;#039;&amp;#039;&amp;#039;. == Date de ieșire ==  Fișierul de ieșire &amp;#039;&amp;#039;&amp;#039;punctsegmentout.txt&amp;#039;&amp;#039;&amp;#039; va conține pe prima linie &amp;#039;&amp;#039;...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== Cerinţa ==&lt;br /&gt;
Se dau un punct și un segment în plan. Să se verifice dacă punctul se găsește pe segment.&lt;br /&gt;
== Date de intrare ==&lt;br /&gt;
Fișierul de intrare &amp;#039;&amp;#039;&amp;#039;punctsegmentin.txt&amp;#039;&amp;#039;&amp;#039; conține pe prima linie &amp;#039;&amp;#039;&amp;#039;6&amp;#039;&amp;#039;&amp;#039; numere naturale separate prin spații, respectiv: &amp;#039;&amp;#039;&amp;#039;X1&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y1&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;X2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y2&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;X3&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y3&amp;#039;&amp;#039;&amp;#039;. Segmentul are capetele &amp;#039;&amp;#039;&amp;#039; (X2, Y2)&amp;#039;&amp;#039;&amp;#039;și &amp;#039;&amp;#039;&amp;#039; (X3, Y3) &amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
== Date de ieșire == &lt;br /&gt;
Fișierul de ieșire &amp;#039;&amp;#039;&amp;#039;punctsegmentout.txt&amp;#039;&amp;#039;&amp;#039; va conține pe prima linie &amp;#039;&amp;#039;&amp;#039;DA &amp;#039;&amp;#039;&amp;#039; (dacă punctul de coordonate &amp;#039;&amp;#039;&amp;#039; (X1, Y1) &amp;#039;&amp;#039;&amp;#039; se găsește pe segment) sau &amp;#039;&amp;#039;&amp;#039;NU&amp;#039;&amp;#039;&amp;#039; (în caz contrar).&lt;br /&gt;
În cazul în care datele introduse de la tastatură nu îndeplinesc cerințele enunțate, pe ecran se va afișa mesajul &amp;#039;&amp;#039;&amp;#039;&amp;quot;Datele de intrare nu respecta cerintele impuse.&amp;quot; &amp;#039;&amp;#039;&amp;#039;, iar daca se indeplinesc, se afiseaza mesajul &amp;#039;&amp;#039;&amp;#039;&amp;quot;Datele de intrare respecta cerintele impuse.&amp;quot;&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
== Restricţii şi precizări ==&lt;br /&gt;
*Numerele din fișierul de intrare sunt întregi cuprinse între &amp;#039;&amp;#039;&amp;#039;-1001&amp;#039;&amp;#039;&amp;#039; și &amp;#039;&amp;#039;&amp;#039;1001&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
*Segmentul are lungimea nenulă.&lt;br /&gt;
== Exemplul 1 ==&lt;br /&gt;
; Intrare&lt;br /&gt;
 2 2 1 1 3 3&lt;br /&gt;
&lt;br /&gt;
; Ieșire&lt;br /&gt;
 Datele de intrare respecta cerintele impuse.&lt;br /&gt;
 DA&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
== Exemplul 2 ==&lt;br /&gt;
; Intrare&lt;br /&gt;
 -1500 500 -1500 500 1000 800&lt;br /&gt;
&lt;br /&gt;
; Ieșire&lt;br /&gt;
 Datele de intrare nu respecta cerintele impuse.&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Rezolvare == &lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line&amp;gt;&lt;br /&gt;
def punct_pe_segment(x1, y1, x2, y2, x3, y3):&lt;br /&gt;
    # Verifica daca punctul (x1, y1) se afla pe segmentul determinat de punctele (x2, y2) si (x3, y3)&lt;br /&gt;
    if min(x2, x3) &amp;lt;= x1 &amp;lt;= max(x2, x3) and min(y2, y3) &amp;lt;= y1 &amp;lt;= max(y2, y3):&lt;br /&gt;
        return &amp;quot;DA&amp;quot;&lt;br /&gt;
    else:&lt;br /&gt;
        return &amp;quot;NU&amp;quot;&lt;br /&gt;
&lt;br /&gt;
def verificare_restricții(x1, y1, x2, y2, x3, y3):&lt;br /&gt;
    return (-1001 &amp;lt;= x1 &amp;lt;= 1001 and -1001 &amp;lt;= y1 &amp;lt;= 1001 and&lt;br /&gt;
            -1001 &amp;lt;= x2 &amp;lt;= 1001 and -1001 &amp;lt;= y2 &amp;lt;= 1001 and&lt;br /&gt;
            -1001 &amp;lt;= x3 &amp;lt;= 1001 and -1001 &amp;lt;= y3 &amp;lt;= 1001 and&lt;br /&gt;
            (x2, y2) != (x3, y3))&lt;br /&gt;
&lt;br /&gt;
# Citirea datelor de intrare din fisier&lt;br /&gt;
with open(&amp;#039;punctsegmentin.txt&amp;#039;, &amp;#039;r&amp;#039;) as file:&lt;br /&gt;
    input_data = list(map(int, file.readline().split()))&lt;br /&gt;
&lt;br /&gt;
# Verificare restricții&lt;br /&gt;
if verificare_restricții(*input_data):&lt;br /&gt;
    # Extrage coordonatele punctelor din lista de intrare&lt;br /&gt;
    x1, y1, x2, y2, x3, y3 = input_data&lt;br /&gt;
&lt;br /&gt;
    # Verificare daca punctul se afla pe segment&lt;br /&gt;
    rezultat = punct_pe_segment(x1, y1, x2, y2, x3, y3)&lt;br /&gt;
&lt;br /&gt;
    # Scrie rezultatul in fisierul de iesire&lt;br /&gt;
    with open(&amp;#039;punctsegmentout.txt&amp;#039;, &amp;#039;w&amp;#039;) as file:&lt;br /&gt;
        file.write(&amp;quot;Datele de intrare respecta cerintele impuse.\n&amp;quot;)&lt;br /&gt;
        file.write(rezultat + &amp;quot;\n&amp;quot;)&lt;br /&gt;
else:&lt;br /&gt;
    # Scrie mesajul de eroare in fisierul de iesire&lt;br /&gt;
    with open(&amp;#039;punctsegmentout.txt&amp;#039;, &amp;#039;w&amp;#039;) as file:&lt;br /&gt;
        file.write(&amp;quot;Datele de intrare nu respecta cerintele impuse.\n&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Tita Marian</name></author>
	</entry>
</feed>