<?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>Greedy on Python Exercises</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/tags/greedy/</link><description>Recent content in Greedy 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/greedy/index.xml" rel="self" type="application/rss+xml"/><item><title>خرید کتاب</title><link>https://amirmahdikahdouii.github.io/Python-Exercises/problems/061-max-books-purchase/</link><pubDate>Sat, 06 Jun 2026 00:00:00 +0000</pubDate><guid>https://amirmahdikahdouii.github.io/Python-Exercises/problems/061-max-books-purchase/</guid><description>&lt;p&gt;&lt;strong&gt;#061&lt;/strong&gt; · &lt;strong&gt;Max Books Purchase&lt;/strong&gt; · &lt;code&gt;greedy&lt;/code&gt; · &lt;code&gt;easy&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/061-max-books-purchase/solution.py"&gt;مشاهده راه‌حل در GitHub&lt;/a&gt;&lt;/p&gt;
&lt;hr&gt;
&lt;h1 id="خرید-کتاب"&gt;خرید کتاب&lt;/h1&gt;
&lt;p&gt;توی این مسئله ما میخوایم که بیشترین تعداد کتابی رو که میتونیم از کتاب فروشی با توجه به بودجه مون بخریم.&lt;/p&gt;
&lt;h1 id="ورودی"&gt;ورودی:&lt;/h1&gt;
&lt;p&gt;در خط اول ورودی، ابتدا n که تعداد کتاب ها و m که مقدار پول ما است، داده میشود.&lt;/p&gt;
&lt;p&gt;در خط دوم ورودی، n عدد که با فاصله از هم جدا داده شده اند داده میشود. تصمین میشود که اعداد طبیعی هستند.&lt;/p&gt;</description></item></channel></rss>