ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1008. Image Encoding

WA#6
Posted by IgorKoval(from Pskov) 18 Jan 2012 21:51
In test #6 we must write 2nd representation in 1st.

This get WA6
while( 1 ){
    string cur;
    getline( cin, cur );
    if( cur == "." ) break;//!!!!!!!
    pT p = Q.front();
    Q.pop_front();
    IsBl[p.x][p.y] = true;
<secret deleted code here =) >
}


This get AC:
while( 1 ){
    string cur;
    getline( cin, cur );
    pT p = Q.front();
    Q.pop_front();
    IsBl[p.x][p.y] = true;
    if( cur == "." ) break;//!!!!!!!
<secret deleted code here =) >
}


PS: sily mistake.

Edited by author 18.01.2012 21:52