201 - Squares

All about problems in Volume 2. If there is a thread about your problem, please use it. If not, create one with its number in the subject.

Moderator: Board moderators

brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 201 Squares

Post by brianfry713 »

Don't print a blank line at the end of the output.
Check input and AC output for thousands of problems on uDebug!
daniellee
New poster
Posts: 2
Joined: Fri Sep 21, 2012 7:40 pm

Re: 201 Squares

Post by daniellee »

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~
brianfry713
Guru
Posts: 5947
Joined: Thu Sep 01, 2011 9:09 am
Location: San Jose, CA, USA

Re: 201 Squares

Post by brianfry713 »

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!
Post Reply

Return to “Volume 2 (200-299)”