Ticket 11550
Problem 1657 -d
Submission 159961579
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
8 100
2 8 6
17 5 2
34 3 3
65 5 3
7 7 6
51 7 2
60 5 7
24 8 4
2
1 2
8 6
Expected Output
2 4
Your Output
2 -1 
Difference
Generator Parameters
--C_high 100 --C_low 100 --m_high 9 --m_low 1 --monster_d_high 9 --monster_d_low 1 --monster_h_high 9 --monster_h_low 1 --n_high 9 --n_low 1 --unit_d_high 9 --unit_d_low 1 --unit_h_high 9 --unit_h_low 1