आय और खर्चे
आपने इस महीने अपने खर्चों और आय का हिसाब रखने का फैसला किया है। आपने सभी खर्चों को एक-एक करके expenses.txt
फ़ाइल में रिकॉर्ड किया है, और आय को income.txt
फ़ाइल में समान प्रारूप में दर्ज किया है।
अब आप जानना चाहते हैं कि आपने जितना कमाया है उससे ज्यादा खर्च किया है या आप सीमाओं के भीतर रहे हैं।
कार्यक्रम को यह प्रिंट करना चाहिए Great, you've stayed within the limits!
अगर खर्च आय से अधिक नहीं है, और We need to cut the spending the next month
अगर खर्च आय से अधिक है।
expenses.txt | income.txt | आउटपुट |
---|---|---|
200 | 100 | Great, you've stayed within the limits! |
100 | 345 | Great, you've stayed within the limits! |
100 | 100 | We need to cut the spending the next month |
Constraints
Time limit: 2 seconds
Memory limit: 512 MB
Output limit: 1 MB