Объём памяти любого запамянающего устройства компьютера можно выразить как а битах, так и мегабайтах. Однако маркитологи пришли к выводу, что выражение объема оперативной памяти в <u>гигабайтах</u> выгоднее с финансовой точки зрения.
<?<span> $file = file_get_contents("text.txt");</span><span> $arr = array(</span><span> "а" => "я",</span><span> "е" => "ю",</span><span> "ё" => "э",</span><span> "и" => "ы",</span><span> "о" => "у",</span><span> "я" => "а",</span><span> "ю" => "е",</span><span> "э" => "ё",</span><span> "ы" => "и",</span><span> "у" => "о",</span><span> "б" => "г",</span><span> "г" => "д",</span><span> "д" => "ж",</span><span> "ж" => "з",</span><span> "з" => "й",</span><span> "й" => "к",</span><span> "к" => "л",</span><span> "л" => "м",</span><span> "м" => "н",</span><span> "н" => "п",</span><span> "п" => "р",</span><span> "р" => "с",</span><span> "с" => "т",</span><span> "т" => "ф",</span><span> "ф" => "х",</span><span> "х" => "ц",</span><span> "ц" => "ч",</span><span> "ч" => "ш",</span><span> "ш" => "щ",</span><span> "щ" => "ъ",</span><span> "ъ" => "ь",</span><span> "ь" => "б",</span><span> "А" => "Я",</span><span> "Е" => "Ю",</span><span> "Ё" => "Э",</span><span> "И" => "Ы",</span><span> "О" => "У",</span><span> "Я" => "А",</span><span> "Ю" => "Е",</span><span> "Э" => "Ё",</span><span> "Ы" => "И",</span><span> "У" => "О",</span><span> "Б" => "Г",</span><span> "Г" => "Д",</span><span> "Д" => "Ж",</span><span> "Ж" => "З",</span><span> "З" => "Й",</span><span> "Й" => "К",</span><span> "К" => "Л",</span><span> "Л" => "М",</span><span> "М" => "Н",</span><span> "Н" => "П",</span><span> "П" => "Р",</span><span> "Р" => "С",</span><span> "С" => "Т",</span><span> "Т" => "Ф",</span><span> "Ф" => "Х",</span><span> "Х" => "Ц",</span><span> "Ц" => "Ч",</span><span> "Ч" => "Ш",</span><span> "Ш" => "Щ",</span><span> "Щ" => "Ъ",</span><span> "Ъ" => "Ь",</span><span> "Ь" => "Б"</span><span> );</span><span> print(strtr($file, $arr));</span><span>?>
Это простая замена, PHP, я когда-то наспех делал, пригодится может:)</span>
Увеличение в 4 раза, арифметическая прогрессия a1=5 d=4
сумма арифметической прогрессии аn=a1+d(n-1)*2/n=324
в результате имеем квадратное уравнение 2*n*n+3*n-324=0
решаем квадратное уравнение - вот только отсюда начинается программирование.
<span>начало -> [ d = 3*3-4*2*(-324) ]-> < d > 0? > -> [ n = (-3 + sqrt(d))/(2*2) ] -> / вывод n / ->
вот и всё, обращайся</span>