<?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=0930_-_Intersectie_Segmente</id>
	<title>0930 - Intersectie Segmente - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=0930_-_Intersectie_Segmente"/>
	<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0930_-_Intersectie_Segmente&amp;action=history"/>
	<updated>2026-05-01T10:56:09Z</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=0930_-_Intersectie_Segmente&amp;diff=9342&amp;oldid=prev</id>
		<title>Tita Marian at 19:28, 9 January 2024</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0930_-_Intersectie_Segmente&amp;diff=9342&amp;oldid=prev"/>
		<updated>2024-01-09T19:28:20Z</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:28, 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-l13&quot;&gt;Line 13:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 13:&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;*Ambele segmente au 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;*Ambele segmente au 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;intersectiesegmentein.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;  -1 -1 1 1 -1 1 1 -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 -1 1 1 -1 1 1 -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;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;intersectiesegmenteout.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;intersectiesegmentein.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 1000 800 -1500 500 -1500 500&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 1000 800 -1500 500 -1500 500&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;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;intersectiesegmenteout.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=0930_-_Intersectie_Segmente&amp;diff=8202&amp;oldid=prev</id>
		<title>Tita Marian: Pagină nouă: == Cerinţa == Se dau două segmente în plan, specificate prin coordonatele capetelor. Să se verifice dacă au cel puțin un punct comun.  == Date de intrare == Fișierul de intrare &#039;&#039;&#039;intersectiesegmentein.txt&#039;&#039;&#039; conține pe prima linie &#039;&#039;&#039;8&#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;, &#039;&#039;&#039;X4&#039;&#039;&#039;, &#039;&#039;&#039;Y4&#039;&#039;&#039;. Primul segment are capetele &#039;&#039;&#039; (X1, Y1) &#039;&#039;&#039; și &#039;&#039;&#039; (X2, Y2) &#039;&#039;&#039;.  == Date de ieșire ==  Fișierul d...</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0930_-_Intersectie_Segmente&amp;diff=8202&amp;oldid=prev"/>
		<updated>2023-12-16T21:17:34Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: == Cerinţa == Se dau două segmente în plan, specificate prin coordonatele capetelor. Să se verifice dacă au cel puțin un punct comun.  == Date de intrare == Fișierul de intrare &amp;#039;&amp;#039;&amp;#039;intersectiesegmentein.txt&amp;#039;&amp;#039;&amp;#039; conține pe prima linie &amp;#039;&amp;#039;&amp;#039;8&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;, &amp;#039;&amp;#039;&amp;#039;X4&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y4&amp;#039;&amp;#039;&amp;#039;. Primul segment are capetele &amp;#039;&amp;#039;&amp;#039; (X1, Y1) &amp;#039;&amp;#039;&amp;#039; și &amp;#039;&amp;#039;&amp;#039; (X2, Y2) &amp;#039;&amp;#039;&amp;#039;.  == Date de ieșire ==  Fișierul d...&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 două segmente în plan, specificate prin coordonatele capetelor. Să se verifice dacă au cel puțin un punct comun.&lt;br /&gt;
&lt;br /&gt;
== Date de intrare ==&lt;br /&gt;
Fișierul de intrare &amp;#039;&amp;#039;&amp;#039;intersectiesegmentein.txt&amp;#039;&amp;#039;&amp;#039; conține pe prima linie &amp;#039;&amp;#039;&amp;#039;8&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;, &amp;#039;&amp;#039;&amp;#039;X4&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;Y4&amp;#039;&amp;#039;&amp;#039;. Primul segment are capetele &amp;#039;&amp;#039;&amp;#039; (X1, Y1) &amp;#039;&amp;#039;&amp;#039; și &amp;#039;&amp;#039;&amp;#039; (X2, Y2) &amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
== Date de ieșire == &lt;br /&gt;
Fișierul de ieșire &amp;#039;&amp;#039;&amp;#039;intersectiesegmenteout.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; (când segmentele se intersectează) sau &amp;#039;&amp;#039;&amp;#039;NU&amp;#039;&amp;#039;&amp;#039; (în caz contrar).&lt;br /&gt;
&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;
*Ambele segmente au lungimea nenulă.&lt;br /&gt;
== Exemplul 1 ==&lt;br /&gt;
; Intrare&lt;br /&gt;
 -1 -1 1 1 -1 1 1 -1&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 1000 800 -1500 500 -1500 500&lt;br /&gt;
&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 verifica_intersectie_segmente(x1, y1, x2, y2, x3, y3, x4, y4):&lt;br /&gt;
    # Verifica daca segmentele au cel putin un punct comun&lt;br /&gt;
    if (min(x1, x2) &amp;lt;= max(x3, x4) and min(x3, x4) &amp;lt;= max(x1, x2) and&lt;br /&gt;
            min(y1, y2) &amp;lt;= max(y3, y4) and min(y3, y4) &amp;lt;= max(y1, y2)):&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, x4, y4):&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;
            -1001 &amp;lt;= x4 &amp;lt;= 1001 and -1001 &amp;lt;= y4 &amp;lt;= 1001 and&lt;br /&gt;
            (x1, y1) != (x2, y2) and (x3, y3) != (x4, y4))&lt;br /&gt;
&lt;br /&gt;
# Citirea datelor de intrare din fisier&lt;br /&gt;
with open(&amp;#039;intersectiesegmentein.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 capetelor segmentelor din lista de intrare&lt;br /&gt;
    x1, y1, x2, y2, x3, y3, x4, y4 = input_data&lt;br /&gt;
&lt;br /&gt;
    # Verificare intersectie segmente&lt;br /&gt;
    rezultat = verifica_intersectie_segmente(x1, y1, x2, y2, x3, y3, x4, y4)&lt;br /&gt;
&lt;br /&gt;
    # Scrie rezultatul in fisierul de iesire&lt;br /&gt;
    with open(&amp;#039;intersectiesegmenteout.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;intersectiesegmenteout.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>