<?php
header('Content-type: text/plain; charset=utf-8'); $digits=array(11,10,18,7,14,17,12,11); for ($i = 0; $i < $size-1; $i++) {
for ($j = $i; $j < $size-1; $j++) {
$new_digits[] = $digits[$j];
if ($new_digits_sum*2 == $sum) {
echo $str." = ";
$another_new_digits = array(); for ($q = 0; $q < $i; $q++) {
$another_new_digits[] = $digits[$q];
}
for ($q = $j + 1; $q < $size; $q++)
{
$another_new_digits[] = $digits[$q];
}
$str = implode("+", $another_new_digits); echo $str."\n";
}
if ($new_digits_sum == 100) {
echo $str." = 100\n";
}
}
}
if ($sum == 100) {
echo $str." = 100\n";
}
?>
PD9waHAKICAgIGhlYWRlcignQ29udGVudC10eXBlOiB0ZXh0L3BsYWluOyBjaGFyc2V0PXV0Zi04Jyk7CiAgICAkZGlnaXRzPWFycmF5KDExLDEwLDE4LDcsMTQsMTcsMTIsMTEpOwogICAgJHNpemUgPSBjb3VudCgkZGlnaXRzKTsKICAgICRzdW0gPSBhcnJheV9zdW0oJGRpZ2l0cyk7CiAgICBmb3IgKCRpID0gMDsgJGkgPCAkc2l6ZS0xOyAkaSsrKSB7CiAgICAgICAgJG5ld19kaWdpdHMgPSBhcnJheSgpOwogICAgICAgIGZvciAoJGogPSAkaTsgJGogPCAkc2l6ZS0xOyAkaisrKSB7CiAgICAgICAgICAgICRuZXdfZGlnaXRzW10gPSAkZGlnaXRzWyRqXTsKICAgICAgICAgICAgJG5ld19kaWdpdHNfc3VtID0gYXJyYXlfc3VtKCRuZXdfZGlnaXRzKTsKICAgICAgICAgICAgaWYgKCRuZXdfZGlnaXRzX3N1bSoyID09ICRzdW0pIHsKICAgICAgICAgICAgICAgICRzdHIgPSBpbXBsb2RlKCIrIiwgJG5ld19kaWdpdHMpOwogICAgICAgICAgICAgICAgZWNobyAkc3RyLiIgPSAiOwogICAgICAgICAgICAgICAgJGFub3RoZXJfbmV3X2RpZ2l0cyA9IGFycmF5KCk7CiAgICAgICAgICAgICAgICBmb3IgKCRxID0gMDsgJHEgPCAkaTsgJHErKykgewogICAgICAgICAgICAgICAgICAgICRhbm90aGVyX25ld19kaWdpdHNbXSA9ICRkaWdpdHNbJHFdOwogICAgICAgICAgICAgICAgfQogICAgICAgICAgICAgICAgZm9yICgkcSA9ICRqICsgMTsgJHEgPCAkc2l6ZTsgJHErKykKICAgICAgICAgICAgICAgIHsKICAgICAgICAgICAgICAgICAgICAkYW5vdGhlcl9uZXdfZGlnaXRzW10gPSAkZGlnaXRzWyRxXTsKICAgICAgICAgICAgICAgIH0KICAgICAgICAgICAgICAgICRzdHIgPSBpbXBsb2RlKCIrIiwgJGFub3RoZXJfbmV3X2RpZ2l0cyk7CiAgICAgICAgICAgICAgICBlY2hvICRzdHIuIlxuIjsKICAgICAgICAgICAgfQogICAgICAgICAgICBpZiAoJG5ld19kaWdpdHNfc3VtID09IDEwMCkgewogICAgICAgICAgICAgICAgJHN0ciA9IGltcGxvZGUoIisiLCAkbmV3X2RpZ2l0cyk7CiAgICAgICAgICAgICAgICBlY2hvICRzdHIuIiA9IDEwMFxuIjsKICAgICAgICAgICAgfQogICAgICAgIH0KICAgIH0KICAgIGlmICgkc3VtID09IDEwMCkgewogICAgJHN0ciA9IGltcGxvZGUoIisiLCAkZGlnaXRzKTsKICAgIGVjaG8gJHN0ci4iID0gMTAwXG4iOwogICAgfQo/Pg==