3

Strange behavior of GNU C++ 17

 2 years ago
source link: http://codeforces.com/blog/entry/96537
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Strange behavior of GNU C++ 17

1. WA Submission

2. AC Submission

The only difference between the two submissions is the cout<<"", which is there in the AC Submission and not there in WA Submission. Can someone please help me understand why printing an empty string gives a different answer than when not printing print it?

Thank you!


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK