Ticket 3445
Problem 1657 -d
Submission 152654287
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
5 100
85 5 5
60 2 4
51 4 4
51 1 6
27 3 5
7
7 6
4 8
7 9
8 6
2 4
5 6
3 7
Expected Output
81 81 -1 -1 27 81 54
Your Output
81 81 -1 -1 27 -1 85 
Difference
Generator Parameters
--C_cap 1000000 --C_high 100 --C_low 100 --m_cap 300000 --m_high 9 --m_low 1 --monster_d_cap 1000000 --monster_d_high 9 --monster_d_low 1 --monster_h_cap 1000000000000 --monster_h_high 9 --monster_h_low 1 --n_cap 300000 --n_high 9 --n_low 1 --unit_d_cap 1000000 --unit_d_high 9 --unit_d_low 1 --unit_h_cap 1000000 --unit_h_high 9 --unit_h_low 1