luogu [p1510] Jingwei

= V) flag = 1; 
	{

= v) flag = 1; if(flag) for (int i = 1; i <= MAXN; i ++) // ascending physical enum { IF (DP [I]> = V) // If this time has a volumetric compliance { int A = CI; the remaining physical // if (a <0) // if though the remaining physical strength are less than zero, used later be described more in order to meet physical volume. So do not look directly behind, and certainly does not comply. { COUT << "Impossible"; return 0; } the else {// At this time, if the strength is greater than zero, indicating that the smallest time with the volume, the maximum residual volume. Direct output. << A COUT; return 0; } } } } the else { COUT << "Impossible"; return 0; } }

  

Guess you like

Origin www.cnblogs.com/lovezxy520/p/11300279.html