Security Function Inverses

  • + 0 comments
    because i like php XD
    $_fp = fopen("php://stdin", "r");
    $n = fgets($_fp);
    $nums = fgets($_fp);
    
    $flipped = array_flip(explode(' ', $nums));
    $k1 =  array_map(function ($n) { return $n + 1; }, $flipped);
    ksort($k1);
    echo implode("\n", $k1);