<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Intersection on Python Exercises</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/tags/intersection/</link><description>Recent content in Intersection on Python Exercises</description><generator>Hugo</generator><language>fa-ir</language><lastBuildDate>Sat, 06 Jun 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://amirmahdikahdouii.github.io/Python-Exercises/tags/intersection/index.xml" rel="self" type="application/rss+xml"/><item><title>دانشجویان مشترک کلاس</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/029-common-class-students/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/029-common-class-students/</guid><description>&lt;p&gt;&lt;strong&gt;#029&lt;/strong&gt; · &lt;strong&gt;Common Class Students&lt;/strong&gt; · &lt;code&gt;data-structures&lt;/code&gt; · &lt;code&gt;medium&lt;/code&gt; · &lt;code&gt;python&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;&lt;a href="https://github.com/Amirmahdikahdouii/Python-Exercises/blob/master/problems/029-common-class-students/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="دانشجویان-مشترک"&gt;دانشجویان مشترک&lt;/h1&gt;
&lt;p&gt;دانشگاه صنعتی شکرستان n دانشجو با شماره دانشجویی 1 تا n دارد که هر کدام میتوانند در تعدادی از کلاس های ترم جاری ثبت نام کنند ‍‍&lt;code&gt;این تعداد میتواند صفر باشد&lt;/code&gt;.
برنامه ای بنویسید که بتواند پاسخ q پرسش ما را بدهد. هر پرسش به این صورت است که شماره تعدادی از کلاس ها را به عنوان ورودی به برنامه میدهیم و برنامه باید تعداد دانشجویانی که در تمام این کلاس ها ثبت نام کرده اند را به عنوان خروجی بدهد.&lt;/p&gt;</description></item></channel></rss>