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 1035. Cross-stitch

What's the answer of this input?
Posted by davidsun 4 Aug 2006 10:59
What's the answer of this input, why?
2 2
\/
/\
\/
/\
I think it should be 2.

Edited by author 04.08.2006 11:09
Re: What's the answer of this input?
Posted by anus (USU) 4 Aug 2006 12:38
No, right answer is 1.
Re: What's the answer of this input?
Posted by davidsun 4 Aug 2006 20:37
Ask again:

3 3
\\\
\\\
\\\
///
///
///

I think it should be 3.

Edited by author 04.08.2006 20:41
Re: What's the answer of this input?
Posted by anus (USU) 4 Aug 2006 23:39
It is enough 2 threads:
1
\ \
 \
\ \
 /
/ /
 /

2
 \
\ \
 \
/ /
 /
/ /

Try to write cout << ans-1 << endl;) GoodLuck!