コード例 #1
0
ファイル: part2.php プロジェクト: navarr/advent-of-code
<?php

require_once 'inc/generate_next_password.func.php';
$input = trim(file_get_contents('input.txt'));
$next = generate_next_password($input);
// Santa's password expired again.  What's the next one?
$next = generate_next_password($next);
echo $next, PHP_EOL;
コード例 #2
0
ファイル: part1.php プロジェクト: navarr/advent-of-code
<?php

require_once 'inc/generate_next_password.func.php';
$input = trim(file_get_contents('input.txt'));
$next = generate_next_password($input);
echo $next, PHP_EOL;