आय और खर्चे

आपने इस महीने अपने खर्चों और आय का हिसाब रखने का फैसला किया है। आपने सभी खर्चों को एक-एक करके 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
300

100
400
500

Great, you've stayed within the limits!

100
200
890
654

345
234
123
1000
142

Great, you've stayed within the limits!

100
200
300

100
300

We need to cut the spending the next month

Constraints

Time limit: 2 seconds

Memory limit: 512 MB

Output limit: 1 MB

To check your solution you need to sign in
Sign in to continue