<?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=0333_-_Triunghi1</id>
	<title>0333 - Triunghi1 - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=0333_-_Triunghi1"/>
	<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0333_-_Triunghi1&amp;action=history"/>
	<updated>2026-05-01T04:05:23Z</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=0333_-_Triunghi1&amp;diff=4135&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=0333_-_Triunghi1&amp;diff=4135&amp;oldid=prev"/>
		<updated>2023-04-22T18:15:18Z</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:15, 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-l6&quot;&gt;Line 6:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 6:&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;afișează pe ecran mesajul &#039;&#039;&#039;nu este triunghi&#039;&#039;&#039;, dacă cele trei numere nu pot fi lungimile laturilor unui triunghi, respectiv unul dintre mesajele &#039;&#039;&#039;triunghi ascutitunghic&#039;&#039;&#039;, &#039;&#039;&#039;triunghi dreptunghic&#039;&#039;&#039; sau &#039;&#039;&#039;triunghi obtuzunghic&#039;&#039;&#039;, în funcție de natura triunghiului.&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;afișează pe ecran mesajul &#039;&#039;&#039;nu este triunghi&#039;&#039;&#039;, dacă cele trei numere nu pot fi lungimile laturilor unui triunghi, respectiv unul dintre mesajele &#039;&#039;&#039;triunghi ascutitunghic&#039;&#039;&#039;, &#039;&#039;&#039;triunghi dreptunghic&#039;&#039;&#039; sau &#039;&#039;&#039;triunghi obtuzunghic&#039;&#039;&#039;, în funcție de natura triunghiului. &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=0333_-_Triunghi1&amp;diff=4039&amp;oldid=prev</id>
		<title>Vardai Erwin: /* Exemplul 2 */</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0333_-_Triunghi1&amp;diff=4039&amp;oldid=prev"/>
		<updated>2023-04-22T15:15:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Exemplul 2&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:15, 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-l26&quot;&gt;Line 26:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 26:&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;:nu este triunghi&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;:nu este triunghi&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=0333_-_Triunghi1&amp;diff=3739&amp;oldid=prev</id>
		<title>Tuca Liviu Razvan: Pagină nouă: ==Cerință== Să se scrie un program care citeşte trei numere reale şi verifică dacă aceste numere pot fi lungimile laturilor unui triunghi și în caz afirmativ determină daca triunghiul este &#039;&#039;&#039;ascuțitunghic&#039;&#039;&#039;, &#039;&#039;&#039;dreptunghic&#039;&#039;&#039; sau &#039;&#039;&#039;obtuzunghic&#039;&#039;&#039;.  ==Date de intrare== Programul citește de la tastatură trei numere reale &#039;&#039;&#039;a, b, c&#039;&#039;&#039;.  ==Date de ieșire== Programul afișează pe ecran mesajul &#039;&#039;&#039;nu este triunghi&#039;&#039;&#039;, dacă cele trei numere nu pot fi lungimile la...</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=0333_-_Triunghi1&amp;diff=3739&amp;oldid=prev"/>
		<updated>2023-04-16T11:56:00Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: ==Cerință== Să se scrie un program care citeşte trei numere reale şi verifică dacă aceste numere pot fi lungimile laturilor unui triunghi și în caz afirmativ determină daca triunghiul este &amp;#039;&amp;#039;&amp;#039;ascuțitunghic&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;dreptunghic&amp;#039;&amp;#039;&amp;#039; sau &amp;#039;&amp;#039;&amp;#039;obtuzunghic&amp;#039;&amp;#039;&amp;#039;.  ==Date de intrare== Programul citește de la tastatură trei numere reale &amp;#039;&amp;#039;&amp;#039;a, b, c&amp;#039;&amp;#039;&amp;#039;.  ==Date de ieșire== Programul afișează pe ecran mesajul &amp;#039;&amp;#039;&amp;#039;nu este triunghi&amp;#039;&amp;#039;&amp;#039;, dacă cele trei numere nu pot fi lungimile la...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Cerință==&lt;br /&gt;
Să se scrie un program care citeşte trei numere reale şi verifică dacă aceste numere pot fi lungimile laturilor unui triunghi și în caz afirmativ determină daca triunghiul este &amp;#039;&amp;#039;&amp;#039;ascuțitunghic&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;dreptunghic&amp;#039;&amp;#039;&amp;#039; sau &amp;#039;&amp;#039;&amp;#039;obtuzunghic&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Date de intrare==&lt;br /&gt;
Programul citește de la tastatură trei numere reale &amp;#039;&amp;#039;&amp;#039;a, b, c&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
==Date de ieșire==&lt;br /&gt;
Programul afișează pe ecran mesajul &amp;#039;&amp;#039;&amp;#039;nu este triunghi&amp;#039;&amp;#039;&amp;#039;, dacă cele trei numere nu pot fi lungimile laturilor unui triunghi, respectiv unul dintre mesajele &amp;#039;&amp;#039;&amp;#039;triunghi ascutitunghic&amp;#039;&amp;#039;&amp;#039;, &amp;#039;&amp;#039;&amp;#039;triunghi dreptunghic&amp;#039;&amp;#039;&amp;#039; sau &amp;#039;&amp;#039;&amp;#039;triunghi obtuzunghic&amp;#039;&amp;#039;&amp;#039;, în funcție de natura triunghiului.&lt;br /&gt;
&lt;br /&gt;
==Restricții și precizări==&lt;br /&gt;
*0 ≤ &amp;#039;&amp;#039;&amp;#039;a,b,c&amp;#039;&amp;#039;&amp;#039; ≤ 100&lt;br /&gt;
&lt;br /&gt;
==Exemplul 1==&lt;br /&gt;
;Intrare&lt;br /&gt;
&lt;br /&gt;
:3 5 4&lt;br /&gt;
&lt;br /&gt;
;Ieșire&lt;br /&gt;
&lt;br /&gt;
:triunghi dreptunghic&lt;br /&gt;
&lt;br /&gt;
==Exemplul 2==&lt;br /&gt;
;Intrare&lt;br /&gt;
&lt;br /&gt;
:5 1 4&lt;br /&gt;
&lt;br /&gt;
;Ieșire&lt;br /&gt;
&lt;br /&gt;
:nu este triunghi&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, c):&lt;br /&gt;
    # Verifică dacă lungimile laturilor sunt cuprinse între 0 și 100&lt;br /&gt;
    if 0 &amp;lt;= a &amp;lt;= 100 and 0 &amp;lt;= b &amp;lt;= 100 and 0 &amp;lt;= c &amp;lt;= 100:&lt;br /&gt;
        return True&lt;br /&gt;
    return False&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
def triunghi(a, b, c):&lt;br /&gt;
    if a &amp;lt;= 0 or b &amp;lt;= 0 or c &amp;lt;= 0 or a &amp;gt;= b + c or b &amp;gt;= a + c or c &amp;gt;= a + b:&lt;br /&gt;
        # Dacă laturile nu pot forma un triunghi, afișează un mesaj corespunzător&lt;br /&gt;
        print(&amp;quot;nu este triunghi&amp;quot;)&lt;br /&gt;
    elif a * a + b * b == c * c or b * b + c * c == a * a or c * c + a * a == b * b:&lt;br /&gt;
        # Dacă triunghiul este dreptunghic, afișează un mesaj corespunzător&lt;br /&gt;
        print(&amp;quot;triunghi dreptunghic&amp;quot;)&lt;br /&gt;
    elif a * a + b * b &amp;gt; c * c and b * b + c * c &amp;gt; a * a and c * c + a * a &amp;gt; b * b:&lt;br /&gt;
        # Dacă triunghiul este ascutitunghic, afișează un mesaj corespunzător&lt;br /&gt;
        print(&amp;quot;triunghi ascutitunghic&amp;quot;)&lt;br /&gt;
    else:&lt;br /&gt;
        # Dacă triunghiul este obtuzunghic, afișează un mesaj corespunzător&lt;br /&gt;
        print(&amp;quot;triunghi obtuzunghic&amp;quot;)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
if __name__ == &amp;quot;__main__&amp;quot;:&lt;br /&gt;
    # Citeste lungimile laturilor triunghiului de la tastatură&lt;br /&gt;
    a, b, c = map(float, input().split())&lt;br /&gt;
    if validare(a, b, c):&lt;br /&gt;
        # Dacă laturile sunt valide, afișează un mesaj corespunzător și calculează tipul triunghiului&lt;br /&gt;
        print(&amp;quot;Datele de intrare corespund restricțiilor impuse.&amp;quot;)&lt;br /&gt;
        triunghi(a, b, c)&lt;br /&gt;
    else:&lt;br /&gt;
        # Dacă laturile nu sunt valide, afișează un mesaj corespunzător&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>