Ticket 16720
Problem 1786 -d
Submission 192347553
View hacks & all small testcases

Unable to dry run this testcase?
Try making a new request with small values of n_high, t_high, *_high, etc.


Retry
Input
1
9
iwi
wiw
iin
wwn
nww
inw
wni
nnn
ini
Expected Output
4
5 w 3 i
4 w 9 i
2 w 8 n
1 i 8 n
Your Output
5
3 i 2 w
8 n 4 w
9 i 5 w
4 n 1 i
8 n 2 i
Difference
Generator Parameters
--m_high 9 --m_low 2 --t_high 1 --t_low 1