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 1212. Battleship

if you had WA 5
Posted by Sxcyd 29 Oct 2010 07:44
A very important problem that you may forgot.When you calculate the sum of the ship could placed,if we
Sum:=(n-k+1)*m+(m-k+1)*n.

It's wrong,because k may >n&m.
There is a test:
6 2 1
1 1 2 H
4
You should output 2.
Good Luck!