Ticket 16722
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
5
nii
wiw
nni
wnw
niw
Expected Output
2
4 w 1 i
2 w 3 n
Your Output
3
1 i 2 w
3 n 4 w
4 n 2 i
Difference
Generator Parameters
--m_high 5 --m_low 2 --t_high 1 --t_low 1