Ticket 4860
Problem 1649 -e
Submission 153493916
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
58 92
1 2 1 1 1 2 1 2 2 1 2 2 1 1 1 2 1 2 1 1 1 1 2 2 2 2 2 1 1 2 1 2 1 2 1 1 2 2 1 2 1 2 2 1 1 2 2 2 2 2 2 2 2 1 1 1 1 1 
2 1 2 1 1 1 2 1 2 1 1 1 1 1 2 2 1 1 2 2 1 1 2 1 2 2 1 2 1 2 2 2 1 1 2 2 1 2 1 2 1 1 2 1 2 1 1 2 1 1 1 1 2 1 1 1 2 2 2 2 1 2 1 1 2 1 1 1 2 1 1 1 1 2 1 1 2 2 1 2 2 2 1 2 1 2 1 1 2 1 2 1 
Expected Output
584153418
Your Output
716538305
Difference
Generator Parameters
--m_high 100 --m_low 1 --n_high 100 --n_low 1 --val_high 2 --val_low 1