diff options
| author | nsfisis <nsfisis@gmail.com> | 2023-09-24 23:02:44 +0900 |
|---|---|---|
| committer | nsfisis <nsfisis@gmail.com> | 2023-09-24 23:02:44 +0900 |
| commit | b3621c32205bbf785967742f64624a74290ecd35 (patch) | |
| tree | c8eeb57294ffd9ae44bd85b3465391ecdccd53e9 /vhosts/blog/content/posts | |
| parent | 8f90ba81d96cba6b7677f0d8c3d587463472ed82 (diff) | |
| download | nsfisis.dev-b3621c32205bbf785967742f64624a74290ecd35.tar.gz nsfisis.dev-b3621c32205bbf785967742f64624a74290ecd35.tar.zst nsfisis.dev-b3621c32205bbf785967742f64624a74290ecd35.zip | |
fix(blog/content): fix indentation
Diffstat (limited to 'vhosts/blog/content/posts')
| -rw-r--r-- | vhosts/blog/content/posts/2022-04-09/phperkaigi-2022-tokens.ndoc | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/vhosts/blog/content/posts/2022-04-09/phperkaigi-2022-tokens.ndoc b/vhosts/blog/content/posts/2022-04-09/phperkaigi-2022-tokens.ndoc index c13b0c55..0c3f45b1 100644 --- a/vhosts/blog/content/posts/2022-04-09/phperkaigi-2022-tokens.ndoc +++ b/vhosts/blog/content/posts/2022-04-09/phperkaigi-2022-tokens.ndoc @@ -279,36 +279,36 @@ remark = "2問目、3問目の解説を追加、1問目に加筆" <?php /********************************************************* - * This program displays a PHPer token. * - * Guess 'N'. * - * * - * Hints: * - * - N itself has no special meaning, e.g., 42, 8128, * - * it is selected at random. * - * - Each element of $token represents a single letter. * - * - One letter consists of 5x5 cells. * - * - Remember, the output is a complete PHPer token. * - * * - * License: * - * https://creativecommons.org/publicdomain/zero/1.0/ * - *********************************************************/ + * This program displays a PHPer token. * + * Guess 'N'. * + * * + * Hints: * + * - N itself has no special meaning, e.g., 42, 8128, * + * it is selected at random. * + * - Each element of $token represents a single letter. * + * - One letter consists of 5x5 cells. * + * - Remember, the output is a complete PHPer token. * + * * + * License: * + * https://creativecommons.org/publicdomain/zero/1.0/ * + *********************************************************/ const N = 0 /* Change it to your answer. */; assert(0 <= N && N <= 0b11111_11111_11111_11111_11111); $token = [ - 0x14B499C, - 0x0BE34CC, 0x01C9C69, - 0x0ECA069, 0x01C2449, 0x0FDB166, 0x01C9C69, - 0x01C1C66, 0x0FC1C47, 0x01C1C66, - 0x10C5858, 0x1E4E3B8, 0x1A2F2F8, + 0x14B499C, + 0x0BE34CC, 0x01C9C69, + 0x0ECA069, 0x01C2449, 0x0FDB166, 0x01C9C69, + 0x01C1C66, 0x0FC1C47, 0x01C1C66, + 0x10C5858, 0x1E4E3B8, 0x1A2F2F8, ]; foreach ($token as $x) { - $x = $x ^ N; + $x = $x ^ N; - $x = sprintf('%025b', $x); - $x = str_replace(search: ['0', '1'], replace: [' ', '#'], subject: $x); - $x = implode("\n", str_split($x, length: 5)); - echo "{$x}\n\n"; + $x = sprintf('%025b', $x); + $x = str_replace(search: ['0', '1'], replace: [' ', '#'], subject: $x); + $x = implode("\n", str_split($x, length: 5)); + echo "{$x}\n\n"; } ]]> </codeblock> |
