read(n);
s = str(n);
n1 := int(s[1]);
n2 := int(s[2]);
n3 := int(s[3]);
if (n1+n2+n3) mod 2 = 0 then writeln("Сумма чисел четная")
Вообще-то 7 байт, символы это не часть алфавита
Php script
<?phpif (isset($_GET['a'])) $string_a=htmlentities($_GET['a']);if (isset($_GET['b'])) $string_b=htmlentities($_GET['b']); $isEmpty=false;if ((empty($string_a))&&(empty($string_b))) $isEmpty=true; if ($isEmpty==false){ $a = (int)$string_a; $b = (int)$string_b; $c = $a+$b;}else{ $a = 1; $b = 1;}?><!DOCTYPE html><html lang="ru"> <head> <meta charset="UTF-8" /> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Программа сложения двух чисел</title> </head> <body> <form action="index.php"> <input name="a" type="text" value=<span>"<?php echo $a;?>"</span>><br> <input name="b" type="text" value=<span>"<?php echo $b;?>"</span>><br> <input type="submit" value="Сложить два числа"><br> </form><?phpif ($isEmpty==false){ echo $a." + ".$b." = ".$c;}?> </body></html<span>></span>
1. Посчитаем количество символов в книге (528страниц по 45строк по 60 символов):
# # Код на ruby 2.2.3p173
count = 0
for i in 0..9
for j in 0..9
for k in 0..9
num = i*10**5+j*10**4+k*10**3+k*10**2+j*10**1+i*10**0
count+=1 if num.between?(189980,205505)
end
end
end
p count
ответ 17