<?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=2096_-_XYZ</id>
	<title>2096 - XYZ - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.universitas.ro/index.php?action=history&amp;feed=atom&amp;title=2096_-_XYZ"/>
	<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2096_-_XYZ&amp;action=history"/>
	<updated>2026-05-01T04:39:51Z</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=2096_-_XYZ&amp;diff=6726&amp;oldid=prev</id>
		<title>Pop Giulia at 13:05, 20 May 2023</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2096_-_XYZ&amp;diff=6726&amp;oldid=prev"/>
		<updated>2023-05-20T13:05:22Z</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 13:05, 20 May 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-l1&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&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;Sursa: [https://www.pbinfo.ro/probleme/2096/xyz]&lt;/ins&gt;&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;&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;==Enunt==&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;==Enunt==&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;Un număr natural se numeşte “număr xyz” dacă are x cifre, prima cifră a sa este egală cu y şi următoarele cifre sunt egale cu z.&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;Un număr natural se numeşte “număr xyz” dacă are x cifre, prima cifră a sa este egală cu y şi următoarele cifre sunt egale cu z.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Pop Giulia</name></author>
	</entry>
	<entry>
		<id>https://wiki.universitas.ro/index.php?title=2096_-_XYZ&amp;diff=5636&amp;oldid=prev</id>
		<title>Pop Giulia: Pagină nouă: ==Enunt== Un număr natural se numeşte “număr xyz” dacă are x cifre, prima cifră a sa este egală cu y şi următoarele cifre sunt egale cu z.  ==Cerința== Scrieţi un program care să determine “numărul xyz” pentru x y z numere naturale date.  ==Date de intrare== Fişierul de intrare xyz.in are pe prima sa linie 3 numere naturale x y z separate prin spatii.  ==Date de ieșire== Fişierul de ieşire xyz.out va conţine, pe prima linie, “numărul xyz” determi...</title>
		<link rel="alternate" type="text/html" href="https://wiki.universitas.ro/index.php?title=2096_-_XYZ&amp;diff=5636&amp;oldid=prev"/>
		<updated>2023-04-30T10:58:43Z</updated>

		<summary type="html">&lt;p&gt;Pagină nouă: ==Enunt== Un număr natural se numeşte “număr xyz” dacă are x cifre, prima cifră a sa este egală cu y şi următoarele cifre sunt egale cu z.  ==Cerința== Scrieţi un program care să determine “numărul xyz” pentru x y z numere naturale date.  ==Date de intrare== Fişierul de intrare xyz.in are pe prima sa linie 3 numere naturale x y z separate prin spatii.  ==Date de ieșire== Fişierul de ieşire xyz.out va conţine, pe prima linie, “numărul xyz” determi...&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==Enunt==&lt;br /&gt;
Un număr natural se numeşte “număr xyz” dacă are x cifre, prima cifră a sa este egală cu y şi următoarele cifre sunt egale cu z.&lt;br /&gt;
&lt;br /&gt;
==Cerința==&lt;br /&gt;
Scrieţi un program care să determine “numărul xyz” pentru x y z numere naturale date.&lt;br /&gt;
&lt;br /&gt;
==Date de intrare==&lt;br /&gt;
Fişierul de intrare xyz.in are pe prima sa linie 3 numere naturale x y z separate prin spatii.&lt;br /&gt;
&lt;br /&gt;
==Date de ieșire==&lt;br /&gt;
Fişierul de ieşire xyz.out va conţine, pe prima linie, “numărul xyz” determinat.&lt;br /&gt;
&lt;br /&gt;
==Restricții și precizări==&lt;br /&gt;
  • 1 ≤ x, y ≤ 9&lt;br /&gt;
  • 0 ≤ z ≤ 9&lt;br /&gt;
&lt;br /&gt;
==Exemplu:==&lt;br /&gt;
xyz.in&lt;br /&gt;
&lt;br /&gt;
5 4 3&lt;br /&gt;
xyz.out&lt;br /&gt;
&lt;br /&gt;
43333&lt;br /&gt;
==Explicație==&lt;br /&gt;
Numărul are 5 cifre, prima cifră este 4 iar celelalte cifre sunt egale cu 3.&lt;br /&gt;
&lt;br /&gt;
==Încărcare soluție==&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;python&amp;quot; line&amp;gt;&lt;br /&gt;
# citire date de intrare&lt;br /&gt;
with open(&amp;quot;xyz.in&amp;quot;, &amp;quot;r&amp;quot;) as f:&lt;br /&gt;
    x, y, z = f.readline().split()&lt;br /&gt;
&lt;br /&gt;
# construire număr&lt;br /&gt;
numar = y + z*(int(x)-1)&lt;br /&gt;
&lt;br /&gt;
# scriere rezultat in fisierul de ieșire&lt;br /&gt;
with open(&amp;quot;xyz.out&amp;quot;, &amp;quot;w&amp;quot;) as f:&lt;br /&gt;
    f.write(numar)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>Pop Giulia</name></author>
	</entry>
</feed>