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 2010. Sasha the Young Grandmaster

Some tests
Posted by NickC8 16 Nov 2013 02:53
I'm getting WA#4, can you give some tests?
Re: Some tests
1 1 1
King: 0
Knight: 0
Bishop: 0
Rook: 0
Queen: 0

2 2 2
King: 3
Knight: 0
Bishop: 1
Rook: 2
Queen: 3

100000000 99999999 100000000
King: 5
Knight: 3
Bishop: 99999999
Rook: 199999998
Queen: 299999997

98765432 10987654 32109876
King: 8
Knight: 8
Bishop: 120740737
Rook: 197530862
Queen: 318271599
Re: Some tests
Posted by NickC8 16 Nov 2013 03:48
Thank you, remembered about cases when n<4 until your post. Got AC! Have you used predefined output for these (n<4) cases?

Edited by author 16.11.2013 03:51
Re: Some tests
No, well designed algo equally works for all possible cases