201 - Squares
Moderator: Board moderators
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 201 Squares
Don't print a blank line at the end of the output.
Check input and AC output for thousands of problems on uDebug!
Re: 201 Squares
Hi brianfry713,
Thanks.
1.
I have remove "endl" at the end of:
out << "**********************************" << endl; //<<endl; <-- remove this
Submit again, still got WA.
2.
if(hasRect == false)
cout << "No completed squares can be found." << endl;
// cout << endl; <-- remove this
Submit again, still got WA.
Sigh~
Thanks.
1.
I have remove "endl" at the end of:
out << "**********************************" << endl; //<<endl; <-- remove this
Submit again, still got WA.
2.
if(hasRect == false)
cout << "No completed squares can be found." << endl;
// cout << endl; <-- remove this
Submit again, still got WA.
Sigh~
-
- Guru
- Posts: 5947
- Joined: Thu Sep 01, 2011 9:09 am
- Location: San Jose, CA, USA
Re: 201 Squares
Separate output for successive input records by a line of asterisks between two blank lines, like in the sample output. Post your updated code inside code blocks if you're still having trouble.
Check input and AC output for thousands of problems on uDebug!