You are viewing a single comment's thread. Return to all comments →
php solution with function for reuse...
<?php declare(strict_types = 1); $_fp = fopen("php://stdin", "r"); echo f(fgets($_fp), (int)fgets($_fp)); function f(string $x, int $e): string { for($i=strlen($x)-1; $i--;) $x[$i] = ($x[$i] + $e) % 10; return $x; } ?>
Seems like cookies are disabled on this browser, please enable them to open this website
Security Key Spaces
You are viewing a single comment's thread. Return to all comments →
php solution with function for reuse...