diff options
611 files changed, 89488 insertions, 0 deletions
diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..71af321 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,19 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +insert_final_newline = true +indent_style = space + +[{Makefile,Makefile.prod}] +indent_style = tab + +[*.yaml] +indent_size = 4 + +[*.js] +indent_size = 2 + +[{package,package-lock}.json] +indent_size = 2 @@ -0,0 +1,7 @@ +Copyright 2024 nsfisis + +Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..5d6fd50 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +DOCKER_COMPOSE := docker compose + +.PHONY: up +up: + ${DOCKER_COMPOSE} up -d + +.PHONY: down +down: + ${DOCKER_COMPOSE} down + +.PHONY: build +build: + ${DOCKER_COMPOSE} build + +.PHONY: logs +logs: + ${DOCKER_COMPOSE} logs + +.PHONY: build-assets +build-assets: + cp -f assets/favicon.svg archive/assets/ + # docker run --rm -v "$$(pwd)"/esbuild.mjs:/app/esbuild.mjs -v "$$(pwd)"/assets:/app/assets -v "$$(pwd)"/archive/assets:/app/archive/assets --env-file "$$(pwd)"/.env.local albatross-build-assets npm run build diff --git a/Makefile.prod b/Makefile.prod new file mode 100644 index 0000000..836244f --- /dev/null +++ b/Makefile.prod @@ -0,0 +1,17 @@ +DOCKER_COMPOSE := docker compose + +.PHONY: build +build: + ${DOCKER_COMPOSE} build + +.PHONY: serve +serve: + ${DOCKER_COMPOSE} up -d + +.PHONY: clean +clean: + ${DOCKER_COMPOSE} down + +.PHONY: logs +logs: + ${DOCKER_COMPOSE} logs diff --git a/README.md b/README.md new file mode 100644 index 0000000..bd417bc --- /dev/null +++ b/README.md @@ -0,0 +1,12 @@ +# Albatross.PHP 2024 + +https://github.com/nsfisis/phperkaigi-2024-albatross のアーカイブ。 + +元々は PHPerKaigi 2024 向けに作られた PHP 等によるコードゴルフサイトでしたが、カンファレンス終了に伴って運用を停止したため静的サイトとしてアーカイブしました。 + +サイト: https://t.nil.ninja/phperkaigi/2024/golf/ + + +## ライセンス + +このリポジトリ中のファイルには、[assets/favicon.svg](./assets/favicon.svg) を除いて、The MIT License が適用されます。ライセンス表記については [LICENSE](./LICENSE) をご覧ください。 diff --git a/archive.sh b/archive.sh new file mode 100644 index 0000000..92f1388 --- /dev/null +++ b/archive.sh @@ -0,0 +1,23 @@ +wget \ + --mirror \ + --page-requisites \ + --convert-links \ + --adjust-extension \ + --no-parent \ + --wait=1 \ + -P ./archive/ \ + https://t.nil.ninja/phperkaigi/2024/golf/ + +mv ./archive/t.nil.ninja/phperkaigi/2024/golf/* ./archive +rmdir ./archive/t.nil.ninja/phperkaigi/2024/golf/ +rmdir ./archive/t.nil.ninja/phperkaigi/2024/ +rmdir ./archive/t.nil.ninja/phperkaigi/ +rmdir ./archive/t.nil.ninja/ + +mkdir -p ./archive/api/quizzes/{1,2,3} + +wget -O ./archive/api/quizzes/1/chart.json https://t.nil.ninja/phperkaigi/2024/golf/api/quizzes/1/chart +wget -O ./archive/api/quizzes/2/chart.json https://t.nil.ninja/phperkaigi/2024/golf/api/quizzes/2/chart +wget -O ./archive/api/quizzes/3/chart.json https://t.nil.ninja/phperkaigi/2024/golf/api/quizzes/3/chart + +sed -i -e 's#/chart`#/chart.json`#' ./archive/assets/chart.js diff --git a/archive/api/quizzes/1/chart.json b/archive/api/quizzes/1/chart.json new file mode 100644 index 0000000..9348d05 --- /dev/null +++ b/archive/api/quizzes/1/chart.json @@ -0,0 +1 @@ +{"stats":[{"user":{"name":"notchman","is_admin":false},"scores":[{"submitted_at":1709886058,"code_size":209},{"submitted_at":1709886443,"code_size":196},{"submitted_at":1709887043,"code_size":80},{"submitted_at":1709887088,"code_size":81},{"submitted_at":1709887196,"code_size":80},{"submitted_at":1709887871,"code_size":87},{"submitted_at":1709952031,"code_size":72},{"submitted_at":1709952066,"code_size":71},{"submitted_at":1709952098,"code_size":72},{"submitted_at":1709952257,"code_size":71},{"submitted_at":1709952444,"code_size":66},{"submitted_at":1709952464,"code_size":65},{"submitted_at":1709952553,"code_size":65},{"submitted_at":1709953241,"code_size":66},{"submitted_at":1709957906,"code_size":66},{"submitted_at":1709958153,"code_size":65},{"submitted_at":1709958349,"code_size":65},{"submitted_at":1709960813,"code_size":75},{"submitted_at":1709962597,"code_size":66},{"submitted_at":1709963892,"code_size":65},{"submitted_at":1709963931,"code_size":63},{"submitted_at":1709964647,"code_size":60},{"submitted_at":1709966855,"code_size":60}]},{"user":{"name":"nsfisis","is_admin":true},"scores":[{"submitted_at":1709664938,"code_size":209},{"submitted_at":1709791360,"code_size":62}]},{"user":{"name":"basi","is_admin":false},"scores":[{"submitted_at":1709832518,"code_size":66},{"submitted_at":1709833687,"code_size":65},{"submitted_at":1709833789,"code_size":62}]},{"user":{"name":"masnmt","is_admin":false},"scores":[{"submitted_at":1709927458,"code_size":78},{"submitted_at":1709946362,"code_size":76},{"submitted_at":1709950272,"code_size":73},{"submitted_at":1709951440,"code_size":66},{"submitted_at":1709952275,"code_size":65},{"submitted_at":1709962258,"code_size":62}]},{"user":{"name":"tadsan","is_admin":true},"scores":[{"submitted_at":1709724119,"code_size":89},{"submitted_at":1709728465,"code_size":86},{"submitted_at":1709797581,"code_size":82},{"submitted_at":1709797761,"code_size":80},{"submitted_at":1709835712,"code_size":72},{"submitted_at":1709835995,"code_size":69},{"submitted_at":1709836153,"code_size":66},{"submitted_at":1709836349,"code_size":63}]},{"user":{"name":"keitamax","is_admin":false},"scores":[{"submitted_at":1709883735,"code_size":80},{"submitted_at":1709884251,"code_size":79},{"submitted_at":1709913305,"code_size":74},{"submitted_at":1709916158,"code_size":66},{"submitted_at":1709917516,"code_size":65},{"submitted_at":1709917723,"code_size":63},{"submitted_at":1709964964,"code_size":65},{"submitted_at":1709965083,"code_size":63}]},{"user":{"name":"hanhan1978","is_admin":false},"scores":[{"submitted_at":1709878237,"code_size":65}]},{"user":{"name":"hirahira","is_admin":false},"scores":[{"submitted_at":1709889948,"code_size":67},{"submitted_at":1709891945,"code_size":65}]},{"user":{"name":"yamamoto-hiroya","is_admin":false},"scores":[{"submitted_at":1709807381,"code_size":209},{"submitted_at":1709818519,"code_size":148},{"submitted_at":1709819892,"code_size":67},{"submitted_at":1709820007,"code_size":66}]},{"user":{"name":"shunsock","is_admin":false},"scores":[{"submitted_at":1709862724,"code_size":188},{"submitted_at":1709863094,"code_size":159},{"submitted_at":1709863323,"code_size":78},{"submitted_at":1709865628,"code_size":72},{"submitted_at":1709867189,"code_size":68},{"submitted_at":1709968375,"code_size":74},{"submitted_at":1709968485,"code_size":66}]},{"user":{"name":"yoshitaka-u1f44d-gz","is_admin":false},"scores":[{"submitted_at":1709894656,"code_size":86},{"submitted_at":1709894985,"code_size":85},{"submitted_at":1709895101,"code_size":79},{"submitted_at":1709895789,"code_size":73},{"submitted_at":1709954889,"code_size":66}]},{"user":{"name":"shogogg","is_admin":false},"scores":[{"submitted_at":1709963659,"code_size":70},{"submitted_at":1709963797,"code_size":68},{"submitted_at":1709963897,"code_size":66}]},{"user":{"name":"chatii","is_admin":false},"scores":[{"submitted_at":1709856727,"code_size":209},{"submitted_at":1709856802,"code_size":144},{"submitted_at":1709856900,"code_size":137},{"submitted_at":1709857620,"code_size":84},{"submitted_at":1709861146,"code_size":95},{"submitted_at":1709864252,"code_size":94},{"submitted_at":1709864857,"code_size":97},{"submitted_at":1709865073,"code_size":94},{"submitted_at":1709865809,"code_size":81},{"submitted_at":1709942242,"code_size":74},{"submitted_at":1709942425,"code_size":69},{"submitted_at":1709943017,"code_size":68}]},{"user":{"name":"oogFranz","is_admin":false},"scores":[{"submitted_at":1709863222,"code_size":68}]},{"user":{"name":"m3m0r7","is_admin":false},"scores":[{"submitted_at":1709864397,"code_size":72},{"submitted_at":1709888190,"code_size":69}]},{"user":{"name":"takaram","is_admin":false},"scores":[{"submitted_at":1709823708,"code_size":81},{"submitted_at":1709823964,"code_size":74},{"submitted_at":1709824134,"code_size":72}]},{"user":{"name":"akinoriakatsuka","is_admin":false},"scores":[{"submitted_at":1709911821,"code_size":209},{"submitted_at":1709912181,"code_size":145},{"submitted_at":1709912393,"code_size":144},{"submitted_at":1709914324,"code_size":113},{"submitted_at":1709914708,"code_size":81},{"submitted_at":1709916523,"code_size":74},{"submitted_at":1709916962,"code_size":72}]},{"user":{"name":"uzulla","is_admin":false},"scores":[{"submitted_at":1709960195,"code_size":73},{"submitted_at":1709960760,"code_size":73},{"submitted_at":1709962385,"code_size":77}]},{"user":{"name":"ticknical","is_admin":false},"scores":[{"submitted_at":1709858162,"code_size":103},{"submitted_at":1709858242,"code_size":75}]},{"user":{"name":"tsuchikazu","is_admin":false},"scores":[{"submitted_at":1709889022,"code_size":75}]},{"user":{"name":"tsbkw","is_admin":false},"scores":[{"submitted_at":1709948855,"code_size":155},{"submitted_at":1709949090,"code_size":150},{"submitted_at":1709949233,"code_size":76}]},{"user":{"name":"hibiki-cube","is_admin":false},"scores":[{"submitted_at":1709829637,"code_size":81},{"submitted_at":1709829660,"code_size":78},{"submitted_at":1709904956,"code_size":77}]},{"user":{"name":"ishikawam","is_admin":false},"scores":[{"submitted_at":1709940886,"code_size":209},{"submitted_at":1709941641,"code_size":137},{"submitted_at":1709942145,"code_size":102},{"submitted_at":1709943001,"code_size":96},{"submitted_at":1709943285,"code_size":83},{"submitted_at":1709950510,"code_size":77}]},{"user":{"name":"happylifetaka","is_admin":false},"scores":[{"submitted_at":1709885953,"code_size":79}]},{"user":{"name":"arinc0","is_admin":false},"scores":[{"submitted_at":1709889912,"code_size":94},{"submitted_at":1709890171,"code_size":85},{"submitted_at":1709890251,"code_size":82},{"submitted_at":1709891635,"code_size":81}]},{"user":{"name":"pyama86","is_admin":false},"scores":[{"submitted_at":1709963673,"code_size":97},{"submitted_at":1709964053,"code_size":97},{"submitted_at":1709964188,"code_size":94},{"submitted_at":1709964357,"code_size":84}]},{"user":{"name":"kunikiya","is_admin":false},"scores":[{"submitted_at":1709828461,"code_size":161},{"submitted_at":1709828681,"code_size":154},{"submitted_at":1709828839,"code_size":112},{"submitted_at":1709828955,"code_size":114},{"submitted_at":1709829084,"code_size":110},{"submitted_at":1709829545,"code_size":140},{"submitted_at":1709829679,"code_size":124},{"submitted_at":1709829814,"code_size":118},{"submitted_at":1709830187,"code_size":147},{"submitted_at":1709830354,"code_size":105},{"submitted_at":1709830458,"code_size":100},{"submitted_at":1709830543,"code_size":99},{"submitted_at":1709831050,"code_size":97},{"submitted_at":1709831606,"code_size":97},{"submitted_at":1709831866,"code_size":97},{"submitted_at":1709831920,"code_size":95},{"submitted_at":1709969179,"code_size":120},{"submitted_at":1709969364,"code_size":116},{"submitted_at":1709970131,"code_size":87}]},{"user":{"name":"moeyashi","is_admin":false},"scores":[{"submitted_at":1709801268,"code_size":121},{"submitted_at":1709802142,"code_size":91}]},{"user":{"name":"matsuoatsushi","is_admin":false},"scores":[{"submitted_at":1709872148,"code_size":139},{"submitted_at":1709874144,"code_size":91}]},{"user":{"name":"rinchoku","is_admin":false},"scores":[{"submitted_at":1709819571,"code_size":142},{"submitted_at":1709819665,"code_size":102},{"submitted_at":1709819773,"code_size":96},{"submitted_at":1709820099,"code_size":93}]},{"user":{"name":"don","is_admin":false},"scores":[{"submitted_at":1709961130,"code_size":109},{"submitted_at":1709961598,"code_size":102},{"submitted_at":1709962623,"code_size":96},{"submitted_at":1709962723,"code_size":93}]},{"user":{"name":"okashoi","is_admin":false},"scores":[{"submitted_at":1709877515,"code_size":95},{"submitted_at":1709889095,"code_size":95}]},{"user":{"name":"xpadev","is_admin":false},"scores":[{"submitted_at":1709899473,"code_size":96}]},{"user":{"name":"o2zdip","is_admin":false},"scores":[{"submitted_at":1709889865,"code_size":107}]},{"user":{"name":"azuki-penguin","is_admin":false},"scores":[{"submitted_at":1709917771,"code_size":116},{"submitted_at":1709917916,"code_size":110}]},{"user":{"name":"gennei","is_admin":false},"scores":[{"submitted_at":1709817512,"code_size":529},{"submitted_at":1709817650,"code_size":207},{"submitted_at":1709817700,"code_size":204},{"submitted_at":1709817975,"code_size":150},{"submitted_at":1709818321,"code_size":145},{"submitted_at":1709818439,"code_size":118},{"submitted_at":1709818498,"code_size":113}]},{"user":{"name":"hirosuke-pi","is_admin":false},"scores":[{"submitted_at":1709872660,"code_size":209},{"submitted_at":1709874835,"code_size":115}]},{"user":{"name":"Natsuki","is_admin":false},"scores":[{"submitted_at":1709797168,"code_size":143}]},{"user":{"name":"you110","is_admin":false},"scores":[{"submitted_at":1709884714,"code_size":163}]},{"user":{"name":"blue-goheimochi","is_admin":true},"scores":[{"submitted_at":1709680527,"code_size":209},{"submitted_at":1709680971,"code_size":2106}]},{"user":{"name":"muno92","is_admin":true},"scores":[{"submitted_at":1709682131,"code_size":209}]},{"user":{"name":"hamaco","is_admin":false},"scores":[{"submitted_at":1709915539,"code_size":209}]},{"user":{"name":"yukinissie","is_admin":false},"scores":[{"submitted_at":1709961676,"code_size":209}]},{"user":{"name":"Nagase","is_admin":false},"scores":[{"submitted_at":1709965768,"code_size":209}]}]}
\ No newline at end of file diff --git a/archive/api/quizzes/2/chart.json b/archive/api/quizzes/2/chart.json new file mode 100644 index 0000000..bb55db9 --- /dev/null +++ b/archive/api/quizzes/2/chart.json @@ -0,0 +1 @@ +{"stats":[{"user":{"name":"takaram","is_admin":false},"scores":[{"submitted_at":1709868855,"code_size":229},{"submitted_at":1709869228,"code_size":225}]},{"user":{"name":"nsfisis","is_admin":true},"scores":[{"submitted_at":1709665024,"code_size":677},{"submitted_at":1709795311,"code_size":237},{"submitted_at":1709843141,"code_size":235},{"submitted_at":1709844358,"code_size":236}]},{"user":{"name":"basi","is_admin":false},"scores":[{"submitted_at":1709914830,"code_size":514},{"submitted_at":1709914900,"code_size":510},{"submitted_at":1709915466,"code_size":405},{"submitted_at":1709915843,"code_size":349},{"submitted_at":1709916664,"code_size":345},{"submitted_at":1709916781,"code_size":331},{"submitted_at":1709917481,"code_size":325},{"submitted_at":1709917783,"code_size":322},{"submitted_at":1709918267,"code_size":318},{"submitted_at":1709918682,"code_size":303},{"submitted_at":1709919062,"code_size":283},{"submitted_at":1709919665,"code_size":314},{"submitted_at":1709921225,"code_size":257},{"submitted_at":1709924565,"code_size":269},{"submitted_at":1709924781,"code_size":253},{"submitted_at":1709925175,"code_size":352},{"submitted_at":1709925219,"code_size":344},{"submitted_at":1709926060,"code_size":250},{"submitted_at":1709927351,"code_size":352}]},{"user":{"name":"m3m0r7","is_admin":false},"scores":[{"submitted_at":1709870350,"code_size":491},{"submitted_at":1709870419,"code_size":462},{"submitted_at":1709870642,"code_size":396},{"submitted_at":1709871322,"code_size":326},{"submitted_at":1709871559,"code_size":301},{"submitted_at":1709872038,"code_size":310},{"submitted_at":1709872118,"code_size":290},{"submitted_at":1709872662,"code_size":286},{"submitted_at":1709875044,"code_size":268},{"submitted_at":1709877425,"code_size":262}]},{"user":{"name":"hanhan1978","is_admin":false},"scores":[{"submitted_at":1709878408,"code_size":677},{"submitted_at":1709878755,"code_size":620},{"submitted_at":1709878964,"code_size":490},{"submitted_at":1709880868,"code_size":421},{"submitted_at":1709914613,"code_size":378},{"submitted_at":1709914918,"code_size":370},{"submitted_at":1709915052,"code_size":349},{"submitted_at":1709915186,"code_size":340},{"submitted_at":1709915477,"code_size":329},{"submitted_at":1709965014,"code_size":320},{"submitted_at":1709965173,"code_size":275}]},{"user":{"name":"tadsan","is_admin":true},"scores":[{"submitted_at":1709725581,"code_size":365},{"submitted_at":1709728262,"code_size":329},{"submitted_at":1709728782,"code_size":317},{"submitted_at":1709728936,"code_size":315},{"submitted_at":1709729069,"code_size":293},{"submitted_at":1709797948,"code_size":288},{"submitted_at":1709841492,"code_size":286},{"submitted_at":1709925845,"code_size":276}]},{"user":{"name":"notchman","is_admin":false},"scores":[{"submitted_at":1709967137,"code_size":394},{"submitted_at":1709967220,"code_size":322}]},{"user":{"name":"yamamoto-hiroya","is_admin":false},"scores":[{"submitted_at":1709820402,"code_size":677},{"submitted_at":1709821652,"code_size":530},{"submitted_at":1709821986,"code_size":500},{"submitted_at":1709822101,"code_size":497},{"submitted_at":1709822163,"code_size":483},{"submitted_at":1709822279,"code_size":455},{"submitted_at":1709823725,"code_size":417},{"submitted_at":1709823938,"code_size":411},{"submitted_at":1709824366,"code_size":400},{"submitted_at":1709824447,"code_size":398},{"submitted_at":1709824504,"code_size":396},{"submitted_at":1709824594,"code_size":370},{"submitted_at":1709824625,"code_size":366},{"submitted_at":1709824737,"code_size":333}]},{"user":{"name":"azuki-penguin","is_admin":false},"scores":[{"submitted_at":1709922115,"code_size":355}]},{"user":{"name":"kunikiya","is_admin":false},"scores":[{"submitted_at":1709832112,"code_size":677},{"submitted_at":1709832760,"code_size":488},{"submitted_at":1709832889,"code_size":399}]},{"user":{"name":"rinchoku","is_admin":false},"scores":[{"submitted_at":1709821823,"code_size":511},{"submitted_at":1709822071,"code_size":491},{"submitted_at":1709823256,"code_size":494},{"submitted_at":1709823358,"code_size":491},{"submitted_at":1709823421,"code_size":479},{"submitted_at":1709823564,"code_size":447}]},{"user":{"name":"tsbkw","is_admin":false},"scores":[{"submitted_at":1709952074,"code_size":461}]},{"user":{"name":"blue-goheimochi","is_admin":true},"scores":[{"submitted_at":1709681072,"code_size":677}]},{"user":{"name":"muno92","is_admin":true},"scores":[{"submitted_at":1709682150,"code_size":677}]},{"user":{"name":"masnmt","is_admin":false},"scores":[{"submitted_at":1709927532,"code_size":677}]},{"user":{"name":"k-kuwata","is_admin":false},"scores":[{"submitted_at":1709941005,"code_size":677}]},{"user":{"name":"ticknical","is_admin":false},"scores":[{"submitted_at":1709962696,"code_size":677}]}]}
\ No newline at end of file diff --git a/archive/api/quizzes/3/chart.json b/archive/api/quizzes/3/chart.json new file mode 100644 index 0000000..01ad224 --- /dev/null +++ b/archive/api/quizzes/3/chart.json @@ -0,0 +1 @@ +{"stats":[{"user":{"name":"takaram","is_admin":false},"scores":[{"submitted_at":1709889547,"code_size":301},{"submitted_at":1709899444,"code_size":300},{"submitted_at":1709899555,"code_size":281},{"submitted_at":1709911850,"code_size":404},{"submitted_at":1709954210,"code_size":274},{"submitted_at":1709956030,"code_size":272},{"submitted_at":1709962417,"code_size":263}]},{"user":{"name":"m3m0r7","is_admin":false},"scores":[{"submitted_at":1709880221,"code_size":665},{"submitted_at":1709880260,"code_size":360},{"submitted_at":1709880527,"code_size":357},{"submitted_at":1709882276,"code_size":350},{"submitted_at":1709882671,"code_size":341},{"submitted_at":1709882744,"code_size":341},{"submitted_at":1709888018,"code_size":338},{"submitted_at":1709947876,"code_size":311},{"submitted_at":1709947980,"code_size":302},{"submitted_at":1709948218,"code_size":300},{"submitted_at":1709948471,"code_size":296},{"submitted_at":1709948829,"code_size":292},{"submitted_at":1709949265,"code_size":278},{"submitted_at":1709949721,"code_size":277},{"submitted_at":1709949887,"code_size":276},{"submitted_at":1709963373,"code_size":275},{"submitted_at":1709963406,"code_size":273}]},{"user":{"name":"nsfisis","is_admin":true},"scores":[{"submitted_at":1709665069,"code_size":1043},{"submitted_at":1709794964,"code_size":341}]},{"user":{"name":"tadsan","is_admin":true},"scores":[{"submitted_at":1709727044,"code_size":405},{"submitted_at":1709839646,"code_size":385},{"submitted_at":1709840720,"code_size":385},{"submitted_at":1709843219,"code_size":383},{"submitted_at":1709843306,"code_size":373},{"submitted_at":1709843492,"code_size":363},{"submitted_at":1709843634,"code_size":362},{"submitted_at":1709844010,"code_size":352},{"submitted_at":1709844106,"code_size":344},{"submitted_at":1709844186,"code_size":343},{"submitted_at":1709926681,"code_size":343}]},{"user":{"name":"hanhan1978","is_admin":false},"scores":[{"submitted_at":1709881540,"code_size":888},{"submitted_at":1709882207,"code_size":926},{"submitted_at":1709882277,"code_size":791},{"submitted_at":1709882576,"code_size":785},{"submitted_at":1709883286,"code_size":504},{"submitted_at":1709883445,"code_size":457},{"submitted_at":1709916066,"code_size":447},{"submitted_at":1709965331,"code_size":397},{"submitted_at":1709966026,"code_size":392}]},{"user":{"name":"yamamoto-hiroya","is_admin":false},"scores":[{"submitted_at":1709825308,"code_size":1043},{"submitted_at":1709828292,"code_size":499},{"submitted_at":1709829832,"code_size":712},{"submitted_at":1709830609,"code_size":603},{"submitted_at":1709830812,"code_size":585},{"submitted_at":1709830922,"code_size":545},{"submitted_at":1709831150,"code_size":415}]},{"user":{"name":"rinchoku","is_admin":false},"scores":[{"submitted_at":1709851120,"code_size":558},{"submitted_at":1709851382,"code_size":544},{"submitted_at":1709851738,"code_size":555},{"submitted_at":1709852127,"code_size":481}]},{"user":{"name":"kunikiya","is_admin":false},"scores":[{"submitted_at":1709833090,"code_size":1043},{"submitted_at":1709833204,"code_size":696},{"submitted_at":1709833412,"code_size":569},{"submitted_at":1709833480,"code_size":509},{"submitted_at":1709833537,"code_size":499},{"submitted_at":1709833695,"code_size":495}]},{"user":{"name":"blue-goheimochi","is_admin":true},"scores":[{"submitted_at":1709681188,"code_size":1043}]},{"user":{"name":"muno92","is_admin":true},"scores":[{"submitted_at":1709682172,"code_size":1043}]},{"user":{"name":"okashoi","is_admin":false},"scores":[{"submitted_at":1709883923,"code_size":1043}]},{"user":{"name":"masnmt","is_admin":false},"scores":[{"submitted_at":1709927572,"code_size":1043}]}]}
\ No newline at end of file diff --git a/archive/assets/chart.js b/archive/assets/chart.js new file mode 100644 index 0000000..b756ba4 --- /dev/null +++ b/archive/assets/chart.js @@ -0,0 +1,38 @@ +(()=>{function Pe(n){return n+.5|0}var Ot=(n,t,e)=>Math.max(Math.min(n,e),t);function De(n){return Ot(Pe(n*2.55),0,255)}function St(n){return Ot(Pe(n*255),0,255)}function bt(n){return Ot(Pe(n/2.55)/100,0,1)}function Ls(n){return Ot(Pe(n*100),0,100)}var st={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,A:10,B:11,C:12,D:13,E:14,F:15,a:10,b:11,c:12,d:13,e:14,f:15},Ni=[..."0123456789ABCDEF"],Ua=n=>Ni[n&15],Qa=n=>Ni[(n&240)>>4]+Ni[n&15],Ze=n=>(n&240)>>4===(n&15),Ga=n=>Ze(n.r)&&Ze(n.g)&&Ze(n.b)&&Ze(n.a);function Ka(n){var t=n.length,e;return n[0]==="#"&&(t===4||t===5?e={r:255&st[n[1]]*17,g:255&st[n[2]]*17,b:255&st[n[3]]*17,a:t===5?st[n[4]]*17:255}:(t===7||t===9)&&(e={r:st[n[1]]<<4|st[n[2]],g:st[n[3]]<<4|st[n[4]],b:st[n[5]]<<4|st[n[6]],a:t===9?st[n[7]]<<4|st[n[8]]:255})),e}var Za=(n,t)=>n<255?t(n):"";function Ja(n){var t=Ga(n)?Ua:Qa;return n?"#"+t(n.r)+t(n.g)+t(n.b)+Za(n.a,t):void 0}var tc=/^(hsla?|hwb|hsv)\(\s*([-+.e\d]+)(?:deg)?[\s,]+([-+.e\d]+)%[\s,]+([-+.e\d]+)%(?:[\s,]+([-+.e\d]+)(%)?)?\s*\)$/;function Fs(n,t,e){let i=t*Math.min(e,1-e),s=(o,r=(o+n/30)%12)=>e-i*Math.max(Math.min(r-3,9-r,1),-1);return[s(0),s(8),s(4)]}function ec(n,t,e){let i=(s,o=(s+n/60)%6)=>e-e*t*Math.max(Math.min(o,4-o,1),0);return[i(5),i(3),i(1)]}function nc(n,t,e){let i=Fs(n,1,.5),s;for(t+e>1&&(s=1/(t+e),t*=s,e*=s),s=0;s<3;s++)i[s]*=1-t-e,i[s]+=t;return i}function ic(n,t,e,i,s){return n===s?(t-e)/i+(t<e?6:0):t===s?(e-n)/i+2:(n-t)/i+4}function Wi(n){let e=n.r/255,i=n.g/255,s=n.b/255,o=Math.max(e,i,s),r=Math.min(e,i,s),a=(o+r)/2,c,l,h;return o!==r&&(h=o-r,l=a>.5?h/(2-o-r):h/(o+r),c=ic(e,i,s,h,o),c=c*60+.5),[c|0,l||0,a]}function zi(n,t,e,i){return(Array.isArray(t)?n(t[0],t[1],t[2]):n(t,e,i)).map(St)}function Bi(n,t,e){return zi(Fs,n,t,e)}function sc(n,t,e){return zi(nc,n,t,e)}function oc(n,t,e){return zi(ec,n,t,e)}function Ns(n){return(n%360+360)%360}function rc(n){let t=tc.exec(n),e=255,i;if(!t)return;t[5]!==i&&(e=t[6]?De(+t[5]):St(+t[5]));let s=Ns(+t[2]),o=+t[3]/100,r=+t[4]/100;return t[1]==="hwb"?i=sc(s,o,r):t[1]==="hsv"?i=oc(s,o,r):i=Bi(s,o,r),{r:i[0],g:i[1],b:i[2],a:e}}function ac(n,t){var e=Wi(n);e[0]=Ns(e[0]+t),e=Bi(e),n.r=e[0],n.g=e[1],n.b=e[2]}function cc(n){if(!n)return;let t=Wi(n),e=t[0],i=Ls(t[1]),s=Ls(t[2]);return n.a<255?`hsla(${e}, ${i}%, ${s}%, ${bt(n.a)})`:`hsl(${e}, ${i}%, ${s}%)`}var Is={x:"dark",Z:"light",Y:"re",X:"blu",W:"gr",V:"medium",U:"slate",A:"ee",T:"ol",S:"or",B:"ra",C:"lateg",D:"ights",R:"in",Q:"turquois",E:"hi",P:"ro",O:"al",N:"le",M:"de",L:"yello",F:"en",K:"ch",G:"arks",H:"ea",I:"ightg",J:"wh"},Es={OiceXe:"f0f8ff",antiquewEte:"faebd7",aqua:"ffff",aquamarRe:"7fffd4",azuY:"f0ffff",beige:"f5f5dc",bisque:"ffe4c4",black:"0",blanKedOmond:"ffebcd",Xe:"ff",XeviTet:"8a2be2",bPwn:"a52a2a",burlywood:"deb887",caMtXe:"5f9ea0",KartYuse:"7fff00",KocTate:"d2691e",cSO:"ff7f50",cSnflowerXe:"6495ed",cSnsilk:"fff8dc",crimson:"dc143c",cyan:"ffff",xXe:"8b",xcyan:"8b8b",xgTMnPd:"b8860b",xWay:"a9a9a9",xgYF:"6400",xgYy:"a9a9a9",xkhaki:"bdb76b",xmagFta:"8b008b",xTivegYF:"556b2f",xSange:"ff8c00",xScEd:"9932cc",xYd:"8b0000",xsOmon:"e9967a",xsHgYF:"8fbc8f",xUXe:"483d8b",xUWay:"2f4f4f",xUgYy:"2f4f4f",xQe:"ced1",xviTet:"9400d3",dAppRk:"ff1493",dApskyXe:"bfff",dimWay:"696969",dimgYy:"696969",dodgerXe:"1e90ff",fiYbrick:"b22222",flSOwEte:"fffaf0",foYstWAn:"228b22",fuKsia:"ff00ff",gaRsbSo:"dcdcdc",ghostwEte:"f8f8ff",gTd:"ffd700",gTMnPd:"daa520",Way:"808080",gYF:"8000",gYFLw:"adff2f",gYy:"808080",honeyMw:"f0fff0",hotpRk:"ff69b4",RdianYd:"cd5c5c",Rdigo:"4b0082",ivSy:"fffff0",khaki:"f0e68c",lavFMr:"e6e6fa",lavFMrXsh:"fff0f5",lawngYF:"7cfc00",NmoncEffon:"fffacd",ZXe:"add8e6",ZcSO:"f08080",Zcyan:"e0ffff",ZgTMnPdLw:"fafad2",ZWay:"d3d3d3",ZgYF:"90ee90",ZgYy:"d3d3d3",ZpRk:"ffb6c1",ZsOmon:"ffa07a",ZsHgYF:"20b2aa",ZskyXe:"87cefa",ZUWay:"778899",ZUgYy:"778899",ZstAlXe:"b0c4de",ZLw:"ffffe0",lime:"ff00",limegYF:"32cd32",lRF:"faf0e6",magFta:"ff00ff",maPon:"800000",VaquamarRe:"66cdaa",VXe:"cd",VScEd:"ba55d3",VpurpN:"9370db",VsHgYF:"3cb371",VUXe:"7b68ee",VsprRggYF:"fa9a",VQe:"48d1cc",VviTetYd:"c71585",midnightXe:"191970",mRtcYam:"f5fffa",mistyPse:"ffe4e1",moccasR:"ffe4b5",navajowEte:"ffdead",navy:"80",Tdlace:"fdf5e6",Tive:"808000",TivedBb:"6b8e23",Sange:"ffa500",SangeYd:"ff4500",ScEd:"da70d6",pOegTMnPd:"eee8aa",pOegYF:"98fb98",pOeQe:"afeeee",pOeviTetYd:"db7093",papayawEp:"ffefd5",pHKpuff:"ffdab9",peru:"cd853f",pRk:"ffc0cb",plum:"dda0dd",powMrXe:"b0e0e6",purpN:"800080",YbeccapurpN:"663399",Yd:"ff0000",Psybrown:"bc8f8f",PyOXe:"4169e1",saddNbPwn:"8b4513",sOmon:"fa8072",sandybPwn:"f4a460",sHgYF:"2e8b57",sHshell:"fff5ee",siFna:"a0522d",silver:"c0c0c0",skyXe:"87ceeb",UXe:"6a5acd",UWay:"708090",UgYy:"708090",snow:"fffafa",sprRggYF:"ff7f",stAlXe:"4682b4",tan:"d2b48c",teO:"8080",tEstN:"d8bfd8",tomato:"ff6347",Qe:"40e0d0",viTet:"ee82ee",JHt:"f5deb3",wEte:"ffffff",wEtesmoke:"f5f5f5",Lw:"ffff00",LwgYF:"9acd32"};function lc(){let n={},t=Object.keys(Es),e=Object.keys(Is),i,s,o,r,a;for(i=0;i<t.length;i++){for(r=a=t[i],s=0;s<e.length;s++)o=e[s],a=a.replace(o,Is[o]);o=parseInt(Es[r],16),n[a]=[o>>16&255,o>>8&255,o&255]}return n}var Je;function hc(n){Je||(Je=lc(),Je.transparent=[0,0,0,0]);let t=Je[n.toLowerCase()];return t&&{r:t[0],g:t[1],b:t[2],a:t.length===4?t[3]:255}}var uc=/^rgba?\(\s*([-+.\d]+)(%)?[\s,]+([-+.e\d]+)(%)?[\s,]+([-+.e\d]+)(%)?(?:[\s,/]+([-+.e\d]+)(%)?)?\s*\)$/;function dc(n){let t=uc.exec(n),e=255,i,s,o;if(t){if(t[7]!==i){let r=+t[7];e=t[8]?De(r):Ot(r*255,0,255)}return i=+t[1],s=+t[3],o=+t[5],i=255&(t[2]?De(i):Ot(i,0,255)),s=255&(t[4]?De(s):Ot(s,0,255)),o=255&(t[6]?De(o):Ot(o,0,255)),{r:i,g:s,b:o,a:e}}}function fc(n){return n&&(n.a<255?`rgba(${n.r}, ${n.g}, ${n.b}, ${bt(n.a)})`:`rgb(${n.r}, ${n.g}, ${n.b})`)}var Fi=n=>n<=.0031308?n*12.92:Math.pow(n,1/2.4)*1.055-.055,Zt=n=>n<=.04045?n/12.92:Math.pow((n+.055)/1.055,2.4);function pc(n,t,e){let i=Zt(bt(n.r)),s=Zt(bt(n.g)),o=Zt(bt(n.b));return{r:St(Fi(i+e*(Zt(bt(t.r))-i))),g:St(Fi(s+e*(Zt(bt(t.g))-s))),b:St(Fi(o+e*(Zt(bt(t.b))-o))),a:n.a+e*(t.a-n.a)}}function tn(n,t,e){if(n){let i=Wi(n);i[t]=Math.max(0,Math.min(i[t]+i[t]*e,t===0?360:1)),i=Bi(i),n.r=i[0],n.g=i[1],n.b=i[2]}}function Ws(n,t){return n&&Object.assign(t||{},n)}function Rs(n){var t={r:0,g:0,b:0,a:255};return Array.isArray(n)?n.length>=3&&(t={r:n[0],g:n[1],b:n[2],a:255},n.length>3&&(t.a=St(n[3]))):(t=Ws(n,{r:0,g:0,b:0,a:1}),t.a=St(t.a)),t}function gc(n){return n.charAt(0)==="r"?dc(n):rc(n)}var ve=class n{constructor(t){if(t instanceof n)return t;let e=typeof t,i;e==="object"?i=Rs(t):e==="string"&&(i=Ka(t)||hc(t)||gc(t)),this._rgb=i,this._valid=!!i}get valid(){return this._valid}get rgb(){var t=Ws(this._rgb);return t&&(t.a=bt(t.a)),t}set rgb(t){this._rgb=Rs(t)}rgbString(){return this._valid?fc(this._rgb):void 0}hexString(){return this._valid?Ja(this._rgb):void 0}hslString(){return this._valid?cc(this._rgb):void 0}mix(t,e){if(t){let i=this.rgb,s=t.rgb,o,r=e===o?.5:e,a=2*r-1,c=i.a-s.a,l=((a*c===-1?a:(a+c)/(1+a*c))+1)/2;o=1-l,i.r=255&l*i.r+o*s.r+.5,i.g=255&l*i.g+o*s.g+.5,i.b=255&l*i.b+o*s.b+.5,i.a=r*i.a+(1-r)*s.a,this.rgb=i}return this}interpolate(t,e){return t&&(this._rgb=pc(this._rgb,t._rgb,e)),this}clone(){return new n(this.rgb)}alpha(t){return this._rgb.a=St(t),this}clearer(t){let e=this._rgb;return e.a*=1-t,this}greyscale(){let t=this._rgb,e=Pe(t.r*.3+t.g*.59+t.b*.11);return t.r=t.g=t.b=e,this}opaquer(t){let e=this._rgb;return e.a*=1+t,this}negate(){let t=this._rgb;return t.r=255-t.r,t.g=255-t.g,t.b=255-t.b,this}lighten(t){return tn(this._rgb,2,t),this}darken(t){return tn(this._rgb,2,-t),this}saturate(t){return tn(this._rgb,1,t),this}desaturate(t){return tn(this._rgb,1,-t),this}rotate(t){return ac(this._rgb,t),this}};function ft(){}var Qs=(()=>{let n=0;return()=>n++})();function N(n){return n===null||typeof n>"u"}function W(n){if(Array.isArray&&Array.isArray(n))return!0;let t=Object.prototype.toString.call(n);return t.slice(0,7)==="[object"&&t.slice(-6)==="Array]"}function L(n){return n!==null&&Object.prototype.toString.call(n)==="[object Object]"}function $(n){return(typeof n=="number"||n instanceof Number)&&isFinite(+n)}function K(n,t){return $(n)?n:t}function R(n,t){return typeof n>"u"?t:n}var Gs=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100:+n/t,ji=(n,t)=>typeof n=="string"&&n.endsWith("%")?parseFloat(n)/100*t:+n;function z(n,t,e){if(n&&typeof n.call=="function")return n.apply(e,t)}function E(n,t,e,i){let s,o,r;if(W(n))if(o=n.length,i)for(s=o-1;s>=0;s--)t.call(e,n[s],s);else for(s=0;s<o;s++)t.call(e,n[s],s);else if(L(n))for(r=Object.keys(n),o=r.length,s=0;s<o;s++)t.call(e,n[r[s]],r[s])}function Te(n,t){let e,i,s,o;if(!n||!t||n.length!==t.length)return!1;for(e=0,i=n.length;e<i;++e)if(s=n[e],o=t[e],s.datasetIndex!==o.datasetIndex||s.index!==o.index)return!1;return!0}function on(n){if(W(n))return n.map(on);if(L(n)){let t=Object.create(null),e=Object.keys(n),i=e.length,s=0;for(;s<i;++s)t[e[s]]=on(n[e[s]]);return t}return n}function Ks(n){return["__proto__","prototype","constructor"].indexOf(n)===-1}function mc(n,t,e,i){if(!Ks(n))return;let s=t[n],o=e[n];L(s)&&L(o)?te(s,o,i):t[n]=on(o)}function te(n,t,e){let i=W(t)?t:[t],s=i.length;if(!L(n))return n;e=e||{};let o=e.merger||mc,r;for(let a=0;a<s;++a){if(r=i[a],!L(r))continue;let c=Object.keys(r);for(let l=0,h=c.length;l<h;++l)o(c[l],n,r,e)}return n}function ne(n,t){return te(n,t,{merger:bc})}function bc(n,t,e){if(!Ks(n))return;let i=t[n],s=e[n];L(i)&&L(s)?ne(i,s):Object.prototype.hasOwnProperty.call(t,n)||(t[n]=on(s))}var zs={"":n=>n,x:n=>n.x,y:n=>n.y};function xc(n){let t=n.split("."),e=[],i="";for(let s of t)i+=s,i.endsWith("\\")?i=i.slice(0,-1)+".":(e.push(i),i="");return e}function yc(n){let t=xc(n);return e=>{for(let i of t){if(i==="")break;e=e&&e[i]}return e}}function Vt(n,t){return(zs[t]||(zs[t]=yc(t)))(n)}function ln(n){return n.charAt(0).toUpperCase()+n.slice(1)}var Ce=n=>typeof n<"u",xt=n=>typeof n=="function",qi=(n,t)=>{if(n.size!==t.size)return!1;for(let e of n)if(!t.has(e))return!1;return!0};function Zs(n){return n.type==="mouseup"||n.type==="click"||n.type==="contextmenu"}var B=Math.PI,X=2*B,_c=X+B,rn=Number.POSITIVE_INFINITY,wc=B/180,G=B/2,zt=B/4,Bs=B*2/3,yt=Math.log10,Ht=Math.sign;function ie(n,t,e){return Math.abs(n-t)<e}function $i(n){let t=Math.round(n);n=ie(n,t,n/1e3)?t:n;let e=Math.pow(10,Math.floor(yt(n))),i=n/e;return(i<=1?1:i<=2?2:i<=5?5:10)*e}function Js(n){let t=[],e=Math.sqrt(n),i;for(i=1;i<e;i++)n%i===0&&(t.push(i),t.push(n/i));return e===(e|0)&&t.push(e),t.sort((s,o)=>s-o).pop(),t}function se(n){return!isNaN(parseFloat(n))&&isFinite(n)}function to(n,t){let e=Math.round(n);return e-t<=n&&e+t>=n}function Xi(n,t,e){let i,s,o;for(i=0,s=n.length;i<s;i++)o=n[i][e],isNaN(o)||(t.min=Math.min(t.min,o),t.max=Math.max(t.max,o))}function at(n){return n*(B/180)}function hn(n){return n*(180/B)}function Ui(n){if(!$(n))return;let t=1,e=0;for(;Math.round(n*t)/t!==n;)t*=10,e++;return e}function eo(n,t){let e=t.x-n.x,i=t.y-n.y,s=Math.sqrt(e*e+i*i),o=Math.atan2(i,e);return o<-.5*B&&(o+=X),{angle:o,distance:s}}function an(n,t){return Math.sqrt(Math.pow(t.x-n.x,2)+Math.pow(t.y-n.y,2))}function Mc(n,t){return(n-t+_c)%X-B}function ot(n){return(n%X+X)%X}function Ae(n,t,e,i){let s=ot(n),o=ot(t),r=ot(e),a=ot(o-s),c=ot(r-s),l=ot(s-o),h=ot(s-r);return s===o||s===r||i&&o===r||a>c&&l<h}function rt(n,t,e){return Math.max(t,Math.min(e,n))}function no(n){return rt(n,-32768,32767)}function io(n,t,e,i=1e-6){return n>=Math.min(t,e)-i&&n<=Math.max(t,e)+i}function un(n,t,e){e=e||(r=>n[r]<t);let i=n.length-1,s=0,o;for(;i-s>1;)o=s+i>>1,e(o)?s=o:i=o;return{lo:s,hi:i}}var Ct=(n,t,e,i)=>un(n,e,i?s=>{let o=n[s][t];return o<e||o===e&&n[s+1][t]===e}:s=>n[s][t]<e),so=(n,t,e)=>un(n,e,i=>n[i][t]>=e);function oo(n,t,e){let i=0,s=n.length;for(;i<s&&n[i]<t;)i++;for(;s>i&&n[s-1]>e;)s--;return i>0||s<n.length?n.slice(i,s):n}var ro=["push","pop","shift","splice","unshift"];function ao(n,t){if(n._chartjs){n._chartjs.listeners.push(t);return}Object.defineProperty(n,"_chartjs",{configurable:!0,enumerable:!1,value:{listeners:[t]}}),ro.forEach(e=>{let i="_onData"+ln(e),s=n[e];Object.defineProperty(n,e,{configurable:!0,enumerable:!1,value(...o){let r=s.apply(this,o);return n._chartjs.listeners.forEach(a=>{typeof a[i]=="function"&&a[i](...o)}),r}})})}function Qi(n,t){let e=n._chartjs;if(!e)return;let i=e.listeners,s=i.indexOf(t);s!==-1&&i.splice(s,1),!(i.length>0)&&(ro.forEach(o=>{delete n[o]}),delete n._chartjs)}function co(n){let t=new Set(n);return t.size===n.length?n:Array.from(t)}var Gi=function(){return typeof window>"u"?function(n){return n()}:window.requestAnimationFrame}();function Ki(n,t){let e=[],i=!1;return function(...s){e=s,i||(i=!0,Gi.call(window,()=>{i=!1,n.apply(t,e)}))}}function lo(n,t){let e;return function(...i){return t?(clearTimeout(e),e=setTimeout(n,t,i)):n.apply(this,i),t}}var ho=n=>n==="start"?"left":n==="end"?"right":"center",Zi=(n,t,e)=>n==="start"?t:n==="end"?e:(t+e)/2;function uo(n,t,e){let i=t.length,s=0,o=i;if(n._sorted){let{iScale:r,_parsed:a}=n,c=r.axis,{min:l,max:h,minDefined:u,maxDefined:d}=r.getUserBounds();u&&(s=rt(Math.min(Ct(a,c,l).lo,e?i:Ct(t,c,r.getPixelForValue(l)).lo),0,i-1)),d?o=rt(Math.max(Ct(a,r.axis,h,!0).hi+1,e?0:Ct(t,c,r.getPixelForValue(h),!0).hi+1),s,i)-s:o=i-s}return{start:s,count:o}}function fo(n){let{xScale:t,yScale:e,_scaleRanges:i}=n,s={xmin:t.min,xmax:t.max,ymin:e.min,ymax:e.max};if(!i)return n._scaleRanges=s,!0;let o=i.xmin!==t.min||i.xmax!==t.max||i.ymin!==e.min||i.ymax!==e.max;return Object.assign(i,s),o}var en=n=>n===0||n===1,Hs=(n,t,e)=>-(Math.pow(2,10*(n-=1))*Math.sin((n-t)*X/e)),Ys=(n,t,e)=>Math.pow(2,-10*n)*Math.sin((n-t)*X/e)+1,Jt={linear:n=>n,easeInQuad:n=>n*n,easeOutQuad:n=>-n*(n-2),easeInOutQuad:n=>(n/=.5)<1?.5*n*n:-.5*(--n*(n-2)-1),easeInCubic:n=>n*n*n,easeOutCubic:n=>(n-=1)*n*n+1,easeInOutCubic:n=>(n/=.5)<1?.5*n*n*n:.5*((n-=2)*n*n+2),easeInQuart:n=>n*n*n*n,easeOutQuart:n=>-((n-=1)*n*n*n-1),easeInOutQuart:n=>(n/=.5)<1?.5*n*n*n*n:-.5*((n-=2)*n*n*n-2),easeInQuint:n=>n*n*n*n*n,easeOutQuint:n=>(n-=1)*n*n*n*n+1,easeInOutQuint:n=>(n/=.5)<1?.5*n*n*n*n*n:.5*((n-=2)*n*n*n*n+2),easeInSine:n=>-Math.cos(n*G)+1,easeOutSine:n=>Math.sin(n*G),easeInOutSine:n=>-.5*(Math.cos(B*n)-1),easeInExpo:n=>n===0?0:Math.pow(2,10*(n-1)),easeOutExpo:n=>n===1?1:-Math.pow(2,-10*n)+1,easeInOutExpo:n=>en(n)?n:n<.5?.5*Math.pow(2,10*(n*2-1)):.5*(-Math.pow(2,-10*(n*2-1))+2),easeInCirc:n=>n>=1?n:-(Math.sqrt(1-n*n)-1),easeOutCirc:n=>Math.sqrt(1-(n-=1)*n),easeInOutCirc:n=>(n/=.5)<1?-.5*(Math.sqrt(1-n*n)-1):.5*(Math.sqrt(1-(n-=2)*n)+1),easeInElastic:n=>en(n)?n:Hs(n,.075,.3),easeOutElastic:n=>en(n)?n:Ys(n,.075,.3),easeInOutElastic(n){return en(n)?n:n<.5?.5*Hs(n*2,.1125,.45):.5+.5*Ys(n*2-1,.1125,.45)},easeInBack(n){return n*n*((1.70158+1)*n-1.70158)},easeOutBack(n){return(n-=1)*n*((1.70158+1)*n+1.70158)+1},easeInOutBack(n){let t=1.70158;return(n/=.5)<1?.5*(n*n*(((t*=1.525)+1)*n-t)):.5*((n-=2)*n*(((t*=1.525)+1)*n+t)+2)},easeInBounce:n=>1-Jt.easeOutBounce(1-n),easeOutBounce(n){return n<1/2.75?7.5625*n*n:n<2/2.75?7.5625*(n-=1.5/2.75)*n+.75:n<2.5/2.75?7.5625*(n-=2.25/2.75)*n+.9375:7.5625*(n-=2.625/2.75)*n+.984375},easeInOutBounce:n=>n<.5?Jt.easeInBounce(n*2)*.5:Jt.easeOutBounce(n*2-1)*.5+.5};function Ji(n){if(n&&typeof n=="object"){let t=n.toString();return t==="[object CanvasPattern]"||t==="[object CanvasGradient]"}return!1}function ts(n){return Ji(n)?n:new ve(n)}function Hi(n){return Ji(n)?n:new ve(n).saturate(.5).darken(.1).hexString()}var kc=["x","y","borderWidth","radius","tension"],Dc=["color","borderColor","backgroundColor"];function vc(n){n.set("animation",{delay:void 0,duration:1e3,easing:"easeOutQuart",fn:void 0,from:void 0,loop:void 0,to:void 0,type:void 0}),n.describe("animation",{_fallback:!1,_indexable:!1,_scriptable:t=>t!=="onProgress"&&t!=="onComplete"&&t!=="fn"}),n.set("animations",{colors:{type:"color",properties:Dc},numbers:{type:"number",properties:kc}}),n.describe("animations",{_fallback:"animation"}),n.set("transitions",{active:{animation:{duration:400}},resize:{animation:{duration:0}},show:{animations:{colors:{from:"transparent"},visible:{type:"boolean",duration:0}}},hide:{animations:{colors:{to:"transparent"},visible:{type:"boolean",easing:"linear",fn:t=>t|0}}}})}function Pc(n){n.set("layout",{autoPadding:!0,padding:{top:0,right:0,bottom:0,left:0}})}var Vs=new Map;function Oc(n,t){t=t||{};let e=n+JSON.stringify(t),i=Vs.get(e);return i||(i=new Intl.NumberFormat(n,t),Vs.set(e,i)),i}function oe(n,t,e){return Oc(t,e).format(n)}var po={values(n){return W(n)?n:""+n},numeric(n,t,e){if(n===0)return"0";let i=this.chart.options.locale,s,o=n;if(e.length>1){let l=Math.max(Math.abs(e[0].value),Math.abs(e[e.length-1].value));(l<1e-4||l>1e15)&&(s="scientific"),o=Sc(n,e)}let r=yt(Math.abs(o)),a=isNaN(r)?1:Math.max(Math.min(-1*Math.floor(r),20),0),c={notation:s,minimumFractionDigits:a,maximumFractionDigits:a};return Object.assign(c,this.options.ticks.format),oe(n,i,c)},logarithmic(n,t,e){if(n===0)return"0";let i=e[t].significand||n/Math.pow(10,Math.floor(yt(n)));return[1,2,3,5,10,15].includes(i)||t>.8*e.length?po.numeric.call(this,n,t,e):""}};function Sc(n,t){let e=t.length>3?t[2].value-t[1].value:t[1].value-t[0].value;return Math.abs(e)>=1&&n!==Math.floor(n)&&(e=n-Math.floor(n)),e}var Le={formatters:po};function Tc(n){n.set("scale",{display:!0,offset:!1,reverse:!1,beginAtZero:!1,bounds:"ticks",clip:!0,grace:0,grid:{display:!0,lineWidth:1,drawOnChartArea:!0,drawTicks:!0,tickLength:8,tickWidth:(t,e)=>e.lineWidth,tickColor:(t,e)=>e.color,offset:!1},border:{display:!0,dash:[],dashOffset:0,width:1},title:{display:!1,text:"",padding:{top:4,bottom:4}},ticks:{minRotation:0,maxRotation:50,mirror:!1,textStrokeWidth:0,textStrokeColor:"",padding:3,display:!0,autoSkip:!0,autoSkipPadding:3,labelOffset:0,callback:Le.formatters.values,minor:{},major:{},align:"center",crossAlign:"near",showLabelBackdrop:!1,backdropColor:"rgba(255, 255, 255, 0.75)",backdropPadding:2}}),n.route("scale.ticks","color","","color"),n.route("scale.grid","color","","borderColor"),n.route("scale.border","color","","borderColor"),n.route("scale.title","color","","color"),n.describe("scale",{_fallback:!1,_scriptable:t=>!t.startsWith("before")&&!t.startsWith("after")&&t!=="callback"&&t!=="parser",_indexable:t=>t!=="borderDash"&&t!=="tickBorderDash"&&t!=="dash"}),n.describe("scales",{_fallback:"scale"}),n.describe("scale.ticks",{_scriptable:t=>t!=="backdropPadding"&&t!=="callback",_indexable:t=>t!=="backdropPadding"})}var At=Object.create(null),dn=Object.create(null);function Oe(n,t){if(!t)return n;let e=t.split(".");for(let i=0,s=e.length;i<s;++i){let o=e[i];n=n[o]||(n[o]=Object.create(null))}return n}function Yi(n,t,e){return typeof t=="string"?te(Oe(n,t),e):te(Oe(n,""),t)}var Vi=class{constructor(t,e){this.animation=void 0,this.backgroundColor="rgba(0,0,0,0.1)",this.borderColor="rgba(0,0,0,0.1)",this.color="#666",this.datasets={},this.devicePixelRatio=i=>i.chart.platform.getDevicePixelRatio(),this.elements={},this.events=["mousemove","mouseout","click","touchstart","touchmove"],this.font={family:"'Helvetica Neue', 'Helvetica', 'Arial', sans-serif",size:12,style:"normal",lineHeight:1.2,weight:null},this.hover={},this.hoverBackgroundColor=(i,s)=>Hi(s.backgroundColor),this.hoverBorderColor=(i,s)=>Hi(s.borderColor),this.hoverColor=(i,s)=>Hi(s.color),this.indexAxis="x",this.interaction={mode:"nearest",intersect:!0,includeInvisible:!1},this.maintainAspectRatio=!0,this.onHover=null,this.onClick=null,this.parsing=!0,this.plugins={},this.responsive=!0,this.scale=void 0,this.scales={},this.showLine=!0,this.drawActiveElementsOnTop=!0,this.describe(t),this.apply(e)}set(t,e){return Yi(this,t,e)}get(t){return Oe(this,t)}describe(t,e){return Yi(dn,t,e)}override(t,e){return Yi(At,t,e)}route(t,e,i,s){let o=Oe(this,t),r=Oe(this,i),a="_"+e;Object.defineProperties(o,{[a]:{value:o[e],writable:!0},[e]:{enumerable:!0,get(){let c=this[a],l=r[s];return L(c)?Object.assign({},l,c):R(c,l)},set(c){this[a]=c}}})}apply(t){t.forEach(e=>e(this))}},H=new Vi({_scriptable:n=>!n.startsWith("on"),_indexable:n=>n!=="events",hover:{_fallback:"interaction"},interaction:{_scriptable:!1,_indexable:!1}},[vc,Pc,Tc]);function Cc(n){return!n||N(n.size)||N(n.family)?null:(n.style?n.style+" ":"")+(n.weight?n.weight+" ":"")+n.size+"px "+n.family}function Se(n,t,e,i,s){let o=t[s];return o||(o=t[s]=n.measureText(s).width,e.push(s)),o>i&&(i=o),i}function go(n,t,e,i){i=i||{};let s=i.data=i.data||{},o=i.garbageCollect=i.garbageCollect||[];i.font!==t&&(s=i.data={},o=i.garbageCollect=[],i.font=t),n.save(),n.font=t;let r=0,a=e.length,c,l,h,u,d;for(c=0;c<a;c++)if(u=e[c],u!=null&&!W(u))r=Se(n,s,o,r,u);else if(W(u))for(l=0,h=u.length;l<h;l++)d=u[l],d!=null&&!W(d)&&(r=Se(n,s,o,r,d));n.restore();let f=o.length/2;if(f>e.length){for(c=0;c<f;c++)delete s[o[c]];o.splice(0,f)}return r}function Lt(n,t,e){let i=n.currentDevicePixelRatio,s=e!==0?Math.max(e/2,.5):0;return Math.round((t-s)*i)/i+s}function es(n,t){t=t||n.getContext("2d"),t.save(),t.resetTransform(),t.clearRect(0,0,n.width,n.height),t.restore()}function fn(n,t,e,i){mo(n,t,e,i,null)}function mo(n,t,e,i,s){let o,r,a,c,l,h,u,d,f=t.pointStyle,m=t.rotation,p=t.radius,g=(m||0)*wc;if(f&&typeof f=="object"&&(o=f.toString(),o==="[object HTMLImageElement]"||o==="[object HTMLCanvasElement]")){n.save(),n.translate(e,i),n.rotate(g),n.drawImage(f,-f.width/2,-f.height/2,f.width,f.height),n.restore();return}if(!(isNaN(p)||p<=0)){switch(n.beginPath(),f){default:s?n.ellipse(e,i,s/2,p,0,0,X):n.arc(e,i,p,0,X),n.closePath();break;case"triangle":h=s?s/2:p,n.moveTo(e+Math.sin(g)*h,i-Math.cos(g)*p),g+=Bs,n.lineTo(e+Math.sin(g)*h,i-Math.cos(g)*p),g+=Bs,n.lineTo(e+Math.sin(g)*h,i-Math.cos(g)*p),n.closePath();break;case"rectRounded":l=p*.516,c=p-l,r=Math.cos(g+zt)*c,u=Math.cos(g+zt)*(s?s/2-l:c),a=Math.sin(g+zt)*c,d=Math.sin(g+zt)*(s?s/2-l:c),n.arc(e-u,i-a,l,g-B,g-G),n.arc(e+d,i-r,l,g-G,g),n.arc(e+u,i+a,l,g,g+G),n.arc(e-d,i+r,l,g+G,g+B),n.closePath();break;case"rect":if(!m){c=Math.SQRT1_2*p,h=s?s/2:c,n.rect(e-h,i-c,2*h,2*c);break}g+=zt;case"rectRot":u=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,a=Math.sin(g)*p,d=Math.sin(g)*(s?s/2:p),n.moveTo(e-u,i-a),n.lineTo(e+d,i-r),n.lineTo(e+u,i+a),n.lineTo(e-d,i+r),n.closePath();break;case"crossRot":g+=zt;case"cross":u=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,a=Math.sin(g)*p,d=Math.sin(g)*(s?s/2:p),n.moveTo(e-u,i-a),n.lineTo(e+u,i+a),n.moveTo(e+d,i-r),n.lineTo(e-d,i+r);break;case"star":u=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,a=Math.sin(g)*p,d=Math.sin(g)*(s?s/2:p),n.moveTo(e-u,i-a),n.lineTo(e+u,i+a),n.moveTo(e+d,i-r),n.lineTo(e-d,i+r),g+=zt,u=Math.cos(g)*(s?s/2:p),r=Math.cos(g)*p,a=Math.sin(g)*p,d=Math.sin(g)*(s?s/2:p),n.moveTo(e-u,i-a),n.lineTo(e+u,i+a),n.moveTo(e+d,i-r),n.lineTo(e-d,i+r);break;case"line":r=s?s/2:Math.cos(g)*p,a=Math.sin(g)*p,n.moveTo(e-r,i-a),n.lineTo(e+r,i+a);break;case"dash":n.moveTo(e,i),n.lineTo(e+Math.cos(g)*(s?s/2:p),i+Math.sin(g)*p);break;case!1:n.closePath();break}n.fill(),t.borderWidth>0&&n.stroke()}}function dt(n,t,e){return e=e||.5,!t||n&&n.x>t.left-e&&n.x<t.right+e&&n.y>t.top-e&&n.y<t.bottom+e}function ns(n,t){n.save(),n.beginPath(),n.rect(t.left,t.top,t.right-t.left,t.bottom-t.top),n.clip()}function is(n){n.restore()}function bo(n,t,e,i,s){if(!t)return n.lineTo(e.x,e.y);if(s==="middle"){let o=(t.x+e.x)/2;n.lineTo(o,t.y),n.lineTo(o,e.y)}else s==="after"!=!!i?n.lineTo(t.x,e.y):n.lineTo(e.x,t.y);n.lineTo(e.x,e.y)}function xo(n,t,e,i){if(!t)return n.lineTo(e.x,e.y);n.bezierCurveTo(i?t.cp1x:t.cp2x,i?t.cp1y:t.cp2y,i?e.cp2x:e.cp1x,i?e.cp2y:e.cp1y,e.x,e.y)}function Ac(n,t){t.translation&&n.translate(t.translation[0],t.translation[1]),N(t.rotation)||n.rotate(t.rotation),t.color&&(n.fillStyle=t.color),t.textAlign&&(n.textAlign=t.textAlign),t.textBaseline&&(n.textBaseline=t.textBaseline)}function Lc(n,t,e,i,s){if(s.strikethrough||s.underline){let o=n.measureText(i),r=t-o.actualBoundingBoxLeft,a=t+o.actualBoundingBoxRight,c=e-o.actualBoundingBoxAscent,l=e+o.actualBoundingBoxDescent,h=s.strikethrough?(c+l)/2:l;n.strokeStyle=n.fillStyle,n.beginPath(),n.lineWidth=s.decorationWidth||2,n.moveTo(r,h),n.lineTo(a,h),n.stroke()}}function Ic(n,t){let e=n.fillStyle;n.fillStyle=t.color,n.fillRect(t.left,t.top,t.width,t.height),n.fillStyle=e}function Ie(n,t,e,i,s,o={}){let r=W(t)?t:[t],a=o.strokeWidth>0&&o.strokeColor!=="",c,l;for(n.save(),n.font=s.string,Ac(n,o),c=0;c<r.length;++c)l=r[c],o.backdrop&&Ic(n,o.backdrop),a&&(o.strokeColor&&(n.strokeStyle=o.strokeColor),N(o.strokeWidth)||(n.lineWidth=o.strokeWidth),n.strokeText(l,e,i,o.maxWidth)),n.fillText(l,e,i,o.maxWidth),Lc(n,e,i,l,o),i+=Number(s.lineHeight);n.restore()}function pn(n,t){let{x:e,y:i,w:s,h:o,radius:r}=t;n.arc(e+r.topLeft,i+r.topLeft,r.topLeft,1.5*B,B,!0),n.lineTo(e,i+o-r.bottomLeft),n.arc(e+r.bottomLeft,i+o-r.bottomLeft,r.bottomLeft,B,G,!0),n.lineTo(e+s-r.bottomRight,i+o),n.arc(e+s-r.bottomRight,i+o-r.bottomRight,r.bottomRight,G,0,!0),n.lineTo(e+s,i+r.topRight),n.arc(e+s-r.topRight,i+r.topRight,r.topRight,0,-G,!0),n.lineTo(e+r.topLeft,i)}var Ec=/^(normal|(\d+(?:\.\d+)?)(px|em|%)?)$/,Rc=/^(normal|italic|initial|inherit|unset|(oblique( -?[0-9]?[0-9]deg)?))$/;function Fc(n,t){let e=(""+n).match(Ec);if(!e||e[1]==="normal")return t*1.2;switch(n=+e[2],e[3]){case"px":return n;case"%":n/=100;break}return t*n}var Nc=n=>+n||0;function ss(n,t){let e={},i=L(t),s=i?Object.keys(t):t,o=L(n)?i?r=>R(n[r],n[t[r]]):r=>n[r]:()=>n;for(let r of s)e[r]=Nc(o(r));return e}function yo(n){return ss(n,{top:"y",right:"x",bottom:"y",left:"x"})}function re(n){return ss(n,["topLeft","topRight","bottomLeft","bottomRight"])}function nt(n){let t=yo(n);return t.width=t.left+t.right,t.height=t.top+t.bottom,t}function Z(n,t){n=n||{},t=t||H.font;let e=R(n.size,t.size);typeof e=="string"&&(e=parseInt(e,10));let i=R(n.style,t.style);i&&!(""+i).match(Rc)&&(console.warn('Invalid font style specified: "'+i+'"'),i=void 0);let s={family:R(n.family,t.family),lineHeight:Fc(R(n.lineHeight,t.lineHeight),e),size:e,style:i,weight:R(n.weight,t.weight),string:""};return s.string=Cc(s),s}function Ee(n,t,e,i){let s=!0,o,r,a;for(o=0,r=n.length;o<r;++o)if(a=n[o],a!==void 0&&(t!==void 0&&typeof a=="function"&&(a=a(t),s=!1),e!==void 0&&W(a)&&(a=a[e%a.length],s=!1),a!==void 0))return i&&!s&&(i.cacheable=!1),a}function _o(n,t,e){let{min:i,max:s}=n,o=ji(t,(s-i)/2),r=(a,c)=>e&&a===0?0:a+c;return{min:r(i,-Math.abs(o)),max:r(s,o)}}function _t(n,t){return Object.assign(Object.create(n),t)}function gn(n,t=[""],e,i,s=()=>n[0]){let o=e||n;typeof i>"u"&&(i=ko("_fallback",n));let r={[Symbol.toStringTag]:"Object",_cacheable:!0,_scopes:n,_rootScopes:o,_fallback:i,_getTarget:s,override:a=>gn([a,...n],t,o,i)};return new Proxy(r,{deleteProperty(a,c){return delete a[c],delete a._keys,delete n[0][c],!0},get(a,c){return wo(a,c,()=>qc(c,t,n,a))},getOwnPropertyDescriptor(a,c){return Reflect.getOwnPropertyDescriptor(a._scopes[0],c)},getPrototypeOf(){return Reflect.getPrototypeOf(n[0])},has(a,c){return qs(a).includes(c)},ownKeys(a){return qs(a)},set(a,c,l){let h=a._storage||(a._storage=s());return a[c]=h[c]=l,delete a._keys,!0}})}function Yt(n,t,e,i){let s={_cacheable:!1,_proxy:n,_context:t,_subProxy:e,_stack:new Set,_descriptors:os(n,i),setContext:o=>Yt(n,o,e,i),override:o=>Yt(n.override(o),t,e,i)};return new Proxy(s,{deleteProperty(o,r){return delete o[r],delete n[r],!0},get(o,r,a){return wo(o,r,()=>zc(o,r,a))},getOwnPropertyDescriptor(o,r){return o._descriptors.allKeys?Reflect.has(n,r)?{enumerable:!0,configurable:!0}:void 0:Reflect.getOwnPropertyDescriptor(n,r)},getPrototypeOf(){return Reflect.getPrototypeOf(n)},has(o,r){return Reflect.has(n,r)},ownKeys(){return Reflect.ownKeys(n)},set(o,r,a){return n[r]=a,delete o[r],!0}})}function os(n,t={scriptable:!0,indexable:!0}){let{_scriptable:e=t.scriptable,_indexable:i=t.indexable,_allKeys:s=t.allKeys}=n;return{allKeys:s,scriptable:e,indexable:i,isScriptable:xt(e)?e:()=>e,isIndexable:xt(i)?i:()=>i}}var Wc=(n,t)=>n?n+ln(t):t,rs=(n,t)=>L(t)&&n!=="adapters"&&(Object.getPrototypeOf(t)===null||t.constructor===Object);function wo(n,t,e){if(Object.prototype.hasOwnProperty.call(n,t))return n[t];let i=e();return n[t]=i,i}function zc(n,t,e){let{_proxy:i,_context:s,_subProxy:o,_descriptors:r}=n,a=i[t];return xt(a)&&r.isScriptable(t)&&(a=Bc(t,a,n,e)),W(a)&&a.length&&(a=Hc(t,a,n,r.isIndexable)),rs(t,a)&&(a=Yt(a,s,o&&o[t],r)),a}function Bc(n,t,e,i){let{_proxy:s,_context:o,_subProxy:r,_stack:a}=e;if(a.has(n))throw new Error("Recursion detected: "+Array.from(a).join("->")+"->"+n);a.add(n);let c=t(o,r||i);return a.delete(n),rs(n,c)&&(c=as(s._scopes,s,n,c)),c}function Hc(n,t,e,i){let{_proxy:s,_context:o,_subProxy:r,_descriptors:a}=e;if(typeof o.index<"u"&&i(n))return t[o.index%t.length];if(L(t[0])){let c=t,l=s._scopes.filter(h=>h!==c);t=[];for(let h of c){let u=as(l,s,n,h);t.push(Yt(u,o,r&&r[n],a))}}return t}function Mo(n,t,e){return xt(n)?n(t,e):n}var Yc=(n,t)=>n===!0?t:typeof n=="string"?Vt(t,n):void 0;function Vc(n,t,e,i,s){for(let o of t){let r=Yc(e,o);if(r){n.add(r);let a=Mo(r._fallback,e,s);if(typeof a<"u"&&a!==e&&a!==i)return a}else if(r===!1&&typeof i<"u"&&e!==i)return null}return!1}function as(n,t,e,i){let s=t._rootScopes,o=Mo(t._fallback,e,i),r=[...n,...s],a=new Set;a.add(i);let c=js(a,r,e,o||e,i);return c===null||typeof o<"u"&&o!==e&&(c=js(a,r,o,c,i),c===null)?!1:gn(Array.from(a),[""],s,o,()=>jc(t,e,i))}function js(n,t,e,i,s){for(;e;)e=Vc(n,t,e,i,s);return e}function jc(n,t,e){let i=n._getTarget();t in i||(i[t]={});let s=i[t];return W(s)&&L(e)?e:s||{}}function qc(n,t,e,i){let s;for(let o of t)if(s=ko(Wc(o,n),e),typeof s<"u")return rs(n,s)?as(e,i,n,s):s}function ko(n,t){for(let e of t){if(!e)continue;let i=e[n];if(typeof i<"u")return i}}function qs(n){let t=n._keys;return t||(t=n._keys=$c(n._scopes)),t}function $c(n){let t=new Set;for(let e of n)for(let i of Object.keys(e).filter(s=>!s.startsWith("_")))t.add(i);return Array.from(t)}function Do(n,t,e,i){let{iScale:s}=n,{key:o="r"}=this._parsing,r=new Array(i),a,c,l,h;for(a=0,c=i;a<c;++a)l=a+e,h=t[l],r[a]={r:s.parse(Vt(h,o),l)};return r}var Xc=Number.EPSILON||1e-14,ee=(n,t)=>t<n.length&&!n[t].skip&&n[t],vo=n=>n==="x"?"y":"x";function Uc(n,t,e,i){let s=n.skip?t:n,o=t,r=e.skip?t:e,a=an(o,s),c=an(r,o),l=a/(a+c),h=c/(a+c);l=isNaN(l)?0:l,h=isNaN(h)?0:h;let u=i*l,d=i*h;return{previous:{x:o.x-u*(r.x-s.x),y:o.y-u*(r.y-s.y)},next:{x:o.x+d*(r.x-s.x),y:o.y+d*(r.y-s.y)}}}function Qc(n,t,e){let i=n.length,s,o,r,a,c,l=ee(n,0);for(let h=0;h<i-1;++h)if(c=l,l=ee(n,h+1),!(!c||!l)){if(ie(t[h],0,Xc)){e[h]=e[h+1]=0;continue}s=e[h]/t[h],o=e[h+1]/t[h],a=Math.pow(s,2)+Math.pow(o,2),!(a<=9)&&(r=3/Math.sqrt(a),e[h]=s*r*t[h],e[h+1]=o*r*t[h])}}function Gc(n,t,e="x"){let i=vo(e),s=n.length,o,r,a,c=ee(n,0);for(let l=0;l<s;++l){if(r=a,a=c,c=ee(n,l+1),!a)continue;let h=a[e],u=a[i];r&&(o=(h-r[e])/3,a[`cp1${e}`]=h-o,a[`cp1${i}`]=u-o*t[l]),c&&(o=(c[e]-h)/3,a[`cp2${e}`]=h+o,a[`cp2${i}`]=u+o*t[l])}}function Kc(n,t="x"){let e=vo(t),i=n.length,s=Array(i).fill(0),o=Array(i),r,a,c,l=ee(n,0);for(r=0;r<i;++r)if(a=c,c=l,l=ee(n,r+1),!!c){if(l){let h=l[t]-c[t];s[r]=h!==0?(l[e]-c[e])/h:0}o[r]=a?l?Ht(s[r-1])!==Ht(s[r])?0:(s[r-1]+s[r])/2:s[r-1]:s[r]}Qc(n,s,o),Gc(n,o,t)}function nn(n,t,e){return Math.max(Math.min(n,e),t)}function Zc(n,t){let e,i,s,o,r,a=dt(n[0],t);for(e=0,i=n.length;e<i;++e)r=o,o=a,a=e<i-1&&dt(n[e+1],t),o&&(s=n[e],r&&(s.cp1x=nn(s.cp1x,t.left,t.right),s.cp1y=nn(s.cp1y,t.top,t.bottom)),a&&(s.cp2x=nn(s.cp2x,t.left,t.right),s.cp2y=nn(s.cp2y,t.top,t.bottom)))}function Po(n,t,e,i,s){let o,r,a,c;if(t.spanGaps&&(n=n.filter(l=>!l.skip)),t.cubicInterpolationMode==="monotone")Kc(n,s);else{let l=i?n[n.length-1]:n[0];for(o=0,r=n.length;o<r;++o)a=n[o],c=Uc(l,a,n[Math.min(o+1,r-(i?0:1))%r],t.tension),a.cp1x=c.previous.x,a.cp1y=c.previous.y,a.cp2x=c.next.x,a.cp2y=c.next.y,l=a}t.capBezierPoints&&Zc(n,e)}function mn(){return typeof window<"u"&&typeof document<"u"}function bn(n){let t=n.parentNode;return t&&t.toString()==="[object ShadowRoot]"&&(t=t.host),t}function cn(n,t,e){let i;return typeof n=="string"?(i=parseInt(n,10),n.indexOf("%")!==-1&&(i=i/100*t.parentNode[e])):i=n,i}var xn=n=>n.ownerDocument.defaultView.getComputedStyle(n,null);function Jc(n,t){return xn(n).getPropertyValue(t)}var tl=["top","right","bottom","left"];function Bt(n,t,e){let i={};e=e?"-"+e:"";for(let s=0;s<4;s++){let o=tl[s];i[o]=parseFloat(n[t+"-"+o+e])||0}return i.width=i.left+i.right,i.height=i.top+i.bottom,i}var el=(n,t,e)=>(n>0||t>0)&&(!e||!e.shadowRoot);function nl(n,t){let e=n.touches,i=e&&e.length?e[0]:n,{offsetX:s,offsetY:o}=i,r=!1,a,c;if(el(s,o,n.target))a=s,c=o;else{let l=t.getBoundingClientRect();a=i.clientX-l.left,c=i.clientY-l.top,r=!0}return{x:a,y:c,box:r}}function It(n,t){if("native"in n)return n;let{canvas:e,currentDevicePixelRatio:i}=t,s=xn(e),o=s.boxSizing==="border-box",r=Bt(s,"padding"),a=Bt(s,"border","width"),{x:c,y:l,box:h}=nl(n,e),u=r.left+(h&&a.left),d=r.top+(h&&a.top),{width:f,height:m}=t;return o&&(f-=r.width+a.width,m-=r.height+a.height),{x:Math.round((c-u)/f*e.width/i),y:Math.round((l-d)/m*e.height/i)}}function il(n,t,e){let i,s;if(t===void 0||e===void 0){let o=bn(n);if(!o)t=n.clientWidth,e=n.clientHeight;else{let r=o.getBoundingClientRect(),a=xn(o),c=Bt(a,"border","width"),l=Bt(a,"padding");t=r.width-l.width-c.width,e=r.height-l.height-c.height,i=cn(a.maxWidth,o,"clientWidth"),s=cn(a.maxHeight,o,"clientHeight")}}return{width:t,height:e,maxWidth:i||rn,maxHeight:s||rn}}var sn=n=>Math.round(n*10)/10;function Oo(n,t,e,i){let s=xn(n),o=Bt(s,"margin"),r=cn(s.maxWidth,n,"clientWidth")||rn,a=cn(s.maxHeight,n,"clientHeight")||rn,c=il(n,t,e),{width:l,height:h}=c;if(s.boxSizing==="content-box"){let d=Bt(s,"border","width"),f=Bt(s,"padding");l-=f.width+d.width,h-=f.height+d.height}return l=Math.max(0,l-o.width),h=Math.max(0,i?l/i:h-o.height),l=sn(Math.min(l,r,c.maxWidth)),h=sn(Math.min(h,a,c.maxHeight)),l&&!h&&(h=sn(l/2)),(t!==void 0||e!==void 0)&&i&&c.height&&h>c.height&&(h=c.height,l=sn(Math.floor(h*i))),{width:l,height:h}}function cs(n,t,e){let i=t||1,s=Math.floor(n.height*i),o=Math.floor(n.width*i);n.height=Math.floor(n.height),n.width=Math.floor(n.width);let r=n.canvas;return r.style&&(e||!r.style.height&&!r.style.width)&&(r.style.height=`${n.height}px`,r.style.width=`${n.width}px`),n.currentDevicePixelRatio!==i||r.height!==s||r.width!==o?(n.currentDevicePixelRatio=i,r.height=s,r.width=o,n.ctx.setTransform(i,0,0,i,0,0),!0):!1}var So=function(){let n=!1;try{let t={get passive(){return n=!0,!1}};mn()&&(window.addEventListener("test",null,t),window.removeEventListener("test",null,t))}catch{}return n}();function ls(n,t){let e=Jc(n,t),i=e&&e.match(/^(\d+)(\.\d+)?px$/);return i?+i[1]:void 0}function Tt(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:n.y+e*(t.y-n.y)}}function To(n,t,e,i){return{x:n.x+e*(t.x-n.x),y:i==="middle"?e<.5?n.y:t.y:i==="after"?e<1?n.y:t.y:e>0?t.y:n.y}}function Co(n,t,e,i){let s={x:n.cp2x,y:n.cp2y},o={x:t.cp1x,y:t.cp1y},r=Tt(n,s,e),a=Tt(s,o,e),c=Tt(o,t,e),l=Tt(r,a,e),h=Tt(a,c,e);return Tt(l,h,e)}var sl=function(n,t){return{x(e){return n+n+t-e},setWidth(e){t=e},textAlign(e){return e==="center"?e:e==="right"?"left":"right"},xPlus(e,i){return e-i},leftForLtr(e,i){return e-i}}},ol=function(){return{x(n){return n},setWidth(n){},textAlign(n){return n},xPlus(n,t){return n+t},leftForLtr(n,t){return n}}};function yn(n,t,e){return n?sl(t,e):ol()}function Ao(n,t){let e,i;(t==="ltr"||t==="rtl")&&(e=n.canvas.style,i=[e.getPropertyValue("direction"),e.getPropertyPriority("direction")],e.setProperty("direction",t,"important"),n.prevTextDirection=i)}function Lo(n,t){t!==void 0&&(delete n.prevTextDirection,n.canvas.style.setProperty("direction",t[0],t[1]))}function Io(n){return n==="angle"?{between:Ae,compare:Mc,normalize:ot}:{between:io,compare:(t,e)=>t-e,normalize:t=>t}}function $s({start:n,end:t,count:e,loop:i,style:s}){return{start:n%e,end:t%e,loop:i&&(t-n+1)%e===0,style:s}}function rl(n,t,e){let{property:i,start:s,end:o}=e,{between:r,normalize:a}=Io(i),c=t.length,{start:l,end:h,loop:u}=n,d,f;if(u){for(l+=c,h+=c,d=0,f=c;d<f&&r(a(t[l%c][i]),s,o);++d)l--,h--;l%=c,h%=c}return h<l&&(h+=c),{start:l,end:h,loop:u,style:n.style}}function Eo(n,t,e){if(!e)return[n];let{property:i,start:s,end:o}=e,r=t.length,{compare:a,between:c,normalize:l}=Io(i),{start:h,end:u,loop:d,style:f}=rl(n,t,e),m=[],p=!1,g=null,b,_,w,M=()=>c(s,w,b)&&a(s,w)!==0,y=()=>a(o,b)===0||c(o,w,b),S=()=>p||M(),D=()=>!p||y();for(let v=h,C=h;v<=u;++v)_=t[v%r],!_.skip&&(b=l(_[i]),b!==w&&(p=c(b,s,o),g===null&&S()&&(g=a(b,s)===0?v:C),g!==null&&D()&&(m.push($s({start:g,end:v,loop:d,count:r,style:f})),g=null),C=v,w=b));return g!==null&&m.push($s({start:g,end:u,loop:d,count:r,style:f})),m}function Ro(n,t){let e=[],i=n.segments;for(let s=0;s<i.length;s++){let o=Eo(i[s],n.points,t);o.length&&e.push(...o)}return e}function al(n,t,e,i){let s=0,o=t-1;if(e&&!i)for(;s<t&&!n[s].skip;)s++;for(;s<t&&n[s].skip;)s++;for(s%=t,e&&(o+=s);o>s&&n[o%t].skip;)o--;return o%=t,{start:s,end:o}}function cl(n,t,e,i){let s=n.length,o=[],r=t,a=n[t],c;for(c=t+1;c<=e;++c){let l=n[c%s];l.skip||l.stop?a.skip||(i=!1,o.push({start:t%s,end:(c-1)%s,loop:i}),t=r=l.stop?c:null):(r=c,a.skip&&(t=c)),a=l}return r!==null&&o.push({start:t%s,end:r%s,loop:i}),o}function Fo(n,t){let e=n.points,i=n.options.spanGaps,s=e.length;if(!s)return[];let o=!!n._loop,{start:r,end:a}=al(e,s,o,i);if(i===!0)return Xs(n,[{start:r,end:a,loop:o}],e,t);let c=a<r?a+s:a,l=!!n._fullLoop&&r===0&&a===s-1;return Xs(n,cl(e,r,c,l),e,t)}function Xs(n,t,e,i){return!i||!i.setContext||!e?t:ll(n,t,e,i)}function ll(n,t,e,i){let s=n._chart.getContext(),o=Us(n.options),{_datasetIndex:r,options:{spanGaps:a}}=n,c=e.length,l=[],h=o,u=t[0].start,d=u;function f(m,p,g,b){let _=a?-1:1;if(m!==p){for(m+=c;e[m%c].skip;)m-=_;for(;e[p%c].skip;)p+=_;m%c!==p%c&&(l.push({start:m%c,end:p%c,loop:g,style:b}),h=b,u=p%c)}}for(let m of t){u=a?u:m.start;let p=e[u%c],g;for(d=u+1;d<=m.end;d++){let b=e[d%c];g=Us(i.setContext(_t(s,{type:"segment",p0:p,p1:b,p0DataIndex:(d-1)%c,p1DataIndex:d%c,datasetIndex:r}))),hl(g,h)&&f(u,d-1,m.loop,h),p=b,h=g}u<d-1&&f(u,d-1,m.loop,h)}return l}function Us(n){return{backgroundColor:n.backgroundColor,borderCapStyle:n.borderCapStyle,borderDash:n.borderDash,borderDashOffset:n.borderDashOffset,borderJoinStyle:n.borderJoinStyle,borderWidth:n.borderWidth,borderColor:n.borderColor}}function hl(n,t){if(!t)return!1;let e=[],i=function(s,o){return Ji(o)?(e.includes(o)||e.push(o),e.indexOf(o)):o};return JSON.stringify(n,i)!==JSON.stringify(t,i)}var gs=class{constructor(){this._request=null,this._charts=new Map,this._running=!1,this._lastDate=void 0}_notify(t,e,i,s){let o=e.listeners[s],r=e.duration;o.forEach(a=>a({chart:t,initial:e.initial,numSteps:r,currentStep:Math.min(i-e.start,r)}))}_refresh(){this._request||(this._running=!0,this._request=Gi.call(window,()=>{this._update(),this._request=null,this._running&&this._refresh()}))}_update(t=Date.now()){let e=0;this._charts.forEach((i,s)=>{if(!i.running||!i.items.length)return;let o=i.items,r=o.length-1,a=!1,c;for(;r>=0;--r)c=o[r],c._active?(c._total>i.duration&&(i.duration=c._total),c.tick(t),a=!0):(o[r]=o[o.length-1],o.pop());a&&(s.draw(),this._notify(s,i,t,"progress")),o.length||(i.running=!1,this._notify(s,i,t,"complete"),i.initial=!1),e+=o.length}),this._lastDate=t,e===0&&(this._running=!1)}_getAnims(t){let e=this._charts,i=e.get(t);return i||(i={running:!1,initial:!0,items:[],listeners:{complete:[],progress:[]}},e.set(t,i)),i}listen(t,e,i){this._getAnims(t).listeners[e].push(i)}add(t,e){!e||!e.length||this._getAnims(t).items.push(...e)}has(t){return this._getAnims(t).items.length>0}start(t){let e=this._charts.get(t);e&&(e.running=!0,e.start=Date.now(),e.duration=e.items.reduce((i,s)=>Math.max(i,s._duration),0),this._refresh())}running(t){if(!this._running)return!1;let e=this._charts.get(t);return!(!e||!e.running||!e.items.length)}stop(t){let e=this._charts.get(t);if(!e||!e.items.length)return;let i=e.items,s=i.length-1;for(;s>=0;--s)i[s].cancel();e.items=[],this._notify(t,e,Date.now(),"complete")}remove(t){return this._charts.delete(t)}},wt=new gs,No="transparent",ul={boolean(n,t,e){return e>.5?t:n},color(n,t,e){let i=ts(n||No),s=i.valid&&ts(t||No);return s&&s.valid?s.mix(i,e).hexString():t},number(n,t,e){return n+(t-n)*e}},ms=class{constructor(t,e,i,s){let o=e[i];s=Ee([t.to,s,o,t.from]);let r=Ee([t.from,o,s]);this._active=!0,this._fn=t.fn||ul[t.type||typeof r],this._easing=Jt[t.easing]||Jt.linear,this._start=Math.floor(Date.now()+(t.delay||0)),this._duration=this._total=Math.floor(t.duration),this._loop=!!t.loop,this._target=e,this._prop=i,this._from=r,this._to=s,this._promises=void 0}active(){return this._active}update(t,e,i){if(this._active){this._notify(!1);let s=this._target[this._prop],o=i-this._start,r=this._duration-o;this._start=i,this._duration=Math.floor(Math.max(r,t.duration)),this._total+=o,this._loop=!!t.loop,this._to=Ee([t.to,e,s,t.from]),this._from=Ee([t.from,s,e])}}cancel(){this._active&&(this.tick(Date.now()),this._active=!1,this._notify(!1))}tick(t){let e=t-this._start,i=this._duration,s=this._prop,o=this._from,r=this._loop,a=this._to,c;if(this._active=o!==a&&(r||e<i),!this._active){this._target[s]=a,this._notify(!0);return}if(e<0){this._target[s]=o;return}c=e/i%2,c=r&&c>1?2-c:c,c=this._easing(Math.min(1,Math.max(0,c))),this._target[s]=this._fn(o,a,c)}wait(){let t=this._promises||(this._promises=[]);return new Promise((e,i)=>{t.push({res:e,rej:i})})}_notify(t){let e=t?"res":"rej",i=this._promises||[];for(let s=0;s<i.length;s++)i[s][e]()}},Tn=class{constructor(t,e){this._chart=t,this._properties=new Map,this.configure(e)}configure(t){if(!L(t))return;let e=Object.keys(H.animation),i=this._properties;Object.getOwnPropertyNames(t).forEach(s=>{let o=t[s];if(!L(o))return;let r={};for(let a of e)r[a]=o[a];(W(o.properties)&&o.properties||[s]).forEach(a=>{(a===s||!i.has(a))&&i.set(a,r)})})}_animateOptions(t,e){let i=e.options,s=fl(t,i);if(!s)return[];let o=this._createAnimations(s,i);return i.$shared&&dl(t.options.$animations,i).then(()=>{t.options=i},()=>{}),o}_createAnimations(t,e){let i=this._properties,s=[],o=t.$animations||(t.$animations={}),r=Object.keys(e),a=Date.now(),c;for(c=r.length-1;c>=0;--c){let l=r[c];if(l.charAt(0)==="$")continue;if(l==="options"){s.push(...this._animateOptions(t,e));continue}let h=e[l],u=o[l],d=i.get(l);if(u)if(d&&u.active()){u.update(d,h,a);continue}else u.cancel();if(!d||!d.duration){t[l]=h;continue}o[l]=u=new ms(d,t,l,h),s.push(u)}return s}update(t,e){if(this._properties.size===0){Object.assign(t,e);return}let i=this._createAnimations(t,e);if(i.length)return wt.add(this._chart,i),!0}};function dl(n,t){let e=[],i=Object.keys(t);for(let s=0;s<i.length;s++){let o=n[i[s]];o&&o.active()&&e.push(o.wait())}return Promise.all(e)}function fl(n,t){if(!t)return;let e=n.options;if(!e){n.options=t;return}return e.$shared&&(n.options=e=Object.assign({},e,{$shared:!1,$animations:{}})),e}function Wo(n,t){let e=n&&n.options||{},i=e.reverse,s=e.min===void 0?t:0,o=e.max===void 0?t:0;return{start:i?o:s,end:i?s:o}}function pl(n,t,e){if(e===!1)return!1;let i=Wo(n,e),s=Wo(t,e);return{top:s.end,right:i.end,bottom:s.start,left:i.start}}function gl(n){let t,e,i,s;return L(n)?(t=n.top,e=n.right,i=n.bottom,s=n.left):t=e=i=s=n,{top:t,right:e,bottom:i,left:s,disabled:n===!1}}function Tr(n,t){let e=[],i=n._getSortedDatasetMetas(t),s,o;for(s=0,o=i.length;s<o;++s)e.push(i[s].index);return e}function zo(n,t,e,i={}){let s=n.keys,o=i.mode==="single",r,a,c,l;if(t!==null){for(r=0,a=s.length;r<a;++r){if(c=+s[r],c===e){if(i.all)continue;break}l=n.values[c],$(l)&&(o||t===0||Ht(t)===Ht(l))&&(t+=l)}return t}}function ml(n){let t=Object.keys(n),e=new Array(t.length),i,s,o;for(i=0,s=t.length;i<s;++i)o=t[i],e[i]={x:o,y:n[o]};return e}function Bo(n,t){let e=n&&n.options.stacked;return e||e===void 0&&t.stack!==void 0}function bl(n,t,e){return`${n.id}.${t.id}.${e.stack||e.type}`}function xl(n){let{min:t,max:e,minDefined:i,maxDefined:s}=n.getUserBounds();return{min:i?t:Number.NEGATIVE_INFINITY,max:s?e:Number.POSITIVE_INFINITY}}function yl(n,t,e){let i=n[t]||(n[t]={});return i[e]||(i[e]={})}function Ho(n,t,e,i){for(let s of t.getMatchingVisibleMetas(i).reverse()){let o=n[s.index];if(e&&o>0||!e&&o<0)return s.index}return null}function Yo(n,t){let{chart:e,_cachedMeta:i}=n,s=e._stacks||(e._stacks={}),{iScale:o,vScale:r,index:a}=i,c=o.axis,l=r.axis,h=bl(o,r,i),u=t.length,d;for(let f=0;f<u;++f){let m=t[f],{[c]:p,[l]:g}=m,b=m._stacks||(m._stacks={});d=b[l]=yl(s,h,p),d[a]=g,d._top=Ho(d,r,!0,i.type),d._bottom=Ho(d,r,!1,i.type);let _=d._visualValues||(d._visualValues={});_[a]=g}}function hs(n,t){let e=n.scales;return Object.keys(e).filter(i=>e[i].axis===t).shift()}function _l(n,t){return _t(n,{active:!1,dataset:void 0,datasetIndex:t,index:t,mode:"default",type:"dataset"})}function wl(n,t,e){return _t(n,{active:!1,dataIndex:t,parsed:void 0,raw:void 0,element:e,index:t,mode:"default",type:"data"})}function Re(n,t){let e=n.controller.index,i=n.vScale&&n.vScale.axis;if(i){t=t||n._parsed;for(let s of t){let o=s._stacks;if(!o||o[i]===void 0||o[i][e]===void 0)return;delete o[i][e],o[i]._visualValues!==void 0&&o[i]._visualValues[e]!==void 0&&delete o[i]._visualValues[e]}}}var us=n=>n==="reset"||n==="none",Vo=(n,t)=>t?n:Object.assign({},n),Ml=(n,t,e)=>n&&!t.hidden&&t._stacked&&{keys:Tr(e,!0),values:null},ce=class{static defaults={};static datasetElementType=null;static dataElementType=null;constructor(t,e){this.chart=t,this._ctx=t.ctx,this.index=e,this._cachedDataOpts={},this._cachedMeta=this.getMeta(),this._type=this._cachedMeta.type,this.options=void 0,this._parsing=!1,this._data=void 0,this._objectData=void 0,this._sharedOptions=void 0,this._drawStart=void 0,this._drawCount=void 0,this.enableOptionSharing=!1,this.supportsDecimation=!1,this.$context=void 0,this._syncList=[],this.datasetElementType=new.target.datasetElementType,this.dataElementType=new.target.dataElementType,this.initialize()}initialize(){let t=this._cachedMeta;this.configure(),this.linkScales(),t._stacked=Bo(t.vScale,t),this.addElements(),this.options.fill&&!this.chart.isPluginEnabled("filler")&&console.warn("Tried to use the 'fill' option without the 'Filler' plugin enabled. Please import and register the 'Filler' plugin and make sure it is not disabled in the options")}updateIndex(t){this.index!==t&&Re(this._cachedMeta),this.index=t}linkScales(){let t=this.chart,e=this._cachedMeta,i=this.getDataset(),s=(u,d,f,m)=>u==="x"?d:u==="r"?m:f,o=e.xAxisID=R(i.xAxisID,hs(t,"x")),r=e.yAxisID=R(i.yAxisID,hs(t,"y")),a=e.rAxisID=R(i.rAxisID,hs(t,"r")),c=e.indexAxis,l=e.iAxisID=s(c,o,r,a),h=e.vAxisID=s(c,r,o,a);e.xScale=this.getScaleForId(o),e.yScale=this.getScaleForId(r),e.rScale=this.getScaleForId(a),e.iScale=this.getScaleForId(l),e.vScale=this.getScaleForId(h)}getDataset(){return this.chart.data.datasets[this.index]}getMeta(){return this.chart.getDatasetMeta(this.index)}getScaleForId(t){return this.chart.scales[t]}_getOtherScale(t){let e=this._cachedMeta;return t===e.iScale?e.vScale:e.iScale}reset(){this._update("reset")}_destroy(){let t=this._cachedMeta;this._data&&Qi(this._data,this),t._stacked&&Re(t)}_dataCheck(){let t=this.getDataset(),e=t.data||(t.data=[]),i=this._data;if(L(e))this._data=ml(e);else if(i!==e){if(i){Qi(i,this);let s=this._cachedMeta;Re(s),s._parsed=[]}e&&Object.isExtensible(e)&&ao(e,this),this._syncList=[],this._data=e}}addElements(){let t=this._cachedMeta;this._dataCheck(),this.datasetElementType&&(t.dataset=new this.datasetElementType)}buildOrUpdateElements(t){let e=this._cachedMeta,i=this.getDataset(),s=!1;this._dataCheck();let o=e._stacked;e._stacked=Bo(e.vScale,e),e.stack!==i.stack&&(s=!0,Re(e),e.stack=i.stack),this._resyncElements(t),(s||o!==e._stacked)&&Yo(this,e._parsed)}configure(){let t=this.chart.config,e=t.datasetScopeKeys(this._type),i=t.getOptionScopes(this.getDataset(),e,!0);this.options=t.createResolver(i,this.getContext()),this._parsing=this.options.parsing,this._cachedDataOpts={}}parse(t,e){let{_cachedMeta:i,_data:s}=this,{iScale:o,_stacked:r}=i,a=o.axis,c=t===0&&e===s.length?!0:i._sorted,l=t>0&&i._parsed[t-1],h,u,d;if(this._parsing===!1)i._parsed=s,i._sorted=!0,d=s;else{W(s[t])?d=this.parseArrayData(i,s,t,e):L(s[t])?d=this.parseObjectData(i,s,t,e):d=this.parsePrimitiveData(i,s,t,e);let f=()=>u[a]===null||l&&u[a]<l[a];for(h=0;h<e;++h)i._parsed[h+t]=u=d[h],c&&(f()&&(c=!1),l=u);i._sorted=c}r&&Yo(this,d)}parsePrimitiveData(t,e,i,s){let{iScale:o,vScale:r}=t,a=o.axis,c=r.axis,l=o.getLabels(),h=o===r,u=new Array(s),d,f,m;for(d=0,f=s;d<f;++d)m=d+i,u[d]={[a]:h||o.parse(l[m],m),[c]:r.parse(e[m],m)};return u}parseArrayData(t,e,i,s){let{xScale:o,yScale:r}=t,a=new Array(s),c,l,h,u;for(c=0,l=s;c<l;++c)h=c+i,u=e[h],a[c]={x:o.parse(u[0],h),y:r.parse(u[1],h)};return a}parseObjectData(t,e,i,s){let{xScale:o,yScale:r}=t,{xAxisKey:a="x",yAxisKey:c="y"}=this._parsing,l=new Array(s),h,u,d,f;for(h=0,u=s;h<u;++h)d=h+i,f=e[d],l[h]={x:o.parse(Vt(f,a),d),y:r.parse(Vt(f,c),d)};return l}getParsed(t){return this._cachedMeta._parsed[t]}getDataElement(t){return this._cachedMeta.data[t]}applyStack(t,e,i){let s=this.chart,o=this._cachedMeta,r=e[t.axis],a={keys:Tr(s,!0),values:e._stacks[t.axis]._visualValues};return zo(a,r,o.index,{mode:i})}updateRangeFromParsed(t,e,i,s){let o=i[e.axis],r=o===null?NaN:o,a=s&&i._stacks[e.axis];s&&a&&(s.values=a,r=zo(s,o,this._cachedMeta.index)),t.min=Math.min(t.min,r),t.max=Math.max(t.max,r)}getMinMax(t,e){let i=this._cachedMeta,s=i._parsed,o=i._sorted&&t===i.iScale,r=s.length,a=this._getOtherScale(t),c=Ml(e,i,this.chart),l={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY},{min:h,max:u}=xl(a),d,f;function m(){f=s[d];let p=f[a.axis];return!$(f[t.axis])||h>p||u<p}for(d=0;d<r&&!(!m()&&(this.updateRangeFromParsed(l,t,f,c),o));++d);if(o){for(d=r-1;d>=0;--d)if(!m()){this.updateRangeFromParsed(l,t,f,c);break}}return l}getAllParsedValues(t){let e=this._cachedMeta._parsed,i=[],s,o,r;for(s=0,o=e.length;s<o;++s)r=e[s][t.axis],$(r)&&i.push(r);return i}getMaxOverflow(){return!1}getLabelAndValue(t){let e=this._cachedMeta,i=e.iScale,s=e.vScale,o=this.getParsed(t);return{label:i?""+i.getLabelForValue(o[i.axis]):"",value:s?""+s.getLabelForValue(o[s.axis]):""}}_update(t){let e=this._cachedMeta;this.update(t||"default"),e._clip=gl(R(this.options.clip,pl(e.xScale,e.yScale,this.getMaxOverflow())))}update(t){}draw(){let t=this._ctx,e=this.chart,i=this._cachedMeta,s=i.data||[],o=e.chartArea,r=[],a=this._drawStart||0,c=this._drawCount||s.length-a,l=this.options.drawActiveElementsOnTop,h;for(i.dataset&&i.dataset.draw(t,o,a,c),h=a;h<a+c;++h){let u=s[h];u.hidden||(u.active&&l?r.push(u):u.draw(t,o))}for(h=0;h<r.length;++h)r[h].draw(t,o)}getStyle(t,e){let i=e?"active":"default";return t===void 0&&this._cachedMeta.dataset?this.resolveDatasetElementOptions(i):this.resolveDataElementOptions(t||0,i)}getContext(t,e,i){let s=this.getDataset(),o;if(t>=0&&t<this._cachedMeta.data.length){let r=this._cachedMeta.data[t];o=r.$context||(r.$context=wl(this.getContext(),t,r)),o.parsed=this.getParsed(t),o.raw=s.data[t],o.index=o.dataIndex=t}else o=this.$context||(this.$context=_l(this.chart.getContext(),this.index)),o.dataset=s,o.index=o.datasetIndex=this.index;return o.active=!!e,o.mode=i,o}resolveDatasetElementOptions(t){return this._resolveElementOptions(this.datasetElementType.id,t)}resolveDataElementOptions(t,e){return this._resolveElementOptions(this.dataElementType.id,e,t)}_resolveElementOptions(t,e="default",i){let s=e==="active",o=this._cachedDataOpts,r=t+"-"+e,a=o[r],c=this.enableOptionSharing&&Ce(i);if(a)return Vo(a,c);let l=this.chart.config,h=l.datasetElementScopeKeys(this._type,t),u=s?[`${t}Hover`,"hover",t,""]:[t,""],d=l.getOptionScopes(this.getDataset(),h),f=Object.keys(H.elements[t]),m=()=>this.getContext(i,s,e),p=l.resolveNamedOptions(d,f,m,u);return p.$shared&&(p.$shared=c,o[r]=Object.freeze(Vo(p,c))),p}_resolveAnimations(t,e,i){let s=this.chart,o=this._cachedDataOpts,r=`animation-${e}`,a=o[r];if(a)return a;let c;if(s.options.animation!==!1){let h=this.chart.config,u=h.datasetAnimationScopeKeys(this._type,e),d=h.getOptionScopes(this.getDataset(),u);c=h.createResolver(d,this.getContext(t,i,e))}let l=new Tn(s,c&&c.animations);return c&&c._cacheable&&(o[r]=Object.freeze(l)),l}getSharedOptions(t){if(t.$shared)return this._sharedOptions||(this._sharedOptions=Object.assign({},t))}includeOptions(t,e){return!e||us(t)||this.chart._animationsDisabled}_getSharedOptions(t,e){let i=this.resolveDataElementOptions(t,e),s=this._sharedOptions,o=this.getSharedOptions(i),r=this.includeOptions(e,o)||o!==s;return this.updateSharedOptions(o,e,i),{sharedOptions:o,includeOptions:r}}updateElement(t,e,i,s){us(s)?Object.assign(t,i):this._resolveAnimations(e,s).update(t,i)}updateSharedOptions(t,e,i){t&&!us(e)&&this._resolveAnimations(void 0,e).update(t,i)}_setStyle(t,e,i,s){t.active=s;let o=this.getStyle(e,s);this._resolveAnimations(e,i,s).update(t,{options:!s&&this.getSharedOptions(o)||o})}removeHoverStyle(t,e,i){this._setStyle(t,i,"active",!1)}setHoverStyle(t,e,i){this._setStyle(t,i,"active",!0)}_removeDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!1)}_setDatasetHoverStyle(){let t=this._cachedMeta.dataset;t&&this._setStyle(t,void 0,"active",!0)}_resyncElements(t){let e=this._data,i=this._cachedMeta.data;for(let[a,c,l]of this._syncList)this[a](c,l);this._syncList=[];let s=i.length,o=e.length,r=Math.min(o,s);r&&this.parse(0,r),o>s?this._insertElements(s,o-s,t):o<s&&this._removeElements(o,s-o)}_insertElements(t,e,i=!0){let s=this._cachedMeta,o=s.data,r=t+e,a,c=l=>{for(l.length+=e,a=l.length-1;a>=r;a--)l[a]=l[a-e]};for(c(o),a=t;a<r;++a)o[a]=new this.dataElementType;this._parsing&&c(s._parsed),this.parse(t,e),i&&this.updateElements(o,t,e,"reset")}updateElements(t,e,i,s){}_removeElements(t,e){let i=this._cachedMeta;if(this._parsing){let s=i._parsed.splice(t,e);i._stacked&&Re(i,s)}i.data.splice(t,e)}_sync(t){if(this._parsing)this._syncList.push(t);else{let[e,i,s]=t;this[e](i,s)}this.chart._dataChanges.push([this.index,...t])}_onDataPush(){let t=arguments.length;this._sync(["_insertElements",this.getDataset().data.length-t,t])}_onDataPop(){this._sync(["_removeElements",this._cachedMeta.data.length-1,1])}_onDataShift(){this._sync(["_removeElements",0,1])}_onDataSplice(t,e){e&&this._sync(["_removeElements",t,e]);let i=arguments.length-2;i&&this._sync(["_insertElements",t,i])}_onDataUnshift(){this._sync(["_insertElements",0,arguments.length])}};function kl(n,t,e){let i=1,s=1,o=0,r=0;if(t<X){let a=n,c=a+t,l=Math.cos(a),h=Math.sin(a),u=Math.cos(c),d=Math.sin(c),f=(w,M,y)=>Ae(w,a,c,!0)?1:Math.max(M,M*e,y,y*e),m=(w,M,y)=>Ae(w,a,c,!0)?-1:Math.min(M,M*e,y,y*e),p=f(0,l,u),g=f(G,h,d),b=m(B,l,u),_=m(B+G,h,d);i=(p-b)/2,s=(g-_)/2,o=-(p+b)/2,r=-(g+_)/2}return{ratioX:i,ratioY:s,offsetX:o,offsetY:r}}var bs=class extends ce{static id="doughnut";static defaults={datasetElementType:!1,dataElementType:"arc",animation:{animateRotate:!0,animateScale:!1},animations:{numbers:{type:"number",properties:["circumference","endAngle","innerRadius","outerRadius","startAngle","x","y","offset","borderWidth","spacing"]}},cutout:"50%",rotation:0,circumference:360,radius:"100%",spacing:0,indexAxis:"r"};static descriptors={_scriptable:t=>t!=="spacing",_indexable:t=>t!=="spacing"&&!t.startsWith("borderDash")&&!t.startsWith("hoverBorderDash")};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{let c=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}}};constructor(t,e){super(t,e),this.enableOptionSharing=!0,this.innerRadius=void 0,this.outerRadius=void 0,this.offsetX=void 0,this.offsetY=void 0}linkScales(){}parse(t,e){let i=this.getDataset().data,s=this._cachedMeta;if(this._parsing===!1)s._parsed=i;else{let o=c=>+i[c];if(L(i[t])){let{key:c="value"}=this._parsing;o=l=>+Vt(i[l],c)}let r,a;for(r=t,a=t+e;r<a;++r)s._parsed[r]=o(r)}}_getRotation(){return at(this.options.rotation-90)}_getCircumference(){return at(this.options.circumference)}_getRotationExtents(){let t=X,e=-X;for(let i=0;i<this.chart.data.datasets.length;++i)if(this.chart.isDatasetVisible(i)&&this.chart.getDatasetMeta(i).type===this._type){let s=this.chart.getDatasetMeta(i).controller,o=s._getRotation(),r=s._getCircumference();t=Math.min(t,o),e=Math.max(e,o+r)}return{rotation:t,circumference:e-t}}update(t){let e=this.chart,{chartArea:i}=e,s=this._cachedMeta,o=s.data,r=this.getMaxBorderWidth()+this.getMaxOffset(o)+this.options.spacing,a=Math.max((Math.min(i.width,i.height)-r)/2,0),c=Math.min(Gs(this.options.cutout,a),1),l=this._getRingWeight(this.index),{circumference:h,rotation:u}=this._getRotationExtents(),{ratioX:d,ratioY:f,offsetX:m,offsetY:p}=kl(u,h,c),g=(i.width-r)/d,b=(i.height-r)/f,_=Math.max(Math.min(g,b)/2,0),w=ji(this.options.radius,_),M=Math.max(w*c,0),y=(w-M)/this._getVisibleDatasetWeightTotal();this.offsetX=m*w,this.offsetY=p*w,s.total=this.calculateTotal(),this.outerRadius=w-y*this._getRingWeightOffset(this.index),this.innerRadius=Math.max(this.outerRadius-y*l,0),this.updateElements(o,0,o.length,t)}_circumference(t,e){let i=this.options,s=this._cachedMeta,o=this._getCircumference();return e&&i.animation.animateRotate||!this.chart.getDataVisibility(t)||s._parsed[t]===null||s.data[t].hidden?0:this.calculateCircumference(s._parsed[t]*o/X)}updateElements(t,e,i,s){let o=s==="reset",r=this.chart,a=r.chartArea,l=r.options.animation,h=(a.left+a.right)/2,u=(a.top+a.bottom)/2,d=o&&l.animateScale,f=d?0:this.innerRadius,m=d?0:this.outerRadius,{sharedOptions:p,includeOptions:g}=this._getSharedOptions(e,s),b=this._getRotation(),_;for(_=0;_<e;++_)b+=this._circumference(_,o);for(_=e;_<e+i;++_){let w=this._circumference(_,o),M=t[_],y={x:h+this.offsetX,y:u+this.offsetY,startAngle:b,endAngle:b+w,circumference:w,outerRadius:m,innerRadius:f};g&&(y.options=p||this.resolveDataElementOptions(_,M.active?"active":s)),b+=w,this.updateElement(M,_,y,s)}}calculateTotal(){let t=this._cachedMeta,e=t.data,i=0,s;for(s=0;s<e.length;s++){let o=t._parsed[s];o!==null&&!isNaN(o)&&this.chart.getDataVisibility(s)&&!e[s].hidden&&(i+=Math.abs(o))}return i}calculateCircumference(t){let e=this._cachedMeta.total;return e>0&&!isNaN(t)?X*(Math.abs(t)/e):0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=oe(e._parsed[t],i.options.locale);return{label:s[t]||"",value:o}}getMaxBorderWidth(t){let e=0,i=this.chart,s,o,r,a,c;if(!t){for(s=0,o=i.data.datasets.length;s<o;++s)if(i.isDatasetVisible(s)){r=i.getDatasetMeta(s),t=r.data,a=r.controller;break}}if(!t)return 0;for(s=0,o=t.length;s<o;++s)c=a.resolveDataElementOptions(s),c.borderAlign!=="inner"&&(e=Math.max(e,c.borderWidth||0,c.hoverBorderWidth||0));return e}getMaxOffset(t){let e=0;for(let i=0,s=t.length;i<s;++i){let o=this.resolveDataElementOptions(i);e=Math.max(e,o.offset||0,o.hoverOffset||0)}return e}_getRingWeightOffset(t){let e=0;for(let i=0;i<t;++i)this.chart.isDatasetVisible(i)&&(e+=this._getRingWeight(i));return e}_getRingWeight(t){return Math.max(R(this.chart.data.datasets[t].weight,1),0)}_getVisibleDatasetWeightTotal(){return this._getRingWeightOffset(this.chart.data.datasets.length)||1}},Cn=class extends ce{static id="line";static defaults={datasetElementType:"line",dataElementType:"point",showLine:!0,spanGaps:!1};static overrides={scales:{_index_:{type:"category"},_value_:{type:"linear"}}};initialize(){this.enableOptionSharing=!0,this.supportsDecimation=!0,super.initialize()}update(t){let e=this._cachedMeta,{dataset:i,data:s=[],_dataset:o}=e,r=this.chart._animationsDisabled,{start:a,count:c}=uo(e,s,r);this._drawStart=a,this._drawCount=c,fo(e)&&(a=0,c=s.length),i._chart=this.chart,i._datasetIndex=this.index,i._decimated=!!o._decimated,i.points=s;let l=this.resolveDatasetElementOptions(t);this.options.showLine||(l.borderWidth=0),l.segment=this.options.segment,this.updateElement(i,void 0,{animated:!r,options:l},t),this.updateElements(s,a,c,t)}updateElements(t,e,i,s){let o=s==="reset",{iScale:r,vScale:a,_stacked:c,_dataset:l}=this._cachedMeta,{sharedOptions:h,includeOptions:u}=this._getSharedOptions(e,s),d=r.axis,f=a.axis,{spanGaps:m,segment:p}=this.options,g=se(m)?m:Number.POSITIVE_INFINITY,b=this.chart._animationsDisabled||o||s==="none",_=e+i,w=t.length,M=e>0&&this.getParsed(e-1);for(let y=0;y<w;++y){let S=t[y],D=b?S:{};if(y<e||y>=_){D.skip=!0;continue}let v=this.getParsed(y),C=N(v[f]),Y=D[d]=r.getPixelForValue(v[d],y),V=D[f]=o||C?a.getBasePixel():a.getPixelForValue(c?this.applyStack(a,v,c):v[f],y);D.skip=isNaN(Y)||isNaN(V)||C,D.stop=y>0&&Math.abs(v[d]-M[d])>g,p&&(D.parsed=v,D.raw=l.data[y]),u&&(D.options=h||this.resolveDataElementOptions(y,S.active?"active":s)),b||this.updateElement(S,y,D,s),M=v}}getMaxOverflow(){let t=this._cachedMeta,e=t.dataset,i=e.options&&e.options.borderWidth||0,s=t.data||[];if(!s.length)return i;let o=s[0].size(this.resolveDataElementOptions(0)),r=s[s.length-1].size(this.resolveDataElementOptions(s.length-1));return Math.max(i,o,r)/2}draw(){let t=this._cachedMeta;t.dataset.updateControlPoints(this.chart.chartArea,t.iScale.axis),super.draw()}},xs=class extends ce{static id="polarArea";static defaults={dataElementType:"arc",animation:{animateRotate:!0,animateScale:!0},animations:{numbers:{type:"number",properties:["x","y","startAngle","endAngle","innerRadius","outerRadius"]}},indexAxis:"r",startAngle:0};static overrides={aspectRatio:1,plugins:{legend:{labels:{generateLabels(t){let e=t.data;if(e.labels.length&&e.datasets.length){let{labels:{pointStyle:i,color:s}}=t.legend.options;return e.labels.map((o,r)=>{let c=t.getDatasetMeta(0).controller.getStyle(r);return{text:o,fillStyle:c.backgroundColor,strokeStyle:c.borderColor,fontColor:s,lineWidth:c.borderWidth,pointStyle:i,hidden:!t.getDataVisibility(r),index:r}})}return[]}},onClick(t,e,i){i.chart.toggleDataVisibility(e.index),i.chart.update()}}},scales:{r:{type:"radialLinear",angleLines:{display:!1},beginAtZero:!0,grid:{circular:!0},pointLabels:{display:!1},startAngle:0}}};constructor(t,e){super(t,e),this.innerRadius=void 0,this.outerRadius=void 0}getLabelAndValue(t){let e=this._cachedMeta,i=this.chart,s=i.data.labels||[],o=oe(e._parsed[t].r,i.options.locale);return{label:s[t]||"",value:o}}parseObjectData(t,e,i,s){return Do.bind(this)(t,e,i,s)}update(t){let e=this._cachedMeta.data;this._updateRadius(),this.updateElements(e,0,e.length,t)}getMinMax(){let t=this._cachedMeta,e={min:Number.POSITIVE_INFINITY,max:Number.NEGATIVE_INFINITY};return t.data.forEach((i,s)=>{let o=this.getParsed(s).r;!isNaN(o)&&this.chart.getDataVisibility(s)&&(o<e.min&&(e.min=o),o>e.max&&(e.max=o))}),e}_updateRadius(){let t=this.chart,e=t.chartArea,i=t.options,s=Math.min(e.right-e.left,e.bottom-e.top),o=Math.max(s/2,0),r=Math.max(i.cutoutPercentage?o/100*i.cutoutPercentage:1,0),a=(o-r)/t.getVisibleDatasetCount();this.outerRadius=o-a*this.index,this.innerRadius=this.outerRadius-a}updateElements(t,e,i,s){let o=s==="reset",r=this.chart,c=r.options.animation,l=this._cachedMeta.rScale,h=l.xCenter,u=l.yCenter,d=l.getIndexAngle(0)-.5*B,f=d,m,p=360/this.countVisibleElements();for(m=0;m<e;++m)f+=this._computeAngle(m,s,p);for(m=e;m<e+i;m++){let g=t[m],b=f,_=f+this._computeAngle(m,s,p),w=r.getDataVisibility(m)?l.getDistanceFromCenterForValue(this.getParsed(m).r):0;f=_,o&&(c.animateScale&&(w=0),c.animateRotate&&(b=_=d));let M={x:h,y:u,innerRadius:0,outerRadius:w,startAngle:b,endAngle:_,options:this.resolveDataElementOptions(m,g.active?"active":s)};this.updateElement(g,m,M,s)}}countVisibleElements(){let t=this._cachedMeta,e=0;return t.data.forEach((i,s)=>{!isNaN(this.getParsed(s).r)&&this.chart.getDataVisibility(s)&&e++}),e}_computeAngle(t,e,i){return this.chart.getDataVisibility(t)?at(this.resolveDataElementOptions(t,e).angle||i):0}};function jt(){throw new Error("This method is not implemented: Check that a complete date adapter is provided.")}var ys=class n{static override(t){Object.assign(n.prototype,t)}options;constructor(t){this.options=t||{}}init(){}formats(){return jt()}parse(){return jt()}format(){return jt()}add(){return jt()}diff(){return jt()}startOf(){return jt()}endOf(){return jt()}},Cs={_date:ys};function Dl(n,t,e,i){let{controller:s,data:o,_sorted:r}=n,a=s._cachedMeta.iScale;if(a&&t===a.axis&&t!=="r"&&r&&o.length){let c=a._reversePixels?so:Ct;if(i){if(s._sharedOptions){let l=o[0],h=typeof l.getRange=="function"&&l.getRange(t);if(h){let u=c(o,t,e-h),d=c(o,t,e+h);return{lo:u.lo,hi:d.hi}}}}else return c(o,t,e)}return{lo:0,hi:o.length-1}}function je(n,t,e,i,s){let o=n.getSortedVisibleDatasetMetas(),r=e[t];for(let a=0,c=o.length;a<c;++a){let{index:l,data:h}=o[a],{lo:u,hi:d}=Dl(o[a],t,r,s);for(let f=u;f<=d;++f){let m=h[f];m.skip||i(m,l,f)}}}function vl(n){let t=n.indexOf("x")!==-1,e=n.indexOf("y")!==-1;return function(i,s){let o=t?Math.abs(i.x-s.x):0,r=e?Math.abs(i.y-s.y):0;return Math.sqrt(Math.pow(o,2)+Math.pow(r,2))}}function ds(n,t,e,i,s){let o=[];return!s&&!n.isPointInArea(t)||je(n,e,t,function(a,c,l){!s&&!dt(a,n.chartArea,0)||a.inRange(t.x,t.y,i)&&o.push({element:a,datasetIndex:c,index:l})},!0),o}function Pl(n,t,e,i){let s=[];function o(r,a,c){let{startAngle:l,endAngle:h}=r.getProps(["startAngle","endAngle"],i),{angle:u}=eo(r,{x:t.x,y:t.y});Ae(u,l,h)&&s.push({element:r,datasetIndex:a,index:c})}return je(n,e,t,o),s}function Ol(n,t,e,i,s,o){let r=[],a=vl(e),c=Number.POSITIVE_INFINITY;function l(h,u,d){let f=h.inRange(t.x,t.y,s);if(i&&!f)return;let m=h.getCenterPoint(s);if(!(!!o||n.isPointInArea(m))&&!f)return;let g=a(t,m);g<c?(r=[{element:h,datasetIndex:u,index:d}],c=g):g===c&&r.push({element:h,datasetIndex:u,index:d})}return je(n,e,t,l),r}function fs(n,t,e,i,s,o){return!o&&!n.isPointInArea(t)?[]:e==="r"&&!i?Pl(n,t,e,s):Ol(n,t,e,i,s,o)}function jo(n,t,e,i,s){let o=[],r=e==="x"?"inXRange":"inYRange",a=!1;return je(n,e,t,(c,l,h)=>{c[r](t[e],s)&&(o.push({element:c,datasetIndex:l,index:h}),a=a||c.inRange(t.x,t.y,s))}),i&&!a?[]:o}var Sl={evaluateInteractionItems:je,modes:{index(n,t,e,i){let s=It(t,n),o=e.axis||"x",r=e.includeInvisible||!1,a=e.intersect?ds(n,s,o,i,r):fs(n,s,o,!1,i,r),c=[];return a.length?(n.getSortedVisibleDatasetMetas().forEach(l=>{let h=a[0].index,u=l.data[h];u&&!u.skip&&c.push({element:u,datasetIndex:l.index,index:h})}),c):[]},dataset(n,t,e,i){let s=It(t,n),o=e.axis||"xy",r=e.includeInvisible||!1,a=e.intersect?ds(n,s,o,i,r):fs(n,s,o,!1,i,r);if(a.length>0){let c=a[0].datasetIndex,l=n.getDatasetMeta(c).data;a=[];for(let h=0;h<l.length;++h)a.push({element:l[h],datasetIndex:c,index:h})}return a},point(n,t,e,i){let s=It(t,n),o=e.axis||"xy",r=e.includeInvisible||!1;return ds(n,s,o,i,r)},nearest(n,t,e,i){let s=It(t,n),o=e.axis||"xy",r=e.includeInvisible||!1;return fs(n,s,o,e.intersect,i,r)},x(n,t,e,i){let s=It(t,n);return jo(n,s,"x",e.intersect,i)},y(n,t,e,i){let s=It(t,n);return jo(n,s,"y",e.intersect,i)}}},Cr=["left","top","right","bottom"];function Fe(n,t){return n.filter(e=>e.pos===t)}function qo(n,t){return n.filter(e=>Cr.indexOf(e.pos)===-1&&e.box.axis===t)}function Ne(n,t){return n.sort((e,i)=>{let s=t?i:e,o=t?e:i;return s.weight===o.weight?s.index-o.index:s.weight-o.weight})}function Tl(n){let t=[],e,i,s,o,r,a;for(e=0,i=(n||[]).length;e<i;++e)s=n[e],{position:o,options:{stack:r,stackWeight:a=1}}=s,t.push({index:e,box:s,pos:o,horizontal:s.isHorizontal(),weight:s.weight,stack:r&&o+r,stackWeight:a});return t}function Cl(n){let t={};for(let e of n){let{stack:i,pos:s,stackWeight:o}=e;if(!i||!Cr.includes(s))continue;let r=t[i]||(t[i]={count:0,placed:0,weight:0,size:0});r.count++,r.weight+=o}return t}function Al(n,t){let e=Cl(n),{vBoxMaxWidth:i,hBoxMaxHeight:s}=t,o,r,a;for(o=0,r=n.length;o<r;++o){a=n[o];let{fullSize:c}=a.box,l=e[a.stack],h=l&&a.stackWeight/l.weight;a.horizontal?(a.width=h?h*i:c&&t.availableWidth,a.height=s):(a.width=i,a.height=h?h*s:c&&t.availableHeight)}return e}function Ll(n){let t=Tl(n),e=Ne(t.filter(l=>l.box.fullSize),!0),i=Ne(Fe(t,"left"),!0),s=Ne(Fe(t,"right")),o=Ne(Fe(t,"top"),!0),r=Ne(Fe(t,"bottom")),a=qo(t,"x"),c=qo(t,"y");return{fullSize:e,leftAndTop:i.concat(o),rightAndBottom:s.concat(c).concat(r).concat(a),chartArea:Fe(t,"chartArea"),vertical:i.concat(s).concat(c),horizontal:o.concat(r).concat(a)}}function $o(n,t,e,i){return Math.max(n[e],t[e])+Math.max(n[i],t[i])}function Ar(n,t){n.top=Math.max(n.top,t.top),n.left=Math.max(n.left,t.left),n.bottom=Math.max(n.bottom,t.bottom),n.right=Math.max(n.right,t.right)}function Il(n,t,e,i){let{pos:s,box:o}=e,r=n.maxPadding;if(!L(s)){e.size&&(n[s]-=e.size);let u=i[e.stack]||{size:0,count:1};u.size=Math.max(u.size,e.horizontal?o.height:o.width),e.size=u.size/u.count,n[s]+=e.size}o.getPadding&&Ar(r,o.getPadding());let a=Math.max(0,t.outerWidth-$o(r,n,"left","right")),c=Math.max(0,t.outerHeight-$o(r,n,"top","bottom")),l=a!==n.w,h=c!==n.h;return n.w=a,n.h=c,e.horizontal?{same:l,other:h}:{same:h,other:l}}function El(n){let t=n.maxPadding;function e(i){let s=Math.max(t[i]-n[i],0);return n[i]+=s,s}n.y+=e("top"),n.x+=e("left"),e("right"),e("bottom")}function Rl(n,t){let e=t.maxPadding;function i(s){let o={left:0,top:0,right:0,bottom:0};return s.forEach(r=>{o[r]=Math.max(t[r],e[r])}),o}return i(n?["left","right"]:["top","bottom"])}function Be(n,t,e,i){let s=[],o,r,a,c,l,h;for(o=0,r=n.length,l=0;o<r;++o){a=n[o],c=a.box,c.update(a.width||t.w,a.height||t.h,Rl(a.horizontal,t));let{same:u,other:d}=Il(t,e,a,i);l|=u&&s.length,h=h||d,c.fullSize||s.push(a)}return l&&Be(s,t,e,i)||h}function _n(n,t,e,i,s){n.top=e,n.left=t,n.right=t+i,n.bottom=e+s,n.width=i,n.height=s}function Xo(n,t,e,i){let s=e.padding,{x:o,y:r}=t;for(let a of n){let c=a.box,l=i[a.stack]||{count:1,placed:0,weight:1},h=a.stackWeight/l.weight||1;if(a.horizontal){let u=t.w*h,d=l.size||c.height;Ce(l.start)&&(r=l.start),c.fullSize?_n(c,s.left,r,e.outerWidth-s.right-s.left,d):_n(c,t.left+l.placed,r,u,d),l.start=r,l.placed+=u,r=c.bottom}else{let u=t.h*h,d=l.size||c.width;Ce(l.start)&&(o=l.start),c.fullSize?_n(c,o,s.top,d,e.outerHeight-s.bottom-s.top):_n(c,o,t.top+l.placed,d,u),l.start=o,l.placed+=u,o=c.right}}t.x=o,t.y=r}var wn={addBox(n,t){n.boxes||(n.boxes=[]),t.fullSize=t.fullSize||!1,t.position=t.position||"top",t.weight=t.weight||0,t._layers=t._layers||function(){return[{z:0,draw(e){t.draw(e)}}]},n.boxes.push(t)},removeBox(n,t){let e=n.boxes?n.boxes.indexOf(t):-1;e!==-1&&n.boxes.splice(e,1)},configure(n,t,e){t.fullSize=e.fullSize,t.position=e.position,t.weight=e.weight},update(n,t,e,i){if(!n)return;let s=nt(n.options.layout.padding),o=Math.max(t-s.width,0),r=Math.max(e-s.height,0),a=Ll(n.boxes),c=a.vertical,l=a.horizontal;E(n.boxes,p=>{typeof p.beforeLayout=="function"&&p.beforeLayout()});let h=c.reduce((p,g)=>g.box.options&&g.box.options.display===!1?p:p+1,0)||1,u=Object.freeze({outerWidth:t,outerHeight:e,padding:s,availableWidth:o,availableHeight:r,vBoxMaxWidth:o/2/h,hBoxMaxHeight:r/2}),d=Object.assign({},s);Ar(d,nt(i));let f=Object.assign({maxPadding:d,w:o,h:r,x:s.left,y:s.top},s),m=Al(c.concat(l),u);Be(a.fullSize,f,u,m),Be(c,f,u,m),Be(l,f,u,m)&&Be(c,f,u,m),El(f),Xo(a.leftAndTop,f,u,m),f.x+=f.w,f.y+=f.h,Xo(a.rightAndBottom,f,u,m),n.chartArea={left:f.left,top:f.top,right:f.left+f.w,bottom:f.top+f.h,height:f.h,width:f.w},E(a.chartArea,p=>{let g=p.box;Object.assign(g,n.chartArea),g.update(f.w,f.h,{left:0,top:0,right:0,bottom:0})})}},An=class{acquireContext(t,e){}releaseContext(t){return!1}addEventListener(t,e,i){}removeEventListener(t,e,i){}getDevicePixelRatio(){return 1}getMaximumSize(t,e,i,s){return e=Math.max(0,e||t.width),i=i||t.height,{width:e,height:Math.max(0,s?Math.floor(e/s):i)}}isAttached(t){return!0}updateConfig(t){}},_s=class extends An{acquireContext(t){return t&&t.getContext&&t.getContext("2d")||null}updateConfig(t){t.options.animation=!1}},On="$chartjs",Fl={touchstart:"mousedown",touchmove:"mousemove",touchend:"mouseup",pointerenter:"mouseenter",pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointerleave:"mouseout",pointerout:"mouseout"},Uo=n=>n===null||n==="";function Nl(n,t){let e=n.style,i=n.getAttribute("height"),s=n.getAttribute("width");if(n[On]={initial:{height:i,width:s,style:{display:e.display,height:e.height,width:e.width}}},e.display=e.display||"block",e.boxSizing=e.boxSizing||"border-box",Uo(s)){let o=ls(n,"width");o!==void 0&&(n.width=o)}if(Uo(i))if(n.style.height==="")n.height=n.width/(t||2);else{let o=ls(n,"height");o!==void 0&&(n.height=o)}return n}var Lr=So?{passive:!0}:!1;function Wl(n,t,e){n.addEventListener(t,e,Lr)}function zl(n,t,e){n.canvas.removeEventListener(t,e,Lr)}function Bl(n,t){let e=Fl[n.type]||n.type,{x:i,y:s}=It(n,t);return{type:e,chart:t,native:n,x:i!==void 0?i:null,y:s!==void 0?s:null}}function Ln(n,t){for(let e of n)if(e===t||e.contains(t))return!0}function Hl(n,t,e){let i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ln(a.addedNodes,i),r=r&&!Ln(a.removedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}function Yl(n,t,e){let i=n.canvas,s=new MutationObserver(o=>{let r=!1;for(let a of o)r=r||Ln(a.removedNodes,i),r=r&&!Ln(a.addedNodes,i);r&&e()});return s.observe(document,{childList:!0,subtree:!0}),s}var Ye=new Map,Qo=0;function Ir(){let n=window.devicePixelRatio;n!==Qo&&(Qo=n,Ye.forEach((t,e)=>{e.currentDevicePixelRatio!==n&&t()}))}function Vl(n,t){Ye.size||window.addEventListener("resize",Ir),Ye.set(n,t)}function jl(n){Ye.delete(n),Ye.size||window.removeEventListener("resize",Ir)}function ql(n,t,e){let i=n.canvas,s=i&&bn(i);if(!s)return;let o=Ki((a,c)=>{let l=s.clientWidth;e(a,c),l<s.clientWidth&&e()},window),r=new ResizeObserver(a=>{let c=a[0],l=c.contentRect.width,h=c.contentRect.height;l===0&&h===0||o(l,h)});return r.observe(s),Vl(n,o),r}function ps(n,t,e){e&&e.disconnect(),t==="resize"&&jl(n)}function $l(n,t,e){let i=n.canvas,s=Ki(o=>{n.ctx!==null&&e(Bl(o,n))},n);return Wl(i,t,s),s}var ws=class extends An{acquireContext(t,e){let i=t&&t.getContext&&t.getContext("2d");return i&&i.canvas===t?(Nl(t,e),i):null}releaseContext(t){let e=t.canvas;if(!e[On])return!1;let i=e[On].initial;["height","width"].forEach(o=>{let r=i[o];N(r)?e.removeAttribute(o):e.setAttribute(o,r)});let s=i.style||{};return Object.keys(s).forEach(o=>{e.style[o]=s[o]}),e.width=e.width,delete e[On],!0}addEventListener(t,e,i){this.removeEventListener(t,e);let s=t.$proxies||(t.$proxies={}),r={attach:Hl,detach:Yl,resize:ql}[e]||$l;s[e]=r(t,e,i)}removeEventListener(t,e){let i=t.$proxies||(t.$proxies={}),s=i[e];if(!s)return;({attach:ps,detach:ps,resize:ps}[e]||zl)(t,e,s),i[e]=void 0}getDevicePixelRatio(){return window.devicePixelRatio}getMaximumSize(t,e,i,s){return Oo(t,e,i,s)}isAttached(t){let e=bn(t);return!!(e&&e.isConnected)}};function Xl(n){return!mn()||typeof OffscreenCanvas<"u"&&n instanceof OffscreenCanvas?_s:ws}var $t=class{static defaults={};static defaultRoutes=void 0;x;y;active=!1;options;$animations;tooltipPosition(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}hasValue(){return se(this.x)&&se(this.y)}getProps(t,e){let i=this.$animations;if(!e||!i)return this;let s={};return t.forEach(o=>{s[o]=i[o]&&i[o].active()?i[o]._to:this[o]}),s}};function Ul(n,t){let e=n.options.ticks,i=Ql(n),s=Math.min(e.maxTicksLimit||i,i),o=e.major.enabled?Kl(t):[],r=o.length,a=o[0],c=o[r-1],l=[];if(r>s)return Zl(t,l,o,r/s),l;let h=Gl(o,t,s);if(r>0){let u,d,f=r>1?Math.round((c-a)/(r-1)):null;for(Mn(t,l,h,N(f)?0:a-f,a),u=0,d=r-1;u<d;u++)Mn(t,l,h,o[u],o[u+1]);return Mn(t,l,h,c,N(f)?t.length:c+f),l}return Mn(t,l,h),l}function Ql(n){let t=n.options.offset,e=n._tickSize(),i=n._length/e+(t?0:1),s=n._maxLength/e;return Math.floor(Math.min(i,s))}function Gl(n,t,e){let i=Jl(n),s=t.length/e;if(!i)return Math.max(s,1);let o=Js(i);for(let r=0,a=o.length-1;r<a;r++){let c=o[r];if(c>s)return c}return Math.max(s,1)}function Kl(n){let t=[],e,i;for(e=0,i=n.length;e<i;e++)n[e].major&&t.push(e);return t}function Zl(n,t,e,i){let s=0,o=e[0],r;for(i=Math.ceil(i),r=0;r<n.length;r++)r===o&&(t.push(n[r]),s++,o=e[s*i])}function Mn(n,t,e,i,s){let o=R(i,0),r=Math.min(R(s,n.length),n.length),a=0,c,l,h;for(e=Math.ceil(e),s&&(c=s-i,e=c/Math.floor(c/e)),h=o;h<0;)a++,h=Math.round(o+a*e);for(l=Math.max(o,0);l<r;l++)l===h&&(t.push(n[l]),a++,h=Math.round(o+a*e))}function Jl(n){let t=n.length,e,i;if(t<2)return!1;for(i=n[0],e=1;e<t;++e)if(n[e]-n[e-1]!==i)return!1;return i}var th=n=>n==="left"?"right":n==="right"?"left":n,Go=(n,t,e)=>t==="top"||t==="left"?n[t]+e:n[t]-e,Ko=(n,t)=>Math.min(t||n,n);function Zo(n,t){let e=[],i=n.length/t,s=n.length,o=0;for(;o<s;o+=i)e.push(n[Math.floor(o)]);return e}function eh(n,t,e){let i=n.ticks.length,s=Math.min(t,i-1),o=n._startPixel,r=n._endPixel,a=1e-6,c=n.getPixelForTick(s),l;if(!(e&&(i===1?l=Math.max(c-o,r-c):t===0?l=(n.getPixelForTick(1)-c)/2:l=(c-n.getPixelForTick(s-1))/2,c+=s<t?l:-l,c<o-a||c>r+a)))return c}function nh(n,t){E(n,e=>{let i=e.gc,s=i.length/2,o;if(s>t){for(o=0;o<s;++o)delete e.data[i[o]];i.splice(0,s)}})}function We(n){return n.drawTicks?n.tickLength:0}function Jo(n,t){if(!n.display)return 0;let e=Z(n.font,t),i=nt(n.padding);return(W(n.text)?n.text.length:1)*e.lineHeight+i.height}function ih(n,t){return _t(n,{scale:t,type:"scale"})}function sh(n,t,e){return _t(n,{tick:e,index:t,type:"tick"})}function oh(n,t,e){let i=ho(n);return(e&&t!=="right"||!e&&t==="right")&&(i=th(i)),i}function rh(n,t,e,i){let{top:s,left:o,bottom:r,right:a,chart:c}=n,{chartArea:l,scales:h}=c,u=0,d,f,m,p=r-s,g=a-o;if(n.isHorizontal()){if(f=Zi(i,o,a),L(e)){let b=Object.keys(e)[0],_=e[b];m=h[b].getPixelForValue(_)+p-t}else e==="center"?m=(l.bottom+l.top)/2+p-t:m=Go(n,e,t);d=a-o}else{if(L(e)){let b=Object.keys(e)[0],_=e[b];f=h[b].getPixelForValue(_)-g+t}else e==="center"?f=(l.left+l.right)/2-g+t:f=Go(n,e,t);m=Zi(i,r,s),u=e==="left"?-G:G}return{titleX:f,titleY:m,maxWidth:d,rotation:u}}var le=class n extends $t{constructor(t){super(),this.id=t.id,this.type=t.type,this.options=void 0,this.ctx=t.ctx,this.chart=t.chart,this.top=void 0,this.bottom=void 0,this.left=void 0,this.right=void 0,this.width=void 0,this.height=void 0,this._margins={left:0,right:0,top:0,bottom:0},this.maxWidth=void 0,this.maxHeight=void 0,this.paddingTop=void 0,this.paddingBottom=void 0,this.paddingLeft=void 0,this.paddingRight=void 0,this.axis=void 0,this.labelRotation=void 0,this.min=void 0,this.max=void 0,this._range=void 0,this.ticks=[],this._gridLineItems=null,this._labelItems=null,this._labelSizes=null,this._length=0,this._maxLength=0,this._longestTextCache={},this._startPixel=void 0,this._endPixel=void 0,this._reversePixels=!1,this._userMax=void 0,this._userMin=void 0,this._suggestedMax=void 0,this._suggestedMin=void 0,this._ticksLength=0,this._borderValue=0,this._cache={},this._dataLimitsCached=!1,this.$context=void 0}init(t){this.options=t.setContext(this.getContext()),this.axis=t.axis,this._userMin=this.parse(t.min),this._userMax=this.parse(t.max),this._suggestedMin=this.parse(t.suggestedMin),this._suggestedMax=this.parse(t.suggestedMax)}parse(t,e){return t}getUserBounds(){let{_userMin:t,_userMax:e,_suggestedMin:i,_suggestedMax:s}=this;return t=K(t,Number.POSITIVE_INFINITY),e=K(e,Number.NEGATIVE_INFINITY),i=K(i,Number.POSITIVE_INFINITY),s=K(s,Number.NEGATIVE_INFINITY),{min:K(t,i),max:K(e,s),minDefined:$(t),maxDefined:$(e)}}getMinMax(t){let{min:e,max:i,minDefined:s,maxDefined:o}=this.getUserBounds(),r;if(s&&o)return{min:e,max:i};let a=this.getMatchingVisibleMetas();for(let c=0,l=a.length;c<l;++c)r=a[c].controller.getMinMax(this,t),s||(e=Math.min(e,r.min)),o||(i=Math.max(i,r.max));return e=o&&e>i?i:e,i=s&&e>i?e:i,{min:K(e,K(i,e)),max:K(i,K(e,i))}}getPadding(){return{left:this.paddingLeft||0,top:this.paddingTop||0,right:this.paddingRight||0,bottom:this.paddingBottom||0}}getTicks(){return this.ticks}getLabels(){let t=this.chart.data;return this.options.labels||(this.isHorizontal()?t.xLabels:t.yLabels)||t.labels||[]}getLabelItems(t=this.chart.chartArea){return this._labelItems||(this._labelItems=this._computeLabelItems(t))}beforeLayout(){this._cache={},this._dataLimitsCached=!1}beforeUpdate(){z(this.options.beforeUpdate,[this])}update(t,e,i){let{beginAtZero:s,grace:o,ticks:r}=this.options,a=r.sampleSize;this.beforeUpdate(),this.maxWidth=t,this.maxHeight=e,this._margins=i=Object.assign({left:0,right:0,top:0,bottom:0},i),this.ticks=null,this._labelSizes=null,this._gridLineItems=null,this._labelItems=null,this.beforeSetDimensions(),this.setDimensions(),this.afterSetDimensions(),this._maxLength=this.isHorizontal()?this.width+i.left+i.right:this.height+i.top+i.bottom,this._dataLimitsCached||(this.beforeDataLimits(),this.determineDataLimits(),this.afterDataLimits(),this._range=_o(this,o,s),this._dataLimitsCached=!0),this.beforeBuildTicks(),this.ticks=this.buildTicks()||[],this.afterBuildTicks();let c=a<this.ticks.length;this._convertTicksToLabels(c?Zo(this.ticks,a):this.ticks),this.configure(),this.beforeCalculateLabelRotation(),this.calculateLabelRotation(),this.afterCalculateLabelRotation(),r.display&&(r.autoSkip||r.source==="auto")&&(this.ticks=Ul(this,this.ticks),this._labelSizes=null,this.afterAutoSkip()),c&&this._convertTicksToLabels(this.ticks),this.beforeFit(),this.fit(),this.afterFit(),this.afterUpdate()}configure(){let t=this.options.reverse,e,i;this.isHorizontal()?(e=this.left,i=this.right):(e=this.top,i=this.bottom,t=!t),this._startPixel=e,this._endPixel=i,this._reversePixels=t,this._length=i-e,this._alignToPixels=this.options.alignToPixels}afterUpdate(){z(this.options.afterUpdate,[this])}beforeSetDimensions(){z(this.options.beforeSetDimensions,[this])}setDimensions(){this.isHorizontal()?(this.width=this.maxWidth,this.left=0,this.right=this.width):(this.height=this.maxHeight,this.top=0,this.bottom=this.height),this.paddingLeft=0,this.paddingTop=0,this.paddingRight=0,this.paddingBottom=0}afterSetDimensions(){z(this.options.afterSetDimensions,[this])}_callHooks(t){this.chart.notifyPlugins(t,this.getContext()),z(this.options[t],[this])}beforeDataLimits(){this._callHooks("beforeDataLimits")}determineDataLimits(){}afterDataLimits(){this._callHooks("afterDataLimits")}beforeBuildTicks(){this._callHooks("beforeBuildTicks")}buildTicks(){return[]}afterBuildTicks(){this._callHooks("afterBuildTicks")}beforeTickToLabelConversion(){z(this.options.beforeTickToLabelConversion,[this])}generateTickLabels(t){let e=this.options.ticks,i,s,o;for(i=0,s=t.length;i<s;i++)o=t[i],o.label=z(e.callback,[o.value,i,t],this)}afterTickToLabelConversion(){z(this.options.afterTickToLabelConversion,[this])}beforeCalculateLabelRotation(){z(this.options.beforeCalculateLabelRotation,[this])}calculateLabelRotation(){let t=this.options,e=t.ticks,i=Ko(this.ticks.length,t.ticks.maxTicksLimit),s=e.minRotation||0,o=e.maxRotation,r=s,a,c,l;if(!this._isVisible()||!e.display||s>=o||i<=1||!this.isHorizontal()){this.labelRotation=s;return}let h=this._getLabelSizes(),u=h.widest.width,d=h.highest.height,f=rt(this.chart.width-u,0,this.maxWidth);a=t.offset?this.maxWidth/i:f/(i-1),u+6>a&&(a=f/(i-(t.offset?.5:1)),c=this.maxHeight-We(t.grid)-e.padding-Jo(t.title,this.chart.options.font),l=Math.sqrt(u*u+d*d),r=hn(Math.min(Math.asin(rt((h.highest.height+6)/a,-1,1)),Math.asin(rt(c/l,-1,1))-Math.asin(rt(d/l,-1,1)))),r=Math.max(s,Math.min(o,r))),this.labelRotation=r}afterCalculateLabelRotation(){z(this.options.afterCalculateLabelRotation,[this])}afterAutoSkip(){}beforeFit(){z(this.options.beforeFit,[this])}fit(){let t={width:0,height:0},{chart:e,options:{ticks:i,title:s,grid:o}}=this,r=this._isVisible(),a=this.isHorizontal();if(r){let c=Jo(s,e.options.font);if(a?(t.width=this.maxWidth,t.height=We(o)+c):(t.height=this.maxHeight,t.width=We(o)+c),i.display&&this.ticks.length){let{first:l,last:h,widest:u,highest:d}=this._getLabelSizes(),f=i.padding*2,m=at(this.labelRotation),p=Math.cos(m),g=Math.sin(m);if(a){let b=i.mirror?0:g*u.width+p*d.height;t.height=Math.min(this.maxHeight,t.height+b+f)}else{let b=i.mirror?0:p*u.width+g*d.height;t.width=Math.min(this.maxWidth,t.width+b+f)}this._calculatePadding(l,h,g,p)}}this._handleMargins(),a?(this.width=this._length=e.width-this._margins.left-this._margins.right,this.height=t.height):(this.width=t.width,this.height=this._length=e.height-this._margins.top-this._margins.bottom)}_calculatePadding(t,e,i,s){let{ticks:{align:o,padding:r},position:a}=this.options,c=this.labelRotation!==0,l=a!=="top"&&this.axis==="x";if(this.isHorizontal()){let h=this.getPixelForTick(0)-this.left,u=this.right-this.getPixelForTick(this.ticks.length-1),d=0,f=0;c?l?(d=s*t.width,f=i*e.height):(d=i*t.height,f=s*e.width):o==="start"?f=e.width:o==="end"?d=t.width:o!=="inner"&&(d=t.width/2,f=e.width/2),this.paddingLeft=Math.max((d-h+r)*this.width/(this.width-h),0),this.paddingRight=Math.max((f-u+r)*this.width/(this.width-u),0)}else{let h=e.height/2,u=t.height/2;o==="start"?(h=0,u=t.height):o==="end"&&(h=e.height,u=0),this.paddingTop=h+r,this.paddingBottom=u+r}}_handleMargins(){this._margins&&(this._margins.left=Math.max(this.paddingLeft,this._margins.left),this._margins.top=Math.max(this.paddingTop,this._margins.top),this._margins.right=Math.max(this.paddingRight,this._margins.right),this._margins.bottom=Math.max(this.paddingBottom,this._margins.bottom))}afterFit(){z(this.options.afterFit,[this])}isHorizontal(){let{axis:t,position:e}=this.options;return e==="top"||e==="bottom"||t==="x"}isFullSize(){return this.options.fullSize}_convertTicksToLabels(t){this.beforeTickToLabelConversion(),this.generateTickLabels(t);let e,i;for(e=0,i=t.length;e<i;e++)N(t[e].label)&&(t.splice(e,1),i--,e--);this.afterTickToLabelConversion()}_getLabelSizes(){let t=this._labelSizes;if(!t){let e=this.options.ticks.sampleSize,i=this.ticks;e<i.length&&(i=Zo(i,e)),this._labelSizes=t=this._computeLabelSizes(i,i.length,this.options.ticks.maxTicksLimit)}return t}_computeLabelSizes(t,e,i){let{ctx:s,_longestTextCache:o}=this,r=[],a=[],c=Math.floor(e/Ko(e,i)),l=0,h=0,u,d,f,m,p,g,b,_,w,M,y;for(u=0;u<e;u+=c){if(m=t[u].label,p=this._resolveTickFontOptions(u),s.font=g=p.string,b=o[g]=o[g]||{data:{},gc:[]},_=p.lineHeight,w=M=0,!N(m)&&!W(m))w=Se(s,b.data,b.gc,w,m),M=_;else if(W(m))for(d=0,f=m.length;d<f;++d)y=m[d],!N(y)&&!W(y)&&(w=Se(s,b.data,b.gc,w,y),M+=_);r.push(w),a.push(M),l=Math.max(w,l),h=Math.max(M,h)}nh(o,e);let S=r.indexOf(l),D=a.indexOf(h),v=C=>({width:r[C]||0,height:a[C]||0});return{first:v(0),last:v(e-1),widest:v(S),highest:v(D),widths:r,heights:a}}getLabelForValue(t){return t}getPixelForValue(t,e){return NaN}getValueForPixel(t){}getPixelForTick(t){let e=this.ticks;return t<0||t>e.length-1?null:this.getPixelForValue(e[t].value)}getPixelForDecimal(t){this._reversePixels&&(t=1-t);let e=this._startPixel+t*this._length;return no(this._alignToPixels?Lt(this.chart,e,0):e)}getDecimalForPixel(t){let e=(t-this._startPixel)/this._length;return this._reversePixels?1-e:e}getBasePixel(){return this.getPixelForValue(this.getBaseValue())}getBaseValue(){let{min:t,max:e}=this;return t<0&&e<0?e:t>0&&e>0?t:0}getContext(t){let e=this.ticks||[];if(t>=0&&t<e.length){let i=e[t];return i.$context||(i.$context=sh(this.getContext(),t,i))}return this.$context||(this.$context=ih(this.chart.getContext(),this))}_tickSize(){let t=this.options.ticks,e=at(this.labelRotation),i=Math.abs(Math.cos(e)),s=Math.abs(Math.sin(e)),o=this._getLabelSizes(),r=t.autoSkipPadding||0,a=o?o.widest.width+r:0,c=o?o.highest.height+r:0;return this.isHorizontal()?c*i>a*s?a/i:c/s:c*s<a*i?c/i:a/s}_isVisible(){let t=this.options.display;return t!=="auto"?!!t:this.getMatchingVisibleMetas().length>0}_computeGridLineItems(t){let e=this.axis,i=this.chart,s=this.options,{grid:o,position:r,border:a}=s,c=o.offset,l=this.isHorizontal(),u=this.ticks.length+(c?1:0),d=We(o),f=[],m=a.setContext(this.getContext()),p=m.display?m.width:0,g=p/2,b=function(U){return Lt(i,U,p)},_,w,M,y,S,D,v,C,Y,V,q,ut;if(r==="top")_=b(this.bottom),D=this.bottom-d,C=_-g,V=b(t.top)+g,ut=t.bottom;else if(r==="bottom")_=b(this.top),V=t.top,ut=b(t.bottom)-g,D=_+g,C=this.top+d;else if(r==="left")_=b(this.right),S=this.right-d,v=_-g,Y=b(t.left)+g,q=t.right;else if(r==="right")_=b(this.left),Y=t.left,q=b(t.right)-g,S=_+g,v=this.left+d;else if(e==="x"){if(r==="center")_=b((t.top+t.bottom)/2+.5);else if(L(r)){let U=Object.keys(r)[0],it=r[U];_=b(this.chart.scales[U].getPixelForValue(it))}V=t.top,ut=t.bottom,D=_+g,C=D+d}else if(e==="y"){if(r==="center")_=b((t.left+t.right)/2);else if(L(r)){let U=Object.keys(r)[0],it=r[U];_=b(this.chart.scales[U].getPixelForValue(it))}S=_-g,v=S-d,Y=t.left,q=t.right}let Pt=R(s.ticks.maxTicksLimit,u),j=Math.max(1,Math.ceil(u/Pt));for(w=0;w<u;w+=j){let U=this.getContext(w),it=o.setContext(U),Qe=a.setContext(U),Ge=it.lineWidth,Gt=it.color,Ke=Qe.dash||[],Kt=Qe.dashOffset,Me=it.tickWidth,Nt=it.tickColor,ke=it.tickBorderDash||[],Wt=it.tickBorderDashOffset;M=eh(this,w,c),M!==void 0&&(y=Lt(i,M,Ge),l?S=v=Y=q=y:D=C=V=ut=y,f.push({tx1:S,ty1:D,tx2:v,ty2:C,x1:Y,y1:V,x2:q,y2:ut,width:Ge,color:Gt,borderDash:Ke,borderDashOffset:Kt,tickWidth:Me,tickColor:Nt,tickBorderDash:ke,tickBorderDashOffset:Wt}))}return this._ticksLength=u,this._borderValue=_,f}_computeLabelItems(t){let e=this.axis,i=this.options,{position:s,ticks:o}=i,r=this.isHorizontal(),a=this.ticks,{align:c,crossAlign:l,padding:h,mirror:u}=o,d=We(i.grid),f=d+h,m=u?-h:f,p=-at(this.labelRotation),g=[],b,_,w,M,y,S,D,v,C,Y,V,q,ut="middle";if(s==="top")S=this.bottom-m,D=this._getXAxisLabelAlignment();else if(s==="bottom")S=this.top+m,D=this._getXAxisLabelAlignment();else if(s==="left"){let j=this._getYAxisLabelAlignment(d);D=j.textAlign,y=j.x}else if(s==="right"){let j=this._getYAxisLabelAlignment(d);D=j.textAlign,y=j.x}else if(e==="x"){if(s==="center")S=(t.top+t.bottom)/2+f;else if(L(s)){let j=Object.keys(s)[0],U=s[j];S=this.chart.scales[j].getPixelForValue(U)+f}D=this._getXAxisLabelAlignment()}else if(e==="y"){if(s==="center")y=(t.left+t.right)/2-f;else if(L(s)){let j=Object.keys(s)[0],U=s[j];y=this.chart.scales[j].getPixelForValue(U)}D=this._getYAxisLabelAlignment(d).textAlign}e==="y"&&(c==="start"?ut="top":c==="end"&&(ut="bottom"));let Pt=this._getLabelSizes();for(b=0,_=a.length;b<_;++b){w=a[b],M=w.label;let j=o.setContext(this.getContext(b));v=this.getPixelForTick(b)+o.labelOffset,C=this._resolveTickFontOptions(b),Y=C.lineHeight,V=W(M)?M.length:1;let U=V/2,it=j.color,Qe=j.textStrokeColor,Ge=j.textStrokeWidth,Gt=D;r?(y=v,D==="inner"&&(b===_-1?Gt=this.options.reverse?"left":"right":b===0?Gt=this.options.reverse?"right":"left":Gt="center"),s==="top"?l==="near"||p!==0?q=-V*Y+Y/2:l==="center"?q=-Pt.highest.height/2-U*Y+Y:q=-Pt.highest.height+Y/2:l==="near"||p!==0?q=Y/2:l==="center"?q=Pt.highest.height/2-U*Y:q=Pt.highest.height-V*Y,u&&(q*=-1),p!==0&&!j.showLabelBackdrop&&(y+=Y/2*Math.sin(p))):(S=v,q=(1-V)*Y/2);let Ke;if(j.showLabelBackdrop){let Kt=nt(j.backdropPadding),Me=Pt.heights[b],Nt=Pt.widths[b],ke=q-Kt.top,Wt=0-Kt.left;switch(ut){case"middle":ke-=Me/2;break;case"bottom":ke-=Me;break}switch(D){case"center":Wt-=Nt/2;break;case"right":Wt-=Nt;break;case"inner":b===_-1?Wt-=Nt:b>0&&(Wt-=Nt/2);break}Ke={left:Wt,top:ke,width:Nt+Kt.width,height:Me+Kt.height,color:j.backdropColor}}g.push({label:M,font:C,textOffset:q,options:{rotation:p,color:it,strokeColor:Qe,strokeWidth:Ge,textAlign:Gt,textBaseline:ut,translation:[y,S],backdrop:Ke}})}return g}_getXAxisLabelAlignment(){let{position:t,ticks:e}=this.options;if(-at(this.labelRotation))return t==="top"?"left":"right";let s="center";return e.align==="start"?s="left":e.align==="end"?s="right":e.align==="inner"&&(s="inner"),s}_getYAxisLabelAlignment(t){let{position:e,ticks:{crossAlign:i,mirror:s,padding:o}}=this.options,r=this._getLabelSizes(),a=t+o,c=r.widest.width,l,h;return e==="left"?s?(h=this.right+o,i==="near"?l="left":i==="center"?(l="center",h+=c/2):(l="right",h+=c)):(h=this.right-a,i==="near"?l="right":i==="center"?(l="center",h-=c/2):(l="left",h=this.left)):e==="right"?s?(h=this.left+o,i==="near"?l="right":i==="center"?(l="center",h-=c/2):(l="left",h-=c)):(h=this.left+a,i==="near"?l="left":i==="center"?(l="center",h+=c/2):(l="right",h=this.right)):l="right",{textAlign:l,x:h}}_computeLabelArea(){if(this.options.ticks.mirror)return;let t=this.chart,e=this.options.position;if(e==="left"||e==="right")return{top:0,left:this.left,bottom:t.height,right:this.right};if(e==="top"||e==="bottom")return{top:this.top,left:0,bottom:this.bottom,right:t.width}}drawBackground(){let{ctx:t,options:{backgroundColor:e},left:i,top:s,width:o,height:r}=this;e&&(t.save(),t.fillStyle=e,t.fillRect(i,s,o,r),t.restore())}getLineWidthForValue(t){let e=this.options.grid;if(!this._isVisible()||!e.display)return 0;let s=this.ticks.findIndex(o=>o.value===t);return s>=0?e.setContext(this.getContext(s)).lineWidth:0}drawGrid(t){let e=this.options.grid,i=this.ctx,s=this._gridLineItems||(this._gridLineItems=this._computeGridLineItems(t)),o,r,a=(c,l,h)=>{!h.width||!h.color||(i.save(),i.lineWidth=h.width,i.strokeStyle=h.color,i.setLineDash(h.borderDash||[]),i.lineDashOffset=h.borderDashOffset,i.beginPath(),i.moveTo(c.x,c.y),i.lineTo(l.x,l.y),i.stroke(),i.restore())};if(e.display)for(o=0,r=s.length;o<r;++o){let c=s[o];e.drawOnChartArea&&a({x:c.x1,y:c.y1},{x:c.x2,y:c.y2},c),e.drawTicks&&a({x:c.tx1,y:c.ty1},{x:c.tx2,y:c.ty2},{color:c.tickColor,width:c.tickWidth,borderDash:c.tickBorderDash,borderDashOffset:c.tickBorderDashOffset})}}drawBorder(){let{chart:t,ctx:e,options:{border:i,grid:s}}=this,o=i.setContext(this.getContext()),r=i.display?o.width:0;if(!r)return;let a=s.setContext(this.getContext(0)).lineWidth,c=this._borderValue,l,h,u,d;this.isHorizontal()?(l=Lt(t,this.left,r)-r/2,h=Lt(t,this.right,a)+a/2,u=d=c):(u=Lt(t,this.top,r)-r/2,d=Lt(t,this.bottom,a)+a/2,l=h=c),e.save(),e.lineWidth=o.width,e.strokeStyle=o.color,e.beginPath(),e.moveTo(l,u),e.lineTo(h,d),e.stroke(),e.restore()}drawLabels(t){if(!this.options.ticks.display)return;let i=this.ctx,s=this._computeLabelArea();s&&ns(i,s);let o=this.getLabelItems(t);for(let r of o){let a=r.options,c=r.font,l=r.label,h=r.textOffset;Ie(i,l,0,h,c,a)}s&&is(i)}drawTitle(){let{ctx:t,options:{position:e,title:i,reverse:s}}=this;if(!i.display)return;let o=Z(i.font),r=nt(i.padding),a=i.align,c=o.lineHeight/2;e==="bottom"||e==="center"||L(e)?(c+=r.bottom,W(i.text)&&(c+=o.lineHeight*(i.text.length-1))):c+=r.top;let{titleX:l,titleY:h,maxWidth:u,rotation:d}=rh(this,c,e,a);Ie(t,i.text,0,0,o,{color:i.color,maxWidth:u,rotation:d,textAlign:oh(a,e,s),textBaseline:"middle",translation:[l,h]})}draw(t){this._isVisible()&&(this.drawBackground(),this.drawGrid(t),this.drawBorder(),this.drawTitle(),this.drawLabels(t))}_layers(){let t=this.options,e=t.ticks&&t.ticks.z||0,i=R(t.grid&&t.grid.z,-1),s=R(t.border&&t.border.z,0);return!this._isVisible()||this.draw!==n.prototype.draw?[{z:e,draw:o=>{this.draw(o)}}]:[{z:i,draw:o=>{this.drawBackground(),this.drawGrid(o),this.drawTitle()}},{z:s,draw:()=>{this.drawBorder()}},{z:e,draw:o=>{this.drawLabels(o)}}]}getMatchingVisibleMetas(t){let e=this.chart.getSortedVisibleDatasetMetas(),i=this.axis+"AxisID",s=[],o,r;for(o=0,r=e.length;o<r;++o){let a=e[o];a[i]===this.id&&(!t||a.type===t)&&s.push(a)}return s}_resolveTickFontOptions(t){let e=this.options.ticks.setContext(this.getContext(t));return Z(e.font)}_maxDigits(){let t=this._resolveTickFontOptions(0).lineHeight;return(this.isHorizontal()?this.width:this.height)/t}},ae=class{constructor(t,e,i){this.type=t,this.scope=e,this.override=i,this.items=Object.create(null)}isForType(t){return Object.prototype.isPrototypeOf.call(this.type.prototype,t.prototype)}register(t){let e=Object.getPrototypeOf(t),i;lh(e)&&(i=this.register(e));let s=this.items,o=t.id,r=this.scope+"."+o;if(!o)throw new Error("class does not have id: "+t);return o in s||(s[o]=t,ah(t,r,i),this.override&&H.override(t.id,t.overrides)),r}get(t){return this.items[t]}unregister(t){let e=this.items,i=t.id,s=this.scope;i in e&&delete e[i],s&&i in H[s]&&(delete H[s][i],this.override&&delete At[i])}};function ah(n,t,e){let i=te(Object.create(null),[e?H.get(e):{},H.get(t),n.defaults]);H.set(t,i),n.defaultRoutes&&ch(t,n.defaultRoutes),n.descriptors&&H.describe(t,n.descriptors)}function ch(n,t){Object.keys(t).forEach(e=>{let i=e.split("."),s=i.pop(),o=[n].concat(i).join("."),r=t[e].split("."),a=r.pop(),c=r.join(".");H.route(o,s,c,a)})}function lh(n){return"id"in n&&"defaults"in n}var Ms=class{constructor(){this.controllers=new ae(ce,"datasets",!0),this.elements=new ae($t,"elements"),this.plugins=new ae(Object,"plugins"),this.scales=new ae(le,"scales"),this._typedRegistries=[this.controllers,this.scales,this.elements]}add(...t){this._each("register",t)}remove(...t){this._each("unregister",t)}addControllers(...t){this._each("register",t,this.controllers)}addElements(...t){this._each("register",t,this.elements)}addPlugins(...t){this._each("register",t,this.plugins)}addScales(...t){this._each("register",t,this.scales)}getController(t){return this._get(t,this.controllers,"controller")}getElement(t){return this._get(t,this.elements,"element")}getPlugin(t){return this._get(t,this.plugins,"plugin")}getScale(t){return this._get(t,this.scales,"scale")}removeControllers(...t){this._each("unregister",t,this.controllers)}removeElements(...t){this._each("unregister",t,this.elements)}removePlugins(...t){this._each("unregister",t,this.plugins)}removeScales(...t){this._each("unregister",t,this.scales)}_each(t,e,i){[...e].forEach(s=>{let o=i||this._getRegistryForType(s);i||o.isForType(s)||o===this.plugins&&s.id?this._exec(t,o,s):E(s,r=>{let a=i||this._getRegistryForType(r);this._exec(t,a,r)})})}_exec(t,e,i){let s=ln(t);z(i["before"+s],[],i),e[t](i),z(i["after"+s],[],i)}_getRegistryForType(t){for(let e=0;e<this._typedRegistries.length;e++){let i=this._typedRegistries[e];if(i.isForType(t))return i}return this.plugins}_get(t,e,i){let s=e.get(t);if(s===void 0)throw new Error('"'+t+'" is not a registered '+i+".");return s}},gt=new Ms,ks=class{constructor(){this._init=[]}notify(t,e,i,s){e==="beforeInit"&&(this._init=this._createDescriptors(t,!0),this._notify(this._init,t,"install"));let o=s?this._descriptors(t).filter(s):this._descriptors(t),r=this._notify(o,t,e,i);return e==="afterDestroy"&&(this._notify(o,t,"stop"),this._notify(this._init,t,"uninstall")),r}_notify(t,e,i,s){s=s||{};for(let o of t){let r=o.plugin,a=r[i],c=[e,s,o.options];if(z(a,c,r)===!1&&s.cancelable)return!1}return!0}invalidate(){N(this._cache)||(this._oldCache=this._cache,this._cache=void 0)}_descriptors(t){if(this._cache)return this._cache;let e=this._cache=this._createDescriptors(t);return this._notifyStateChanges(t),e}_createDescriptors(t,e){let i=t&&t.config,s=R(i.options&&i.options.plugins,{}),o=hh(i);return s===!1&&!e?[]:dh(t,o,s,e)}_notifyStateChanges(t){let e=this._oldCache||[],i=this._cache,s=(o,r)=>o.filter(a=>!r.some(c=>a.plugin.id===c.plugin.id));this._notify(s(e,i),t,"stop"),this._notify(s(i,e),t,"start")}};function hh(n){let t={},e=[],i=Object.keys(gt.plugins.items);for(let o=0;o<i.length;o++)e.push(gt.getPlugin(i[o]));let s=n.plugins||[];for(let o=0;o<s.length;o++){let r=s[o];e.indexOf(r)===-1&&(e.push(r),t[r.id]=!0)}return{plugins:e,localIds:t}}function uh(n,t){return!t&&n===!1?null:n===!0?{}:n}function dh(n,{plugins:t,localIds:e},i,s){let o=[],r=n.getContext();for(let a of t){let c=a.id,l=uh(i[c],s);l!==null&&o.push({plugin:a,options:fh(n.config,{plugin:a,local:e[c]},l,r)})}return o}function fh(n,{plugin:t,local:e},i,s){let o=n.pluginScopeKeys(t),r=n.getOptionScopes(i,o);return e&&t.defaults&&r.push(t.defaults),n.createResolver(r,s,[""],{scriptable:!1,indexable:!1,allKeys:!0})}function Ds(n,t){let e=H.datasets[n]||{};return((t.datasets||{})[n]||{}).indexAxis||t.indexAxis||e.indexAxis||"x"}function ph(n,t){let e=n;return n==="_index_"?e=t:n==="_value_"&&(e=t==="x"?"y":"x"),e}function gh(n,t){return n===t?"_index_":"_value_"}function tr(n){if(n==="x"||n==="y"||n==="r")return n}function mh(n){if(n==="top"||n==="bottom")return"x";if(n==="left"||n==="right")return"y"}function vs(n,...t){if(tr(n))return n;for(let e of t){let i=e.axis||mh(e.position)||n.length>1&&tr(n[0].toLowerCase());if(i)return i}throw new Error(`Cannot determine type of '${n}' axis. Please provide 'axis' or 'position' option.`)}function er(n,t,e){if(e[t+"AxisID"]===n)return{axis:t}}function bh(n,t){if(t.data&&t.data.datasets){let e=t.data.datasets.filter(i=>i.xAxisID===n||i.yAxisID===n);if(e.length)return er(n,"x",e[0])||er(n,"y",e[0])}return{}}function xh(n,t){let e=At[n.type]||{scales:{}},i=t.scales||{},s=Ds(n.type,t),o=Object.create(null);return Object.keys(i).forEach(r=>{let a=i[r];if(!L(a))return console.error(`Invalid scale configuration for scale: ${r}`);if(a._proxy)return console.warn(`Ignoring resolver passed as options for scale: ${r}`);let c=vs(r,a,bh(r,n),H.scales[a.type]),l=gh(c,s),h=e.scales||{};o[r]=ne(Object.create(null),[{axis:c},a,h[c],h[l]])}),n.data.datasets.forEach(r=>{let a=r.type||n.type,c=r.indexAxis||Ds(a,t),h=(At[a]||{}).scales||{};Object.keys(h).forEach(u=>{let d=ph(u,c),f=r[d+"AxisID"]||d;o[f]=o[f]||Object.create(null),ne(o[f],[{axis:d},i[f],h[u]])})}),Object.keys(o).forEach(r=>{let a=o[r];ne(a,[H.scales[a.type],H.scale])}),o}function Er(n){let t=n.options||(n.options={});t.plugins=R(t.plugins,{}),t.scales=xh(n,t)}function Rr(n){return n=n||{},n.datasets=n.datasets||[],n.labels=n.labels||[],n}function yh(n){return n=n||{},n.data=Rr(n.data),Er(n),n}var nr=new Map,Fr=new Set;function kn(n,t){let e=nr.get(n);return e||(e=t(),nr.set(n,e),Fr.add(e)),e}var ze=(n,t,e)=>{let i=Vt(t,e);i!==void 0&&n.add(i)},Ps=class{constructor(t){this._config=yh(t),this._scopeCache=new Map,this._resolverCache=new Map}get platform(){return this._config.platform}get type(){return this._config.type}set type(t){this._config.type=t}get data(){return this._config.data}set data(t){this._config.data=Rr(t)}get options(){return this._config.options}set options(t){this._config.options=t}get plugins(){return this._config.plugins}update(){let t=this._config;this.clearCache(),Er(t)}clearCache(){this._scopeCache.clear(),this._resolverCache.clear()}datasetScopeKeys(t){return kn(t,()=>[[`datasets.${t}`,""]])}datasetAnimationScopeKeys(t,e){return kn(`${t}.transition.${e}`,()=>[[`datasets.${t}.transitions.${e}`,`transitions.${e}`],[`datasets.${t}`,""]])}datasetElementScopeKeys(t,e){return kn(`${t}-${e}`,()=>[[`datasets.${t}.elements.${e}`,`datasets.${t}`,`elements.${e}`,""]])}pluginScopeKeys(t){let e=t.id,i=this.type;return kn(`${i}-plugin-${e}`,()=>[[`plugins.${e}`,...t.additionalOptionScopes||[]]])}_cachedScopes(t,e){let i=this._scopeCache,s=i.get(t);return(!s||e)&&(s=new Map,i.set(t,s)),s}getOptionScopes(t,e,i){let{options:s,type:o}=this,r=this._cachedScopes(t,i),a=r.get(e);if(a)return a;let c=new Set;e.forEach(h=>{t&&(c.add(t),h.forEach(u=>ze(c,t,u))),h.forEach(u=>ze(c,s,u)),h.forEach(u=>ze(c,At[o]||{},u)),h.forEach(u=>ze(c,H,u)),h.forEach(u=>ze(c,dn,u))});let l=Array.from(c);return l.length===0&&l.push(Object.create(null)),Fr.has(e)&&r.set(e,l),l}chartOptionScopes(){let{options:t,type:e}=this;return[t,At[e]||{},H.datasets[e]||{},{type:e},H,dn]}resolveNamedOptions(t,e,i,s=[""]){let o={$shared:!0},{resolver:r,subPrefixes:a}=ir(this._resolverCache,t,s),c=r;if(wh(r,e)){o.$shared=!1,i=xt(i)?i():i;let l=this.createResolver(t,i,a);c=Yt(r,i,l)}for(let l of e)o[l]=c[l];return o}createResolver(t,e,i=[""],s){let{resolver:o}=ir(this._resolverCache,t,i);return L(e)?Yt(o,e,void 0,s):o}};function ir(n,t,e){let i=n.get(t);i||(i=new Map,n.set(t,i));let s=e.join(),o=i.get(s);return o||(o={resolver:gn(t,e),subPrefixes:e.filter(a=>!a.toLowerCase().includes("hover"))},i.set(s,o)),o}var _h=n=>L(n)&&Object.getOwnPropertyNames(n).some(t=>xt(n[t]));function wh(n,t){let{isScriptable:e,isIndexable:i}=os(n);for(let s of t){let o=e(s),r=i(s),a=(r||o)&&n[s];if(o&&(xt(a)||_h(a))||r&&W(a))return!0}return!1}var Mh="4.4.1",kh=["top","bottom","left","right","chartArea"];function sr(n,t){return n==="top"||n==="bottom"||kh.indexOf(n)===-1&&t==="x"}function or(n,t){return function(e,i){return e[n]===i[n]?e[t]-i[t]:e[n]-i[n]}}function rr(n){let t=n.chart,e=t.options.animation;t.notifyPlugins("afterRender"),z(e&&e.onComplete,[n],t)}function Dh(n){let t=n.chart,e=t.options.animation;z(e&&e.onProgress,[n],t)}function Nr(n){return mn()&&typeof n=="string"?n=document.getElementById(n):n&&n.length&&(n=n[0]),n&&n.canvas&&(n=n.canvas),n}var Sn={},ar=n=>{let t=Nr(n);return Object.values(Sn).filter(e=>e.canvas===t).pop()};function vh(n,t,e){let i=Object.keys(n);for(let s of i){let o=+s;if(o>=t){let r=n[s];delete n[s],(e>0||o>t)&&(n[o+e]=r)}}}function Ph(n,t,e,i){return!e||n.type==="mouseout"?null:i?t:n}function Dn(n,t,e){return n.options.clip?n[e]:t[e]}function Oh(n,t){let{xScale:e,yScale:i}=n;return e&&i?{left:Dn(e,t,"left"),right:Dn(e,t,"right"),top:Dn(i,t,"top"),bottom:Dn(i,t,"bottom")}:t}var he=class{static defaults=H;static instances=Sn;static overrides=At;static registry=gt;static version=Mh;static getChart=ar;static register(...t){gt.add(...t),cr()}static unregister(...t){gt.remove(...t),cr()}constructor(t,e){let i=this.config=new Ps(e),s=Nr(t),o=ar(s);if(o)throw new Error("Canvas is already in use. Chart with ID '"+o.id+"' must be destroyed before the canvas with ID '"+o.canvas.id+"' can be reused.");let r=i.createResolver(i.chartOptionScopes(),this.getContext());this.platform=new(i.platform||Xl(s)),this.platform.updateConfig(i);let a=this.platform.acquireContext(s,r.aspectRatio),c=a&&a.canvas,l=c&&c.height,h=c&&c.width;if(this.id=Qs(),this.ctx=a,this.canvas=c,this.width=h,this.height=l,this._options=r,this._aspectRatio=this.aspectRatio,this._layers=[],this._metasets=[],this._stacks=void 0,this.boxes=[],this.currentDevicePixelRatio=void 0,this.chartArea=void 0,this._active=[],this._lastEvent=void 0,this._listeners={},this._responsiveListeners=void 0,this._sortedMetasets=[],this.scales={},this._plugins=new ks,this.$proxies={},this._hiddenIndices={},this.attached=!1,this._animationsDisabled=void 0,this.$context=void 0,this._doResize=lo(u=>this.update(u),r.resizeDelay||0),this._dataChanges=[],Sn[this.id]=this,!a||!c){console.error("Failed to create chart: can't acquire context from the given item");return}wt.listen(this,"complete",rr),wt.listen(this,"progress",Dh),this._initialize(),this.attached&&this.update()}get aspectRatio(){let{options:{aspectRatio:t,maintainAspectRatio:e},width:i,height:s,_aspectRatio:o}=this;return N(t)?e&&o?o:s?i/s:null:t}get data(){return this.config.data}set data(t){this.config.data=t}get options(){return this._options}set options(t){this.config.options=t}get registry(){return gt}_initialize(){return this.notifyPlugins("beforeInit"),this.options.responsive?this.resize():cs(this,this.options.devicePixelRatio),this.bindEvents(),this.notifyPlugins("afterInit"),this}clear(){return es(this.canvas,this.ctx),this}stop(){return wt.stop(this),this}resize(t,e){wt.running(this)?this._resizeBeforeDraw={width:t,height:e}:this._resize(t,e)}_resize(t,e){let i=this.options,s=this.canvas,o=i.maintainAspectRatio&&this.aspectRatio,r=this.platform.getMaximumSize(s,t,e,o),a=i.devicePixelRatio||this.platform.getDevicePixelRatio(),c=this.width?"resize":"attach";this.width=r.width,this.height=r.height,this._aspectRatio=this.aspectRatio,cs(this,a,!0)&&(this.notifyPlugins("resize",{size:r}),z(i.onResize,[this,r],this),this.attached&&this._doResize(c)&&this.render())}ensureScalesHaveIDs(){let e=this.options.scales||{};E(e,(i,s)=>{i.id=s})}buildOrUpdateScales(){let t=this.options,e=t.scales,i=this.scales,s=Object.keys(i).reduce((r,a)=>(r[a]=!1,r),{}),o=[];e&&(o=o.concat(Object.keys(e).map(r=>{let a=e[r],c=vs(r,a),l=c==="r",h=c==="x";return{options:a,dposition:l?"chartArea":h?"bottom":"left",dtype:l?"radialLinear":h?"category":"linear"}}))),E(o,r=>{let a=r.options,c=a.id,l=vs(c,a),h=R(a.type,r.dtype);(a.position===void 0||sr(a.position,l)!==sr(r.dposition))&&(a.position=r.dposition),s[c]=!0;let u=null;if(c in i&&i[c].type===h)u=i[c];else{let d=gt.getScale(h);u=new d({id:c,type:h,ctx:this.ctx,chart:this}),i[u.id]=u}u.init(a,t)}),E(s,(r,a)=>{r||delete i[a]}),E(i,r=>{wn.configure(this,r,r.options),wn.addBox(this,r)})}_updateMetasets(){let t=this._metasets,e=this.data.datasets.length,i=t.length;if(t.sort((s,o)=>s.index-o.index),i>e){for(let s=e;s<i;++s)this._destroyDatasetMeta(s);t.splice(e,i-e)}this._sortedMetasets=t.slice(0).sort(or("order","index"))}_removeUnreferencedMetasets(){let{_metasets:t,data:{datasets:e}}=this;t.length>e.length&&delete this._stacks,t.forEach((i,s)=>{e.filter(o=>o===i._dataset).length===0&&this._destroyDatasetMeta(s)})}buildOrUpdateControllers(){let t=[],e=this.data.datasets,i,s;for(this._removeUnreferencedMetasets(),i=0,s=e.length;i<s;i++){let o=e[i],r=this.getDatasetMeta(i),a=o.type||this.config.type;if(r.type&&r.type!==a&&(this._destroyDatasetMeta(i),r=this.getDatasetMeta(i)),r.type=a,r.indexAxis=o.indexAxis||Ds(a,this.options),r.order=o.order||0,r.index=i,r.label=""+o.label,r.visible=this.isDatasetVisible(i),r.controller)r.controller.updateIndex(i),r.controller.linkScales();else{let c=gt.getController(a),{datasetElementType:l,dataElementType:h}=H.datasets[a];Object.assign(c,{dataElementType:gt.getElement(h),datasetElementType:l&>.getElement(l)}),r.controller=new c(this,i),t.push(r.controller)}}return this._updateMetasets(),t}_resetElements(){E(this.data.datasets,(t,e)=>{this.getDatasetMeta(e).controller.reset()},this)}reset(){this._resetElements(),this.notifyPlugins("reset")}update(t){let e=this.config;e.update();let i=this._options=e.createResolver(e.chartOptionScopes(),this.getContext()),s=this._animationsDisabled=!i.animation;if(this._updateScales(),this._checkEventBindings(),this._updateHiddenIndices(),this._plugins.invalidate(),this.notifyPlugins("beforeUpdate",{mode:t,cancelable:!0})===!1)return;let o=this.buildOrUpdateControllers();this.notifyPlugins("beforeElementsUpdate");let r=0;for(let l=0,h=this.data.datasets.length;l<h;l++){let{controller:u}=this.getDatasetMeta(l),d=!s&&o.indexOf(u)===-1;u.buildOrUpdateElements(d),r=Math.max(+u.getMaxOverflow(),r)}r=this._minPadding=i.layout.autoPadding?r:0,this._updateLayout(r),s||E(o,l=>{l.reset()}),this._updateDatasets(t),this.notifyPlugins("afterUpdate",{mode:t}),this._layers.sort(or("z","_idx"));let{_active:a,_lastEvent:c}=this;c?this._eventHandler(c,!0):a.length&&this._updateHoverStyles(a,a,!0),this.render()}_updateScales(){E(this.scales,t=>{wn.removeBox(this,t)}),this.ensureScalesHaveIDs(),this.buildOrUpdateScales()}_checkEventBindings(){let t=this.options,e=new Set(Object.keys(this._listeners)),i=new Set(t.events);(!qi(e,i)||!!this._responsiveListeners!==t.responsive)&&(this.unbindEvents(),this.bindEvents())}_updateHiddenIndices(){let{_hiddenIndices:t}=this,e=this._getUniformDataChanges()||[];for(let{method:i,start:s,count:o}of e){let r=i==="_removeElements"?-o:o;vh(t,s,r)}}_getUniformDataChanges(){let t=this._dataChanges;if(!t||!t.length)return;this._dataChanges=[];let e=this.data.datasets.length,i=o=>new Set(t.filter(r=>r[0]===o).map((r,a)=>a+","+r.splice(1).join(","))),s=i(0);for(let o=1;o<e;o++)if(!qi(s,i(o)))return;return Array.from(s).map(o=>o.split(",")).map(o=>({method:o[1],start:+o[2],count:+o[3]}))}_updateLayout(t){if(this.notifyPlugins("beforeLayout",{cancelable:!0})===!1)return;wn.update(this,this.width,this.height,t);let e=this.chartArea,i=e.width<=0||e.height<=0;this._layers=[],E(this.boxes,s=>{i&&s.position==="chartArea"||(s.configure&&s.configure(),this._layers.push(...s._layers()))},this),this._layers.forEach((s,o)=>{s._idx=o}),this.notifyPlugins("afterLayout")}_updateDatasets(t){if(this.notifyPlugins("beforeDatasetsUpdate",{mode:t,cancelable:!0})!==!1){for(let e=0,i=this.data.datasets.length;e<i;++e)this.getDatasetMeta(e).controller.configure();for(let e=0,i=this.data.datasets.length;e<i;++e)this._updateDataset(e,xt(t)?t({datasetIndex:e}):t);this.notifyPlugins("afterDatasetsUpdate",{mode:t})}}_updateDataset(t,e){let i=this.getDatasetMeta(t),s={meta:i,index:t,mode:e,cancelable:!0};this.notifyPlugins("beforeDatasetUpdate",s)!==!1&&(i.controller._update(e),s.cancelable=!1,this.notifyPlugins("afterDatasetUpdate",s))}render(){this.notifyPlugins("beforeRender",{cancelable:!0})!==!1&&(wt.has(this)?this.attached&&!wt.running(this)&&wt.start(this):(this.draw(),rr({chart:this})))}draw(){let t;if(this._resizeBeforeDraw){let{width:i,height:s}=this._resizeBeforeDraw;this._resize(i,s),this._resizeBeforeDraw=null}if(this.clear(),this.width<=0||this.height<=0||this.notifyPlugins("beforeDraw",{cancelable:!0})===!1)return;let e=this._layers;for(t=0;t<e.length&&e[t].z<=0;++t)e[t].draw(this.chartArea);for(this._drawDatasets();t<e.length;++t)e[t].draw(this.chartArea);this.notifyPlugins("afterDraw")}_getSortedDatasetMetas(t){let e=this._sortedMetasets,i=[],s,o;for(s=0,o=e.length;s<o;++s){let r=e[s];(!t||r.visible)&&i.push(r)}return i}getSortedVisibleDatasetMetas(){return this._getSortedDatasetMetas(!0)}_drawDatasets(){if(this.notifyPlugins("beforeDatasetsDraw",{cancelable:!0})===!1)return;let t=this.getSortedVisibleDatasetMetas();for(let e=t.length-1;e>=0;--e)this._drawDataset(t[e]);this.notifyPlugins("afterDatasetsDraw")}_drawDataset(t){let e=this.ctx,i=t._clip,s=!i.disabled,o=Oh(t,this.chartArea),r={meta:t,index:t.index,cancelable:!0};this.notifyPlugins("beforeDatasetDraw",r)!==!1&&(s&&ns(e,{left:i.left===!1?0:o.left-i.left,right:i.right===!1?this.width:o.right+i.right,top:i.top===!1?0:o.top-i.top,bottom:i.bottom===!1?this.height:o.bottom+i.bottom}),t.controller.draw(),s&&is(e),r.cancelable=!1,this.notifyPlugins("afterDatasetDraw",r))}isPointInArea(t){return dt(t,this.chartArea,this._minPadding)}getElementsAtEventForMode(t,e,i,s){let o=Sl.modes[e];return typeof o=="function"?o(this,t,i,s):[]}getDatasetMeta(t){let e=this.data.datasets[t],i=this._metasets,s=i.filter(o=>o&&o._dataset===e).pop();return s||(s={type:null,data:[],dataset:null,controller:null,hidden:null,xAxisID:null,yAxisID:null,order:e&&e.order||0,index:t,_dataset:e,_parsed:[],_sorted:!1},i.push(s)),s}getContext(){return this.$context||(this.$context=_t(null,{chart:this,type:"chart"}))}getVisibleDatasetCount(){return this.getSortedVisibleDatasetMetas().length}isDatasetVisible(t){let e=this.data.datasets[t];if(!e)return!1;let i=this.getDatasetMeta(t);return typeof i.hidden=="boolean"?!i.hidden:!e.hidden}setDatasetVisibility(t,e){let i=this.getDatasetMeta(t);i.hidden=!e}toggleDataVisibility(t){this._hiddenIndices[t]=!this._hiddenIndices[t]}getDataVisibility(t){return!this._hiddenIndices[t]}_updateVisibility(t,e,i){let s=i?"show":"hide",o=this.getDatasetMeta(t),r=o.controller._resolveAnimations(void 0,s);Ce(e)?(o.data[e].hidden=!i,this.update()):(this.setDatasetVisibility(t,i),r.update(o,{visible:i}),this.update(a=>a.datasetIndex===t?s:void 0))}hide(t,e){this._updateVisibility(t,e,!1)}show(t,e){this._updateVisibility(t,e,!0)}_destroyDatasetMeta(t){let e=this._metasets[t];e&&e.controller&&e.controller._destroy(),delete this._metasets[t]}_stop(){let t,e;for(this.stop(),wt.remove(this),t=0,e=this.data.datasets.length;t<e;++t)this._destroyDatasetMeta(t)}destroy(){this.notifyPlugins("beforeDestroy");let{canvas:t,ctx:e}=this;this._stop(),this.config.clearCache(),t&&(this.unbindEvents(),es(t,e),this.platform.releaseContext(e),this.canvas=null,this.ctx=null),delete Sn[this.id],this.notifyPlugins("afterDestroy")}toBase64Image(...t){return this.canvas.toDataURL(...t)}bindEvents(){this.bindUserEvents(),this.options.responsive?this.bindResponsiveEvents():this.attached=!0}bindUserEvents(){let t=this._listeners,e=this.platform,i=(o,r)=>{e.addEventListener(this,o,r),t[o]=r},s=(o,r,a)=>{o.offsetX=r,o.offsetY=a,this._eventHandler(o)};E(this.options.events,o=>i(o,s))}bindResponsiveEvents(){this._responsiveListeners||(this._responsiveListeners={});let t=this._responsiveListeners,e=this.platform,i=(c,l)=>{e.addEventListener(this,c,l),t[c]=l},s=(c,l)=>{t[c]&&(e.removeEventListener(this,c,l),delete t[c])},o=(c,l)=>{this.canvas&&this.resize(c,l)},r,a=()=>{s("attach",a),this.attached=!0,this.resize(),i("resize",o),i("detach",r)};r=()=>{this.attached=!1,s("resize",o),this._stop(),this._resize(0,0),i("attach",a)},e.isAttached(this.canvas)?a():r()}unbindEvents(){E(this._listeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._listeners={},E(this._responsiveListeners,(t,e)=>{this.platform.removeEventListener(this,e,t)}),this._responsiveListeners=void 0}updateHoverStyle(t,e,i){let s=i?"set":"remove",o,r,a,c;for(e==="dataset"&&(o=this.getDatasetMeta(t[0].datasetIndex),o.controller["_"+s+"DatasetHoverStyle"]()),a=0,c=t.length;a<c;++a){r=t[a];let l=r&&this.getDatasetMeta(r.datasetIndex).controller;l&&l[s+"HoverStyle"](r.element,r.datasetIndex,r.index)}}getActiveElements(){return this._active||[]}setActiveElements(t){let e=this._active||[],i=t.map(({datasetIndex:o,index:r})=>{let a=this.getDatasetMeta(o);if(!a)throw new Error("No dataset found at index "+o);return{datasetIndex:o,element:a.data[r],index:r}});!Te(i,e)&&(this._active=i,this._lastEvent=null,this._updateHoverStyles(i,e))}notifyPlugins(t,e,i){return this._plugins.notify(this,t,e,i)}isPluginEnabled(t){return this._plugins._cache.filter(e=>e.plugin.id===t).length===1}_updateHoverStyles(t,e,i){let s=this.options.hover,o=(c,l)=>c.filter(h=>!l.some(u=>h.datasetIndex===u.datasetIndex&&h.index===u.index)),r=o(e,t),a=i?t:o(t,e);r.length&&this.updateHoverStyle(r,s.mode,!1),a.length&&s.mode&&this.updateHoverStyle(a,s.mode,!0)}_eventHandler(t,e){let i={event:t,replay:e,cancelable:!0,inChartArea:this.isPointInArea(t)},s=r=>(r.options.events||this.options.events).includes(t.native.type);if(this.notifyPlugins("beforeEvent",i,s)===!1)return;let o=this._handleEvent(t,e,i.inChartArea);return i.cancelable=!1,this.notifyPlugins("afterEvent",i,s),(o||i.changed)&&this.render(),this}_handleEvent(t,e,i){let{_active:s=[],options:o}=this,r=e,a=this._getActiveElements(t,s,i,r),c=Zs(t),l=Ph(t,this._lastEvent,i,c);i&&(this._lastEvent=null,z(o.onHover,[t,a,this],this),c&&z(o.onClick,[t,a,this],this));let h=!Te(a,s);return(h||e)&&(this._active=a,this._updateHoverStyles(a,s,e)),this._lastEvent=l,h}_getActiveElements(t,e,i,s){if(t.type==="mouseout")return[];if(!i)return e;let o=this.options.hover;return this.getElementsAtEventForMode(t,o.mode,o,s)}};function cr(){return E(he.instances,n=>n._plugins.invalidate())}function Wr(n,t,e=t){n.lineCap=R(e.borderCapStyle,t.borderCapStyle),n.setLineDash(R(e.borderDash,t.borderDash)),n.lineDashOffset=R(e.borderDashOffset,t.borderDashOffset),n.lineJoin=R(e.borderJoinStyle,t.borderJoinStyle),n.lineWidth=R(e.borderWidth,t.borderWidth),n.strokeStyle=R(e.borderColor,t.borderColor)}function Sh(n,t,e){n.lineTo(e.x,e.y)}function Th(n){return n.stepped?bo:n.tension||n.cubicInterpolationMode==="monotone"?xo:Sh}function zr(n,t,e={}){let i=n.length,{start:s=0,end:o=i-1}=e,{start:r,end:a}=t,c=Math.max(s,r),l=Math.min(o,a),h=s<r&&o<r||s>a&&o>a;return{count:i,start:c,loop:t.loop,ilen:l<c&&!h?i+l-c:l-c}}function Ch(n,t,e,i){let{points:s,options:o}=t,{count:r,start:a,loop:c,ilen:l}=zr(s,e,i),h=Th(o),{move:u=!0,reverse:d}=i||{},f,m,p;for(f=0;f<=l;++f)m=s[(a+(d?l-f:f))%r],!m.skip&&(u?(n.moveTo(m.x,m.y),u=!1):h(n,p,m,d,o.stepped),p=m);return c&&(m=s[(a+(d?l:0))%r],h(n,p,m,d,o.stepped)),!!c}function Ah(n,t,e,i){let s=t.points,{count:o,start:r,ilen:a}=zr(s,e,i),{move:c=!0,reverse:l}=i||{},h=0,u=0,d,f,m,p,g,b,_=M=>(r+(l?a-M:M))%o,w=()=>{p!==g&&(n.lineTo(h,g),n.lineTo(h,p),n.lineTo(h,b))};for(c&&(f=s[_(0)],n.moveTo(f.x,f.y)),d=0;d<=a;++d){if(f=s[_(d)],f.skip)continue;let M=f.x,y=f.y,S=M|0;S===m?(y<p?p=y:y>g&&(g=y),h=(u*h+M)/++u):(w(),n.lineTo(M,y),m=S,u=0,p=g=y),b=y}w()}function Os(n){let t=n.options,e=t.borderDash&&t.borderDash.length;return!n._decimated&&!n._loop&&!t.tension&&t.cubicInterpolationMode!=="monotone"&&!t.stepped&&!e?Ah:Ch}function Lh(n){return n.stepped?To:n.tension||n.cubicInterpolationMode==="monotone"?Co:Tt}function Ih(n,t,e,i){let s=t._path;s||(s=t._path=new Path2D,t.path(s,e,i)&&s.closePath()),Wr(n,t.options),n.stroke(s)}function Eh(n,t,e,i){let{segments:s,options:o}=t,r=Os(t);for(let a of s)Wr(n,o,a.style),n.beginPath(),r(n,t,a,{start:e,end:e+i-1})&&n.closePath(),n.stroke()}var Rh=typeof Path2D=="function";function Fh(n,t,e,i){Rh&&!t.options.segment?Ih(n,t,e,i):Eh(n,t,e,i)}var In=class extends $t{static id="line";static defaults={borderCapStyle:"butt",borderDash:[],borderDashOffset:0,borderJoinStyle:"miter",borderWidth:3,capBezierPoints:!0,cubicInterpolationMode:"default",fill:!1,spanGaps:!1,stepped:!1,tension:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};static descriptors={_scriptable:!0,_indexable:t=>t!=="borderDash"&&t!=="fill"};constructor(t){super(),this.animated=!0,this.options=void 0,this._chart=void 0,this._loop=void 0,this._fullLoop=void 0,this._path=void 0,this._points=void 0,this._segments=void 0,this._decimated=!1,this._pointsUpdated=!1,this._datasetIndex=void 0,t&&Object.assign(this,t)}updateControlPoints(t,e){let i=this.options;if((i.tension||i.cubicInterpolationMode==="monotone")&&!i.stepped&&!this._pointsUpdated){let s=i.spanGaps?this._loop:this._fullLoop;Po(this._points,i,t,s,e),this._pointsUpdated=!0}}set points(t){this._points=t,delete this._segments,delete this._path,this._pointsUpdated=!1}get points(){return this._points}get segments(){return this._segments||(this._segments=Fo(this,this.options.segment))}first(){let t=this.segments,e=this.points;return t.length&&e[t[0].start]}last(){let t=this.segments,e=this.points,i=t.length;return i&&e[t[i-1].end]}interpolate(t,e){let i=this.options,s=t[e],o=this.points,r=Ro(this,{property:e,start:s,end:s});if(!r.length)return;let a=[],c=Lh(i),l,h;for(l=0,h=r.length;l<h;++l){let{start:u,end:d}=r[l],f=o[u],m=o[d];if(f===m){a.push(f);continue}let p=Math.abs((s-f[e])/(m[e]-f[e])),g=c(f,m,p,i.stepped);g[e]=t[e],a.push(g)}return a.length===1?a[0]:a}pathSegment(t,e,i){return Os(this)(t,this,e,i)}path(t,e,i){let s=this.segments,o=Os(this),r=this._loop;e=e||0,i=i||this.points.length-e;for(let a of s)r&=o(t,this,a,{start:e,end:e+i-1});return!!r}draw(t,e,i,s){let o=this.options||{};(this.points||[]).length&&o.borderWidth&&(t.save(),Fh(t,this,i,s),t.restore()),this.animated&&(this._pointsUpdated=!1,this._path=void 0)}};function lr(n,t,e,i){let s=n.options,{[e]:o}=n.getProps([e],i);return Math.abs(t-o)<s.radius+s.hitRadius}var En=class extends $t{static id="point";parsed;skip;stop;static defaults={borderWidth:1,hitRadius:1,hoverBorderWidth:1,hoverRadius:4,pointStyle:"circle",radius:3,rotation:0};static defaultRoutes={backgroundColor:"backgroundColor",borderColor:"borderColor"};constructor(t){super(),this.options=void 0,this.parsed=void 0,this.skip=void 0,this.stop=void 0,t&&Object.assign(this,t)}inRange(t,e,i){let s=this.options,{x:o,y:r}=this.getProps(["x","y"],i);return Math.pow(t-o,2)+Math.pow(e-r,2)<Math.pow(s.hitRadius+s.radius,2)}inXRange(t,e){return lr(this,t,"x",e)}inYRange(t,e){return lr(this,t,"y",e)}getCenterPoint(t){let{x:e,y:i}=this.getProps(["x","y"],t);return{x:e,y:i}}size(t){t=t||this.options||{};let e=t.radius||0;e=Math.max(e,e&&t.hoverRadius||0);let i=e&&t.borderWidth||0;return(e+i)*2}draw(t,e){let i=this.options;this.skip||i.radius<.1||!dt(this,e,this.size(i)/2)||(t.strokeStyle=i.borderColor,t.lineWidth=i.borderWidth,t.fillStyle=i.backgroundColor,fn(t,i,this.x,this.y))}getRange(){let t=this.options||{};return t.radius+t.hitRadius}};var Ss=["rgb(54, 162, 235)","rgb(255, 99, 132)","rgb(255, 159, 64)","rgb(255, 205, 86)","rgb(75, 192, 192)","rgb(153, 102, 255)","rgb(201, 203, 207)"],hr=Ss.map(n=>n.replace("rgb(","rgba(").replace(")",", 0.5)"));function Br(n){return Ss[n%Ss.length]}function Hr(n){return hr[n%hr.length]}function Nh(n,t){return n.borderColor=Br(t),n.backgroundColor=Hr(t),++t}function Wh(n,t){return n.backgroundColor=n.data.map(()=>Br(t++)),t}function zh(n,t){return n.backgroundColor=n.data.map(()=>Hr(t++)),t}function Bh(n){let t=0;return(e,i)=>{let s=n.getDatasetMeta(i).controller;s instanceof bs?t=Wh(e,t):s instanceof xs?t=zh(e,t):s&&(t=Nh(e,t))}}function ur(n){let t;for(t in n)if(n[t].borderColor||n[t].backgroundColor)return!0;return!1}function Hh(n){return n&&(n.borderColor||n.backgroundColor)}var Yr={id:"colors",defaults:{enabled:!0,forceOverride:!1},beforeLayout(n,t,e){if(!e.enabled)return;let{data:{datasets:i},options:s}=n.config,{elements:o}=s;if(!e.forceOverride&&(ur(i)||Hh(s)||o&&ur(o)))return;let r=Bh(n);i.forEach(r)}};var He={average(n){if(!n.length)return!1;let t,e,i=0,s=0,o=0;for(t=0,e=n.length;t<e;++t){let r=n[t].element;if(r&&r.hasValue()){let a=r.tooltipPosition();i+=a.x,s+=a.y,++o}}return{x:i/o,y:s/o}},nearest(n,t){if(!n.length)return!1;let e=t.x,i=t.y,s=Number.POSITIVE_INFINITY,o,r,a;for(o=0,r=n.length;o<r;++o){let c=n[o].element;if(c&&c.hasValue()){let l=c.getCenterPoint(),h=an(t,l);h<s&&(s=h,a=c)}}if(a){let c=a.tooltipPosition();e=c.x,i=c.y}return{x:e,y:i}}};function pt(n,t){return t&&(W(t)?Array.prototype.push.apply(n,t):n.push(t)),n}function Mt(n){return(typeof n=="string"||n instanceof String)&&n.indexOf(` +`)>-1?n.split(` +`):n}function Yh(n,t){let{element:e,datasetIndex:i,index:s}=t,o=n.getDatasetMeta(i).controller,{label:r,value:a}=o.getLabelAndValue(s);return{chart:n,label:r,parsed:o.getParsed(s),raw:n.data.datasets[i].data[s],formattedValue:a,dataset:o.getDataset(),dataIndex:s,datasetIndex:i,element:e}}function dr(n,t){let e=n.chart.ctx,{body:i,footer:s,title:o}=n,{boxWidth:r,boxHeight:a}=t,c=Z(t.bodyFont),l=Z(t.titleFont),h=Z(t.footerFont),u=o.length,d=s.length,f=i.length,m=nt(t.padding),p=m.height,g=0,b=i.reduce((M,y)=>M+y.before.length+y.lines.length+y.after.length,0);if(b+=n.beforeBody.length+n.afterBody.length,u&&(p+=u*l.lineHeight+(u-1)*t.titleSpacing+t.titleMarginBottom),b){let M=t.displayColors?Math.max(a,c.lineHeight):c.lineHeight;p+=f*M+(b-f)*c.lineHeight+(b-1)*t.bodySpacing}d&&(p+=t.footerMarginTop+d*h.lineHeight+(d-1)*t.footerSpacing);let _=0,w=function(M){g=Math.max(g,e.measureText(M).width+_)};return e.save(),e.font=l.string,E(n.title,w),e.font=c.string,E(n.beforeBody.concat(n.afterBody),w),_=t.displayColors?r+2+t.boxPadding:0,E(i,M=>{E(M.before,w),E(M.lines,w),E(M.after,w)}),_=0,e.font=h.string,E(n.footer,w),e.restore(),g+=m.width,{width:g,height:p}}function Vh(n,t){let{y:e,height:i}=t;return e<i/2?"top":e>n.height-i/2?"bottom":"center"}function jh(n,t,e,i){let{x:s,width:o}=i,r=e.caretSize+e.caretPadding;if(n==="left"&&s+o+r>t.width||n==="right"&&s-o-r<0)return!0}function qh(n,t,e,i){let{x:s,width:o}=e,{width:r,chartArea:{left:a,right:c}}=n,l="center";return i==="center"?l=s<=(a+c)/2?"left":"right":s<=o/2?l="left":s>=r-o/2&&(l="right"),jh(l,n,t,e)&&(l="center"),l}function fr(n,t,e){let i=e.yAlign||t.yAlign||Vh(n,e);return{xAlign:e.xAlign||t.xAlign||qh(n,t,e,i),yAlign:i}}function $h(n,t){let{x:e,width:i}=n;return t==="right"?e-=i:t==="center"&&(e-=i/2),e}function Xh(n,t,e){let{y:i,height:s}=n;return t==="top"?i+=e:t==="bottom"?i-=s+e:i-=s/2,i}function pr(n,t,e,i){let{caretSize:s,caretPadding:o,cornerRadius:r}=n,{xAlign:a,yAlign:c}=e,l=s+o,{topLeft:h,topRight:u,bottomLeft:d,bottomRight:f}=re(r),m=$h(t,a),p=Xh(t,c,l);return c==="center"?a==="left"?m+=l:a==="right"&&(m-=l):a==="left"?m-=Math.max(h,d)+s:a==="right"&&(m+=Math.max(u,f)+s),{x:rt(m,0,i.width-t.width),y:rt(p,0,i.height-t.height)}}function vn(n,t,e){let i=nt(e.padding);return t==="center"?n.x+n.width/2:t==="right"?n.x+n.width-i.right:n.x+i.left}function gr(n){return pt([],Mt(n))}function Uh(n,t,e){return _t(n,{tooltip:t,tooltipItems:e,type:"tooltip"})}function mr(n,t){let e=t&&t.dataset&&t.dataset.tooltip&&t.dataset.tooltip.callbacks;return e?n.override(e):n}var Vr={beforeTitle:ft,title(n){if(n.length>0){let t=n[0],e=t.chart.data.labels,i=e?e.length:0;if(this&&this.options&&this.options.mode==="dataset")return t.dataset.label||"";if(t.label)return t.label;if(i>0&&t.dataIndex<i)return e[t.dataIndex]}return""},afterTitle:ft,beforeBody:ft,beforeLabel:ft,label(n){if(this&&this.options&&this.options.mode==="dataset")return n.label+": "+n.formattedValue||n.formattedValue;let t=n.dataset.label||"";t&&(t+=": ");let e=n.formattedValue;return N(e)||(t+=e),t},labelColor(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{borderColor:e.borderColor,backgroundColor:e.backgroundColor,borderWidth:e.borderWidth,borderDash:e.borderDash,borderDashOffset:e.borderDashOffset,borderRadius:0}},labelTextColor(){return this.options.bodyColor},labelPointStyle(n){let e=n.chart.getDatasetMeta(n.datasetIndex).controller.getStyle(n.dataIndex);return{pointStyle:e.pointStyle,rotation:e.rotation}},afterLabel:ft,afterBody:ft,beforeFooter:ft,footer:ft,afterFooter:ft};function J(n,t,e,i){let s=n[t].call(e,i);return typeof s>"u"?Vr[t].call(e,i):s}var Rn=class extends $t{static positioners=He;constructor(t){super(),this.opacity=0,this._active=[],this._eventPosition=void 0,this._size=void 0,this._cachedAnimations=void 0,this._tooltipItems=[],this.$animations=void 0,this.$context=void 0,this.chart=t.chart,this.options=t.options,this.dataPoints=void 0,this.title=void 0,this.beforeBody=void 0,this.body=void 0,this.afterBody=void 0,this.footer=void 0,this.xAlign=void 0,this.yAlign=void 0,this.x=void 0,this.y=void 0,this.height=void 0,this.width=void 0,this.caretX=void 0,this.caretY=void 0,this.labelColors=void 0,this.labelPointStyles=void 0,this.labelTextColors=void 0}initialize(t){this.options=t,this._cachedAnimations=void 0,this.$context=void 0}_resolveAnimations(){let t=this._cachedAnimations;if(t)return t;let e=this.chart,i=this.options.setContext(this.getContext()),s=i.enabled&&e.options.animation&&i.animations,o=new Tn(this.chart,s);return s._cacheable&&(this._cachedAnimations=Object.freeze(o)),o}getContext(){return this.$context||(this.$context=Uh(this.chart.getContext(),this,this._tooltipItems))}getTitle(t,e){let{callbacks:i}=e,s=J(i,"beforeTitle",this,t),o=J(i,"title",this,t),r=J(i,"afterTitle",this,t),a=[];return a=pt(a,Mt(s)),a=pt(a,Mt(o)),a=pt(a,Mt(r)),a}getBeforeBody(t,e){return gr(J(e.callbacks,"beforeBody",this,t))}getBody(t,e){let{callbacks:i}=e,s=[];return E(t,o=>{let r={before:[],lines:[],after:[]},a=mr(i,o);pt(r.before,Mt(J(a,"beforeLabel",this,o))),pt(r.lines,J(a,"label",this,o)),pt(r.after,Mt(J(a,"afterLabel",this,o))),s.push(r)}),s}getAfterBody(t,e){return gr(J(e.callbacks,"afterBody",this,t))}getFooter(t,e){let{callbacks:i}=e,s=J(i,"beforeFooter",this,t),o=J(i,"footer",this,t),r=J(i,"afterFooter",this,t),a=[];return a=pt(a,Mt(s)),a=pt(a,Mt(o)),a=pt(a,Mt(r)),a}_createItems(t){let e=this._active,i=this.chart.data,s=[],o=[],r=[],a=[],c,l;for(c=0,l=e.length;c<l;++c)a.push(Yh(this.chart,e[c]));return t.filter&&(a=a.filter((h,u,d)=>t.filter(h,u,d,i))),t.itemSort&&(a=a.sort((h,u)=>t.itemSort(h,u,i))),E(a,h=>{let u=mr(t.callbacks,h);s.push(J(u,"labelColor",this,h)),o.push(J(u,"labelPointStyle",this,h)),r.push(J(u,"labelTextColor",this,h))}),this.labelColors=s,this.labelPointStyles=o,this.labelTextColors=r,this.dataPoints=a,a}update(t,e){let i=this.options.setContext(this.getContext()),s=this._active,o,r=[];if(!s.length)this.opacity!==0&&(o={opacity:0});else{let a=He[i.position].call(this,s,this._eventPosition);r=this._createItems(i),this.title=this.getTitle(r,i),this.beforeBody=this.getBeforeBody(r,i),this.body=this.getBody(r,i),this.afterBody=this.getAfterBody(r,i),this.footer=this.getFooter(r,i);let c=this._size=dr(this,i),l=Object.assign({},a,c),h=fr(this.chart,i,l),u=pr(i,l,h,this.chart);this.xAlign=h.xAlign,this.yAlign=h.yAlign,o={opacity:1,x:u.x,y:u.y,width:c.width,height:c.height,caretX:a.x,caretY:a.y}}this._tooltipItems=r,this.$context=void 0,o&&this._resolveAnimations().update(this,o),t&&i.external&&i.external.call(this,{chart:this.chart,tooltip:this,replay:e})}drawCaret(t,e,i,s){let o=this.getCaretPosition(t,i,s);e.lineTo(o.x1,o.y1),e.lineTo(o.x2,o.y2),e.lineTo(o.x3,o.y3)}getCaretPosition(t,e,i){let{xAlign:s,yAlign:o}=this,{caretSize:r,cornerRadius:a}=i,{topLeft:c,topRight:l,bottomLeft:h,bottomRight:u}=re(a),{x:d,y:f}=t,{width:m,height:p}=e,g,b,_,w,M,y;return o==="center"?(M=f+p/2,s==="left"?(g=d,b=g-r,w=M+r,y=M-r):(g=d+m,b=g+r,w=M-r,y=M+r),_=g):(s==="left"?b=d+Math.max(c,h)+r:s==="right"?b=d+m-Math.max(l,u)-r:b=this.caretX,o==="top"?(w=f,M=w-r,g=b-r,_=b+r):(w=f+p,M=w+r,g=b+r,_=b-r),y=w),{x1:g,x2:b,x3:_,y1:w,y2:M,y3:y}}drawTitle(t,e,i){let s=this.title,o=s.length,r,a,c;if(o){let l=yn(i.rtl,this.x,this.width);for(t.x=vn(this,i.titleAlign,i),e.textAlign=l.textAlign(i.titleAlign),e.textBaseline="middle",r=Z(i.titleFont),a=i.titleSpacing,e.fillStyle=i.titleColor,e.font=r.string,c=0;c<o;++c)e.fillText(s[c],l.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+a,c+1===o&&(t.y+=i.titleMarginBottom-a)}}_drawColorBox(t,e,i,s,o){let r=this.labelColors[i],a=this.labelPointStyles[i],{boxHeight:c,boxWidth:l}=o,h=Z(o.bodyFont),u=vn(this,"left",o),d=s.x(u),f=c<h.lineHeight?(h.lineHeight-c)/2:0,m=e.y+f;if(o.usePointStyle){let p={radius:Math.min(l,c)/2,pointStyle:a.pointStyle,rotation:a.rotation,borderWidth:1},g=s.leftForLtr(d,l)+l/2,b=m+c/2;t.strokeStyle=o.multiKeyBackground,t.fillStyle=o.multiKeyBackground,fn(t,p,g,b),t.strokeStyle=r.borderColor,t.fillStyle=r.backgroundColor,fn(t,p,g,b)}else{t.lineWidth=L(r.borderWidth)?Math.max(...Object.values(r.borderWidth)):r.borderWidth||1,t.strokeStyle=r.borderColor,t.setLineDash(r.borderDash||[]),t.lineDashOffset=r.borderDashOffset||0;let p=s.leftForLtr(d,l),g=s.leftForLtr(s.xPlus(d,1),l-2),b=re(r.borderRadius);Object.values(b).some(_=>_!==0)?(t.beginPath(),t.fillStyle=o.multiKeyBackground,pn(t,{x:p,y:m,w:l,h:c,radius:b}),t.fill(),t.stroke(),t.fillStyle=r.backgroundColor,t.beginPath(),pn(t,{x:g,y:m+1,w:l-2,h:c-2,radius:b}),t.fill()):(t.fillStyle=o.multiKeyBackground,t.fillRect(p,m,l,c),t.strokeRect(p,m,l,c),t.fillStyle=r.backgroundColor,t.fillRect(g,m+1,l-2,c-2))}t.fillStyle=this.labelTextColors[i]}drawBody(t,e,i){let{body:s}=this,{bodySpacing:o,bodyAlign:r,displayColors:a,boxHeight:c,boxWidth:l,boxPadding:h}=i,u=Z(i.bodyFont),d=u.lineHeight,f=0,m=yn(i.rtl,this.x,this.width),p=function(v){e.fillText(v,m.x(t.x+f),t.y+d/2),t.y+=d+o},g=m.textAlign(r),b,_,w,M,y,S,D;for(e.textAlign=r,e.textBaseline="middle",e.font=u.string,t.x=vn(this,g,i),e.fillStyle=i.bodyColor,E(this.beforeBody,p),f=a&&g!=="right"?r==="center"?l/2+h:l+2+h:0,M=0,S=s.length;M<S;++M){for(b=s[M],_=this.labelTextColors[M],e.fillStyle=_,E(b.before,p),w=b.lines,a&&w.length&&(this._drawColorBox(e,t,M,m,i),d=Math.max(u.lineHeight,c)),y=0,D=w.length;y<D;++y)p(w[y]),d=u.lineHeight;E(b.after,p)}f=0,d=u.lineHeight,E(this.afterBody,p),t.y-=o}drawFooter(t,e,i){let s=this.footer,o=s.length,r,a;if(o){let c=yn(i.rtl,this.x,this.width);for(t.x=vn(this,i.footerAlign,i),t.y+=i.footerMarginTop,e.textAlign=c.textAlign(i.footerAlign),e.textBaseline="middle",r=Z(i.footerFont),e.fillStyle=i.footerColor,e.font=r.string,a=0;a<o;++a)e.fillText(s[a],c.x(t.x),t.y+r.lineHeight/2),t.y+=r.lineHeight+i.footerSpacing}}drawBackground(t,e,i,s){let{xAlign:o,yAlign:r}=this,{x:a,y:c}=t,{width:l,height:h}=i,{topLeft:u,topRight:d,bottomLeft:f,bottomRight:m}=re(s.cornerRadius);e.fillStyle=s.backgroundColor,e.strokeStyle=s.borderColor,e.lineWidth=s.borderWidth,e.beginPath(),e.moveTo(a+u,c),r==="top"&&this.drawCaret(t,e,i,s),e.lineTo(a+l-d,c),e.quadraticCurveTo(a+l,c,a+l,c+d),r==="center"&&o==="right"&&this.drawCaret(t,e,i,s),e.lineTo(a+l,c+h-m),e.quadraticCurveTo(a+l,c+h,a+l-m,c+h),r==="bottom"&&this.drawCaret(t,e,i,s),e.lineTo(a+f,c+h),e.quadraticCurveTo(a,c+h,a,c+h-f),r==="center"&&o==="left"&&this.drawCaret(t,e,i,s),e.lineTo(a,c+u),e.quadraticCurveTo(a,c,a+u,c),e.closePath(),e.fill(),s.borderWidth>0&&e.stroke()}_updateAnimationTarget(t){let e=this.chart,i=this.$animations,s=i&&i.x,o=i&&i.y;if(s||o){let r=He[t.position].call(this,this._active,this._eventPosition);if(!r)return;let a=this._size=dr(this,t),c=Object.assign({},r,this._size),l=fr(e,t,c),h=pr(t,c,l,e);(s._to!==h.x||o._to!==h.y)&&(this.xAlign=l.xAlign,this.yAlign=l.yAlign,this.width=a.width,this.height=a.height,this.caretX=r.x,this.caretY=r.y,this._resolveAnimations().update(this,h))}}_willRender(){return!!this.opacity}draw(t){let e=this.options.setContext(this.getContext()),i=this.opacity;if(!i)return;this._updateAnimationTarget(e);let s={width:this.width,height:this.height},o={x:this.x,y:this.y};i=Math.abs(i)<.001?0:i;let r=nt(e.padding),a=this.title.length||this.beforeBody.length||this.body.length||this.afterBody.length||this.footer.length;e.enabled&&a&&(t.save(),t.globalAlpha=i,this.drawBackground(o,t,s,e),Ao(t,e.textDirection),o.y+=r.top,this.drawTitle(o,t,e),this.drawBody(o,t,e),this.drawFooter(o,t,e),Lo(t,e.textDirection),t.restore())}getActiveElements(){return this._active||[]}setActiveElements(t,e){let i=this._active,s=t.map(({datasetIndex:a,index:c})=>{let l=this.chart.getDatasetMeta(a);if(!l)throw new Error("Cannot find a dataset at index "+a);return{datasetIndex:a,element:l.data[c],index:c}}),o=!Te(i,s),r=this._positionChanged(s,e);(o||r)&&(this._active=s,this._eventPosition=e,this._ignoreReplayEvents=!0,this.update(!0))}handleEvent(t,e,i=!0){if(e&&this._ignoreReplayEvents)return!1;this._ignoreReplayEvents=!1;let s=this.options,o=this._active||[],r=this._getActiveElements(t,o,e,i),a=this._positionChanged(r,t),c=e||!Te(r,o)||a;return c&&(this._active=r,(s.enabled||s.external)&&(this._eventPosition={x:t.x,y:t.y},this.update(!0,e))),c}_getActiveElements(t,e,i,s){let o=this.options;if(t.type==="mouseout")return[];if(!s)return e.filter(a=>this.chart.data.datasets[a.datasetIndex]&&this.chart.getDatasetMeta(a.datasetIndex).controller.getParsed(a.index)!==void 0);let r=this.chart.getElementsAtEventForMode(t,o.mode,o,i);return o.reverse&&r.reverse(),r}_positionChanged(t,e){let{caretX:i,caretY:s,options:o}=this,r=He[o.position].call(this,t,e);return r!==!1&&(i!==r.x||s!==r.y)}},jr={id:"tooltip",_element:Rn,positioners:He,afterInit(n,t,e){e&&(n.tooltip=new Rn({chart:n,options:e}))},beforeUpdate(n,t,e){n.tooltip&&n.tooltip.initialize(e)},reset(n,t,e){n.tooltip&&n.tooltip.initialize(e)},afterDraw(n){let t=n.tooltip;if(t&&t._willRender()){let e={tooltip:t};if(n.notifyPlugins("beforeTooltipDraw",{...e,cancelable:!0})===!1)return;t.draw(n.ctx),n.notifyPlugins("afterTooltipDraw",e)}},afterEvent(n,t){if(n.tooltip){let e=t.replay;n.tooltip.handleEvent(t.event,e,t.inChartArea)&&(t.changed=!0)}},defaults:{enabled:!0,external:null,position:"average",backgroundColor:"rgba(0,0,0,0.8)",titleColor:"#fff",titleFont:{weight:"bold"},titleSpacing:2,titleMarginBottom:6,titleAlign:"left",bodyColor:"#fff",bodySpacing:2,bodyFont:{},bodyAlign:"left",footerColor:"#fff",footerSpacing:2,footerMarginTop:6,footerFont:{weight:"bold"},footerAlign:"left",padding:6,caretPadding:2,caretSize:5,cornerRadius:6,boxHeight:(n,t)=>t.bodyFont.size,boxWidth:(n,t)=>t.bodyFont.size,multiKeyBackground:"#fff",displayColors:!0,boxPadding:0,borderColor:"rgba(0,0,0,0)",borderWidth:0,animation:{duration:400,easing:"easeOutQuart"},animations:{numbers:{type:"number",properties:["x","y","width","height","caretX","caretY"]},opacity:{easing:"linear",duration:200}},callbacks:Vr},defaultRoutes:{bodyFont:"font",footerFont:"font",titleFont:"font"},descriptors:{_scriptable:n=>n!=="filter"&&n!=="itemSort"&&n!=="external",_indexable:!1,callbacks:{_scriptable:!1,_indexable:!1},animation:{_fallback:!1},animations:{_fallback:"animation"}},additionalOptionScopes:["interaction"]};function Qh(n,t){let e=[],{bounds:s,step:o,min:r,max:a,precision:c,count:l,maxTicks:h,maxDigits:u,includeBounds:d}=n,f=o||1,m=h-1,{min:p,max:g}=t,b=!N(r),_=!N(a),w=!N(l),M=(g-p)/(u+1),y=$i((g-p)/m/f)*f,S,D,v,C;if(y<1e-14&&!b&&!_)return[{value:p},{value:g}];C=Math.ceil(g/y)-Math.floor(p/y),C>m&&(y=$i(C*y/m/f)*f),N(c)||(S=Math.pow(10,c),y=Math.ceil(y*S)/S),s==="ticks"?(D=Math.floor(p/y)*y,v=Math.ceil(g/y)*y):(D=p,v=g),b&&_&&o&&to((a-r)/o,y/1e3)?(C=Math.round(Math.min((a-r)/y,h)),y=(a-r)/C,D=r,v=a):w?(D=b?r:D,v=_?a:v,C=l-1,y=(v-D)/C):(C=(v-D)/y,ie(C,Math.round(C),y/1e3)?C=Math.round(C):C=Math.ceil(C));let Y=Math.max(Ui(y),Ui(D));S=Math.pow(10,N(c)?Y:c),D=Math.round(D*S)/S,v=Math.round(v*S)/S;let V=0;for(b&&(d&&D!==r?(e.push({value:r}),D<r&&V++,ie(Math.round((D+V*y)*S)/S,r,br(r,M,n))&&V++):D<r&&V++);V<C;++V){let q=Math.round((D+V*y)*S)/S;if(_&&q>a)break;e.push({value:q})}return _&&d&&v!==a?e.length&&ie(e[e.length-1].value,a,br(a,M,n))?e[e.length-1].value=a:e.push({value:a}):(!_||v===a)&&e.push({value:v}),e}function br(n,t,{horizontal:e,minRotation:i}){let s=at(i),o=(e?Math.sin(s):Math.cos(s))||.001,r=.75*t*(""+n).length;return Math.min(t/o,r)}var ue=class extends le{constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._endValue=void 0,this._valueRange=0}parse(t,e){return N(t)||(typeof t=="number"||t instanceof Number)&&!isFinite(+t)?null:+t}handleTickRangeOptions(){let{beginAtZero:t}=this.options,{minDefined:e,maxDefined:i}=this.getUserBounds(),{min:s,max:o}=this,r=c=>s=e?s:c,a=c=>o=i?o:c;if(t){let c=Ht(s),l=Ht(o);c<0&&l<0?a(0):c>0&&l>0&&r(0)}if(s===o){let c=o===0?1:Math.abs(o*.05);a(o+c),t||r(s-c)}this.min=s,this.max=o}getTickLimit(){let t=this.options.ticks,{maxTicksLimit:e,stepSize:i}=t,s;return i?(s=Math.ceil(this.max/i)-Math.floor(this.min/i)+1,s>1e3&&(console.warn(`scales.${this.id}.ticks.stepSize: ${i} would result generating up to ${s} ticks. Limiting to 1000.`),s=1e3)):(s=this.computeTickLimit(),e=e||11),e&&(s=Math.min(e,s)),s}computeTickLimit(){return Number.POSITIVE_INFINITY}buildTicks(){let t=this.options,e=t.ticks,i=this.getTickLimit();i=Math.max(2,i);let s={maxTicks:i,bounds:t.bounds,min:t.min,max:t.max,precision:e.precision,step:e.stepSize,count:e.count,maxDigits:this._maxDigits(),horizontal:this.isHorizontal(),minRotation:e.minRotation||0,includeBounds:e.includeBounds!==!1},o=this._range||this,r=Qh(s,o);return t.bounds==="ticks"&&Xi(r,this,"value"),t.reverse?(r.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),r}configure(){let t=this.ticks,e=this.min,i=this.max;if(super.configure(),this.options.offset&&t.length){let s=(i-e)/Math.max(t.length-1,1)/2;e-=s,i+=s}this._startValue=e,this._endValue=i,this._valueRange=i-e}getLabelForValue(t){return oe(t,this.chart.options.locale,this.options.ticks.format)}},Fn=class extends ue{static id="linear";static defaults={ticks:{callback:Le.formatters.numeric}};determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=$(t)?t:0,this.max=$(e)?e:1,this.handleTickRangeOptions()}computeTickLimit(){let t=this.isHorizontal(),e=t?this.width:this.height,i=at(this.options.ticks.minRotation),s=(t?Math.sin(i):Math.cos(i))||.001,o=this._resolveTickFontOptions(0);return Math.ceil(e/Math.min(40,o.lineHeight/s))}getPixelForValue(t){return t===null?NaN:this.getPixelForDecimal((t-this._startValue)/this._valueRange)}getValueForPixel(t){return this._startValue+this.getDecimalForPixel(t)*this._valueRange}},Ve=n=>Math.floor(yt(n)),qt=(n,t)=>Math.pow(10,Ve(n)+t);function xr(n){return n/Math.pow(10,Ve(n))===1}function yr(n,t,e){let i=Math.pow(10,e),s=Math.floor(n/i);return Math.ceil(t/i)-s}function Gh(n,t){let e=t-n,i=Ve(e);for(;yr(n,t,i)>10;)i++;for(;yr(n,t,i)<10;)i--;return Math.min(i,Ve(n))}function Kh(n,{min:t,max:e}){t=K(n.min,t);let i=[],s=Ve(t),o=Gh(t,e),r=o<0?Math.pow(10,Math.abs(o)):1,a=Math.pow(10,o),c=s>o?Math.pow(10,s):0,l=Math.round((t-c)*r)/r,h=Math.floor((t-c)/a/10)*a*10,u=Math.floor((l-h)/Math.pow(10,o)),d=K(n.min,Math.round((c+h+u*Math.pow(10,o))*r)/r);for(;d<e;)i.push({value:d,major:xr(d),significand:u}),u>=10?u=u<15?15:20:u++,u>=20&&(o++,u=2,r=o>=0?1:r),d=Math.round((c+h+u*Math.pow(10,o))*r)/r;let f=K(n.max,d);return i.push({value:f,major:xr(f),significand:u}),i}var _r=class extends le{static id="logarithmic";static defaults={ticks:{callback:Le.formatters.logarithmic,major:{enabled:!0}}};constructor(t){super(t),this.start=void 0,this.end=void 0,this._startValue=void 0,this._valueRange=0}parse(t,e){let i=ue.prototype.parse.apply(this,[t,e]);if(i===0){this._zero=!0;return}return $(i)&&i>0?i:null}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!0);this.min=$(t)?Math.max(0,t):null,this.max=$(e)?Math.max(0,e):null,this.options.beginAtZero&&(this._zero=!0),this._zero&&this.min!==this._suggestedMin&&!$(this._userMin)&&(this.min=t===qt(this.min,0)?qt(this.min,-1):qt(this.min,0)),this.handleTickRangeOptions()}handleTickRangeOptions(){let{minDefined:t,maxDefined:e}=this.getUserBounds(),i=this.min,s=this.max,o=a=>i=t?i:a,r=a=>s=e?s:a;i===s&&(i<=0?(o(1),r(10)):(o(qt(i,-1)),r(qt(s,1)))),i<=0&&o(qt(s,-1)),s<=0&&r(qt(i,1)),this.min=i,this.max=s}buildTicks(){let t=this.options,e={min:this._userMin,max:this._userMax},i=Kh(e,this);return t.bounds==="ticks"&&Xi(i,this,"value"),t.reverse?(i.reverse(),this.start=this.max,this.end=this.min):(this.start=this.min,this.end=this.max),i}getLabelForValue(t){return t===void 0?"0":oe(t,this.chart.options.locale,this.options.ticks.format)}configure(){let t=this.min;super.configure(),this._startValue=yt(t),this._valueRange=yt(this.max)-yt(t)}getPixelForValue(t){return(t===void 0||t===0)&&(t=this.min),t===null||isNaN(t)?NaN:this.getPixelForDecimal(t===this.min?0:(yt(t)-this._startValue)/this._valueRange)}getValueForPixel(t){let e=this.getDecimalForPixel(t);return Math.pow(10,this._startValue+e*this._valueRange)}};function Ts(n){let t=n.ticks;if(t.display&&n.display){let e=nt(t.backdropPadding);return R(t.font&&t.font.size,H.font.size)+e.height}return 0}function Zh(n,t,e){return e=W(e)?e:[e],{w:go(n,t.string,e),h:e.length*t.lineHeight}}function wr(n,t,e,i,s){return n===i||n===s?{start:t-e/2,end:t+e/2}:n<i||n>s?{start:t-e,end:t}:{start:t,end:t+e}}function Jh(n){let t={l:n.left+n._padding.left,r:n.right-n._padding.right,t:n.top+n._padding.top,b:n.bottom-n._padding.bottom},e=Object.assign({},t),i=[],s=[],o=n._pointLabels.length,r=n.options.pointLabels,a=r.centerPointLabels?B/o:0;for(let c=0;c<o;c++){let l=r.setContext(n.getPointLabelContext(c));s[c]=l.padding;let h=n.getPointPosition(c,n.drawingArea+s[c],a),u=Z(l.font),d=Zh(n.ctx,u,n._pointLabels[c]);i[c]=d;let f=ot(n.getIndexAngle(c)+a),m=Math.round(hn(f)),p=wr(m,h.x,d.w,0,180),g=wr(m,h.y,d.h,90,270);tu(e,t,f,p,g)}n.setCenterPoint(t.l-e.l,e.r-t.r,t.t-e.t,e.b-t.b),n._pointLabelItems=iu(n,i,s)}function tu(n,t,e,i,s){let o=Math.abs(Math.sin(e)),r=Math.abs(Math.cos(e)),a=0,c=0;i.start<t.l?(a=(t.l-i.start)/o,n.l=Math.min(n.l,t.l-a)):i.end>t.r&&(a=(i.end-t.r)/o,n.r=Math.max(n.r,t.r+a)),s.start<t.t?(c=(t.t-s.start)/r,n.t=Math.min(n.t,t.t-c)):s.end>t.b&&(c=(s.end-t.b)/r,n.b=Math.max(n.b,t.b+c))}function eu(n,t,e){let i=n.drawingArea,{extra:s,additionalAngle:o,padding:r,size:a}=e,c=n.getPointPosition(t,i+s+r,o),l=Math.round(hn(ot(c.angle+G))),h=ru(c.y,a.h,l),u=su(l),d=ou(c.x,a.w,u);return{visible:!0,x:c.x,y:h,textAlign:u,left:d,top:h,right:d+a.w,bottom:h+a.h}}function nu(n,t){if(!t)return!0;let{left:e,top:i,right:s,bottom:o}=n;return!(dt({x:e,y:i},t)||dt({x:e,y:o},t)||dt({x:s,y:i},t)||dt({x:s,y:o},t))}function iu(n,t,e){let i=[],s=n._pointLabels.length,o=n.options,{centerPointLabels:r,display:a}=o.pointLabels,c={extra:Ts(o)/2,additionalAngle:r?B/s:0},l;for(let h=0;h<s;h++){c.padding=e[h],c.size=t[h];let u=eu(n,h,c);i.push(u),a==="auto"&&(u.visible=nu(u,l),u.visible&&(l=u))}return i}function su(n){return n===0||n===180?"center":n<180?"left":"right"}function ou(n,t,e){return e==="right"?n-=t:e==="center"&&(n-=t/2),n}function ru(n,t,e){return e===90||e===270?n-=t/2:(e>270||e<90)&&(n-=t),n}function au(n,t,e){let{left:i,top:s,right:o,bottom:r}=e,{backdropColor:a}=t;if(!N(a)){let c=re(t.borderRadius),l=nt(t.backdropPadding);n.fillStyle=a;let h=i-l.left,u=s-l.top,d=o-i+l.width,f=r-s+l.height;Object.values(c).some(m=>m!==0)?(n.beginPath(),pn(n,{x:h,y:u,w:d,h:f,radius:c}),n.fill()):n.fillRect(h,u,d,f)}}function cu(n,t){let{ctx:e,options:{pointLabels:i}}=n;for(let s=t-1;s>=0;s--){let o=n._pointLabelItems[s];if(!o.visible)continue;let r=i.setContext(n.getPointLabelContext(s));au(e,r,o);let a=Z(r.font),{x:c,y:l,textAlign:h}=o;Ie(e,n._pointLabels[s],c,l+a.lineHeight/2,a,{color:r.color,textAlign:h,textBaseline:"middle"})}}function qr(n,t,e,i){let{ctx:s}=n;if(e)s.arc(n.xCenter,n.yCenter,t,0,X);else{let o=n.getPointPosition(0,t);s.moveTo(o.x,o.y);for(let r=1;r<i;r++)o=n.getPointPosition(r,t),s.lineTo(o.x,o.y)}}function lu(n,t,e,i,s){let o=n.ctx,r=t.circular,{color:a,lineWidth:c}=t;!r&&!i||!a||!c||e<0||(o.save(),o.strokeStyle=a,o.lineWidth=c,o.setLineDash(s.dash),o.lineDashOffset=s.dashOffset,o.beginPath(),qr(n,e,r,i),o.closePath(),o.stroke(),o.restore())}function hu(n,t,e){return _t(n,{label:e,index:t,type:"pointLabel"})}var Mr=class extends ue{static id="radialLinear";static defaults={display:!0,animate:!0,position:"chartArea",angleLines:{display:!0,lineWidth:1,borderDash:[],borderDashOffset:0},grid:{circular:!1},startAngle:0,ticks:{showLabelBackdrop:!0,callback:Le.formatters.numeric},pointLabels:{backdropColor:void 0,backdropPadding:2,display:!0,font:{size:10},callback(t){return t},padding:5,centerPointLabels:!1}};static defaultRoutes={"angleLines.color":"borderColor","pointLabels.color":"color","ticks.color":"color"};static descriptors={angleLines:{_fallback:"grid"}};constructor(t){super(t),this.xCenter=void 0,this.yCenter=void 0,this.drawingArea=void 0,this._pointLabels=[],this._pointLabelItems=[]}setDimensions(){let t=this._padding=nt(Ts(this.options)/2),e=this.width=this.maxWidth-t.width,i=this.height=this.maxHeight-t.height;this.xCenter=Math.floor(this.left+e/2+t.left),this.yCenter=Math.floor(this.top+i/2+t.top),this.drawingArea=Math.floor(Math.min(e,i)/2)}determineDataLimits(){let{min:t,max:e}=this.getMinMax(!1);this.min=$(t)&&!isNaN(t)?t:0,this.max=$(e)&&!isNaN(e)?e:0,this.handleTickRangeOptions()}computeTickLimit(){return Math.ceil(this.drawingArea/Ts(this.options))}generateTickLabels(t){ue.prototype.generateTickLabels.call(this,t),this._pointLabels=this.getLabels().map((e,i)=>{let s=z(this.options.pointLabels.callback,[e,i],this);return s||s===0?s:""}).filter((e,i)=>this.chart.getDataVisibility(i))}fit(){let t=this.options;t.display&&t.pointLabels.display?Jh(this):this.setCenterPoint(0,0,0,0)}setCenterPoint(t,e,i,s){this.xCenter+=Math.floor((t-e)/2),this.yCenter+=Math.floor((i-s)/2),this.drawingArea-=Math.min(this.drawingArea/2,Math.max(t,e,i,s))}getIndexAngle(t){let e=X/(this._pointLabels.length||1),i=this.options.startAngle||0;return ot(t*e+at(i))}getDistanceFromCenterForValue(t){if(N(t))return NaN;let e=this.drawingArea/(this.max-this.min);return this.options.reverse?(this.max-t)*e:(t-this.min)*e}getValueForDistanceFromCenter(t){if(N(t))return NaN;let e=t/(this.drawingArea/(this.max-this.min));return this.options.reverse?this.max-e:this.min+e}getPointLabelContext(t){let e=this._pointLabels||[];if(t>=0&&t<e.length){let i=e[t];return hu(this.getContext(),t,i)}}getPointPosition(t,e,i=0){let s=this.getIndexAngle(t)-G+i;return{x:Math.cos(s)*e+this.xCenter,y:Math.sin(s)*e+this.yCenter,angle:s}}getPointPositionForValue(t,e){return this.getPointPosition(t,this.getDistanceFromCenterForValue(e))}getBasePosition(t){return this.getPointPositionForValue(t||0,this.getBaseValue())}getPointLabelPosition(t){let{left:e,top:i,right:s,bottom:o}=this._pointLabelItems[t];return{left:e,top:i,right:s,bottom:o}}drawBackground(){let{backgroundColor:t,grid:{circular:e}}=this.options;if(t){let i=this.ctx;i.save(),i.beginPath(),qr(this,this.getDistanceFromCenterForValue(this._endValue),e,this._pointLabels.length),i.closePath(),i.fillStyle=t,i.fill(),i.restore()}}drawGrid(){let t=this.ctx,e=this.options,{angleLines:i,grid:s,border:o}=e,r=this._pointLabels.length,a,c,l;if(e.pointLabels.display&&cu(this,r),s.display&&this.ticks.forEach((h,u)=>{if(u!==0){c=this.getDistanceFromCenterForValue(h.value);let d=this.getContext(u),f=s.setContext(d),m=o.setContext(d);lu(this,f,c,r,m)}}),i.display){for(t.save(),a=r-1;a>=0;a--){let h=i.setContext(this.getPointLabelContext(a)),{color:u,lineWidth:d}=h;!d||!u||(t.lineWidth=d,t.strokeStyle=u,t.setLineDash(h.borderDash),t.lineDashOffset=h.borderDashOffset,c=this.getDistanceFromCenterForValue(e.ticks.reverse?this.min:this.max),l=this.getPointPosition(a,c),t.beginPath(),t.moveTo(this.xCenter,this.yCenter),t.lineTo(l.x,l.y),t.stroke())}t.restore()}}drawBorder(){}drawLabels(){let t=this.ctx,e=this.options,i=e.ticks;if(!i.display)return;let s=this.getIndexAngle(0),o,r;t.save(),t.translate(this.xCenter,this.yCenter),t.rotate(s),t.textAlign="center",t.textBaseline="middle",this.ticks.forEach((a,c)=>{if(c===0&&!e.reverse)return;let l=i.setContext(this.getContext(c)),h=Z(l.font);if(o=this.getDistanceFromCenterForValue(this.ticks[c].value),l.showLabelBackdrop){t.font=h.string,r=t.measureText(a.label).width,t.fillStyle=l.backdropColor;let u=nt(l.backdropPadding);t.fillRect(-r/2-u.left,-o-h.size/2-u.top,r+u.width,h.size+u.height)}Ie(t,a.label,0,-o,h,{color:l.color,strokeColor:l.textStrokeColor,strokeWidth:l.textStrokeWidth})}),t.restore()}drawTitle(){}},Nn={millisecond:{common:!0,size:1,steps:1e3},second:{common:!0,size:1e3,steps:60},minute:{common:!0,size:6e4,steps:60},hour:{common:!0,size:36e5,steps:24},day:{common:!0,size:864e5,steps:30},week:{common:!1,size:6048e5,steps:4},month:{common:!0,size:2628e6,steps:12},quarter:{common:!1,size:7884e6,steps:4},year:{common:!0,size:3154e7}},tt=Object.keys(Nn);function kr(n,t){return n-t}function Dr(n,t){if(N(t))return null;let e=n._adapter,{parser:i,round:s,isoWeekday:o}=n._parseOpts,r=t;return typeof i=="function"&&(r=i(r)),$(r)||(r=typeof i=="string"?e.parse(r,i):e.parse(r)),r===null?null:(s&&(r=s==="week"&&(se(o)||o===!0)?e.startOf(r,"isoWeek",o):e.startOf(r,s)),+r)}function vr(n,t,e,i){let s=tt.length;for(let o=tt.indexOf(n);o<s-1;++o){let r=Nn[tt[o]],a=r.steps?r.steps:Number.MAX_SAFE_INTEGER;if(r.common&&Math.ceil((e-t)/(a*r.size))<=i)return tt[o]}return tt[s-1]}function uu(n,t,e,i,s){for(let o=tt.length-1;o>=tt.indexOf(e);o--){let r=tt[o];if(Nn[r].common&&n._adapter.diff(s,i,r)>=t-1)return r}return tt[e?tt.indexOf(e):0]}function du(n){for(let t=tt.indexOf(n)+1,e=tt.length;t<e;++t)if(Nn[tt[t]].common)return tt[t]}function Pr(n,t,e){if(!e)n[t]=!0;else if(e.length){let{lo:i,hi:s}=un(e,t),o=e[i]>=t?e[i]:e[s];n[o]=!0}}function fu(n,t,e,i){let s=n._adapter,o=+s.startOf(t[0].value,i),r=t[t.length-1].value,a,c;for(a=o;a<=r;a=+s.add(a,1,i))c=e[a],c>=0&&(t[c].major=!0);return t}function Or(n,t,e){let i=[],s={},o=t.length,r,a;for(r=0;r<o;++r)a=t[r],s[a]=r,i.push({value:a,major:!1});return o===0||!e?i:fu(n,i,s,e)}var de=class extends le{static id="time";static defaults={bounds:"data",adapters:{},time:{parser:!1,unit:!1,round:!1,isoWeekday:!1,minUnit:"millisecond",displayFormats:{}},ticks:{source:"auto",callback:!1,major:{enabled:!1}}};constructor(t){super(t),this._cache={data:[],labels:[],all:[]},this._unit="day",this._majorUnit=void 0,this._offsets={},this._normalized=!1,this._parseOpts=void 0}init(t,e={}){let i=t.time||(t.time={}),s=this._adapter=new Cs._date(t.adapters.date);s.init(e),ne(i.displayFormats,s.formats()),this._parseOpts={parser:i.parser,round:i.round,isoWeekday:i.isoWeekday},super.init(t),this._normalized=e.normalized}parse(t,e){return t===void 0?null:Dr(this,t)}beforeLayout(){super.beforeLayout(),this._cache={data:[],labels:[],all:[]}}determineDataLimits(){let t=this.options,e=this._adapter,i=t.time.unit||"day",{min:s,max:o,minDefined:r,maxDefined:a}=this.getUserBounds();function c(l){!r&&!isNaN(l.min)&&(s=Math.min(s,l.min)),!a&&!isNaN(l.max)&&(o=Math.max(o,l.max))}(!r||!a)&&(c(this._getLabelBounds()),(t.bounds!=="ticks"||t.ticks.source!=="labels")&&c(this.getMinMax(!1))),s=$(s)&&!isNaN(s)?s:+e.startOf(Date.now(),i),o=$(o)&&!isNaN(o)?o:+e.endOf(Date.now(),i)+1,this.min=Math.min(s,o-1),this.max=Math.max(s+1,o)}_getLabelBounds(){let t=this.getLabelTimestamps(),e=Number.POSITIVE_INFINITY,i=Number.NEGATIVE_INFINITY;return t.length&&(e=t[0],i=t[t.length-1]),{min:e,max:i}}buildTicks(){let t=this.options,e=t.time,i=t.ticks,s=i.source==="labels"?this.getLabelTimestamps():this._generate();t.bounds==="ticks"&&s.length&&(this.min=this._userMin||s[0],this.max=this._userMax||s[s.length-1]);let o=this.min,r=this.max,a=oo(s,o,r);return this._unit=e.unit||(i.autoSkip?vr(e.minUnit,this.min,this.max,this._getLabelCapacity(o)):uu(this,a.length,e.minUnit,this.min,this.max)),this._majorUnit=!i.major.enabled||this._unit==="year"?void 0:du(this._unit),this.initOffsets(s),t.reverse&&a.reverse(),Or(this,a,this._majorUnit)}afterAutoSkip(){this.options.offsetAfterAutoskip&&this.initOffsets(this.ticks.map(t=>+t.value))}initOffsets(t=[]){let e=0,i=0,s,o;this.options.offset&&t.length&&(s=this.getDecimalForValue(t[0]),t.length===1?e=1-s:e=(this.getDecimalForValue(t[1])-s)/2,o=this.getDecimalForValue(t[t.length-1]),t.length===1?i=o:i=(o-this.getDecimalForValue(t[t.length-2]))/2);let r=t.length<3?.5:.25;e=rt(e,0,r),i=rt(i,0,r),this._offsets={start:e,end:i,factor:1/(e+1+i)}}_generate(){let t=this._adapter,e=this.min,i=this.max,s=this.options,o=s.time,r=o.unit||vr(o.minUnit,e,i,this._getLabelCapacity(e)),a=R(s.ticks.stepSize,1),c=r==="week"?o.isoWeekday:!1,l=se(c)||c===!0,h={},u=e,d,f;if(l&&(u=+t.startOf(u,"isoWeek",c)),u=+t.startOf(u,l?"day":r),t.diff(i,e,r)>1e5*a)throw new Error(e+" and "+i+" are too far apart with stepSize of "+a+" "+r);let m=s.ticks.source==="data"&&this.getDataTimestamps();for(d=u,f=0;d<i;d=+t.add(d,a,r),f++)Pr(h,d,m);return(d===i||s.bounds==="ticks"||f===1)&&Pr(h,d,m),Object.keys(h).sort(kr).map(p=>+p)}getLabelForValue(t){let e=this._adapter,i=this.options.time;return i.tooltipFormat?e.format(t,i.tooltipFormat):e.format(t,i.displayFormats.datetime)}format(t,e){let s=this.options.time.displayFormats,o=this._unit,r=e||s[o];return this._adapter.format(t,r)}_tickFormatFunction(t,e,i,s){let o=this.options,r=o.ticks.callback;if(r)return z(r,[t,e,i],this);let a=o.time.displayFormats,c=this._unit,l=this._majorUnit,h=c&&a[c],u=l&&a[l],d=i[e],f=l&&u&&d&&d.major;return this._adapter.format(t,s||(f?u:h))}generateTickLabels(t){let e,i,s;for(e=0,i=t.length;e<i;++e)s=t[e],s.label=this._tickFormatFunction(s.value,e,t)}getDecimalForValue(t){return t===null?NaN:(t-this.min)/(this.max-this.min)}getPixelForValue(t){let e=this._offsets,i=this.getDecimalForValue(t);return this.getPixelForDecimal((e.start+i)*e.factor)}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return this.min+i*(this.max-this.min)}_getLabelSize(t){let e=this.options.ticks,i=this.ctx.measureText(t).width,s=at(this.isHorizontal()?e.maxRotation:e.minRotation),o=Math.cos(s),r=Math.sin(s),a=this._resolveTickFontOptions(0).size;return{w:i*o+a*r,h:i*r+a*o}}_getLabelCapacity(t){let e=this.options.time,i=e.displayFormats,s=i[e.unit]||i.millisecond,o=this._tickFormatFunction(t,0,Or(this,[t],this._majorUnit),s),r=this._getLabelSize(o),a=Math.floor(this.isHorizontal()?this.width/r.w:this.height/r.h)-1;return a>0?a:1}getDataTimestamps(){let t=this._cache.data||[],e,i;if(t.length)return t;let s=this.getMatchingVisibleMetas();if(this._normalized&&s.length)return this._cache.data=s[0].controller.getAllParsedValues(this);for(e=0,i=s.length;e<i;++e)t=t.concat(s[e].controller.getAllParsedValues(this));return this._cache.data=this.normalize(t)}getLabelTimestamps(){let t=this._cache.labels||[],e,i;if(t.length)return t;let s=this.getLabels();for(e=0,i=s.length;e<i;++e)t.push(Dr(this,s[e]));return this._cache.labels=this._normalized?t:this.normalize(t)}normalize(t){return co(t.sort(kr))}};function Pn(n,t,e){let i=0,s=n.length-1,o,r,a,c;e?(t>=n[i].pos&&t<=n[s].pos&&({lo:i,hi:s}=Ct(n,"pos",t)),{pos:o,time:a}=n[i],{pos:r,time:c}=n[s]):(t>=n[i].time&&t<=n[s].time&&({lo:i,hi:s}=Ct(n,"time",t)),{time:o,pos:a}=n[i],{time:r,pos:c}=n[s]);let l=r-o;return l?a+(c-a)*(t-o)/l:a}var Sr=class extends de{static id="timeseries";static defaults=de.defaults;constructor(t){super(t),this._table=[],this._minPos=void 0,this._tableRange=void 0}initOffsets(){let t=this._getTimestampsForTable(),e=this._table=this.buildLookupTable(t);this._minPos=Pn(e,this.min),this._tableRange=Pn(e,this.max)-this._minPos,super.initOffsets(t)}buildLookupTable(t){let{min:e,max:i}=this,s=[],o=[],r,a,c,l,h;for(r=0,a=t.length;r<a;++r)l=t[r],l>=e&&l<=i&&s.push(l);if(s.length<2)return[{time:e,pos:0},{time:i,pos:1}];for(r=0,a=s.length;r<a;++r)h=s[r+1],c=s[r-1],l=s[r],Math.round((h+c)/2)!==l&&o.push({time:l,pos:r/(a-1)});return o}_generate(){let t=this.min,e=this.max,i=super.getDataTimestamps();return(!i.includes(t)||!i.length)&&i.splice(0,0,t),(!i.includes(e)||i.length===1)&&i.push(e),i.sort((s,o)=>s-o)}_getTimestampsForTable(){let t=this._cache.all||[];if(t.length)return t;let e=this.getDataTimestamps(),i=this.getLabelTimestamps();return e.length&&i.length?t=this.normalize(e.concat(i)):t=e.length?e:i,t=this._cache.all=t,t}getDecimalForValue(t){return(Pn(this._table,t)-this._minPos)/this._tableRange}getValueForPixel(t){let e=this._offsets,i=this.getDecimalForPixel(t)/e.factor-e.end;return Pn(this._table,i*this._tableRange+this._minPos,!0)}};function x(n){let t=Object.prototype.toString.call(n);return n instanceof Date||typeof n=="object"&&t==="[object Date]"?new n.constructor(+n):typeof n=="number"||t==="[object Number]"||typeof n=="string"||t==="[object String]"?new Date(n):new Date(NaN)}function O(n,t){return n instanceof Date?new n.constructor(t):new Date(t)}function Et(n,t){let e=x(n);return isNaN(t)?O(n,NaN):(t&&e.setDate(e.getDate()+t),e)}function fe(n,t){let e=x(n);if(isNaN(t))return O(n,NaN);if(!t)return e;let i=e.getDate(),s=O(n,e.getTime());s.setMonth(e.getMonth()+t+1,0);let o=s.getDate();return i>=o?s:(e.setFullYear(s.getFullYear(),s.getMonth(),i),e)}function Rt(n,t){let e=+x(n);return O(n,e+t)}var pu=Math.pow(10,8)*24*60*60*1e3,qd=-pu,Wn=6048e5,$r=864e5,kt=6e4,Dt=36e5,Xr=1e3;var gu=3600;var Ur=gu*24,$d=Ur*7,mu=Ur*365.2425,bu=mu/12,Xd=bu*3;function Qr(n,t){return Rt(n,t*Dt)}var xu={};function et(){return xu}function Q(n,t){let e=et(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,s=x(n),o=s.getDay(),r=(o<i?7:0)+o-i;return s.setDate(s.getDate()-r),s.setHours(0,0,0,0),s}function ht(n){return Q(n,{weekStartsOn:1})}function zn(n){let t=x(n),e=t.getFullYear(),i=O(n,0);i.setFullYear(e+1,0,4),i.setHours(0,0,0,0);let s=ht(i),o=O(n,0);o.setFullYear(e,0,4),o.setHours(0,0,0,0);let r=ht(o);return t.getTime()>=s.getTime()?e+1:t.getTime()>=r.getTime()?e:e-1}function qe(n){let t=x(n);return t.setHours(0,0,0,0),t}function Xt(n){let t=new Date(Date.UTC(n.getFullYear(),n.getMonth(),n.getDate(),n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()));return t.setUTCFullYear(n.getFullYear()),n.getTime()-t.getTime()}function Bn(n,t){let e=qe(n),i=qe(t),s=e.getTime()-Xt(e),o=i.getTime()-Xt(i);return Math.round((s-o)/$r)}function Gr(n){let t=zn(n),e=O(n,0);return e.setFullYear(t,0,4),e.setHours(0,0,0,0),ht(e)}function Kr(n,t){return Rt(n,t*kt)}function Zr(n,t){let e=t*3;return fe(n,e)}function Jr(n,t){return Rt(n,t*1e3)}function ta(n,t){let e=t*7;return Et(n,e)}function ea(n,t){return fe(n,t*12)}function Ut(n,t){let e=x(n),i=x(t),s=e.getTime()-i.getTime();return s<0?-1:s>0?1:s}function na(n){return n instanceof Date||typeof n=="object"&&Object.prototype.toString.call(n)==="[object Date]"}function Hn(n){if(!na(n)&&typeof n!="number")return!1;let t=x(n);return!isNaN(Number(t))}function ia(n,t){let e=x(n),i=x(t),s=e.getFullYear()-i.getFullYear(),o=e.getMonth()-i.getMonth();return s*12+o}function sa(n,t){let e=x(n),i=x(t);return e.getFullYear()-i.getFullYear()}function Yn(n,t){let e=x(n),i=x(t),s=oa(e,i),o=Math.abs(Bn(e,i));e.setDate(e.getDate()-s*o);let r=+(oa(e,i)===-s),a=s*(o-r);return a===0?0:a}function oa(n,t){let e=n.getFullYear()-t.getFullYear()||n.getMonth()-t.getMonth()||n.getDate()-t.getDate()||n.getHours()-t.getHours()||n.getMinutes()-t.getMinutes()||n.getSeconds()-t.getSeconds()||n.getMilliseconds()-t.getMilliseconds();return e<0?-1:e>0?1:e}function Ft(n,t){return x(n).getTime()-x(t).getTime()}function mt(n){return n?Math[n]:Math.trunc}function ra(n,t,e){let i=Ft(n,t)/Dt;return mt(e?.roundingMethod)(i)}function aa(n,t,e){let i=Ft(n,t)/kt;return mt(e?.roundingMethod)(i)}function Vn(n){let t=x(n);return t.setHours(23,59,59,999),t}function jn(n){let t=x(n),e=t.getMonth();return t.setFullYear(t.getFullYear(),e+1,0),t.setHours(23,59,59,999),t}function ca(n){let t=x(n);return+Vn(t)==+jn(t)}function qn(n,t){let e=x(n),i=x(t),s=Ut(e,i),o=Math.abs(ia(e,i)),r;if(o<1)r=0;else{e.getMonth()===1&&e.getDate()>27&&e.setDate(30),e.setMonth(e.getMonth()-s*o);let a=Ut(e,i)===-s;ca(x(n))&&o===1&&Ut(n,i)===1&&(a=!1),r=s*(o-Number(a))}return r===0?0:r}function la(n,t,e){let i=qn(n,t)/3;return mt(e?.roundingMethod)(i)}function ha(n,t,e){let i=Ft(n,t)/1e3;return mt(e?.roundingMethod)(i)}function ua(n,t,e){let i=Yn(n,t)/7;return mt(e?.roundingMethod)(i)}function da(n,t){let e=x(n),i=x(t),s=Ut(e,i),o=Math.abs(sa(e,i));e.setFullYear(1584),i.setFullYear(1584);let r=Ut(e,i)===-s,a=s*(o-+r);return a===0?0:a}function fa(n){let t=x(n);return t.setSeconds(0,0),t}function pa(n){let t=x(n),e=t.getMonth(),i=e-e%3;return t.setMonth(i,1),t.setHours(0,0,0,0),t}function ga(n){let t=x(n);return t.setDate(1),t.setHours(0,0,0,0),t}function ma(n){let t=x(n),e=t.getFullYear();return t.setFullYear(e+1,0,0),t.setHours(23,59,59,999),t}function $n(n){let t=x(n),e=O(n,0);return e.setFullYear(t.getFullYear(),0,1),e.setHours(0,0,0,0),e}function ba(n){let t=x(n);return t.setMinutes(59,59,999),t}function xa(n,t){let e=et(),i=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??e.weekStartsOn??e.locale?.options?.weekStartsOn??0,s=x(n),o=s.getDay(),r=(o<i?-7:0)+6-(o-i);return s.setDate(s.getDate()+r),s.setHours(23,59,59,999),s}function ya(n){let t=x(n);return t.setSeconds(59,999),t}function _a(n){let t=x(n),e=t.getMonth(),i=e-e%3+3;return t.setMonth(i,0),t.setHours(23,59,59,999),t}function wa(n){let t=x(n);return t.setMilliseconds(999),t}var yu={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},Ma=(n,t,e)=>{let i,s=yu[n];return typeof s=="string"?i=s:t===1?i=s.one:i=s.other.replace("{{count}}",t.toString()),e?.addSuffix?e.comparison&&e.comparison>0?"in "+i:i+" ago":i};function Xn(n){return(t={})=>{let e=t.width?String(t.width):n.defaultWidth;return n.formats[e]||n.formats[n.defaultWidth]}}var _u={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},wu={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},Mu={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},ka={date:Xn({formats:_u,defaultWidth:"full"}),time:Xn({formats:wu,defaultWidth:"full"}),dateTime:Xn({formats:Mu,defaultWidth:"full"})};var ku={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},Da=(n,t,e,i)=>ku[n];function pe(n){return(t,e)=>{let i=e?.context?String(e.context):"standalone",s;if(i==="formatting"&&n.formattingValues){let r=n.defaultFormattingWidth||n.defaultWidth,a=e?.width?String(e.width):r;s=n.formattingValues[a]||n.formattingValues[r]}else{let r=n.defaultWidth,a=e?.width?String(e.width):n.defaultWidth;s=n.values[a]||n.values[r]}let o=n.argumentCallback?n.argumentCallback(t):t;return s[o]}}var Du={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vu={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},Pu={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},Ou={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},Su={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},Tu={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},Cu=(n,t)=>{let e=Number(n),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},va={ordinalNumber:Cu,era:pe({values:Du,defaultWidth:"wide"}),quarter:pe({values:vu,defaultWidth:"wide",argumentCallback:n=>n-1}),month:pe({values:Pu,defaultWidth:"wide"}),day:pe({values:Ou,defaultWidth:"wide"}),dayPeriod:pe({values:Su,defaultWidth:"wide",formattingValues:Tu,defaultFormattingWidth:"wide"})};function ge(n){return(t,e={})=>{let i=e.width,s=i&&n.matchPatterns[i]||n.matchPatterns[n.defaultMatchWidth],o=t.match(s);if(!o)return null;let r=o[0],a=i&&n.parsePatterns[i]||n.parsePatterns[n.defaultParseWidth],c=Array.isArray(a)?Lu(a,u=>u.test(r)):Au(a,u=>u.test(r)),l;l=n.valueCallback?n.valueCallback(c):c,l=e.valueCallback?e.valueCallback(l):l;let h=t.slice(r.length);return{value:l,rest:h}}}function Au(n,t){for(let e in n)if(Object.prototype.hasOwnProperty.call(n,e)&&t(n[e]))return e}function Lu(n,t){for(let e=0;e<n.length;e++)if(t(n[e]))return e}function Pa(n){return(t,e={})=>{let i=t.match(n.matchPattern);if(!i)return null;let s=i[0],o=t.match(n.parsePattern);if(!o)return null;let r=n.valueCallback?n.valueCallback(o[0]):o[0];r=e.valueCallback?e.valueCallback(r):r;let a=t.slice(s.length);return{value:r,rest:a}}}var Iu=/^(\d+)(th|st|nd|rd)?/i,Eu=/\d+/i,Ru={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},Fu={any:[/^b/i,/^(a|c)/i]},Nu={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Wu={any:[/1/i,/2/i,/3/i,/4/i]},zu={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},Bu={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},Hu={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},Yu={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},Vu={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},ju={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},Oa={ordinalNumber:Pa({matchPattern:Iu,parsePattern:Eu,valueCallback:n=>parseInt(n,10)}),era:ge({matchPatterns:Ru,defaultMatchWidth:"wide",parsePatterns:Fu,defaultParseWidth:"any"}),quarter:ge({matchPatterns:Nu,defaultMatchWidth:"wide",parsePatterns:Wu,defaultParseWidth:"any",valueCallback:n=>n+1}),month:ge({matchPatterns:zu,defaultMatchWidth:"wide",parsePatterns:Bu,defaultParseWidth:"any"}),day:ge({matchPatterns:Hu,defaultMatchWidth:"wide",parsePatterns:Yu,defaultParseWidth:"any"}),dayPeriod:ge({matchPatterns:Vu,defaultMatchWidth:"any",parsePatterns:ju,defaultParseWidth:"any"})};var $e={code:"en-US",formatDistance:Ma,formatLong:ka,formatRelative:Da,localize:va,match:Oa,options:{weekStartsOn:0,firstWeekContainsDate:1}};function Sa(n){let t=x(n);return Bn(t,$n(t))+1}function Un(n){let t=x(n),e=ht(t).getTime()-Gr(t).getTime();return Math.round(e/Wn)+1}function me(n,t){let e=x(n),i=e.getFullYear(),s=et(),o=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,r=O(n,0);r.setFullYear(i+1,0,o),r.setHours(0,0,0,0);let a=Q(r,t),c=O(n,0);c.setFullYear(i,0,o),c.setHours(0,0,0,0);let l=Q(c,t);return e.getTime()>=a.getTime()?i+1:e.getTime()>=l.getTime()?i:i-1}function Ta(n,t){let e=et(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??e.firstWeekContainsDate??e.locale?.options?.firstWeekContainsDate??1,s=me(n,t),o=O(n,0);return o.setFullYear(s,0,i),o.setHours(0,0,0,0),Q(o,t)}function Qn(n,t){let e=x(n),i=Q(e,t).getTime()-Ta(e,t).getTime();return Math.round(i/Wn)+1}function I(n,t){let e=n<0?"-":"",i=Math.abs(n).toString().padStart(t,"0");return e+i}var vt={y(n,t){let e=n.getFullYear(),i=e>0?e:1-e;return I(t==="yy"?i%100:i,t.length)},M(n,t){let e=n.getMonth();return t==="M"?String(e+1):I(e+1,2)},d(n,t){return I(n.getDate(),t.length)},a(n,t){let e=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.toUpperCase();case"aaa":return e;case"aaaaa":return e[0];case"aaaa":default:return e==="am"?"a.m.":"p.m."}},h(n,t){return I(n.getHours()%12||12,t.length)},H(n,t){return I(n.getHours(),t.length)},m(n,t){return I(n.getMinutes(),t.length)},s(n,t){return I(n.getSeconds(),t.length)},S(n,t){let e=t.length,i=n.getMilliseconds(),s=Math.floor(i*Math.pow(10,e-3));return I(s,t.length)}};var be={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},La={G:function(n,t,e){let i=n.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return e.era(i,{width:"abbreviated"});case"GGGGG":return e.era(i,{width:"narrow"});case"GGGG":default:return e.era(i,{width:"wide"})}},y:function(n,t,e){if(t==="yo"){let i=n.getFullYear(),s=i>0?i:1-i;return e.ordinalNumber(s,{unit:"year"})}return vt.y(n,t)},Y:function(n,t,e,i){let s=me(n,i),o=s>0?s:1-s;if(t==="YY"){let r=o%100;return I(r,2)}return t==="Yo"?e.ordinalNumber(o,{unit:"year"}):I(o,t.length)},R:function(n,t){let e=zn(n);return I(e,t.length)},u:function(n,t){let e=n.getFullYear();return I(e,t.length)},Q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"Q":return String(i);case"QQ":return I(i,2);case"Qo":return e.ordinalNumber(i,{unit:"quarter"});case"QQQ":return e.quarter(i,{width:"abbreviated",context:"formatting"});case"QQQQQ":return e.quarter(i,{width:"narrow",context:"formatting"});case"QQQQ":default:return e.quarter(i,{width:"wide",context:"formatting"})}},q:function(n,t,e){let i=Math.ceil((n.getMonth()+1)/3);switch(t){case"q":return String(i);case"qq":return I(i,2);case"qo":return e.ordinalNumber(i,{unit:"quarter"});case"qqq":return e.quarter(i,{width:"abbreviated",context:"standalone"});case"qqqqq":return e.quarter(i,{width:"narrow",context:"standalone"});case"qqqq":default:return e.quarter(i,{width:"wide",context:"standalone"})}},M:function(n,t,e){let i=n.getMonth();switch(t){case"M":case"MM":return vt.M(n,t);case"Mo":return e.ordinalNumber(i+1,{unit:"month"});case"MMM":return e.month(i,{width:"abbreviated",context:"formatting"});case"MMMMM":return e.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return e.month(i,{width:"wide",context:"formatting"})}},L:function(n,t,e){let i=n.getMonth();switch(t){case"L":return String(i+1);case"LL":return I(i+1,2);case"Lo":return e.ordinalNumber(i+1,{unit:"month"});case"LLL":return e.month(i,{width:"abbreviated",context:"standalone"});case"LLLLL":return e.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return e.month(i,{width:"wide",context:"standalone"})}},w:function(n,t,e,i){let s=Qn(n,i);return t==="wo"?e.ordinalNumber(s,{unit:"week"}):I(s,t.length)},I:function(n,t,e){let i=Un(n);return t==="Io"?e.ordinalNumber(i,{unit:"week"}):I(i,t.length)},d:function(n,t,e){return t==="do"?e.ordinalNumber(n.getDate(),{unit:"date"}):vt.d(n,t)},D:function(n,t,e){let i=Sa(n);return t==="Do"?e.ordinalNumber(i,{unit:"dayOfYear"}):I(i,t.length)},E:function(n,t,e){let i=n.getDay();switch(t){case"E":case"EE":case"EEE":return e.day(i,{width:"abbreviated",context:"formatting"});case"EEEEE":return e.day(i,{width:"narrow",context:"formatting"});case"EEEEEE":return e.day(i,{width:"short",context:"formatting"});case"EEEE":default:return e.day(i,{width:"wide",context:"formatting"})}},e:function(n,t,e,i){let s=n.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return I(o,2);case"eo":return e.ordinalNumber(o,{unit:"day"});case"eee":return e.day(s,{width:"abbreviated",context:"formatting"});case"eeeee":return e.day(s,{width:"narrow",context:"formatting"});case"eeeeee":return e.day(s,{width:"short",context:"formatting"});case"eeee":default:return e.day(s,{width:"wide",context:"formatting"})}},c:function(n,t,e,i){let s=n.getDay(),o=(s-i.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return I(o,t.length);case"co":return e.ordinalNumber(o,{unit:"day"});case"ccc":return e.day(s,{width:"abbreviated",context:"standalone"});case"ccccc":return e.day(s,{width:"narrow",context:"standalone"});case"cccccc":return e.day(s,{width:"short",context:"standalone"});case"cccc":default:return e.day(s,{width:"wide",context:"standalone"})}},i:function(n,t,e){let i=n.getDay(),s=i===0?7:i;switch(t){case"i":return String(s);case"ii":return I(s,t.length);case"io":return e.ordinalNumber(s,{unit:"day"});case"iii":return e.day(i,{width:"abbreviated",context:"formatting"});case"iiiii":return e.day(i,{width:"narrow",context:"formatting"});case"iiiiii":return e.day(i,{width:"short",context:"formatting"});case"iiii":default:return e.day(i,{width:"wide",context:"formatting"})}},a:function(n,t,e){let s=n.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return e.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"aaa":return e.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return e.dayPeriod(s,{width:"narrow",context:"formatting"});case"aaaa":default:return e.dayPeriod(s,{width:"wide",context:"formatting"})}},b:function(n,t,e){let i=n.getHours(),s;switch(i===12?s=be.noon:i===0?s=be.midnight:s=i/12>=1?"pm":"am",t){case"b":case"bb":return e.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"bbb":return e.dayPeriod(s,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return e.dayPeriod(s,{width:"narrow",context:"formatting"});case"bbbb":default:return e.dayPeriod(s,{width:"wide",context:"formatting"})}},B:function(n,t,e){let i=n.getHours(),s;switch(i>=17?s=be.evening:i>=12?s=be.afternoon:i>=4?s=be.morning:s=be.night,t){case"B":case"BB":case"BBB":return e.dayPeriod(s,{width:"abbreviated",context:"formatting"});case"BBBBB":return e.dayPeriod(s,{width:"narrow",context:"formatting"});case"BBBB":default:return e.dayPeriod(s,{width:"wide",context:"formatting"})}},h:function(n,t,e){if(t==="ho"){let i=n.getHours()%12;return i===0&&(i=12),e.ordinalNumber(i,{unit:"hour"})}return vt.h(n,t)},H:function(n,t,e){return t==="Ho"?e.ordinalNumber(n.getHours(),{unit:"hour"}):vt.H(n,t)},K:function(n,t,e){let i=n.getHours()%12;return t==="Ko"?e.ordinalNumber(i,{unit:"hour"}):I(i,t.length)},k:function(n,t,e){let i=n.getHours();return i===0&&(i=24),t==="ko"?e.ordinalNumber(i,{unit:"hour"}):I(i,t.length)},m:function(n,t,e){return t==="mo"?e.ordinalNumber(n.getMinutes(),{unit:"minute"}):vt.m(n,t)},s:function(n,t,e){return t==="so"?e.ordinalNumber(n.getSeconds(),{unit:"second"}):vt.s(n,t)},S:function(n,t){return vt.S(n,t)},X:function(n,t,e,i){let o=(i._originalDate||n).getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return Aa(o);case"XXXX":case"XX":return Qt(o);case"XXXXX":case"XXX":default:return Qt(o,":")}},x:function(n,t,e,i){let o=(i._originalDate||n).getTimezoneOffset();switch(t){case"x":return Aa(o);case"xxxx":case"xx":return Qt(o);case"xxxxx":case"xxx":default:return Qt(o,":")}},O:function(n,t,e,i){let o=(i._originalDate||n).getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Ca(o,":");case"OOOO":default:return"GMT"+Qt(o,":")}},z:function(n,t,e,i){let o=(i._originalDate||n).getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Ca(o,":");case"zzzz":default:return"GMT"+Qt(o,":")}},t:function(n,t,e,i){let s=i._originalDate||n,o=Math.floor(s.getTime()/1e3);return I(o,t.length)},T:function(n,t,e,i){let o=(i._originalDate||n).getTime();return I(o,t.length)}};function Ca(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),s=Math.floor(i/60),o=i%60;return o===0?e+String(s):e+String(s)+t+I(o,2)}function Aa(n,t){return n%60===0?(n>0?"-":"+")+I(Math.abs(n)/60,2):Qt(n,t)}function Qt(n,t=""){let e=n>0?"-":"+",i=Math.abs(n),s=I(Math.floor(i/60),2),o=I(i%60,2);return e+s+t+o}var Ia=(n,t)=>{switch(n){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ea=(n,t)=>{switch(n){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},qu=(n,t)=>{let e=n.match(/(P+)(p+)?/)||[],i=e[1],s=e[2];if(!s)return Ia(n,t);let o;switch(i){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",Ia(i,t)).replace("{{time}}",Ea(s,t))},Xe={p:Ea,P:qu};var $u=/^D+$/,Xu=/^Y+$/,Uu=["D","DD","YY","YYYY"];function Gn(n){return $u.test(n)}function Kn(n){return Xu.test(n)}function xe(n,t,e){let i=Qu(n,t,e);if(console.warn(i),Uu.includes(n))throw new RangeError(i)}function Qu(n,t,e){let i=n[0]==="Y"?"years":"days of the month";return`Use \`${n.toLowerCase()}\` instead of \`${n}\` (in \`${t}\`) for formatting ${i} to the input \`${e}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}var Gu=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ku=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Zu=/^'([^]*?)'?$/,Ju=/''/g,td=/[a-zA-Z]/;function Ra(n,t,e){let i=et(),s=e?.locale??i.locale??$e,o=e?.firstWeekContainsDate??e?.locale?.options?.firstWeekContainsDate??i.firstWeekContainsDate??i.locale?.options?.firstWeekContainsDate??1,r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,a=x(n);if(!Hn(a))throw new RangeError("Invalid time value");let c={firstWeekContainsDate:o,weekStartsOn:r,locale:s,_originalDate:a};return t.match(Ku).map(function(h){let u=h[0];if(u==="p"||u==="P"){let d=Xe[u];return d(h,s.formatLong)}return h}).join("").match(Gu).map(function(h){if(h==="''")return"'";let u=h[0];if(u==="'")return ed(h);let d=La[u];if(d)return!e?.useAdditionalWeekYearTokens&&Kn(h)&&xe(h,t,String(n)),!e?.useAdditionalDayOfYearTokens&&Gn(h)&&xe(h,t,String(n)),d(a,h,s.localize,c);if(u.match(td))throw new RangeError("Format string contains an unescaped latin alphabet character `"+u+"`");return h}).join("")}function ed(n){let t=n.match(Zu);return t?t[1].replace(Ju,"'"):n}function Fa(){return Object.assign({},et())}function Na(n){let e=x(n).getDay();return e===0&&(e=7),e}function Wa(n,t){let e=t instanceof Date?O(t,0):new t(0);return e.setFullYear(n.getFullYear(),n.getMonth(),n.getDate()),e.setHours(n.getHours(),n.getMinutes(),n.getSeconds(),n.getMilliseconds()),e}var nd=10,Zn=class{subPriority=0;validate(t,e){return!0}},Jn=class extends Zn{constructor(t,e,i,s,o){super(),this.value=t,this.validateValue=e,this.setValue=i,this.priority=s,o&&(this.subPriority=o)}validate(t,e){return this.validateValue(t,this.value,e)}set(t,e,i){return this.setValue(t,e,this.value,i)}},ti=class extends Zn{priority=nd;subPriority=-1;set(t,e){return e.timestampIsSet?t:O(t,Wa(t,Date))}};var k=class{run(t,e,i,s){let o=this.parse(t,e,i,s);return o?{setter:new Jn(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(t,e,i){return!0}};var ei=class extends k{priority=140;parse(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});case"GGGG":default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}set(t,e,i){return e.era=i,t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["R","u","t","T"]};var A={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},ct={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function F(n,t){return n&&{value:t(n.value),rest:n.rest}}function T(n,t){let e=t.match(n);return e?{value:parseInt(e[0],10),rest:t.slice(e[0].length)}:null}function lt(n,t){let e=t.match(n);if(!e)return null;if(e[0]==="Z")return{value:0,rest:t.slice(1)};let i=e[1]==="+"?1:-1,s=e[2]?parseInt(e[2],10):0,o=e[3]?parseInt(e[3],10):0,r=e[5]?parseInt(e[5],10):0;return{value:i*(s*Dt+o*kt+r*Xr),rest:t.slice(e[0].length)}}function ni(n){return T(A.anyDigitsSigned,n)}function P(n,t){switch(n){case 1:return T(A.singleDigit,t);case 2:return T(A.twoDigits,t);case 3:return T(A.threeDigits,t);case 4:return T(A.fourDigits,t);default:return T(new RegExp("^\\d{1,"+n+"}"),t)}}function ye(n,t){switch(n){case 1:return T(A.singleDigitSigned,t);case 2:return T(A.twoDigitsSigned,t);case 3:return T(A.threeDigitsSigned,t);case 4:return T(A.fourDigitsSigned,t);default:return T(new RegExp("^-?\\d{1,"+n+"}"),t)}}function _e(n){switch(n){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function ii(n,t){let e=t>0,i=e?t:1-t,s;if(i<=50)s=n||100;else{let o=i+50,r=Math.floor(o/100)*100,a=n>=o%100;s=n+r-(a?100:0)}return e?s:1-s}function si(n){return n%400===0||n%4===0&&n%100!==0}var oi=class extends k{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(t,e,i){let s=o=>({year:o,isTwoDigitYear:e==="yy"});switch(e){case"y":return F(P(4,t),s);case"yo":return F(i.ordinalNumber(t,{unit:"year"}),s);default:return F(P(e.length,t),s)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i){let s=t.getFullYear();if(i.isTwoDigitYear){let r=ii(i.year,s);return t.setFullYear(r,0,1),t.setHours(0,0,0,0),t}let o=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(o,0,1),t.setHours(0,0,0,0),t}};var ri=class extends k{priority=130;parse(t,e,i){let s=o=>({year:o,isTwoDigitYear:e==="YY"});switch(e){case"Y":return F(P(4,t),s);case"Yo":return F(i.ordinalNumber(t,{unit:"year"}),s);default:return F(P(e.length,t),s)}}validate(t,e){return e.isTwoDigitYear||e.year>0}set(t,e,i,s){let o=me(t,s);if(i.isTwoDigitYear){let a=ii(i.year,o);return t.setFullYear(a,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),Q(t,s)}let r=!("era"in e)||e.era===1?i.year:1-i.year;return t.setFullYear(r,0,s.firstWeekContainsDate),t.setHours(0,0,0,0),Q(t,s)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};var ai=class extends k{priority=130;parse(t,e){return e==="R"?ye(4,t):ye(e.length,t)}set(t,e,i){let s=O(t,0);return s.setFullYear(i,0,4),s.setHours(0,0,0,0),ht(s)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};var ci=class extends k{priority=130;parse(t,e){return e==="u"?ye(4,t):ye(e.length,t)}set(t,e,i){return t.setFullYear(i,0,1),t.setHours(0,0,0,0),t}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};var li=class extends k{priority=120;parse(t,e,i){switch(e){case"Q":case"QQ":return P(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQ":default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};var hi=class extends k{priority=120;parse(t,e,i){switch(e){case"q":case"qq":return P(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});case"qqqq":default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=1&&e<=4}set(t,e,i){return t.setMonth((i-1)*3,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};var ui=class extends k{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(t,e,i){let s=o=>o-1;switch(e){case"M":return F(T(A.month,t),s);case"MM":return F(P(2,t),s);case"Mo":return F(i.ordinalNumber(t,{unit:"month"}),s);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});case"MMMM":default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}};var di=class extends k{priority=110;parse(t,e,i){let s=o=>o-1;switch(e){case"L":return F(T(A.month,t),s);case"LL":return F(P(2,t),s);case"Lo":return F(i.ordinalNumber(t,{unit:"month"}),s);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});case"LLLL":default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.setMonth(i,1),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};function za(n,t,e){let i=x(n),s=Qn(i,e)-t;return i.setDate(i.getDate()-s*7),i}var fi=class extends k{priority=100;parse(t,e,i){switch(e){case"w":return T(A.week,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return P(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i,s){return Q(za(t,i,s),s)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};function Ba(n,t){let e=x(n),i=Un(e)-t;return e.setDate(e.getDate()-i*7),e}var pi=class extends k{priority=100;parse(t,e,i){switch(e){case"I":return T(A.week,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return P(e.length,t)}}validate(t,e){return e>=1&&e<=53}set(t,e,i){return ht(Ba(t,i))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};var id=[31,28,31,30,31,30,31,31,30,31,30,31],sd=[31,29,31,30,31,30,31,31,30,31,30,31],gi=class extends k{priority=90;subPriority=1;parse(t,e,i){switch(e){case"d":return T(A.date,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return P(e.length,t)}}validate(t,e){let i=t.getFullYear(),s=si(i),o=t.getMonth();return s?e>=1&&e<=sd[o]:e>=1&&e<=id[o]}set(t,e,i){return t.setDate(i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};var mi=class extends k{priority=90;subpriority=1;parse(t,e,i){switch(e){case"D":case"DD":return T(A.dayOfYear,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return P(e.length,t)}}validate(t,e){let i=t.getFullYear();return si(i)?e>=1&&e<=366:e>=1&&e<=365}set(t,e,i){return t.setMonth(0,i),t.setHours(0,0,0,0),t}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};function we(n,t,e){let i=et(),s=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=x(n),r=o.getDay(),c=(t%7+7)%7,l=7-s,h=t<0||t>6?t-(r+l)%7:(c+l)%7-(r+l)%7;return Et(o,h)}var bi=class extends k{priority=90;parse(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEE":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,s){return t=we(t,i,s),t.setHours(0,0,0,0),t}incompatibleTokens=["D","i","e","c","t","T"]};var xi=class extends k{priority=90;parse(t,e,i,s){let o=r=>{let a=Math.floor((r-1)/7)*7;return(r+s.weekStartsOn+6)%7+a};switch(e){case"e":case"ee":return F(P(e.length,t),o);case"eo":return F(i.ordinalNumber(t,{unit:"day"}),o);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeee":default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,s){return t=we(t,i,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};var yi=class extends k{priority=90;parse(t,e,i,s){let o=r=>{let a=Math.floor((r-1)/7)*7;return(r+s.weekStartsOn+6)%7+a};switch(e){case"c":case"cc":return F(P(e.length,t),o);case"co":return F(i.ordinalNumber(t,{unit:"day"}),o);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"cccc":default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}validate(t,e){return e>=0&&e<=6}set(t,e,i,s){return t=we(t,i,s),t.setHours(0,0,0,0),t}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};function Ha(n,t){let e=x(n),i=Na(e),s=t-i;return Et(e,s)}var _i=class extends k{priority=90;parse(t,e,i){let s=o=>o===0?7:o;switch(e){case"i":case"ii":return P(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return F(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiii":return F(i.day(t,{width:"narrow",context:"formatting"}),s);case"iiiiii":return F(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s);case"iiii":default:return F(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),s)}}validate(t,e){return e>=1&&e<=7}set(t,e,i){return t=Ha(t,i),t.setHours(0,0,0,0),t}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};var wi=class extends k{priority=80;parse(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaa":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(_e(i),0,0,0),t}incompatibleTokens=["b","B","H","k","t","T"]};var Mi=class extends k{priority=80;parse(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbb":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(_e(i),0,0,0),t}incompatibleTokens=["a","B","H","k","t","T"]};var ki=class extends k{priority=80;parse(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBB":default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}set(t,e,i){return t.setHours(_e(i),0,0,0),t}incompatibleTokens=["a","b","t","T"]};var Di=class extends k{priority=70;parse(t,e,i){switch(e){case"h":return T(A.hour12h,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return P(e.length,t)}}validate(t,e){return e>=1&&e<=12}set(t,e,i){let s=t.getHours()>=12;return s&&i<12?t.setHours(i+12,0,0,0):!s&&i===12?t.setHours(0,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["H","K","k","t","T"]};var vi=class extends k{priority=70;parse(t,e,i){switch(e){case"H":return T(A.hour23h,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return P(e.length,t)}}validate(t,e){return e>=0&&e<=23}set(t,e,i){return t.setHours(i,0,0,0),t}incompatibleTokens=["a","b","h","K","k","t","T"]};var Pi=class extends k{priority=70;parse(t,e,i){switch(e){case"K":return T(A.hour11h,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return P(e.length,t)}}validate(t,e){return e>=0&&e<=11}set(t,e,i){return t.getHours()>=12&&i<12?t.setHours(i+12,0,0,0):t.setHours(i,0,0,0),t}incompatibleTokens=["h","H","k","t","T"]};var Oi=class extends k{priority=70;parse(t,e,i){switch(e){case"k":return T(A.hour24h,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return P(e.length,t)}}validate(t,e){return e>=1&&e<=24}set(t,e,i){let s=i<=24?i%24:i;return t.setHours(s,0,0,0),t}incompatibleTokens=["a","b","h","H","K","t","T"]};var Si=class extends k{priority=60;parse(t,e,i){switch(e){case"m":return T(A.minute,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return P(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setMinutes(i,0,0),t}incompatibleTokens=["t","T"]};var Ti=class extends k{priority=50;parse(t,e,i){switch(e){case"s":return T(A.second,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return P(e.length,t)}}validate(t,e){return e>=0&&e<=59}set(t,e,i){return t.setSeconds(i,0),t}incompatibleTokens=["t","T"]};var Ci=class extends k{priority=30;parse(t,e){let i=s=>Math.floor(s*Math.pow(10,-e.length+3));return F(P(e.length,t),i)}set(t,e,i){return t.setMilliseconds(i),t}incompatibleTokens=["t","T"]};var Ai=class extends k{priority=10;parse(t,e){switch(e){case"X":return lt(ct.basicOptionalMinutes,t);case"XX":return lt(ct.basic,t);case"XXXX":return lt(ct.basicOptionalSeconds,t);case"XXXXX":return lt(ct.extendedOptionalSeconds,t);case"XXX":default:return lt(ct.extended,t)}}set(t,e,i){return e.timestampIsSet?t:O(t,t.getTime()-Xt(t)-i)}incompatibleTokens=["t","T","x"]};var Li=class extends k{priority=10;parse(t,e){switch(e){case"x":return lt(ct.basicOptionalMinutes,t);case"xx":return lt(ct.basic,t);case"xxxx":return lt(ct.basicOptionalSeconds,t);case"xxxxx":return lt(ct.extendedOptionalSeconds,t);case"xxx":default:return lt(ct.extended,t)}}set(t,e,i){return e.timestampIsSet?t:O(t,t.getTime()-Xt(t)-i)}incompatibleTokens=["t","T","X"]};var Ii=class extends k{priority=40;parse(t){return ni(t)}set(t,e,i){return[O(t,i*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};var Ei=class extends k{priority=20;parse(t){return ni(t)}set(t,e,i){return[O(t,i),{timestampIsSet:!0}]}incompatibleTokens="*"};var Ya={G:new ei,y:new oi,Y:new ri,R:new ai,u:new ci,Q:new li,q:new hi,M:new ui,L:new di,w:new fi,I:new pi,d:new gi,D:new mi,E:new bi,e:new xi,c:new yi,i:new _i,a:new wi,b:new Mi,B:new ki,h:new Di,H:new vi,K:new Pi,k:new Oi,m:new Si,s:new Ti,S:new Ci,X:new Ai,x:new Li,t:new Ii,T:new Ei};var od=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ad=/^'([^]*?)'?$/,cd=/''/g,ld=/\S/,hd=/[a-zA-Z]/;function Va(n,t,e,i){let s=Fa(),o=i?.locale??s.locale??$e,r=i?.firstWeekContainsDate??i?.locale?.options?.firstWeekContainsDate??s.firstWeekContainsDate??s.locale?.options?.firstWeekContainsDate??1,a=i?.weekStartsOn??i?.locale?.options?.weekStartsOn??s.weekStartsOn??s.locale?.options?.weekStartsOn??0;if(t==="")return n===""?x(e):O(e,NaN);let c={firstWeekContainsDate:r,weekStartsOn:a,locale:o},l=[new ti],h=t.match(rd).map(p=>{let g=p[0];if(g in Xe){let b=Xe[g];return b(p,o.formatLong)}return p}).join("").match(od),u=[];for(let p of h){!i?.useAdditionalWeekYearTokens&&Kn(p)&&xe(p,t,n),!i?.useAdditionalDayOfYearTokens&&Gn(p)&&xe(p,t,n);let g=p[0],b=Ya[g];if(b){let{incompatibleTokens:_}=b;if(Array.isArray(_)){let M=u.find(y=>_.includes(y.token)||y.token===g);if(M)throw new RangeError(`The format string mustn't contain \`${M.fullToken}\` and \`${p}\` at the same time`)}else if(b.incompatibleTokens==="*"&&u.length>0)throw new RangeError(`The format string mustn't contain \`${p}\` and any other token at the same time`);u.push({token:g,fullToken:p});let w=b.run(n,p,o.match,c);if(!w)return O(e,NaN);l.push(w.setter),n=w.rest}else{if(g.match(hd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+g+"`");if(p==="''"?p="'":g==="'"&&(p=ud(p)),n.indexOf(p)===0)n=n.slice(p.length);else return O(e,NaN)}}if(n.length>0&&ld.test(n))return O(e,NaN);let d=l.map(p=>p.priority).sort((p,g)=>g-p).filter((p,g,b)=>b.indexOf(p)===g).map(p=>l.filter(g=>g.priority===p).sort((g,b)=>b.subPriority-g.subPriority)).map(p=>p[0]),f=x(e);if(isNaN(f.getTime()))return O(e,NaN);let m={};for(let p of d){if(!p.validate(f,c))return O(e,NaN);let g=p.set(f,m,c);Array.isArray(g)?(f=g[0],Object.assign(m,g[1])):f=g}return O(e,f)}function ud(n){return n.match(ad)[1].replace(cd,"'")}function ja(n){let t=x(n);return t.setMinutes(0,0,0),t}function qa(n){let t=x(n);return t.setMilliseconds(0),t}function $a(n,t){let e=t?.additionalDigits??2,i=gd(n),s;if(i.date){let c=md(i.date,e);s=bd(c.restDateString,c.year)}if(!s||isNaN(s.getTime()))return new Date(NaN);let o=s.getTime(),r=0,a;if(i.time&&(r=xd(i.time),isNaN(r)))return new Date(NaN);if(i.timezone){if(a=yd(i.timezone),isNaN(a))return new Date(NaN)}else{let c=new Date(o+r),l=new Date(0);return l.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),l.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),l}return new Date(o+r+a)}var Ri={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},dd=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,fd=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,pd=/^([+-])(\d{2})(?::?(\d{2}))?$/;function gd(n){let t={},e=n.split(Ri.dateTimeDelimiter),i;if(e.length>2)return t;if(/:/.test(e[0])?i=e[0]:(t.date=e[0],i=e[1],Ri.timeZoneDelimiter.test(t.date)&&(t.date=n.split(Ri.timeZoneDelimiter)[0],i=n.substr(t.date.length,n.length))),i){let s=Ri.timezone.exec(i);s?(t.time=i.replace(s[1],""),t.timezone=s[1]):t.time=i}return t}function md(n,t){let e=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+t)+"})|(\\d{2}|[+-]\\d{"+(2+t)+"})$)"),i=n.match(e);if(!i)return{year:NaN,restDateString:""};let s=i[1]?parseInt(i[1]):null,o=i[2]?parseInt(i[2]):null;return{year:o===null?s:o*100,restDateString:n.slice((i[1]||i[2]).length)}}function bd(n,t){if(t===null)return new Date(NaN);let e=n.match(dd);if(!e)return new Date(NaN);let i=!!e[4],s=Ue(e[1]),o=Ue(e[2])-1,r=Ue(e[3]),a=Ue(e[4]),c=Ue(e[5])-1;if(i)return Dd(t,a,c)?_d(t,a,c):new Date(NaN);{let l=new Date(0);return!Md(t,o,r)||!kd(t,s)?new Date(NaN):(l.setUTCFullYear(t,o,Math.max(s,r)),l)}}function Ue(n){return n?parseInt(n):1}function xd(n){let t=n.match(fd);if(!t)return NaN;let e=As(t[1]),i=As(t[2]),s=As(t[3]);return vd(e,i,s)?e*Dt+i*kt+s*1e3:NaN}function As(n){return n&&parseFloat(n.replace(",","."))||0}function yd(n){if(n==="Z")return 0;let t=n.match(pd);if(!t)return 0;let e=t[1]==="+"?-1:1,i=parseInt(t[2]),s=t[3]&&parseInt(t[3])||0;return Pd(i,s)?e*(i*Dt+s*kt):NaN}function _d(n,t,e){let i=new Date(0);i.setUTCFullYear(n,0,4);let s=i.getUTCDay()||7,o=(t-1)*7+e+1-s;return i.setUTCDate(i.getUTCDate()+o),i}var wd=[31,null,31,30,31,30,31,31,30,31,30,31];function Xa(n){return n%400===0||n%4===0&&n%100!==0}function Md(n,t,e){return t>=0&&t<=11&&e>=1&&e<=(wd[t]||(Xa(n)?29:28))}function kd(n,t){return t>=1&&t<=(Xa(n)?366:365)}function Dd(n,t,e){return t>=1&&t<=53&&e>=0&&e<=6}function vd(n,t,e){return n===24?t===0&&e===0:e>=0&&e<60&&t>=0&&t<60&&n>=0&&n<25}function Pd(n,t){return t>=0&&t<=59}var Od={datetime:"MMM d, yyyy, h:mm:ss aaaa",millisecond:"h:mm:ss.SSS aaaa",second:"h:mm:ss aaaa",minute:"h:mm aaaa",hour:"ha",day:"MMM d",week:"PP",month:"MMM yyyy",quarter:"qqq - yyyy",year:"yyyy"};Cs._date.override({_id:"date-fns",formats:function(){return Od},parse:function(n,t){if(n===null||typeof n>"u")return null;let e=typeof n;return e==="number"||n instanceof Date?n=x(n):e==="string"&&(typeof t=="string"?n=Va(n,t,new Date,this.options):n=$a(n,this.options)),Hn(n)?n.getTime():null},format:function(n,t){return Ra(n,t,this.options)},add:function(n,t,e){switch(e){case"millisecond":return Rt(n,t);case"second":return Jr(n,t);case"minute":return Kr(n,t);case"hour":return Qr(n,t);case"day":return Et(n,t);case"week":return ta(n,t);case"month":return fe(n,t);case"quarter":return Zr(n,t);case"year":return ea(n,t);default:return n}},diff:function(n,t,e){switch(e){case"millisecond":return Ft(n,t);case"second":return ha(n,t);case"minute":return aa(n,t);case"hour":return ra(n,t);case"day":return Yn(n,t);case"week":return ua(n,t);case"month":return qn(n,t);case"quarter":return la(n,t);case"year":return da(n,t);default:return 0}},startOf:function(n,t,e){switch(t){case"second":return qa(n);case"minute":return fa(n);case"hour":return ja(n);case"day":return qe(n);case"week":return Q(n);case"isoWeek":return Q(n,{weekStartsOn:+e});case"month":return ga(n);case"quarter":return pa(n);case"year":return $n(n);default:return n}},endOf:function(n,t){switch(t){case"second":return wa(n);case"minute":return ya(n);case"hour":return ba(n);case"day":return Vn(n);case"week":return xa(n);case"month":return jn(n);case"quarter":return _a(n);case"year":return ma(n);default:return n}}});he.register(Yr,Cn,In,Fn,En,de,jr);document.addEventListener("DOMContentLoaded",async()=>{let n=document.getElementById("chart"),e=`/phperkaigi/2024/golf/api/quizzes/${n.dataset.quizId}/chart.json`,i=await fetch(e).then(c=>c.json());if(i.error)return;let s=i.stats;for(let c of s){let l=[];for(let h of c.scores)(l.length===0||l[l.length-1].code_size>h.code_size)&&l.push(h);c.scores=l}let o=s.flatMap(c=>c.scores.map(l=>({...l,user:c.user}))).toSorted((c,l)=>c.submitted_at-l.submitted_at),r=(()=>{let c=[],l=new Map;for(let{user:h,submitted_at:u,code_size:d}of o){l.set(h.name,{user:h,submitted_at:u,code_size:d});let f=l.values().toArray().toSorted((p,g)=>p.code_size===g.code_size?p.submitted_at-g.submitted_at:p.code_size-g.code_size),m=new Map;for(let[p,{user:g,code_size:b}]of f.entries())m.set(g.name,{user:g,code_size:b,rank:p+1});c.push({submitted_at:u,scores:m})}return c})(),a=(()=>{let c=new Map;for(let{submitted_at:l,scores:h}of r)for(let[u,{user:d,code_size:f,rank:m}]of h.entries())c.has(u)||c.set(u,[]),c.get(u).push({user:d,code_size:f,rank:m,submitted_at:l});return c.values().toArray().toSorted((l,h)=>{let u=l[l.length-1].rank,d=h[h.length-1].rank;return u-d})})();new he(n,{type:"line",data:{datasets:a.map(c=>({label:`${c[0].user.name}${c[0].user.is_admin?" (staff)":""}`,data:c.map(l=>({x:l.submitted_at*1e3,y:l.rank,code_size:l.code_size}))}))},options:{scales:{x:{type:"time",time:{parsing:!1,display:!1,unit:"day",tooltipFormat:"yyyy-MM-dd HH:mm:ss",displayFormats:{day:"yyyy-MM-dd"}},title:{display:!0,text:"\u65E5\u6642"}},y:{title:{display:!0,text:"\u9806\u4F4D"},reverse:!0,min:1,offset:!0}},plugins:{tooltip:{callbacks:{label:c=>{let l=c.dataset.label,h=c.raw.code_size;return`${l} (${h} byte)`}}}}}})});})(); +/*! Bundled license information: + +@kurkle/color/dist/color.esm.js: + (*! + * @kurkle/color v0.3.2 + * https://github.com/kurkle/color#readme + * (c) 2023 Jukka Kurkela + * Released under the MIT License + *) + +chart.js/dist/chunks/helpers.segment.js: + (*! + * Chart.js v4.4.1 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + *) + +chart.js/dist/chart.js: + (*! + * Chart.js v4.4.1 + * https://www.chartjs.org + * (c) 2023 Chart.js Contributors + * Released under the MIT License + *) + +chartjs-adapter-date-fns/dist/chartjs-adapter-date-fns.esm.js: + (*! + * chartjs-adapter-date-fns v3.0.0 + * https://www.chartjs.org + * (c) 2022 chartjs-adapter-date-fns Contributors + * Released under the MIT license + *) +*/ +//# sourceMappingURL=chart.js.map diff --git a/archive/assets/favicon.svg b/archive/assets/favicon.svg new file mode 100644 index 0000000..931fc7b --- /dev/null +++ b/archive/assets/favicon.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="130" height="130" viewBox="0 0 130 130">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: none;
+ }
+ .cls-2 {
+ fill: #e60082;
+ }
+ @media (prefers-color-scheme: dark) {
+ .cls-2 {
+ fill: #fff;
+ }
+ }
+ </style>
+ </defs>
+ <g transform="translate(627 -2695)">
+ <rect class="cls-1" width="130" height="130" rx="5" transform="translate(-627 2695)"/>
+ <path id="ttl_logo" class="cls-2" d="M109.44,46.755c-.044-.422-.184-1.635-.229-2.031a33.3,33.3,0,0,0-2.493-8.4C99.059,19.619,80.376,18.662,64.9,23.4A81.749,81.749,0,0,0,52.789,28.1a4.476,4.476,0,0,1-6.2-2.578C44.424,19.075,44.146,10.741,45.347,0,41.894,30.908,30.908,39.686,0,36.231c8.49.949,15.308,2.466,20.663,4.808a7.064,7.064,0,0,1,2.713,10.813q-1.432,1.849-2.762,3.781C7.53,74.662,3.576,99.531,9.39,121.736c.008-.4.02-1.02.047-1.771.194-5.34,1.6-39.572,25.766-63.228,1.965,6.352,2.186,14.475,1.029,24.842C39.686,50.67,50.669,41.894,81.578,45.347c-8.792-.983-15.791-2.576-21.228-5.062A70.955,70.955,0,0,1,72.492,36.52a37.193,37.193,0,0,1,8.647-.852,18.06,18.06,0,0,1,7.23,1.463c3.974,1.807,5.926,5.8,6.8,9.936.028.208.131.893.164,1.1.081.4.074,1.13.134,1.54.557,15.945-13.589,39.72-29.5,44.04A21.9,21.9,0,0,1,50.882,92.5a15.726,15.726,0,0,1-7.218-8.4,10.8,10.8,0,0,1-.124-7.89l-.612.876c-2.992,4.969-1.251,11.5,1.872,16.031,5.132,7.174,15.394,9.676,23.777,8.412,21.848-3.465,40.913-30.683,40.983-52.124-.029-.775-.039-1.894-.12-2.654" transform="translate(-617.883 2701.132)"/>
+ </g>
+</svg>
diff --git a/archive/assets/index.css b/archive/assets/index.css new file mode 100644 index 0000000..9e7bfd5 --- /dev/null +++ b/archive/assets/index.css @@ -0,0 +1,23 @@ +@charset "UTF-8";pre code.hljs{display:block;overflow-x:auto;padding:1em}code.hljs{padding:3px 5px}.hljs{color:#24292e;background:#fff}.hljs-doctag,.hljs-keyword,.hljs-meta .hljs-keyword,.hljs-template-tag,.hljs-template-variable,.hljs-type,.hljs-variable.language_{color:#d73a49}.hljs-title,.hljs-title.class_,.hljs-title.class_.inherited__,.hljs-title.function_{color:#6f42c1}.hljs-attr,.hljs-attribute,.hljs-literal,.hljs-meta,.hljs-number,.hljs-operator,.hljs-selector-attr,.hljs-selector-class,.hljs-selector-id,.hljs-variable{color:#005cc5}.hljs-meta .hljs-string,.hljs-regexp,.hljs-string{color:#032f62}.hljs-built_in,.hljs-symbol{color:#e36209}.hljs-code,.hljs-comment,.hljs-formula{color:#6a737d}.hljs-name,.hljs-quote,.hljs-selector-pseudo,.hljs-selector-tag{color:#22863a}.hljs-subst{color:#24292e}.hljs-section{color:#005cc5;font-weight:700}.hljs-bullet{color:#735c0f}.hljs-emphasis{color:#24292e;font-style:italic}.hljs-strong{color:#24292e;font-weight:700}.hljs-addition{color:#22863a;background-color:#f0fff4}.hljs-deletion{color:#b31d28;background-color:#ffeef0}:root,[data-bs-theme=light]{--bs-blue: #0d6efd;--bs-indigo: #6610f2;--bs-purple: #6f42c1;--bs-pink: #d63384;--bs-red: #dc3545;--bs-orange: #fd7e14;--bs-yellow: #ffc107;--bs-green: #198754;--bs-teal: #20c997;--bs-cyan: #0dcaf0;--bs-black: #000;--bs-white: #fff;--bs-gray: #6c757d;--bs-gray-dark: #343a40;--bs-gray-100: #f8f9fa;--bs-gray-200: #e9ecef;--bs-gray-300: #dee2e6;--bs-gray-400: #ced4da;--bs-gray-500: #adb5bd;--bs-gray-600: #6c757d;--bs-gray-700: #495057;--bs-gray-800: #343a40;--bs-gray-900: #212529;--bs-primary: #0d6efd;--bs-secondary: #6c757d;--bs-success: #198754;--bs-info: #0dcaf0;--bs-warning: #ffc107;--bs-danger: #dc3545;--bs-light: #f8f9fa;--bs-dark: #212529;--bs-primary-rgb: 13, 110, 253;--bs-secondary-rgb: 108, 117, 125;--bs-success-rgb: 25, 135, 84;--bs-info-rgb: 13, 202, 240;--bs-warning-rgb: 255, 193, 7;--bs-danger-rgb: 220, 53, 69;--bs-light-rgb: 248, 249, 250;--bs-dark-rgb: 33, 37, 41;--bs-primary-text-emphasis: #052c65;--bs-secondary-text-emphasis: #2b2f32;--bs-success-text-emphasis: #0a3622;--bs-info-text-emphasis: #055160;--bs-warning-text-emphasis: #664d03;--bs-danger-text-emphasis: #58151c;--bs-light-text-emphasis: #495057;--bs-dark-text-emphasis: #495057;--bs-primary-bg-subtle: #cfe2ff;--bs-secondary-bg-subtle: #e2e3e5;--bs-success-bg-subtle: #d1e7dd;--bs-info-bg-subtle: #cff4fc;--bs-warning-bg-subtle: #fff3cd;--bs-danger-bg-subtle: #f8d7da;--bs-light-bg-subtle: #fcfcfd;--bs-dark-bg-subtle: #ced4da;--bs-primary-border-subtle: #9ec5fe;--bs-secondary-border-subtle: #c4c8cb;--bs-success-border-subtle: #a3cfbb;--bs-info-border-subtle: #9eeaf9;--bs-warning-border-subtle: #ffe69c;--bs-danger-border-subtle: #f1aeb5;--bs-light-border-subtle: #e9ecef;--bs-dark-border-subtle: #adb5bd;--bs-white-rgb: 255, 255, 255;--bs-black-rgb: 0, 0, 0;--bs-font-sans-serif: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", "Noto Sans", "Liberation Sans", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--bs-font-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--bs-gradient: linear-gradient(180deg, rgba(255, 255, 255, .15), rgba(255, 255, 255, 0));--bs-body-font-family: var(--bs-font-sans-serif);--bs-body-font-size: 1rem;--bs-body-font-weight: 400;--bs-body-line-height: 1.5;--bs-body-color: #212529;--bs-body-color-rgb: 33, 37, 41;--bs-body-bg: #fff;--bs-body-bg-rgb: 255, 255, 255;--bs-emphasis-color: #000;--bs-emphasis-color-rgb: 0, 0, 0;--bs-secondary-color: rgba(33, 37, 41, .75);--bs-secondary-color-rgb: 33, 37, 41;--bs-secondary-bg: #e9ecef;--bs-secondary-bg-rgb: 233, 236, 239;--bs-tertiary-color: rgba(33, 37, 41, .5);--bs-tertiary-color-rgb: 33, 37, 41;--bs-tertiary-bg: #f8f9fa;--bs-tertiary-bg-rgb: 248, 249, 250;--bs-heading-color: inherit;--bs-link-color: #0d6efd;--bs-link-color-rgb: 13, 110, 253;--bs-link-decoration: underline;--bs-link-hover-color: #0a58ca;--bs-link-hover-color-rgb: 10, 88, 202;--bs-code-color: #d63384;--bs-highlight-color: #212529;--bs-highlight-bg: #fff3cd;--bs-border-width: 1px;--bs-border-style: solid;--bs-border-color: #dee2e6;--bs-border-color-translucent: rgba(0, 0, 0, .175);--bs-border-radius: .375rem;--bs-border-radius-sm: .25rem;--bs-border-radius-lg: .5rem;--bs-border-radius-xl: 1rem;--bs-border-radius-xxl: 2rem;--bs-border-radius-2xl: var(--bs-border-radius-xxl);--bs-border-radius-pill: 50rem;--bs-box-shadow: 0 .5rem 1rem rgba(0, 0, 0, .15);--bs-box-shadow-sm: 0 .125rem .25rem rgba(0, 0, 0, .075);--bs-box-shadow-lg: 0 1rem 3rem rgba(0, 0, 0, .175);--bs-box-shadow-inset: inset 0 1px 2px rgba(0, 0, 0, .075);--bs-focus-ring-width: .25rem;--bs-focus-ring-opacity: .25;--bs-focus-ring-color: rgba(13, 110, 253, .25);--bs-form-valid-color: #198754;--bs-form-valid-border-color: #198754;--bs-form-invalid-color: #dc3545;--bs-form-invalid-border-color: #dc3545}[data-bs-theme=dark]{color-scheme:dark;--bs-body-color: #dee2e6;--bs-body-color-rgb: 222, 226, 230;--bs-body-bg: #212529;--bs-body-bg-rgb: 33, 37, 41;--bs-emphasis-color: #fff;--bs-emphasis-color-rgb: 255, 255, 255;--bs-secondary-color: rgba(222, 226, 230, .75);--bs-secondary-color-rgb: 222, 226, 230;--bs-secondary-bg: #343a40;--bs-secondary-bg-rgb: 52, 58, 64;--bs-tertiary-color: rgba(222, 226, 230, .5);--bs-tertiary-color-rgb: 222, 226, 230;--bs-tertiary-bg: #2b3035;--bs-tertiary-bg-rgb: 43, 48, 53;--bs-primary-text-emphasis: #6ea8fe;--bs-secondary-text-emphasis: #a7acb1;--bs-success-text-emphasis: #75b798;--bs-info-text-emphasis: #6edff6;--bs-warning-text-emphasis: #ffda6a;--bs-danger-text-emphasis: #ea868f;--bs-light-text-emphasis: #f8f9fa;--bs-dark-text-emphasis: #dee2e6;--bs-primary-bg-subtle: #031633;--bs-secondary-bg-subtle: #161719;--bs-success-bg-subtle: #051b11;--bs-info-bg-subtle: #032830;--bs-warning-bg-subtle: #332701;--bs-danger-bg-subtle: #2c0b0e;--bs-light-bg-subtle: #343a40;--bs-dark-bg-subtle: #1a1d20;--bs-primary-border-subtle: #084298;--bs-secondary-border-subtle: #41464b;--bs-success-border-subtle: #0f5132;--bs-info-border-subtle: #087990;--bs-warning-border-subtle: #997404;--bs-danger-border-subtle: #842029;--bs-light-border-subtle: #495057;--bs-dark-border-subtle: #343a40;--bs-heading-color: inherit;--bs-link-color: #6ea8fe;--bs-link-hover-color: #8bb9fe;--bs-link-color-rgb: 110, 168, 254;--bs-link-hover-color-rgb: 139, 185, 254;--bs-code-color: #e685b5;--bs-highlight-color: #dee2e6;--bs-highlight-bg: #664d03;--bs-border-color: #495057;--bs-border-color-translucent: rgba(255, 255, 255, .15);--bs-form-valid-color: #75b798;--bs-form-valid-border-color: #75b798;--bs-form-invalid-color: #ea868f;--bs-form-invalid-border-color: #ea868f}*,*:before,*:after{box-sizing:border-box}@media (prefers-reduced-motion: no-preference){:root{scroll-behavior:smooth}}body{margin:0;font-family:var(--bs-body-font-family);font-size:var(--bs-body-font-size);font-weight:var(--bs-body-font-weight);line-height:var(--bs-body-line-height);color:var(--bs-body-color);text-align:var(--bs-body-text-align);background-color:var(--bs-body-bg);-webkit-text-size-adjust:100%;-webkit-tap-highlight-color:rgba(0,0,0,0)}hr{margin:1rem 0;color:inherit;border:0;border-top:var(--bs-border-width) solid;opacity:.25}h6,.h6,h5,.h5,h4,.h4,h3,.h3,h2,.h2,h1,.h1{margin-top:0;margin-bottom:.5rem;font-weight:500;line-height:1.2;color:var(--bs-heading-color)}h1,.h1{font-size:calc(1.375rem + 1.5vw)}@media (min-width: 1200px){h1,.h1{font-size:2.5rem}}h2,.h2{font-size:calc(1.325rem + .9vw)}@media (min-width: 1200px){h2,.h2{font-size:2rem}}h3,.h3{font-size:calc(1.3rem + .6vw)}@media (min-width: 1200px){h3,.h3{font-size:1.75rem}}h4,.h4{font-size:calc(1.275rem + .3vw)}@media (min-width: 1200px){h4,.h4{font-size:1.5rem}}h5,.h5{font-size:1.25rem}h6,.h6{font-size:1rem}p{margin-top:0;margin-bottom:1rem}abbr[title]{-webkit-text-decoration:underline dotted;text-decoration:underline dotted;cursor:help;-webkit-text-decoration-skip-ink:none;text-decoration-skip-ink:none}address{margin-bottom:1rem;font-style:normal;line-height:inherit}ol,ul{padding-left:2rem}ol,ul,dl{margin-top:0;margin-bottom:1rem}ol ol,ul ul,ol ul,ul ol{margin-bottom:0}dt{font-weight:700}dd{margin-bottom:.5rem;margin-left:0}blockquote{margin:0 0 1rem}b,strong{font-weight:bolder}small,.small{font-size:.875em}mark,.mark{padding:.1875em;color:var(--bs-highlight-color);background-color:var(--bs-highlight-bg)}sub,sup{position:relative;font-size:.75em;line-height:0;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}a{color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, 1));text-decoration:underline}a:hover{--bs-link-color-rgb: var(--bs-link-hover-color-rgb)}a:not([href]):not([class]),a:not([href]):not([class]):hover{color:inherit;text-decoration:none}pre,code,kbd,samp{font-family:var(--bs-font-monospace);font-size:1em}pre{display:block;margin-top:0;margin-bottom:1rem;overflow:auto;font-size:.875em}pre code{font-size:inherit;color:inherit;word-break:normal}code{font-size:.875em;color:var(--bs-code-color);word-wrap:break-word}a>code{color:inherit}kbd{padding:.1875rem .375rem;font-size:.875em;color:var(--bs-body-bg);background-color:var(--bs-body-color);border-radius:.25rem}kbd kbd{padding:0;font-size:1em}figure{margin:0 0 1rem}img,svg{vertical-align:middle}table{caption-side:bottom;border-collapse:collapse}caption{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-secondary-color);text-align:left}th{text-align:inherit;text-align:-webkit-match-parent}thead,tbody,tfoot,tr,td,th{border-color:inherit;border-style:solid;border-width:0}label{display:inline-block}button{border-radius:0}button:focus:not(:focus-visible){outline:0}input,button,select,optgroup,textarea{margin:0;font-family:inherit;font-size:inherit;line-height:inherit}button,select{text-transform:none}[role=button]{cursor:pointer}select{word-wrap:normal}select:disabled{opacity:1}[list]:not([type=date]):not([type=datetime-local]):not([type=month]):not([type=week]):not([type=time])::-webkit-calendar-picker-indicator{display:none!important}button,[type=button],[type=reset],[type=submit]{-webkit-appearance:button}button:not(:disabled),[type=button]:not(:disabled),[type=reset]:not(:disabled),[type=submit]:not(:disabled){cursor:pointer}::-moz-focus-inner{padding:0;border-style:none}textarea{resize:vertical}fieldset{min-width:0;padding:0;margin:0;border:0}legend{float:left;width:100%;padding:0;margin-bottom:.5rem;font-size:calc(1.275rem + .3vw);line-height:inherit}@media (min-width: 1200px){legend{font-size:1.5rem}}legend+*{clear:left}::-webkit-datetime-edit-fields-wrapper,::-webkit-datetime-edit-text,::-webkit-datetime-edit-minute,::-webkit-datetime-edit-hour-field,::-webkit-datetime-edit-day-field,::-webkit-datetime-edit-month-field,::-webkit-datetime-edit-year-field{padding:0}::-webkit-inner-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-color-swatch-wrapper{padding:0}::-webkit-file-upload-button{font:inherit;-webkit-appearance:button}::file-selector-button{font:inherit;-webkit-appearance:button}output{display:inline-block}iframe{border:0}summary{display:list-item;cursor:pointer}progress{vertical-align:baseline}[hidden]{display:none!important}.lead{font-size:1.25rem;font-weight:300}.display-1{font-size:calc(1.625rem + 4.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-1{font-size:5rem}}.display-2{font-size:calc(1.575rem + 3.9vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-2{font-size:4.5rem}}.display-3{font-size:calc(1.525rem + 3.3vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-3{font-size:4rem}}.display-4{font-size:calc(1.475rem + 2.7vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-4{font-size:3.5rem}}.display-5{font-size:calc(1.425rem + 2.1vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-5{font-size:3rem}}.display-6{font-size:calc(1.375rem + 1.5vw);font-weight:300;line-height:1.2}@media (min-width: 1200px){.display-6{font-size:2.5rem}}.list-unstyled,.list-inline{padding-left:0;list-style:none}.list-inline-item{display:inline-block}.list-inline-item:not(:last-child){margin-right:.5rem}.initialism{font-size:.875em;text-transform:uppercase}.blockquote{margin-bottom:1rem;font-size:1.25rem}.blockquote>:last-child{margin-bottom:0}.blockquote-footer{margin-top:-1rem;margin-bottom:1rem;font-size:.875em;color:#6c757d}.blockquote-footer:before{content:"\2014\a0"}.img-fluid{max-width:100%;height:auto}.img-thumbnail{padding:.25rem;background-color:var(--bs-body-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);max-width:100%;height:auto}.figure{display:inline-block}.figure-img{margin-bottom:.5rem;line-height:1}.figure-caption{font-size:.875em;color:var(--bs-secondary-color)}.container,.container-fluid,.container-xxl,.container-xl,.container-lg,.container-md,.container-sm{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-right:auto;margin-left:auto}@media (min-width: 576px){.container-sm,.container{max-width:540px}}@media (min-width: 768px){.container-md,.container-sm,.container{max-width:720px}}@media (min-width: 992px){.container-lg,.container-md,.container-sm,.container{max-width:960px}}@media (min-width: 1200px){.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1140px}}@media (min-width: 1400px){.container-xxl,.container-xl,.container-lg,.container-md,.container-sm,.container{max-width:1320px}}:root{--bs-breakpoint-xs: 0;--bs-breakpoint-sm: 576px;--bs-breakpoint-md: 768px;--bs-breakpoint-lg: 992px;--bs-breakpoint-xl: 1200px;--bs-breakpoint-xxl: 1400px}.row{--bs-gutter-x: 1.5rem;--bs-gutter-y: 0;display:flex;flex-wrap:wrap;margin-top:calc(-1 * var(--bs-gutter-y));margin-right:calc(-.5 * var(--bs-gutter-x));margin-left:calc(-.5 * var(--bs-gutter-x))}.row>*{flex-shrink:0;width:100%;max-width:100%;padding-right:calc(var(--bs-gutter-x) * .5);padding-left:calc(var(--bs-gutter-x) * .5);margin-top:var(--bs-gutter-y)}.col{flex:1 0 0%}.row-cols-auto>*{flex:0 0 auto;width:auto}.row-cols-1>*{flex:0 0 auto;width:100%}.row-cols-2>*{flex:0 0 auto;width:50%}.row-cols-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-4>*{flex:0 0 auto;width:25%}.row-cols-5>*{flex:0 0 auto;width:20%}.row-cols-6>*{flex:0 0 auto;width:16.66666667%}.col-auto{flex:0 0 auto;width:auto}.col-1{flex:0 0 auto;width:8.33333333%}.col-2{flex:0 0 auto;width:16.66666667%}.col-3{flex:0 0 auto;width:25%}.col-4{flex:0 0 auto;width:33.33333333%}.col-5{flex:0 0 auto;width:41.66666667%}.col-6{flex:0 0 auto;width:50%}.col-7{flex:0 0 auto;width:58.33333333%}.col-8{flex:0 0 auto;width:66.66666667%}.col-9{flex:0 0 auto;width:75%}.col-10{flex:0 0 auto;width:83.33333333%}.col-11{flex:0 0 auto;width:91.66666667%}.col-12{flex:0 0 auto;width:100%}.offset-1{margin-left:8.33333333%}.offset-2{margin-left:16.66666667%}.offset-3{margin-left:25%}.offset-4{margin-left:33.33333333%}.offset-5{margin-left:41.66666667%}.offset-6{margin-left:50%}.offset-7{margin-left:58.33333333%}.offset-8{margin-left:66.66666667%}.offset-9{margin-left:75%}.offset-10{margin-left:83.33333333%}.offset-11{margin-left:91.66666667%}.g-0,.gx-0{--bs-gutter-x: 0}.g-0,.gy-0{--bs-gutter-y: 0}.g-1,.gx-1{--bs-gutter-x: .25rem}.g-1,.gy-1{--bs-gutter-y: .25rem}.g-2,.gx-2{--bs-gutter-x: .5rem}.g-2,.gy-2{--bs-gutter-y: .5rem}.g-3,.gx-3{--bs-gutter-x: 1rem}.g-3,.gy-3{--bs-gutter-y: 1rem}.g-4,.gx-4{--bs-gutter-x: 1.5rem}.g-4,.gy-4{--bs-gutter-y: 1.5rem}.g-5,.gx-5{--bs-gutter-x: 3rem}.g-5,.gy-5{--bs-gutter-y: 3rem}@media (min-width: 576px){.col-sm{flex:1 0 0%}.row-cols-sm-auto>*{flex:0 0 auto;width:auto}.row-cols-sm-1>*{flex:0 0 auto;width:100%}.row-cols-sm-2>*{flex:0 0 auto;width:50%}.row-cols-sm-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-sm-4>*{flex:0 0 auto;width:25%}.row-cols-sm-5>*{flex:0 0 auto;width:20%}.row-cols-sm-6>*{flex:0 0 auto;width:16.66666667%}.col-sm-auto{flex:0 0 auto;width:auto}.col-sm-1{flex:0 0 auto;width:8.33333333%}.col-sm-2{flex:0 0 auto;width:16.66666667%}.col-sm-3{flex:0 0 auto;width:25%}.col-sm-4{flex:0 0 auto;width:33.33333333%}.col-sm-5{flex:0 0 auto;width:41.66666667%}.col-sm-6{flex:0 0 auto;width:50%}.col-sm-7{flex:0 0 auto;width:58.33333333%}.col-sm-8{flex:0 0 auto;width:66.66666667%}.col-sm-9{flex:0 0 auto;width:75%}.col-sm-10{flex:0 0 auto;width:83.33333333%}.col-sm-11{flex:0 0 auto;width:91.66666667%}.col-sm-12{flex:0 0 auto;width:100%}.offset-sm-0{margin-left:0}.offset-sm-1{margin-left:8.33333333%}.offset-sm-2{margin-left:16.66666667%}.offset-sm-3{margin-left:25%}.offset-sm-4{margin-left:33.33333333%}.offset-sm-5{margin-left:41.66666667%}.offset-sm-6{margin-left:50%}.offset-sm-7{margin-left:58.33333333%}.offset-sm-8{margin-left:66.66666667%}.offset-sm-9{margin-left:75%}.offset-sm-10{margin-left:83.33333333%}.offset-sm-11{margin-left:91.66666667%}.g-sm-0,.gx-sm-0{--bs-gutter-x: 0}.g-sm-0,.gy-sm-0{--bs-gutter-y: 0}.g-sm-1,.gx-sm-1{--bs-gutter-x: .25rem}.g-sm-1,.gy-sm-1{--bs-gutter-y: .25rem}.g-sm-2,.gx-sm-2{--bs-gutter-x: .5rem}.g-sm-2,.gy-sm-2{--bs-gutter-y: .5rem}.g-sm-3,.gx-sm-3{--bs-gutter-x: 1rem}.g-sm-3,.gy-sm-3{--bs-gutter-y: 1rem}.g-sm-4,.gx-sm-4{--bs-gutter-x: 1.5rem}.g-sm-4,.gy-sm-4{--bs-gutter-y: 1.5rem}.g-sm-5,.gx-sm-5{--bs-gutter-x: 3rem}.g-sm-5,.gy-sm-5{--bs-gutter-y: 3rem}}@media (min-width: 768px){.col-md{flex:1 0 0%}.row-cols-md-auto>*{flex:0 0 auto;width:auto}.row-cols-md-1>*{flex:0 0 auto;width:100%}.row-cols-md-2>*{flex:0 0 auto;width:50%}.row-cols-md-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-md-4>*{flex:0 0 auto;width:25%}.row-cols-md-5>*{flex:0 0 auto;width:20%}.row-cols-md-6>*{flex:0 0 auto;width:16.66666667%}.col-md-auto{flex:0 0 auto;width:auto}.col-md-1{flex:0 0 auto;width:8.33333333%}.col-md-2{flex:0 0 auto;width:16.66666667%}.col-md-3{flex:0 0 auto;width:25%}.col-md-4{flex:0 0 auto;width:33.33333333%}.col-md-5{flex:0 0 auto;width:41.66666667%}.col-md-6{flex:0 0 auto;width:50%}.col-md-7{flex:0 0 auto;width:58.33333333%}.col-md-8{flex:0 0 auto;width:66.66666667%}.col-md-9{flex:0 0 auto;width:75%}.col-md-10{flex:0 0 auto;width:83.33333333%}.col-md-11{flex:0 0 auto;width:91.66666667%}.col-md-12{flex:0 0 auto;width:100%}.offset-md-0{margin-left:0}.offset-md-1{margin-left:8.33333333%}.offset-md-2{margin-left:16.66666667%}.offset-md-3{margin-left:25%}.offset-md-4{margin-left:33.33333333%}.offset-md-5{margin-left:41.66666667%}.offset-md-6{margin-left:50%}.offset-md-7{margin-left:58.33333333%}.offset-md-8{margin-left:66.66666667%}.offset-md-9{margin-left:75%}.offset-md-10{margin-left:83.33333333%}.offset-md-11{margin-left:91.66666667%}.g-md-0,.gx-md-0{--bs-gutter-x: 0}.g-md-0,.gy-md-0{--bs-gutter-y: 0}.g-md-1,.gx-md-1{--bs-gutter-x: .25rem}.g-md-1,.gy-md-1{--bs-gutter-y: .25rem}.g-md-2,.gx-md-2{--bs-gutter-x: .5rem}.g-md-2,.gy-md-2{--bs-gutter-y: .5rem}.g-md-3,.gx-md-3{--bs-gutter-x: 1rem}.g-md-3,.gy-md-3{--bs-gutter-y: 1rem}.g-md-4,.gx-md-4{--bs-gutter-x: 1.5rem}.g-md-4,.gy-md-4{--bs-gutter-y: 1.5rem}.g-md-5,.gx-md-5{--bs-gutter-x: 3rem}.g-md-5,.gy-md-5{--bs-gutter-y: 3rem}}@media (min-width: 992px){.col-lg{flex:1 0 0%}.row-cols-lg-auto>*{flex:0 0 auto;width:auto}.row-cols-lg-1>*{flex:0 0 auto;width:100%}.row-cols-lg-2>*{flex:0 0 auto;width:50%}.row-cols-lg-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-lg-4>*{flex:0 0 auto;width:25%}.row-cols-lg-5>*{flex:0 0 auto;width:20%}.row-cols-lg-6>*{flex:0 0 auto;width:16.66666667%}.col-lg-auto{flex:0 0 auto;width:auto}.col-lg-1{flex:0 0 auto;width:8.33333333%}.col-lg-2{flex:0 0 auto;width:16.66666667%}.col-lg-3{flex:0 0 auto;width:25%}.col-lg-4{flex:0 0 auto;width:33.33333333%}.col-lg-5{flex:0 0 auto;width:41.66666667%}.col-lg-6{flex:0 0 auto;width:50%}.col-lg-7{flex:0 0 auto;width:58.33333333%}.col-lg-8{flex:0 0 auto;width:66.66666667%}.col-lg-9{flex:0 0 auto;width:75%}.col-lg-10{flex:0 0 auto;width:83.33333333%}.col-lg-11{flex:0 0 auto;width:91.66666667%}.col-lg-12{flex:0 0 auto;width:100%}.offset-lg-0{margin-left:0}.offset-lg-1{margin-left:8.33333333%}.offset-lg-2{margin-left:16.66666667%}.offset-lg-3{margin-left:25%}.offset-lg-4{margin-left:33.33333333%}.offset-lg-5{margin-left:41.66666667%}.offset-lg-6{margin-left:50%}.offset-lg-7{margin-left:58.33333333%}.offset-lg-8{margin-left:66.66666667%}.offset-lg-9{margin-left:75%}.offset-lg-10{margin-left:83.33333333%}.offset-lg-11{margin-left:91.66666667%}.g-lg-0,.gx-lg-0{--bs-gutter-x: 0}.g-lg-0,.gy-lg-0{--bs-gutter-y: 0}.g-lg-1,.gx-lg-1{--bs-gutter-x: .25rem}.g-lg-1,.gy-lg-1{--bs-gutter-y: .25rem}.g-lg-2,.gx-lg-2{--bs-gutter-x: .5rem}.g-lg-2,.gy-lg-2{--bs-gutter-y: .5rem}.g-lg-3,.gx-lg-3{--bs-gutter-x: 1rem}.g-lg-3,.gy-lg-3{--bs-gutter-y: 1rem}.g-lg-4,.gx-lg-4{--bs-gutter-x: 1.5rem}.g-lg-4,.gy-lg-4{--bs-gutter-y: 1.5rem}.g-lg-5,.gx-lg-5{--bs-gutter-x: 3rem}.g-lg-5,.gy-lg-5{--bs-gutter-y: 3rem}}@media (min-width: 1200px){.col-xl{flex:1 0 0%}.row-cols-xl-auto>*{flex:0 0 auto;width:auto}.row-cols-xl-1>*{flex:0 0 auto;width:100%}.row-cols-xl-2>*{flex:0 0 auto;width:50%}.row-cols-xl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xl-4>*{flex:0 0 auto;width:25%}.row-cols-xl-5>*{flex:0 0 auto;width:20%}.row-cols-xl-6>*{flex:0 0 auto;width:16.66666667%}.col-xl-auto{flex:0 0 auto;width:auto}.col-xl-1{flex:0 0 auto;width:8.33333333%}.col-xl-2{flex:0 0 auto;width:16.66666667%}.col-xl-3{flex:0 0 auto;width:25%}.col-xl-4{flex:0 0 auto;width:33.33333333%}.col-xl-5{flex:0 0 auto;width:41.66666667%}.col-xl-6{flex:0 0 auto;width:50%}.col-xl-7{flex:0 0 auto;width:58.33333333%}.col-xl-8{flex:0 0 auto;width:66.66666667%}.col-xl-9{flex:0 0 auto;width:75%}.col-xl-10{flex:0 0 auto;width:83.33333333%}.col-xl-11{flex:0 0 auto;width:91.66666667%}.col-xl-12{flex:0 0 auto;width:100%}.offset-xl-0{margin-left:0}.offset-xl-1{margin-left:8.33333333%}.offset-xl-2{margin-left:16.66666667%}.offset-xl-3{margin-left:25%}.offset-xl-4{margin-left:33.33333333%}.offset-xl-5{margin-left:41.66666667%}.offset-xl-6{margin-left:50%}.offset-xl-7{margin-left:58.33333333%}.offset-xl-8{margin-left:66.66666667%}.offset-xl-9{margin-left:75%}.offset-xl-10{margin-left:83.33333333%}.offset-xl-11{margin-left:91.66666667%}.g-xl-0,.gx-xl-0{--bs-gutter-x: 0}.g-xl-0,.gy-xl-0{--bs-gutter-y: 0}.g-xl-1,.gx-xl-1{--bs-gutter-x: .25rem}.g-xl-1,.gy-xl-1{--bs-gutter-y: .25rem}.g-xl-2,.gx-xl-2{--bs-gutter-x: .5rem}.g-xl-2,.gy-xl-2{--bs-gutter-y: .5rem}.g-xl-3,.gx-xl-3{--bs-gutter-x: 1rem}.g-xl-3,.gy-xl-3{--bs-gutter-y: 1rem}.g-xl-4,.gx-xl-4{--bs-gutter-x: 1.5rem}.g-xl-4,.gy-xl-4{--bs-gutter-y: 1.5rem}.g-xl-5,.gx-xl-5{--bs-gutter-x: 3rem}.g-xl-5,.gy-xl-5{--bs-gutter-y: 3rem}}@media (min-width: 1400px){.col-xxl{flex:1 0 0%}.row-cols-xxl-auto>*{flex:0 0 auto;width:auto}.row-cols-xxl-1>*{flex:0 0 auto;width:100%}.row-cols-xxl-2>*{flex:0 0 auto;width:50%}.row-cols-xxl-3>*{flex:0 0 auto;width:33.33333333%}.row-cols-xxl-4>*{flex:0 0 auto;width:25%}.row-cols-xxl-5>*{flex:0 0 auto;width:20%}.row-cols-xxl-6>*{flex:0 0 auto;width:16.66666667%}.col-xxl-auto{flex:0 0 auto;width:auto}.col-xxl-1{flex:0 0 auto;width:8.33333333%}.col-xxl-2{flex:0 0 auto;width:16.66666667%}.col-xxl-3{flex:0 0 auto;width:25%}.col-xxl-4{flex:0 0 auto;width:33.33333333%}.col-xxl-5{flex:0 0 auto;width:41.66666667%}.col-xxl-6{flex:0 0 auto;width:50%}.col-xxl-7{flex:0 0 auto;width:58.33333333%}.col-xxl-8{flex:0 0 auto;width:66.66666667%}.col-xxl-9{flex:0 0 auto;width:75%}.col-xxl-10{flex:0 0 auto;width:83.33333333%}.col-xxl-11{flex:0 0 auto;width:91.66666667%}.col-xxl-12{flex:0 0 auto;width:100%}.offset-xxl-0{margin-left:0}.offset-xxl-1{margin-left:8.33333333%}.offset-xxl-2{margin-left:16.66666667%}.offset-xxl-3{margin-left:25%}.offset-xxl-4{margin-left:33.33333333%}.offset-xxl-5{margin-left:41.66666667%}.offset-xxl-6{margin-left:50%}.offset-xxl-7{margin-left:58.33333333%}.offset-xxl-8{margin-left:66.66666667%}.offset-xxl-9{margin-left:75%}.offset-xxl-10{margin-left:83.33333333%}.offset-xxl-11{margin-left:91.66666667%}.g-xxl-0,.gx-xxl-0{--bs-gutter-x: 0}.g-xxl-0,.gy-xxl-0{--bs-gutter-y: 0}.g-xxl-1,.gx-xxl-1{--bs-gutter-x: .25rem}.g-xxl-1,.gy-xxl-1{--bs-gutter-y: .25rem}.g-xxl-2,.gx-xxl-2{--bs-gutter-x: .5rem}.g-xxl-2,.gy-xxl-2{--bs-gutter-y: .5rem}.g-xxl-3,.gx-xxl-3{--bs-gutter-x: 1rem}.g-xxl-3,.gy-xxl-3{--bs-gutter-y: 1rem}.g-xxl-4,.gx-xxl-4{--bs-gutter-x: 1.5rem}.g-xxl-4,.gy-xxl-4{--bs-gutter-y: 1.5rem}.g-xxl-5,.gx-xxl-5{--bs-gutter-x: 3rem}.g-xxl-5,.gy-xxl-5{--bs-gutter-y: 3rem}}.table{--bs-table-color-type: initial;--bs-table-bg-type: initial;--bs-table-color-state: initial;--bs-table-bg-state: initial;--bs-table-color: var(--bs-emphasis-color);--bs-table-bg: var(--bs-body-bg);--bs-table-border-color: var(--bs-border-color);--bs-table-accent-bg: transparent;--bs-table-striped-color: var(--bs-emphasis-color);--bs-table-striped-bg: rgba(var(--bs-emphasis-color-rgb), .05);--bs-table-active-color: var(--bs-emphasis-color);--bs-table-active-bg: rgba(var(--bs-emphasis-color-rgb), .1);--bs-table-hover-color: var(--bs-emphasis-color);--bs-table-hover-bg: rgba(var(--bs-emphasis-color-rgb), .075);width:100%;margin-bottom:1rem;vertical-align:top;border-color:var(--bs-table-border-color)}.table>:not(caption)>*>*{padding:.5rem;color:var(--bs-table-color-state, var(--bs-table-color-type, var(--bs-table-color)));background-color:var(--bs-table-bg);border-bottom-width:var(--bs-border-width);box-shadow:inset 0 0 0 9999px var(--bs-table-bg-state, var(--bs-table-bg-type, var(--bs-table-accent-bg)))}.table>tbody{vertical-align:inherit}.table>thead{vertical-align:bottom}.table-group-divider{border-top:calc(var(--bs-border-width) * 2) solid currentcolor}.caption-top{caption-side:top}.table-sm>:not(caption)>*>*{padding:.25rem}.table-bordered>:not(caption)>*{border-width:var(--bs-border-width) 0}.table-bordered>:not(caption)>*>*{border-width:0 var(--bs-border-width)}.table-borderless>:not(caption)>*>*{border-bottom-width:0}.table-borderless>:not(:first-child){border-top-width:0}.table-striped>tbody>tr:nth-of-type(odd)>*{--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-striped-columns>:not(caption)>tr>:nth-child(2n){--bs-table-color-type: var(--bs-table-striped-color);--bs-table-bg-type: var(--bs-table-striped-bg)}.table-active{--bs-table-color-state: var(--bs-table-active-color);--bs-table-bg-state: var(--bs-table-active-bg)}.table-hover>tbody>tr:hover>*{--bs-table-color-state: var(--bs-table-hover-color);--bs-table-bg-state: var(--bs-table-hover-bg)}.table-primary{--bs-table-color: #000;--bs-table-bg: #cfe2ff;--bs-table-border-color: #a6b5cc;--bs-table-striped-bg: #c5d7f2;--bs-table-striped-color: #000;--bs-table-active-bg: #bacbe6;--bs-table-active-color: #000;--bs-table-hover-bg: #bfd1ec;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-secondary{--bs-table-color: #000;--bs-table-bg: #e2e3e5;--bs-table-border-color: #b5b6b7;--bs-table-striped-bg: #d7d8da;--bs-table-striped-color: #000;--bs-table-active-bg: #cbccce;--bs-table-active-color: #000;--bs-table-hover-bg: #d1d2d4;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-success{--bs-table-color: #000;--bs-table-bg: #d1e7dd;--bs-table-border-color: #a7b9b1;--bs-table-striped-bg: #c7dbd2;--bs-table-striped-color: #000;--bs-table-active-bg: #bcd0c7;--bs-table-active-color: #000;--bs-table-hover-bg: #c1d6cc;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-info{--bs-table-color: #000;--bs-table-bg: #cff4fc;--bs-table-border-color: #a6c3ca;--bs-table-striped-bg: #c5e8ef;--bs-table-striped-color: #000;--bs-table-active-bg: #badce3;--bs-table-active-color: #000;--bs-table-hover-bg: #bfe2e9;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-warning{--bs-table-color: #000;--bs-table-bg: #fff3cd;--bs-table-border-color: #ccc2a4;--bs-table-striped-bg: #f2e7c3;--bs-table-striped-color: #000;--bs-table-active-bg: #e6dbb9;--bs-table-active-color: #000;--bs-table-hover-bg: #ece1be;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-danger{--bs-table-color: #000;--bs-table-bg: #f8d7da;--bs-table-border-color: #c6acae;--bs-table-striped-bg: #eccccf;--bs-table-striped-color: #000;--bs-table-active-bg: #dfc2c4;--bs-table-active-color: #000;--bs-table-hover-bg: #e5c7ca;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-light{--bs-table-color: #000;--bs-table-bg: #f8f9fa;--bs-table-border-color: #c6c7c8;--bs-table-striped-bg: #ecedee;--bs-table-striped-color: #000;--bs-table-active-bg: #dfe0e1;--bs-table-active-color: #000;--bs-table-hover-bg: #e5e6e7;--bs-table-hover-color: #000;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-dark{--bs-table-color: #fff;--bs-table-bg: #212529;--bs-table-border-color: #4d5154;--bs-table-striped-bg: #2c3034;--bs-table-striped-color: #fff;--bs-table-active-bg: #373b3e;--bs-table-active-color: #fff;--bs-table-hover-bg: #323539;--bs-table-hover-color: #fff;color:var(--bs-table-color);border-color:var(--bs-table-border-color)}.table-responsive{overflow-x:auto;-webkit-overflow-scrolling:touch}@media (max-width: 575.98px){.table-responsive-sm{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 767.98px){.table-responsive-md{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 991.98px){.table-responsive-lg{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1199.98px){.table-responsive-xl{overflow-x:auto;-webkit-overflow-scrolling:touch}}@media (max-width: 1399.98px){.table-responsive-xxl{overflow-x:auto;-webkit-overflow-scrolling:touch}}.form-label{margin-bottom:.5rem}.col-form-label{padding-top:calc(.375rem + var(--bs-border-width));padding-bottom:calc(.375rem + var(--bs-border-width));margin-bottom:0;font-size:inherit;line-height:1.5}.col-form-label-lg{padding-top:calc(.5rem + var(--bs-border-width));padding-bottom:calc(.5rem + var(--bs-border-width));font-size:1.25rem}.col-form-label-sm{padding-top:calc(.25rem + var(--bs-border-width));padding-bottom:calc(.25rem + var(--bs-border-width));font-size:.875rem}.form-text{margin-top:.25rem;font-size:.875em;color:var(--bs-secondary-color)}.form-control{display:block;width:100%;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-clip:padding-box;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control{transition:none}}.form-control[type=file]{overflow:hidden}.form-control[type=file]:not(:disabled):not([readonly]){cursor:pointer}.form-control:focus{color:var(--bs-body-color);background-color:var(--bs-body-bg);border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-control::-webkit-date-and-time-value{min-width:85px;height:1.5em;margin:0}.form-control::-webkit-datetime-edit{display:block;padding:0}.form-control::-moz-placeholder{color:var(--bs-secondary-color);opacity:1}.form-control::placeholder{color:var(--bs-secondary-color);opacity:1}.form-control:disabled{background-color:var(--bs-secondary-bg);opacity:1}.form-control::-webkit-file-upload-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;-webkit-transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.form-control::file-selector-button{padding:.375rem .75rem;margin:-.375rem -.75rem;-webkit-margin-end:.75rem;margin-inline-end:.75rem;color:var(--bs-body-color);background-color:var(--bs-tertiary-bg);pointer-events:none;border-color:inherit;border-style:solid;border-width:0;border-inline-end-width:var(--bs-border-width);border-radius:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-control::-webkit-file-upload-button{-webkit-transition:none;transition:none}.form-control::file-selector-button{transition:none}}.form-control:hover:not(:disabled):not([readonly])::-webkit-file-upload-button{background-color:var(--bs-secondary-bg)}.form-control:hover:not(:disabled):not([readonly])::file-selector-button{background-color:var(--bs-secondary-bg)}.form-control-plaintext{display:block;width:100%;padding:.375rem 0;margin-bottom:0;line-height:1.5;color:var(--bs-body-color);background-color:transparent;border:solid transparent;border-width:var(--bs-border-width) 0}.form-control-plaintext:focus{outline:0}.form-control-plaintext.form-control-sm,.form-control-plaintext.form-control-lg{padding-right:0;padding-left:0}.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2));padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-control-sm::-webkit-file-upload-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-sm::file-selector-button{padding:.25rem .5rem;margin:-.25rem -.5rem;-webkit-margin-end:.5rem;margin-inline-end:.5rem}.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2));padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.form-control-lg::-webkit-file-upload-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}.form-control-lg::file-selector-button{padding:.5rem 1rem;margin:-.5rem -1rem;-webkit-margin-end:1rem;margin-inline-end:1rem}textarea.form-control{min-height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2))}textarea.form-control-sm{min-height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}textarea.form-control-lg{min-height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-control-color{width:3rem;height:calc(1.5em + .75rem + calc(var(--bs-border-width) * 2));padding:.375rem}.form-control-color:not(:disabled):not([readonly]){cursor:pointer}.form-control-color::-moz-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color::-webkit-color-swatch{border:0!important;border-radius:var(--bs-border-radius)}.form-control-color.form-control-sm{height:calc(1.5em + .5rem + calc(var(--bs-border-width) * 2))}.form-control-color.form-control-lg{height:calc(1.5em + 1rem + calc(var(--bs-border-width) * 2))}.form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e");display:block;width:100%;padding:.375rem 2.25rem .375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-body-bg);background-image:var(--bs-form-select-bg-img),var(--bs-form-select-bg-icon, none);background-repeat:no-repeat;background-position:right .75rem center;background-size:16px 12px;border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius);transition:border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-select{transition:none}}.form-select:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-select[multiple],.form-select[size]:not([size="1"]){padding-right:.75rem;background-image:none}.form-select:disabled{background-color:var(--bs-secondary-bg)}.form-select:-moz-focusring{color:transparent;text-shadow:0 0 0 var(--bs-body-color)}.form-select-sm{padding-top:.25rem;padding-bottom:.25rem;padding-left:.5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.form-select-lg{padding-top:.5rem;padding-bottom:.5rem;padding-left:1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}[data-bs-theme=dark] .form-select{--bs-form-select-bg-img: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23dee2e6' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e")}.form-check{display:block;min-height:1.5rem;padding-left:1.5em;margin-bottom:.125rem}.form-check .form-check-input{float:left;margin-left:-1.5em}.form-check-reverse{padding-right:1.5em;padding-left:0;text-align:right}.form-check-reverse .form-check-input{float:right;margin-right:-1.5em;margin-left:0}.form-check-input{--bs-form-check-bg: var(--bs-body-bg);flex-shrink:0;width:1em;height:1em;margin-top:.25em;vertical-align:top;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:var(--bs-form-check-bg);background-image:var(--bs-form-check-bg-image);background-repeat:no-repeat;background-position:center;background-size:contain;border:var(--bs-border-width) solid var(--bs-border-color);-webkit-print-color-adjust:exact;color-adjust:exact;print-color-adjust:exact}.form-check-input[type=checkbox]{border-radius:.25em}.form-check-input[type=radio]{border-radius:50%}.form-check-input:active{filter:brightness(90%)}.form-check-input:focus{border-color:#86b7fe;outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.form-check-input:checked{background-color:#0d6efd;border-color:#0d6efd}.form-check-input:checked[type=checkbox]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='m6 10 3 3 6-6'/%3e%3c/svg%3e")}.form-check-input:checked[type=radio]{--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='2' fill='%23fff'/%3e%3c/svg%3e")}.form-check-input[type=checkbox]:indeterminate{background-color:#0d6efd;border-color:#0d6efd;--bs-form-check-bg-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e")}.form-check-input:disabled{pointer-events:none;filter:none;opacity:.5}.form-check-input[disabled]~.form-check-label,.form-check-input:disabled~.form-check-label{cursor:default;opacity:.5}.form-switch{padding-left:2.5em}.form-switch .form-check-input{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%280, 0, 0, 0.25%29'/%3e%3c/svg%3e");width:2em;margin-left:-2.5em;background-image:var(--bs-form-switch-bg);background-position:left center;border-radius:2em;transition:background-position .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-switch .form-check-input{transition:none}}.form-switch .form-check-input:focus{--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%2386b7fe'/%3e%3c/svg%3e")}.form-switch .form-check-input:checked{background-position:right center;--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e")}.form-switch.form-check-reverse{padding-right:2.5em;padding-left:0}.form-switch.form-check-reverse .form-check-input{margin-right:-2.5em;margin-left:0}.form-check-inline{display:inline-block;margin-right:1rem}.btn-check{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.btn-check[disabled]+.btn,.btn-check:disabled+.btn{pointer-events:none;filter:none;opacity:.65}[data-bs-theme=dark] .form-switch .form-check-input:not(:checked):not(:focus){--bs-form-switch-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%28255, 255, 255, 0.25%29'/%3e%3c/svg%3e")}.form-range{width:100%;height:1.5rem;padding:0;-webkit-appearance:none;-moz-appearance:none;appearance:none;background-color:transparent}.form-range:focus{outline:0}.form-range:focus::-webkit-slider-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range:focus::-moz-range-thumb{box-shadow:0 0 0 1px #fff,0 0 0 .25rem #0d6efd40}.form-range::-moz-focus-outer{border:0}.form-range::-webkit-slider-thumb{width:1rem;height:1rem;margin-top:-.25rem;-webkit-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-webkit-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-webkit-slider-thumb{-webkit-transition:none;transition:none}}.form-range::-webkit-slider-thumb:active{background-color:#b6d4fe}.form-range::-webkit-slider-runnable-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range::-moz-range-thumb{width:1rem;height:1rem;-moz-appearance:none;appearance:none;background-color:#0d6efd;border:0;border-radius:1rem;-moz-transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.form-range::-moz-range-thumb{-moz-transition:none;transition:none}}.form-range::-moz-range-thumb:active{background-color:#b6d4fe}.form-range::-moz-range-track{width:100%;height:.5rem;color:transparent;cursor:pointer;background-color:var(--bs-secondary-bg);border-color:transparent;border-radius:1rem}.form-range:disabled{pointer-events:none}.form-range:disabled::-webkit-slider-thumb{background-color:var(--bs-secondary-color)}.form-range:disabled::-moz-range-thumb{background-color:var(--bs-secondary-color)}.form-floating{position:relative}.form-floating>.form-control,.form-floating>.form-control-plaintext,.form-floating>.form-select{height:calc(3.5rem + calc(var(--bs-border-width) * 2));min-height:calc(3.5rem + calc(var(--bs-border-width) * 2));line-height:1.25}.form-floating>label{position:absolute;top:0;left:0;z-index:2;height:100%;padding:1rem .75rem;overflow:hidden;text-align:start;text-overflow:ellipsis;white-space:nowrap;pointer-events:none;border:var(--bs-border-width) solid transparent;transform-origin:0 0;transition:opacity .1s ease-in-out,transform .1s ease-in-out}@media (prefers-reduced-motion: reduce){.form-floating>label{transition:none}}.form-floating>.form-control,.form-floating>.form-control-plaintext{padding:1rem .75rem}.form-floating>.form-control::-moz-placeholder,.form-floating>.form-control-plaintext::-moz-placeholder{color:transparent}.form-floating>.form-control::placeholder,.form-floating>.form-control-plaintext::placeholder{color:transparent}.form-floating>.form-control:not(:-moz-placeholder-shown),.form-floating>.form-control-plaintext:not(:-moz-placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:focus,.form-floating>.form-control:not(:placeholder-shown),.form-floating>.form-control-plaintext:focus,.form-floating>.form-control-plaintext:not(:placeholder-shown){padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:-webkit-autofill,.form-floating>.form-control-plaintext:-webkit-autofill{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-select{padding-top:1.625rem;padding-bottom:.625rem}.form-floating>.form-control:not(:-moz-placeholder-shown)~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:focus~label,.form-floating>.form-control:not(:placeholder-shown)~label,.form-floating>.form-control-plaintext~label,.form-floating>.form-select~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control:not(:-moz-placeholder-shown)~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:focus~label:after,.form-floating>.form-control:not(:placeholder-shown)~label:after,.form-floating>.form-control-plaintext~label:after,.form-floating>.form-select~label:after{position:absolute;inset:1rem .375rem;z-index:-1;height:1.5em;content:"";background-color:var(--bs-body-bg);border-radius:var(--bs-border-radius)}.form-floating>.form-control:-webkit-autofill~label{color:rgba(var(--bs-body-color-rgb),.65);transform:scale(.85) translateY(-.5rem) translate(.15rem)}.form-floating>.form-control-plaintext~label{border-width:var(--bs-border-width) 0}.form-floating>:disabled~label,.form-floating>.form-control:disabled~label{color:#6c757d}.form-floating>:disabled~label:after,.form-floating>.form-control:disabled~label:after{background-color:var(--bs-secondary-bg)}.input-group{position:relative;display:flex;flex-wrap:wrap;align-items:stretch;width:100%}.input-group>.form-control,.input-group>.form-select,.input-group>.form-floating{position:relative;flex:1 1 auto;width:1%;min-width:0}.input-group>.form-control:focus,.input-group>.form-select:focus,.input-group>.form-floating:focus-within{z-index:5}.input-group .btn{position:relative;z-index:2}.input-group .btn:focus{z-index:5}.input-group-text{display:flex;align-items:center;padding:.375rem .75rem;font-size:1rem;font-weight:400;line-height:1.5;color:var(--bs-body-color);text-align:center;white-space:nowrap;background-color:var(--bs-tertiary-bg);border:var(--bs-border-width) solid var(--bs-border-color);border-radius:var(--bs-border-radius)}.input-group-lg>.form-control,.input-group-lg>.form-select,.input-group-lg>.input-group-text,.input-group-lg>.btn{padding:.5rem 1rem;font-size:1.25rem;border-radius:var(--bs-border-radius-lg)}.input-group-sm>.form-control,.input-group-sm>.form-select,.input-group-sm>.input-group-text,.input-group-sm>.btn{padding:.25rem .5rem;font-size:.875rem;border-radius:var(--bs-border-radius-sm)}.input-group-lg>.form-select,.input-group-sm>.form-select{padding-right:3rem}.input-group:not(.has-validation)>:not(:last-child):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group:not(.has-validation)>.dropdown-toggle:nth-last-child(n+3),.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-control,.input-group:not(.has-validation)>.form-floating:not(:last-child)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group.has-validation>:nth-last-child(n+3):not(.dropdown-toggle):not(.dropdown-menu):not(.form-floating),.input-group.has-validation>.dropdown-toggle:nth-last-child(n+4),.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-control,.input-group.has-validation>.form-floating:nth-last-child(n+3)>.form-select{border-top-right-radius:0;border-bottom-right-radius:0}.input-group>:not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback){margin-left:calc(var(--bs-border-width) * -1);border-top-left-radius:0;border-bottom-left-radius:0}.input-group>.form-floating:not(:first-child)>.form-control,.input-group>.form-floating:not(:first-child)>.form-select{border-top-left-radius:0;border-bottom-left-radius:0}.valid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-valid-color)}.valid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-success);border-radius:var(--bs-border-radius)}.was-validated :valid~.valid-feedback,.was-validated :valid~.valid-tooltip,.is-valid~.valid-feedback,.is-valid~.valid-tooltip{display:block}.was-validated .form-control:valid,.form-control.is-valid{border-color:var(--bs-form-valid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:valid:focus,.form-control.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated textarea.form-control:valid,textarea.form-control.is-valid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:valid,.form-select.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-select:valid:not([multiple]):not([size]),.was-validated .form-select:valid:not([multiple])[size="1"],.form-select.is-valid:not([multiple]):not([size]),.form-select.is-valid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 8 8'%3e%3cpath fill='%23198754' d='M2.3 6.73.6 4.53c-.4-1.04.46-1.4 1.1-.8l1.1 1.4 3.4-3.8c.6-.63 1.6-.27 1.2.7l-4 4.6c-.43.5-.8.4-1.1.1z'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:valid:focus,.form-select.is-valid:focus{border-color:var(--bs-form-valid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-control-color:valid,.form-control-color.is-valid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:valid,.form-check-input.is-valid{border-color:var(--bs-form-valid-border-color)}.was-validated .form-check-input:valid:checked,.form-check-input.is-valid:checked{background-color:var(--bs-form-valid-color)}.was-validated .form-check-input:valid:focus,.form-check-input.is-valid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-success-rgb),.25)}.was-validated .form-check-input:valid~.form-check-label,.form-check-input.is-valid~.form-check-label{color:var(--bs-form-valid-color)}.form-check-inline .form-check-input~.valid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):valid,.input-group>.form-control:not(:focus).is-valid,.was-validated .input-group>.form-select:not(:focus):valid,.input-group>.form-select:not(:focus).is-valid,.was-validated .input-group>.form-floating:not(:focus-within):valid,.input-group>.form-floating:not(:focus-within).is-valid{z-index:3}.invalid-feedback{display:none;width:100%;margin-top:.25rem;font-size:.875em;color:var(--bs-form-invalid-color)}.invalid-tooltip{position:absolute;top:100%;z-index:5;display:none;max-width:100%;padding:.25rem .5rem;margin-top:.1rem;font-size:.875rem;color:#fff;background-color:var(--bs-danger);border-radius:var(--bs-border-radius)}.was-validated :invalid~.invalid-feedback,.was-validated :invalid~.invalid-tooltip,.is-invalid~.invalid-feedback,.is-invalid~.invalid-tooltip{display:block}.was-validated .form-control:invalid,.form-control.is-invalid{border-color:var(--bs-form-invalid-border-color);padding-right:calc(1.5em + .75rem);background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");background-repeat:no-repeat;background-position:right calc(.375em + .1875rem) center;background-size:calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-control:invalid:focus,.form-control.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated textarea.form-control:invalid,textarea.form-control.is-invalid{padding-right:calc(1.5em + .75rem);background-position:top calc(.375em + .1875rem) right calc(.375em + .1875rem)}.was-validated .form-select:invalid,.form-select.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-select:invalid:not([multiple]):not([size]),.was-validated .form-select:invalid:not([multiple])[size="1"],.form-select.is-invalid:not([multiple]):not([size]),.form-select.is-invalid:not([multiple])[size="1"]{--bs-form-select-bg-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' width='12' height='12' fill='none' stroke='%23dc3545'%3e%3ccircle cx='6' cy='6' r='4.5'/%3e%3cpath stroke-linejoin='round' d='M5.8 3.6h.4L6 6.5z'/%3e%3ccircle cx='6' cy='8.2' r='.6' fill='%23dc3545' stroke='none'/%3e%3c/svg%3e");padding-right:4.125rem;background-position:right .75rem center,center right 2.25rem;background-size:16px 12px,calc(.75em + .375rem) calc(.75em + .375rem)}.was-validated .form-select:invalid:focus,.form-select.is-invalid:focus{border-color:var(--bs-form-invalid-border-color);box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-control-color:invalid,.form-control-color.is-invalid{width:calc(3.75rem + 1.5em)}.was-validated .form-check-input:invalid,.form-check-input.is-invalid{border-color:var(--bs-form-invalid-border-color)}.was-validated .form-check-input:invalid:checked,.form-check-input.is-invalid:checked{background-color:var(--bs-form-invalid-color)}.was-validated .form-check-input:invalid:focus,.form-check-input.is-invalid:focus{box-shadow:0 0 0 .25rem rgba(var(--bs-danger-rgb),.25)}.was-validated .form-check-input:invalid~.form-check-label,.form-check-input.is-invalid~.form-check-label{color:var(--bs-form-invalid-color)}.form-check-inline .form-check-input~.invalid-feedback{margin-left:.5em}.was-validated .input-group>.form-control:not(:focus):invalid,.input-group>.form-control:not(:focus).is-invalid,.was-validated .input-group>.form-select:not(:focus):invalid,.input-group>.form-select:not(:focus).is-invalid,.was-validated .input-group>.form-floating:not(:focus-within):invalid,.input-group>.form-floating:not(:focus-within).is-invalid{z-index:4}.btn{--bs-btn-padding-x: .75rem;--bs-btn-padding-y: .375rem;--bs-btn-font-family: ;--bs-btn-font-size: 1rem;--bs-btn-font-weight: 400;--bs-btn-line-height: 1.5;--bs-btn-color: var(--bs-body-color);--bs-btn-bg: transparent;--bs-btn-border-width: var(--bs-border-width);--bs-btn-border-color: transparent;--bs-btn-border-radius: var(--bs-border-radius);--bs-btn-hover-border-color: transparent;--bs-btn-box-shadow: inset 0 1px 0 rgba(255, 255, 255, .15), 0 1px 1px rgba(0, 0, 0, .075);--bs-btn-disabled-opacity: .65;--bs-btn-focus-box-shadow: 0 0 0 .25rem rgba(var(--bs-btn-focus-shadow-rgb), .5);display:inline-block;padding:var(--bs-btn-padding-y) var(--bs-btn-padding-x);font-family:var(--bs-btn-font-family);font-size:var(--bs-btn-font-size);font-weight:var(--bs-btn-font-weight);line-height:var(--bs-btn-line-height);color:var(--bs-btn-color);text-align:center;text-decoration:none;vertical-align:middle;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;user-select:none;border:var(--bs-btn-border-width) solid var(--bs-btn-border-color);border-radius:var(--bs-btn-border-radius);background-color:var(--bs-btn-bg);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.btn{transition:none}}.btn:hover{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color)}.btn-check+.btn:hover{color:var(--bs-btn-color);background-color:var(--bs-btn-bg);border-color:var(--bs-btn-border-color)}.btn:focus-visible{color:var(--bs-btn-hover-color);background-color:var(--bs-btn-hover-bg);border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:focus-visible+.btn{border-color:var(--bs-btn-hover-border-color);outline:0;box-shadow:var(--bs-btn-focus-box-shadow)}.btn-check:checked+.btn,:not(.btn-check)+.btn:active,.btn:first-child:active,.btn.active,.btn.show{color:var(--bs-btn-active-color);background-color:var(--bs-btn-active-bg);border-color:var(--bs-btn-active-border-color)}.btn-check:checked+.btn:focus-visible,:not(.btn-check)+.btn:active:focus-visible,.btn:first-child:active:focus-visible,.btn.active:focus-visible,.btn.show:focus-visible{box-shadow:var(--bs-btn-focus-box-shadow)}.btn:disabled,.btn.disabled,fieldset:disabled .btn{color:var(--bs-btn-disabled-color);pointer-events:none;background-color:var(--bs-btn-disabled-bg);border-color:var(--bs-btn-disabled-border-color);opacity:var(--bs-btn-disabled-opacity)}.btn-primary{--bs-btn-color: #fff;--bs-btn-bg: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0b5ed7;--bs-btn-hover-border-color: #0a58ca;--bs-btn-focus-shadow-rgb: 49, 132, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0a58ca;--bs-btn-active-border-color: #0a53be;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #0d6efd;--bs-btn-disabled-border-color: #0d6efd}.btn-secondary{--bs-btn-color: #fff;--bs-btn-bg: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #5c636a;--bs-btn-hover-border-color: #565e64;--bs-btn-focus-shadow-rgb: 130, 138, 145;--bs-btn-active-color: #fff;--bs-btn-active-bg: #565e64;--bs-btn-active-border-color: #51585e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #6c757d;--bs-btn-disabled-border-color: #6c757d}.btn-success{--bs-btn-color: #fff;--bs-btn-bg: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #157347;--bs-btn-hover-border-color: #146c43;--bs-btn-focus-shadow-rgb: 60, 153, 110;--bs-btn-active-color: #fff;--bs-btn-active-bg: #146c43;--bs-btn-active-border-color: #13653f;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #198754;--bs-btn-disabled-border-color: #198754}.btn-info{--bs-btn-color: #000;--bs-btn-bg: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #31d2f2;--bs-btn-hover-border-color: #25cff2;--bs-btn-focus-shadow-rgb: 11, 172, 204;--bs-btn-active-color: #000;--bs-btn-active-bg: #3dd5f3;--bs-btn-active-border-color: #25cff2;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #0dcaf0;--bs-btn-disabled-border-color: #0dcaf0}.btn-warning{--bs-btn-color: #000;--bs-btn-bg: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffca2c;--bs-btn-hover-border-color: #ffc720;--bs-btn-focus-shadow-rgb: 217, 164, 6;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffcd39;--bs-btn-active-border-color: #ffc720;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #ffc107;--bs-btn-disabled-border-color: #ffc107}.btn-danger{--bs-btn-color: #fff;--bs-btn-bg: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #bb2d3b;--bs-btn-hover-border-color: #b02a37;--bs-btn-focus-shadow-rgb: 225, 83, 97;--bs-btn-active-color: #fff;--bs-btn-active-bg: #b02a37;--bs-btn-active-border-color: #a52834;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #dc3545;--bs-btn-disabled-border-color: #dc3545}.btn-light{--bs-btn-color: #000;--bs-btn-bg: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #d3d4d5;--bs-btn-hover-border-color: #c6c7c8;--bs-btn-focus-shadow-rgb: 211, 212, 213;--bs-btn-active-color: #000;--bs-btn-active-bg: #c6c7c8;--bs-btn-active-border-color: #babbbc;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #000;--bs-btn-disabled-bg: #f8f9fa;--bs-btn-disabled-border-color: #f8f9fa}.btn-dark{--bs-btn-color: #fff;--bs-btn-bg: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #424649;--bs-btn-hover-border-color: #373b3e;--bs-btn-focus-shadow-rgb: 66, 70, 73;--bs-btn-active-color: #fff;--bs-btn-active-bg: #4d5154;--bs-btn-active-border-color: #373b3e;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #fff;--bs-btn-disabled-bg: #212529;--bs-btn-disabled-border-color: #212529}.btn-outline-primary{--bs-btn-color: #0d6efd;--bs-btn-border-color: #0d6efd;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #0d6efd;--bs-btn-hover-border-color: #0d6efd;--bs-btn-focus-shadow-rgb: 13, 110, 253;--bs-btn-active-color: #fff;--bs-btn-active-bg: #0d6efd;--bs-btn-active-border-color: #0d6efd;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0d6efd;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0d6efd;--bs-gradient: none}.btn-outline-secondary{--bs-btn-color: #6c757d;--bs-btn-border-color: #6c757d;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #6c757d;--bs-btn-hover-border-color: #6c757d;--bs-btn-focus-shadow-rgb: 108, 117, 125;--bs-btn-active-color: #fff;--bs-btn-active-bg: #6c757d;--bs-btn-active-border-color: #6c757d;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #6c757d;--bs-gradient: none}.btn-outline-success{--bs-btn-color: #198754;--bs-btn-border-color: #198754;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #198754;--bs-btn-hover-border-color: #198754;--bs-btn-focus-shadow-rgb: 25, 135, 84;--bs-btn-active-color: #fff;--bs-btn-active-bg: #198754;--bs-btn-active-border-color: #198754;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #198754;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #198754;--bs-gradient: none}.btn-outline-info{--bs-btn-color: #0dcaf0;--bs-btn-border-color: #0dcaf0;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #0dcaf0;--bs-btn-hover-border-color: #0dcaf0;--bs-btn-focus-shadow-rgb: 13, 202, 240;--bs-btn-active-color: #000;--bs-btn-active-bg: #0dcaf0;--bs-btn-active-border-color: #0dcaf0;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #0dcaf0;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #0dcaf0;--bs-gradient: none}.btn-outline-warning{--bs-btn-color: #ffc107;--bs-btn-border-color: #ffc107;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #ffc107;--bs-btn-hover-border-color: #ffc107;--bs-btn-focus-shadow-rgb: 255, 193, 7;--bs-btn-active-color: #000;--bs-btn-active-bg: #ffc107;--bs-btn-active-border-color: #ffc107;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #ffc107;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #ffc107;--bs-gradient: none}.btn-outline-danger{--bs-btn-color: #dc3545;--bs-btn-border-color: #dc3545;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #dc3545;--bs-btn-hover-border-color: #dc3545;--bs-btn-focus-shadow-rgb: 220, 53, 69;--bs-btn-active-color: #fff;--bs-btn-active-bg: #dc3545;--bs-btn-active-border-color: #dc3545;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #dc3545;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #dc3545;--bs-gradient: none}.btn-outline-light{--bs-btn-color: #f8f9fa;--bs-btn-border-color: #f8f9fa;--bs-btn-hover-color: #000;--bs-btn-hover-bg: #f8f9fa;--bs-btn-hover-border-color: #f8f9fa;--bs-btn-focus-shadow-rgb: 248, 249, 250;--bs-btn-active-color: #000;--bs-btn-active-bg: #f8f9fa;--bs-btn-active-border-color: #f8f9fa;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #f8f9fa;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #f8f9fa;--bs-gradient: none}.btn-outline-dark{--bs-btn-color: #212529;--bs-btn-border-color: #212529;--bs-btn-hover-color: #fff;--bs-btn-hover-bg: #212529;--bs-btn-hover-border-color: #212529;--bs-btn-focus-shadow-rgb: 33, 37, 41;--bs-btn-active-color: #fff;--bs-btn-active-bg: #212529;--bs-btn-active-border-color: #212529;--bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, .125);--bs-btn-disabled-color: #212529;--bs-btn-disabled-bg: transparent;--bs-btn-disabled-border-color: #212529;--bs-gradient: none}.btn-link{--bs-btn-font-weight: 400;--bs-btn-color: var(--bs-link-color);--bs-btn-bg: transparent;--bs-btn-border-color: transparent;--bs-btn-hover-color: var(--bs-link-hover-color);--bs-btn-hover-border-color: transparent;--bs-btn-active-color: var(--bs-link-hover-color);--bs-btn-active-border-color: transparent;--bs-btn-disabled-color: #6c757d;--bs-btn-disabled-border-color: transparent;--bs-btn-box-shadow: 0 0 0 #000;--bs-btn-focus-shadow-rgb: 49, 132, 253;text-decoration:underline}.btn-link:focus-visible{color:var(--bs-btn-color)}.btn-link:hover{color:var(--bs-btn-hover-color)}.btn-lg,.btn-group-lg>.btn{--bs-btn-padding-y: .5rem;--bs-btn-padding-x: 1rem;--bs-btn-font-size: 1.25rem;--bs-btn-border-radius: var(--bs-border-radius-lg)}.btn-sm,.btn-group-sm>.btn{--bs-btn-padding-y: .25rem;--bs-btn-padding-x: .5rem;--bs-btn-font-size: .875rem;--bs-btn-border-radius: var(--bs-border-radius-sm)}.fade{transition:opacity .15s linear}@media (prefers-reduced-motion: reduce){.fade{transition:none}}.fade:not(.show){opacity:0}.collapse:not(.show){display:none}.collapsing{height:0;overflow:hidden;transition:height .35s ease}@media (prefers-reduced-motion: reduce){.collapsing{transition:none}}.collapsing.collapse-horizontal{width:0;height:auto;transition:width .35s ease}@media (prefers-reduced-motion: reduce){.collapsing.collapse-horizontal{transition:none}}.dropup,.dropend,.dropdown,.dropstart,.dropup-center,.dropdown-center{position:relative}.dropdown-toggle{white-space:nowrap}.dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid;border-right:.3em solid transparent;border-bottom:0;border-left:.3em solid transparent}.dropdown-toggle:empty:after{margin-left:0}.dropdown-menu{--bs-dropdown-zindex: 1000;--bs-dropdown-min-width: 10rem;--bs-dropdown-padding-x: 0;--bs-dropdown-padding-y: .5rem;--bs-dropdown-spacer: .125rem;--bs-dropdown-font-size: 1rem;--bs-dropdown-color: var(--bs-body-color);--bs-dropdown-bg: var(--bs-body-bg);--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-border-radius: var(--bs-border-radius);--bs-dropdown-border-width: var(--bs-border-width);--bs-dropdown-inner-border-radius: calc(var(--bs-border-radius) - var(--bs-border-width));--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-divider-margin-y: .5rem;--bs-dropdown-box-shadow: var(--bs-box-shadow);--bs-dropdown-link-color: var(--bs-body-color);--bs-dropdown-link-hover-color: var(--bs-body-color);--bs-dropdown-link-hover-bg: var(--bs-tertiary-bg);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #0d6efd;--bs-dropdown-link-disabled-color: var(--bs-tertiary-color);--bs-dropdown-item-padding-x: 1rem;--bs-dropdown-item-padding-y: .25rem;--bs-dropdown-header-color: #6c757d;--bs-dropdown-header-padding-x: 1rem;--bs-dropdown-header-padding-y: .5rem;position:absolute;z-index:var(--bs-dropdown-zindex);display:none;min-width:var(--bs-dropdown-min-width);padding:var(--bs-dropdown-padding-y) var(--bs-dropdown-padding-x);margin:0;font-size:var(--bs-dropdown-font-size);color:var(--bs-dropdown-color);text-align:left;list-style:none;background-color:var(--bs-dropdown-bg);background-clip:padding-box;border:var(--bs-dropdown-border-width) solid var(--bs-dropdown-border-color);border-radius:var(--bs-dropdown-border-radius)}.dropdown-menu[data-bs-popper]{top:100%;left:0;margin-top:var(--bs-dropdown-spacer)}.dropdown-menu-start{--bs-position: start}.dropdown-menu-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-end{--bs-position: end}.dropdown-menu-end[data-bs-popper]{right:0;left:auto}@media (min-width: 576px){.dropdown-menu-sm-start{--bs-position: start}.dropdown-menu-sm-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-sm-end{--bs-position: end}.dropdown-menu-sm-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 768px){.dropdown-menu-md-start{--bs-position: start}.dropdown-menu-md-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-md-end{--bs-position: end}.dropdown-menu-md-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 992px){.dropdown-menu-lg-start{--bs-position: start}.dropdown-menu-lg-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-lg-end{--bs-position: end}.dropdown-menu-lg-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1200px){.dropdown-menu-xl-start{--bs-position: start}.dropdown-menu-xl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xl-end{--bs-position: end}.dropdown-menu-xl-end[data-bs-popper]{right:0;left:auto}}@media (min-width: 1400px){.dropdown-menu-xxl-start{--bs-position: start}.dropdown-menu-xxl-start[data-bs-popper]{right:auto;left:0}.dropdown-menu-xxl-end{--bs-position: end}.dropdown-menu-xxl-end[data-bs-popper]{right:0;left:auto}}.dropup .dropdown-menu[data-bs-popper]{top:auto;bottom:100%;margin-top:0;margin-bottom:var(--bs-dropdown-spacer)}.dropup .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:0;border-right:.3em solid transparent;border-bottom:.3em solid;border-left:.3em solid transparent}.dropup .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-menu[data-bs-popper]{top:0;right:auto;left:100%;margin-top:0;margin-left:var(--bs-dropdown-spacer)}.dropend .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:0;border-bottom:.3em solid transparent;border-left:.3em solid}.dropend .dropdown-toggle:empty:after{margin-left:0}.dropend .dropdown-toggle:after{vertical-align:0}.dropstart .dropdown-menu[data-bs-popper]{top:0;right:100%;left:auto;margin-top:0;margin-right:var(--bs-dropdown-spacer)}.dropstart .dropdown-toggle:after{display:inline-block;margin-left:.255em;vertical-align:.255em;content:""}.dropstart .dropdown-toggle:after{display:none}.dropstart .dropdown-toggle:before{display:inline-block;margin-right:.255em;vertical-align:.255em;content:"";border-top:.3em solid transparent;border-right:.3em solid;border-bottom:.3em solid transparent}.dropstart .dropdown-toggle:empty:after{margin-left:0}.dropstart .dropdown-toggle:before{vertical-align:0}.dropdown-divider{height:0;margin:var(--bs-dropdown-divider-margin-y) 0;overflow:hidden;border-top:1px solid var(--bs-dropdown-divider-bg);opacity:1}.dropdown-item{display:block;width:100%;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);clear:both;font-weight:400;color:var(--bs-dropdown-link-color);text-align:inherit;text-decoration:none;white-space:nowrap;background-color:transparent;border:0;border-radius:var(--bs-dropdown-item-border-radius, 0)}.dropdown-item:hover,.dropdown-item:focus{color:var(--bs-dropdown-link-hover-color);background-color:var(--bs-dropdown-link-hover-bg)}.dropdown-item.active,.dropdown-item:active{color:var(--bs-dropdown-link-active-color);text-decoration:none;background-color:var(--bs-dropdown-link-active-bg)}.dropdown-item.disabled,.dropdown-item:disabled{color:var(--bs-dropdown-link-disabled-color);pointer-events:none;background-color:transparent}.dropdown-menu.show{display:block}.dropdown-header{display:block;padding:var(--bs-dropdown-header-padding-y) var(--bs-dropdown-header-padding-x);margin-bottom:0;font-size:.875rem;color:var(--bs-dropdown-header-color);white-space:nowrap}.dropdown-item-text{display:block;padding:var(--bs-dropdown-item-padding-y) var(--bs-dropdown-item-padding-x);color:var(--bs-dropdown-link-color)}.dropdown-menu-dark{--bs-dropdown-color: #dee2e6;--bs-dropdown-bg: #343a40;--bs-dropdown-border-color: var(--bs-border-color-translucent);--bs-dropdown-box-shadow: ;--bs-dropdown-link-color: #dee2e6;--bs-dropdown-link-hover-color: #fff;--bs-dropdown-divider-bg: var(--bs-border-color-translucent);--bs-dropdown-link-hover-bg: rgba(255, 255, 255, .15);--bs-dropdown-link-active-color: #fff;--bs-dropdown-link-active-bg: #0d6efd;--bs-dropdown-link-disabled-color: #adb5bd;--bs-dropdown-header-color: #adb5bd}.btn-group,.btn-group-vertical{position:relative;display:inline-flex;vertical-align:middle}.btn-group>.btn,.btn-group-vertical>.btn{position:relative;flex:1 1 auto}.btn-group>.btn-check:checked+.btn,.btn-group>.btn-check:focus+.btn,.btn-group>.btn:hover,.btn-group>.btn:focus,.btn-group>.btn:active,.btn-group>.btn.active,.btn-group-vertical>.btn-check:checked+.btn,.btn-group-vertical>.btn-check:focus+.btn,.btn-group-vertical>.btn:hover,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn.active{z-index:1}.btn-toolbar{display:flex;flex-wrap:wrap;justify-content:flex-start}.btn-toolbar .input-group{width:auto}.btn-group{border-radius:var(--bs-border-radius)}.btn-group>:not(.btn-check:first-child)+.btn,.btn-group>.btn-group:not(:first-child){margin-left:calc(var(--bs-border-width) * -1)}.btn-group>.btn:not(:last-child):not(.dropdown-toggle),.btn-group>.btn.dropdown-toggle-split:first-child,.btn-group>.btn-group:not(:last-child)>.btn{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:nth-child(n+3),.btn-group>:not(.btn-check)+.btn,.btn-group>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-bottom-left-radius:0}.dropdown-toggle-split{padding-right:.5625rem;padding-left:.5625rem}.dropdown-toggle-split:after,.dropup .dropdown-toggle-split:after,.dropend .dropdown-toggle-split:after{margin-left:0}.dropstart .dropdown-toggle-split:before{margin-right:0}.btn-sm+.dropdown-toggle-split,.btn-group-sm>.btn+.dropdown-toggle-split{padding-right:.375rem;padding-left:.375rem}.btn-lg+.dropdown-toggle-split,.btn-group-lg>.btn+.dropdown-toggle-split{padding-right:.75rem;padding-left:.75rem}.btn-group-vertical{flex-direction:column;align-items:flex-start;justify-content:center}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group{width:100%}.btn-group-vertical>.btn:not(:first-child),.btn-group-vertical>.btn-group:not(:first-child){margin-top:calc(var(--bs-border-width) * -1)}.btn-group-vertical>.btn:not(:last-child):not(.dropdown-toggle),.btn-group-vertical>.btn-group:not(:last-child)>.btn{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn~.btn,.btn-group-vertical>.btn-group:not(:first-child)>.btn{border-top-left-radius:0;border-top-right-radius:0}.nav{--bs-nav-link-padding-x: 1rem;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-link-color);--bs-nav-link-hover-color: var(--bs-link-hover-color);--bs-nav-link-disabled-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding-left:0;margin-bottom:0;list-style:none}.nav-link{display:block;padding:var(--bs-nav-link-padding-y) var(--bs-nav-link-padding-x);font-size:var(--bs-nav-link-font-size);font-weight:var(--bs-nav-link-font-weight);color:var(--bs-nav-link-color);text-decoration:none;background:none;border:0;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out}@media (prefers-reduced-motion: reduce){.nav-link{transition:none}}.nav-link:hover,.nav-link:focus{color:var(--bs-nav-link-hover-color)}.nav-link:focus-visible{outline:0;box-shadow:0 0 0 .25rem #0d6efd40}.nav-link.disabled,.nav-link:disabled{color:var(--bs-nav-link-disabled-color);pointer-events:none;cursor:default}.nav-tabs{--bs-nav-tabs-border-width: var(--bs-border-width);--bs-nav-tabs-border-color: var(--bs-border-color);--bs-nav-tabs-border-radius: var(--bs-border-radius);--bs-nav-tabs-link-hover-border-color: var(--bs-secondary-bg) var(--bs-secondary-bg) var(--bs-border-color);--bs-nav-tabs-link-active-color: var(--bs-emphasis-color);--bs-nav-tabs-link-active-bg: var(--bs-body-bg);--bs-nav-tabs-link-active-border-color: var(--bs-border-color) var(--bs-border-color) var(--bs-body-bg);border-bottom:var(--bs-nav-tabs-border-width) solid var(--bs-nav-tabs-border-color)}.nav-tabs .nav-link{margin-bottom:calc(-1 * var(--bs-nav-tabs-border-width));border:var(--bs-nav-tabs-border-width) solid transparent;border-top-left-radius:var(--bs-nav-tabs-border-radius);border-top-right-radius:var(--bs-nav-tabs-border-radius)}.nav-tabs .nav-link:hover,.nav-tabs .nav-link:focus{isolation:isolate;border-color:var(--bs-nav-tabs-link-hover-border-color)}.nav-tabs .nav-link.active,.nav-tabs .nav-item.show .nav-link{color:var(--bs-nav-tabs-link-active-color);background-color:var(--bs-nav-tabs-link-active-bg);border-color:var(--bs-nav-tabs-link-active-border-color)}.nav-tabs .dropdown-menu{margin-top:calc(-1 * var(--bs-nav-tabs-border-width));border-top-left-radius:0;border-top-right-radius:0}.nav-pills{--bs-nav-pills-border-radius: var(--bs-border-radius);--bs-nav-pills-link-active-color: #fff;--bs-nav-pills-link-active-bg: #0d6efd}.nav-pills .nav-link{border-radius:var(--bs-nav-pills-border-radius)}.nav-pills .nav-link.active,.nav-pills .show>.nav-link{color:var(--bs-nav-pills-link-active-color);background-color:var(--bs-nav-pills-link-active-bg)}.nav-underline{--bs-nav-underline-gap: 1rem;--bs-nav-underline-border-width: .125rem;--bs-nav-underline-link-active-color: var(--bs-emphasis-color);gap:var(--bs-nav-underline-gap)}.nav-underline .nav-link{padding-right:0;padding-left:0;border-bottom:var(--bs-nav-underline-border-width) solid transparent}.nav-underline .nav-link:hover,.nav-underline .nav-link:focus{border-bottom-color:currentcolor}.nav-underline .nav-link.active,.nav-underline .show>.nav-link{font-weight:700;color:var(--bs-nav-underline-link-active-color);border-bottom-color:currentcolor}.nav-fill>.nav-link,.nav-fill .nav-item{flex:1 1 auto;text-align:center}.nav-justified>.nav-link,.nav-justified .nav-item{flex-basis:0;flex-grow:1;text-align:center}.nav-fill .nav-item .nav-link,.nav-justified .nav-item .nav-link{width:100%}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.navbar{--bs-navbar-padding-x: 0;--bs-navbar-padding-y: .5rem;--bs-navbar-color: rgba(var(--bs-emphasis-color-rgb), .65);--bs-navbar-hover-color: rgba(var(--bs-emphasis-color-rgb), .8);--bs-navbar-disabled-color: rgba(var(--bs-emphasis-color-rgb), .3);--bs-navbar-active-color: rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-padding-y: .3125rem;--bs-navbar-brand-margin-end: 1rem;--bs-navbar-brand-font-size: 1.25rem;--bs-navbar-brand-color: rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-brand-hover-color: rgba(var(--bs-emphasis-color-rgb), 1);--bs-navbar-nav-link-padding-x: .5rem;--bs-navbar-toggler-padding-y: .25rem;--bs-navbar-toggler-padding-x: .75rem;--bs-navbar-toggler-font-size: 1.25rem;--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%2833, 37, 41, 0.75%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");--bs-navbar-toggler-border-color: rgba(var(--bs-emphasis-color-rgb), .15);--bs-navbar-toggler-border-radius: var(--bs-border-radius);--bs-navbar-toggler-focus-width: .25rem;--bs-navbar-toggler-transition: box-shadow .15s ease-in-out;position:relative;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:var(--bs-navbar-padding-y) var(--bs-navbar-padding-x)}.navbar>.container,.navbar>.container-fluid,.navbar>.container-sm,.navbar>.container-md,.navbar>.container-lg,.navbar>.container-xl,.navbar>.container-xxl{display:flex;flex-wrap:inherit;align-items:center;justify-content:space-between}.navbar-brand{padding-top:var(--bs-navbar-brand-padding-y);padding-bottom:var(--bs-navbar-brand-padding-y);margin-right:var(--bs-navbar-brand-margin-end);font-size:var(--bs-navbar-brand-font-size);color:var(--bs-navbar-brand-color);text-decoration:none;white-space:nowrap}.navbar-brand:hover,.navbar-brand:focus{color:var(--bs-navbar-brand-hover-color)}.navbar-nav{--bs-nav-link-padding-x: 0;--bs-nav-link-padding-y: .5rem;--bs-nav-link-font-weight: ;--bs-nav-link-color: var(--bs-navbar-color);--bs-nav-link-hover-color: var(--bs-navbar-hover-color);--bs-nav-link-disabled-color: var(--bs-navbar-disabled-color);display:flex;flex-direction:column;padding-left:0;margin-bottom:0;list-style:none}.navbar-nav .nav-link.active,.navbar-nav .nav-link.show{color:var(--bs-navbar-active-color)}.navbar-nav .dropdown-menu{position:static}.navbar-text{padding-top:.5rem;padding-bottom:.5rem;color:var(--bs-navbar-color)}.navbar-text a,.navbar-text a:hover,.navbar-text a:focus{color:var(--bs-navbar-active-color)}.navbar-collapse{flex-basis:100%;flex-grow:1;align-items:center}.navbar-toggler{padding:var(--bs-navbar-toggler-padding-y) var(--bs-navbar-toggler-padding-x);font-size:var(--bs-navbar-toggler-font-size);line-height:1;color:var(--bs-navbar-color);background-color:transparent;border:var(--bs-border-width) solid var(--bs-navbar-toggler-border-color);border-radius:var(--bs-navbar-toggler-border-radius);transition:var(--bs-navbar-toggler-transition)}@media (prefers-reduced-motion: reduce){.navbar-toggler{transition:none}}.navbar-toggler:hover{text-decoration:none}.navbar-toggler:focus{text-decoration:none;outline:0;box-shadow:0 0 0 var(--bs-navbar-toggler-focus-width)}.navbar-toggler-icon{display:inline-block;width:1.5em;height:1.5em;vertical-align:middle;background-image:var(--bs-navbar-toggler-icon-bg);background-repeat:no-repeat;background-position:center;background-size:100%}.navbar-nav-scroll{max-height:var(--bs-scroll-height, 75vh);overflow-y:auto}@media (min-width: 576px){.navbar-expand-sm{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-sm .navbar-nav{flex-direction:row}.navbar-expand-sm .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-sm .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-sm .navbar-nav-scroll{overflow:visible}.navbar-expand-sm .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-sm .navbar-toggler{display:none}.navbar-expand-sm .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-sm .offcanvas .offcanvas-header{display:none}.navbar-expand-sm .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 768px){.navbar-expand-md{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-md .navbar-nav{flex-direction:row}.navbar-expand-md .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-md .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-md .navbar-nav-scroll{overflow:visible}.navbar-expand-md .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-md .navbar-toggler{display:none}.navbar-expand-md .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-md .offcanvas .offcanvas-header{display:none}.navbar-expand-md .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 992px){.navbar-expand-lg{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-lg .navbar-nav{flex-direction:row}.navbar-expand-lg .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-lg .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-lg .navbar-nav-scroll{overflow:visible}.navbar-expand-lg .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-lg .navbar-toggler{display:none}.navbar-expand-lg .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-lg .offcanvas .offcanvas-header{display:none}.navbar-expand-lg .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1200px){.navbar-expand-xl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xl .navbar-nav{flex-direction:row}.navbar-expand-xl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xl .navbar-nav-scroll{overflow:visible}.navbar-expand-xl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xl .navbar-toggler{display:none}.navbar-expand-xl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xl .offcanvas .offcanvas-header{display:none}.navbar-expand-xl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}@media (min-width: 1400px){.navbar-expand-xxl{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand-xxl .navbar-nav{flex-direction:row}.navbar-expand-xxl .navbar-nav .dropdown-menu{position:absolute}.navbar-expand-xxl .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand-xxl .navbar-nav-scroll{overflow:visible}.navbar-expand-xxl .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand-xxl .navbar-toggler{display:none}.navbar-expand-xxl .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand-xxl .offcanvas .offcanvas-header{display:none}.navbar-expand-xxl .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}}.navbar-expand{flex-wrap:nowrap;justify-content:flex-start}.navbar-expand .navbar-nav{flex-direction:row}.navbar-expand .navbar-nav .dropdown-menu{position:absolute}.navbar-expand .navbar-nav .nav-link{padding-right:var(--bs-navbar-nav-link-padding-x);padding-left:var(--bs-navbar-nav-link-padding-x)}.navbar-expand .navbar-nav-scroll{overflow:visible}.navbar-expand .navbar-collapse{display:flex!important;flex-basis:auto}.navbar-expand .navbar-toggler{display:none}.navbar-expand .offcanvas{position:static;z-index:auto;flex-grow:1;width:auto!important;height:auto!important;visibility:visible!important;background-color:transparent!important;border:0!important;transform:none!important;transition:none}.navbar-expand .offcanvas .offcanvas-header{display:none}.navbar-expand .offcanvas .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible}.navbar-dark,.navbar[data-bs-theme=dark]{--bs-navbar-color: rgba(255, 255, 255, .55);--bs-navbar-hover-color: rgba(255, 255, 255, .75);--bs-navbar-disabled-color: rgba(255, 255, 255, .25);--bs-navbar-active-color: #fff;--bs-navbar-brand-color: #fff;--bs-navbar-brand-hover-color: #fff;--bs-navbar-toggler-border-color: rgba(255, 255, 255, .1);--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}[data-bs-theme=dark] .navbar-toggler-icon{--bs-navbar-toggler-icon-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e")}.card{--bs-card-spacer-y: 1rem;--bs-card-spacer-x: 1rem;--bs-card-title-spacer-y: .5rem;--bs-card-title-color: ;--bs-card-subtitle-color: ;--bs-card-border-width: var(--bs-border-width);--bs-card-border-color: var(--bs-border-color-translucent);--bs-card-border-radius: var(--bs-border-radius);--bs-card-box-shadow: ;--bs-card-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-card-cap-padding-y: .5rem;--bs-card-cap-padding-x: 1rem;--bs-card-cap-bg: rgba(var(--bs-body-color-rgb), .03);--bs-card-cap-color: ;--bs-card-height: ;--bs-card-color: ;--bs-card-bg: var(--bs-body-bg);--bs-card-img-overlay-padding: 1rem;--bs-card-group-margin: .75rem;position:relative;display:flex;flex-direction:column;min-width:0;height:var(--bs-card-height);color:var(--bs-body-color);word-wrap:break-word;background-color:var(--bs-card-bg);background-clip:border-box;border:var(--bs-card-border-width) solid var(--bs-card-border-color);border-radius:var(--bs-card-border-radius)}.card>hr{margin-right:0;margin-left:0}.card>.list-group{border-top:inherit;border-bottom:inherit}.card>.list-group:first-child{border-top-width:0;border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card>.list-group:last-child{border-bottom-width:0;border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card>.card-header+.list-group,.card>.list-group+.card-footer{border-top:0}.card-body{flex:1 1 auto;padding:var(--bs-card-spacer-y) var(--bs-card-spacer-x);color:var(--bs-card-color)}.card-title{margin-bottom:var(--bs-card-title-spacer-y);color:var(--bs-card-title-color)}.card-subtitle{margin-top:calc(-.5 * var(--bs-card-title-spacer-y));margin-bottom:0;color:var(--bs-card-subtitle-color)}.card-text:last-child{margin-bottom:0}.card-link+.card-link{margin-left:var(--bs-card-spacer-x)}.card-header{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);margin-bottom:0;color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-bottom:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-header:first-child{border-radius:var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius) 0 0}.card-footer{padding:var(--bs-card-cap-padding-y) var(--bs-card-cap-padding-x);color:var(--bs-card-cap-color);background-color:var(--bs-card-cap-bg);border-top:var(--bs-card-border-width) solid var(--bs-card-border-color)}.card-footer:last-child{border-radius:0 0 var(--bs-card-inner-border-radius) var(--bs-card-inner-border-radius)}.card-header-tabs{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-bottom:calc(-1 * var(--bs-card-cap-padding-y));margin-left:calc(-.5 * var(--bs-card-cap-padding-x));border-bottom:0}.card-header-tabs .nav-link.active{background-color:var(--bs-card-bg);border-bottom-color:var(--bs-card-bg)}.card-header-pills{margin-right:calc(-.5 * var(--bs-card-cap-padding-x));margin-left:calc(-.5 * var(--bs-card-cap-padding-x))}.card-img-overlay{position:absolute;inset:0;padding:var(--bs-card-img-overlay-padding);border-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-top,.card-img-bottom{width:100%}.card-img,.card-img-top{border-top-left-radius:var(--bs-card-inner-border-radius);border-top-right-radius:var(--bs-card-inner-border-radius)}.card-img,.card-img-bottom{border-bottom-right-radius:var(--bs-card-inner-border-radius);border-bottom-left-radius:var(--bs-card-inner-border-radius)}.card-group>.card{margin-bottom:var(--bs-card-group-margin)}@media (min-width: 576px){.card-group{display:flex;flex-flow:row wrap}.card-group>.card{flex:1 0 0%;margin-bottom:0}.card-group>.card+.card{margin-left:0;border-left:0}.card-group>.card:not(:last-child){border-top-right-radius:0;border-bottom-right-radius:0}.card-group>.card:not(:last-child) .card-img-top,.card-group>.card:not(:last-child) .card-header{border-top-right-radius:0}.card-group>.card:not(:last-child) .card-img-bottom,.card-group>.card:not(:last-child) .card-footer{border-bottom-right-radius:0}.card-group>.card:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.card-group>.card:not(:first-child) .card-img-top,.card-group>.card:not(:first-child) .card-header{border-top-left-radius:0}.card-group>.card:not(:first-child) .card-img-bottom,.card-group>.card:not(:first-child) .card-footer{border-bottom-left-radius:0}}.accordion{--bs-accordion-color: var(--bs-body-color);--bs-accordion-bg: var(--bs-body-bg);--bs-accordion-transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out, border-radius .15s ease;--bs-accordion-border-color: var(--bs-border-color);--bs-accordion-border-width: var(--bs-border-width);--bs-accordion-border-radius: var(--bs-border-radius);--bs-accordion-inner-border-radius: calc(var(--bs-border-radius) - (var(--bs-border-width)));--bs-accordion-btn-padding-x: 1.25rem;--bs-accordion-btn-padding-y: 1rem;--bs-accordion-btn-color: var(--bs-body-color);--bs-accordion-btn-bg: var(--bs-accordion-bg);--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23212529'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-icon-width: 1.25rem;--bs-accordion-btn-icon-transform: rotate(-180deg);--bs-accordion-btn-icon-transition: transform .2s ease-in-out;--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23052c65'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-focus-border-color: #86b7fe;--bs-accordion-btn-focus-box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-accordion-body-padding-x: 1.25rem;--bs-accordion-body-padding-y: 1rem;--bs-accordion-active-color: var(--bs-primary-text-emphasis);--bs-accordion-active-bg: var(--bs-primary-bg-subtle)}.accordion-button{position:relative;display:flex;align-items:center;width:100%;padding:var(--bs-accordion-btn-padding-y) var(--bs-accordion-btn-padding-x);font-size:1rem;color:var(--bs-accordion-btn-color);text-align:left;background-color:var(--bs-accordion-btn-bg);border:0;border-radius:0;overflow-anchor:none;transition:var(--bs-accordion-transition)}@media (prefers-reduced-motion: reduce){.accordion-button{transition:none}}.accordion-button:not(.collapsed){color:var(--bs-accordion-active-color);background-color:var(--bs-accordion-active-bg);box-shadow:inset 0 calc(-1 * var(--bs-accordion-border-width)) 0 var(--bs-accordion-border-color)}.accordion-button:not(.collapsed):after{background-image:var(--bs-accordion-btn-active-icon);transform:var(--bs-accordion-btn-icon-transform)}.accordion-button:after{flex-shrink:0;width:var(--bs-accordion-btn-icon-width);height:var(--bs-accordion-btn-icon-width);margin-left:auto;content:"";background-image:var(--bs-accordion-btn-icon);background-repeat:no-repeat;background-size:var(--bs-accordion-btn-icon-width);transition:var(--bs-accordion-btn-icon-transition)}@media (prefers-reduced-motion: reduce){.accordion-button:after{transition:none}}.accordion-button:hover{z-index:2}.accordion-button:focus{z-index:3;border-color:var(--bs-accordion-btn-focus-border-color);outline:0;box-shadow:var(--bs-accordion-btn-focus-box-shadow)}.accordion-header{margin-bottom:0}.accordion-item{color:var(--bs-accordion-color);background-color:var(--bs-accordion-bg);border:var(--bs-accordion-border-width) solid var(--bs-accordion-border-color)}.accordion-item:first-of-type{border-top-left-radius:var(--bs-accordion-border-radius);border-top-right-radius:var(--bs-accordion-border-radius)}.accordion-item:first-of-type .accordion-button{border-top-left-radius:var(--bs-accordion-inner-border-radius);border-top-right-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:not(:first-of-type){border-top:0}.accordion-item:last-of-type{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-item:last-of-type .accordion-button.collapsed{border-bottom-right-radius:var(--bs-accordion-inner-border-radius);border-bottom-left-radius:var(--bs-accordion-inner-border-radius)}.accordion-item:last-of-type .accordion-collapse{border-bottom-right-radius:var(--bs-accordion-border-radius);border-bottom-left-radius:var(--bs-accordion-border-radius)}.accordion-body{padding:var(--bs-accordion-body-padding-y) var(--bs-accordion-body-padding-x)}.accordion-flush .accordion-collapse{border-width:0}.accordion-flush .accordion-item{border-right:0;border-left:0;border-radius:0}.accordion-flush .accordion-item:first-child{border-top:0}.accordion-flush .accordion-item:last-child{border-bottom:0}.accordion-flush .accordion-item .accordion-button,.accordion-flush .accordion-item .accordion-button.collapsed{border-radius:0}[data-bs-theme=dark] .accordion-button:after{--bs-accordion-btn-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e");--bs-accordion-btn-active-icon: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%236ea8fe'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.breadcrumb{--bs-breadcrumb-padding-x: 0;--bs-breadcrumb-padding-y: 0;--bs-breadcrumb-margin-bottom: 1rem;--bs-breadcrumb-bg: ;--bs-breadcrumb-border-radius: ;--bs-breadcrumb-divider-color: var(--bs-secondary-color);--bs-breadcrumb-item-padding-x: .5rem;--bs-breadcrumb-item-active-color: var(--bs-secondary-color);display:flex;flex-wrap:wrap;padding:var(--bs-breadcrumb-padding-y) var(--bs-breadcrumb-padding-x);margin-bottom:var(--bs-breadcrumb-margin-bottom);font-size:var(--bs-breadcrumb-font-size);list-style:none;background-color:var(--bs-breadcrumb-bg);border-radius:var(--bs-breadcrumb-border-radius)}.breadcrumb-item+.breadcrumb-item{padding-left:var(--bs-breadcrumb-item-padding-x)}.breadcrumb-item+.breadcrumb-item:before{float:left;padding-right:var(--bs-breadcrumb-item-padding-x);color:var(--bs-breadcrumb-divider-color);content:var(--bs-breadcrumb-divider, "/")}.breadcrumb-item.active{color:var(--bs-breadcrumb-item-active-color)}.pagination{--bs-pagination-padding-x: .75rem;--bs-pagination-padding-y: .375rem;--bs-pagination-font-size: 1rem;--bs-pagination-color: var(--bs-link-color);--bs-pagination-bg: var(--bs-body-bg);--bs-pagination-border-width: var(--bs-border-width);--bs-pagination-border-color: var(--bs-border-color);--bs-pagination-border-radius: var(--bs-border-radius);--bs-pagination-hover-color: var(--bs-link-hover-color);--bs-pagination-hover-bg: var(--bs-tertiary-bg);--bs-pagination-hover-border-color: var(--bs-border-color);--bs-pagination-focus-color: var(--bs-link-hover-color);--bs-pagination-focus-bg: var(--bs-secondary-bg);--bs-pagination-focus-box-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-pagination-active-color: #fff;--bs-pagination-active-bg: #0d6efd;--bs-pagination-active-border-color: #0d6efd;--bs-pagination-disabled-color: var(--bs-secondary-color);--bs-pagination-disabled-bg: var(--bs-secondary-bg);--bs-pagination-disabled-border-color: var(--bs-border-color);display:flex;padding-left:0;list-style:none}.page-link{position:relative;display:block;padding:var(--bs-pagination-padding-y) var(--bs-pagination-padding-x);font-size:var(--bs-pagination-font-size);color:var(--bs-pagination-color);text-decoration:none;background-color:var(--bs-pagination-bg);border:var(--bs-pagination-border-width) solid var(--bs-pagination-border-color);transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}@media (prefers-reduced-motion: reduce){.page-link{transition:none}}.page-link:hover{z-index:2;color:var(--bs-pagination-hover-color);background-color:var(--bs-pagination-hover-bg);border-color:var(--bs-pagination-hover-border-color)}.page-link:focus{z-index:3;color:var(--bs-pagination-focus-color);background-color:var(--bs-pagination-focus-bg);outline:0;box-shadow:var(--bs-pagination-focus-box-shadow)}.page-link.active,.active>.page-link{z-index:3;color:var(--bs-pagination-active-color);background-color:var(--bs-pagination-active-bg);border-color:var(--bs-pagination-active-border-color)}.page-link.disabled,.disabled>.page-link{color:var(--bs-pagination-disabled-color);pointer-events:none;background-color:var(--bs-pagination-disabled-bg);border-color:var(--bs-pagination-disabled-border-color)}.page-item:not(:first-child) .page-link{margin-left:calc(var(--bs-border-width) * -1)}.page-item:first-child .page-link{border-top-left-radius:var(--bs-pagination-border-radius);border-bottom-left-radius:var(--bs-pagination-border-radius)}.page-item:last-child .page-link{border-top-right-radius:var(--bs-pagination-border-radius);border-bottom-right-radius:var(--bs-pagination-border-radius)}.pagination-lg{--bs-pagination-padding-x: 1.5rem;--bs-pagination-padding-y: .75rem;--bs-pagination-font-size: 1.25rem;--bs-pagination-border-radius: var(--bs-border-radius-lg)}.pagination-sm{--bs-pagination-padding-x: .5rem;--bs-pagination-padding-y: .25rem;--bs-pagination-font-size: .875rem;--bs-pagination-border-radius: var(--bs-border-radius-sm)}.badge{--bs-badge-padding-x: .65em;--bs-badge-padding-y: .35em;--bs-badge-font-size: .75em;--bs-badge-font-weight: 700;--bs-badge-color: #fff;--bs-badge-border-radius: var(--bs-border-radius);display:inline-block;padding:var(--bs-badge-padding-y) var(--bs-badge-padding-x);font-size:var(--bs-badge-font-size);font-weight:var(--bs-badge-font-weight);line-height:1;color:var(--bs-badge-color);text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:var(--bs-badge-border-radius)}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.alert{--bs-alert-bg: transparent;--bs-alert-padding-x: 1rem;--bs-alert-padding-y: 1rem;--bs-alert-margin-bottom: 1rem;--bs-alert-color: inherit;--bs-alert-border-color: transparent;--bs-alert-border: var(--bs-border-width) solid var(--bs-alert-border-color);--bs-alert-border-radius: var(--bs-border-radius);--bs-alert-link-color: inherit;position:relative;padding:var(--bs-alert-padding-y) var(--bs-alert-padding-x);margin-bottom:var(--bs-alert-margin-bottom);color:var(--bs-alert-color);background-color:var(--bs-alert-bg);border:var(--bs-alert-border);border-radius:var(--bs-alert-border-radius)}.alert-heading{color:inherit}.alert-link{font-weight:700;color:var(--bs-alert-link-color)}.alert-dismissible{padding-right:3rem}.alert-dismissible .btn-close{position:absolute;top:0;right:0;z-index:2;padding:1.25rem 1rem}.alert-primary{--bs-alert-color: var(--bs-primary-text-emphasis);--bs-alert-bg: var(--bs-primary-bg-subtle);--bs-alert-border-color: var(--bs-primary-border-subtle);--bs-alert-link-color: var(--bs-primary-text-emphasis)}.alert-secondary{--bs-alert-color: var(--bs-secondary-text-emphasis);--bs-alert-bg: var(--bs-secondary-bg-subtle);--bs-alert-border-color: var(--bs-secondary-border-subtle);--bs-alert-link-color: var(--bs-secondary-text-emphasis)}.alert-success{--bs-alert-color: var(--bs-success-text-emphasis);--bs-alert-bg: var(--bs-success-bg-subtle);--bs-alert-border-color: var(--bs-success-border-subtle);--bs-alert-link-color: var(--bs-success-text-emphasis)}.alert-info{--bs-alert-color: var(--bs-info-text-emphasis);--bs-alert-bg: var(--bs-info-bg-subtle);--bs-alert-border-color: var(--bs-info-border-subtle);--bs-alert-link-color: var(--bs-info-text-emphasis)}.alert-warning{--bs-alert-color: var(--bs-warning-text-emphasis);--bs-alert-bg: var(--bs-warning-bg-subtle);--bs-alert-border-color: var(--bs-warning-border-subtle);--bs-alert-link-color: var(--bs-warning-text-emphasis)}.alert-danger{--bs-alert-color: var(--bs-danger-text-emphasis);--bs-alert-bg: var(--bs-danger-bg-subtle);--bs-alert-border-color: var(--bs-danger-border-subtle);--bs-alert-link-color: var(--bs-danger-text-emphasis)}.alert-light{--bs-alert-color: var(--bs-light-text-emphasis);--bs-alert-bg: var(--bs-light-bg-subtle);--bs-alert-border-color: var(--bs-light-border-subtle);--bs-alert-link-color: var(--bs-light-text-emphasis)}.alert-dark{--bs-alert-color: var(--bs-dark-text-emphasis);--bs-alert-bg: var(--bs-dark-bg-subtle);--bs-alert-border-color: var(--bs-dark-border-subtle);--bs-alert-link-color: var(--bs-dark-text-emphasis)}@keyframes progress-bar-stripes{0%{background-position-x:1rem}}.progress,.progress-stacked{--bs-progress-height: 1rem;--bs-progress-font-size: .75rem;--bs-progress-bg: var(--bs-secondary-bg);--bs-progress-border-radius: var(--bs-border-radius);--bs-progress-box-shadow: var(--bs-box-shadow-inset);--bs-progress-bar-color: #fff;--bs-progress-bar-bg: #0d6efd;--bs-progress-bar-transition: width .6s ease;display:flex;height:var(--bs-progress-height);overflow:hidden;font-size:var(--bs-progress-font-size);background-color:var(--bs-progress-bg);border-radius:var(--bs-progress-border-radius)}.progress-bar{display:flex;flex-direction:column;justify-content:center;overflow:hidden;color:var(--bs-progress-bar-color);text-align:center;white-space:nowrap;background-color:var(--bs-progress-bar-bg);transition:var(--bs-progress-bar-transition)}@media (prefers-reduced-motion: reduce){.progress-bar{transition:none}}.progress-bar-striped{background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-size:var(--bs-progress-height) var(--bs-progress-height)}.progress-stacked>.progress{overflow:visible}.progress-stacked>.progress>.progress-bar{width:100%}.progress-bar-animated{animation:1s linear infinite progress-bar-stripes}@media (prefers-reduced-motion: reduce){.progress-bar-animated{animation:none}}.list-group{--bs-list-group-color: var(--bs-body-color);--bs-list-group-bg: var(--bs-body-bg);--bs-list-group-border-color: var(--bs-border-color);--bs-list-group-border-width: var(--bs-border-width);--bs-list-group-border-radius: var(--bs-border-radius);--bs-list-group-item-padding-x: 1rem;--bs-list-group-item-padding-y: .5rem;--bs-list-group-action-color: var(--bs-secondary-color);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-tertiary-bg);--bs-list-group-action-active-color: var(--bs-body-color);--bs-list-group-action-active-bg: var(--bs-secondary-bg);--bs-list-group-disabled-color: var(--bs-secondary-color);--bs-list-group-disabled-bg: var(--bs-body-bg);--bs-list-group-active-color: #fff;--bs-list-group-active-bg: #0d6efd;--bs-list-group-active-border-color: #0d6efd;display:flex;flex-direction:column;padding-left:0;margin-bottom:0;border-radius:var(--bs-list-group-border-radius)}.list-group-numbered{list-style-type:none;counter-reset:section}.list-group-numbered>.list-group-item:before{content:counters(section,".") ". ";counter-increment:section}.list-group-item-action{width:100%;color:var(--bs-list-group-action-color);text-align:inherit}.list-group-item-action:hover,.list-group-item-action:focus{z-index:1;color:var(--bs-list-group-action-hover-color);text-decoration:none;background-color:var(--bs-list-group-action-hover-bg)}.list-group-item-action:active{color:var(--bs-list-group-action-active-color);background-color:var(--bs-list-group-action-active-bg)}.list-group-item{position:relative;display:block;padding:var(--bs-list-group-item-padding-y) var(--bs-list-group-item-padding-x);color:var(--bs-list-group-color);text-decoration:none;background-color:var(--bs-list-group-bg);border:var(--bs-list-group-border-width) solid var(--bs-list-group-border-color)}.list-group-item:first-child{border-top-left-radius:inherit;border-top-right-radius:inherit}.list-group-item:last-child{border-bottom-right-radius:inherit;border-bottom-left-radius:inherit}.list-group-item.disabled,.list-group-item:disabled{color:var(--bs-list-group-disabled-color);pointer-events:none;background-color:var(--bs-list-group-disabled-bg)}.list-group-item.active{z-index:2;color:var(--bs-list-group-active-color);background-color:var(--bs-list-group-active-bg);border-color:var(--bs-list-group-active-border-color)}.list-group-item+.list-group-item{border-top-width:0}.list-group-item+.list-group-item.active{margin-top:calc(-1 * var(--bs-list-group-border-width));border-top-width:var(--bs-list-group-border-width)}.list-group-horizontal{flex-direction:row}.list-group-horizontal>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal>.list-group-item.active{margin-top:0}.list-group-horizontal>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}@media (min-width: 576px){.list-group-horizontal-sm{flex-direction:row}.list-group-horizontal-sm>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-sm>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-sm>.list-group-item.active{margin-top:0}.list-group-horizontal-sm>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-sm>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 768px){.list-group-horizontal-md{flex-direction:row}.list-group-horizontal-md>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-md>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-md>.list-group-item.active{margin-top:0}.list-group-horizontal-md>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-md>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 992px){.list-group-horizontal-lg{flex-direction:row}.list-group-horizontal-lg>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-lg>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-lg>.list-group-item.active{margin-top:0}.list-group-horizontal-lg>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-lg>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1200px){.list-group-horizontal-xl{flex-direction:row}.list-group-horizontal-xl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xl>.list-group-item.active{margin-top:0}.list-group-horizontal-xl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}@media (min-width: 1400px){.list-group-horizontal-xxl{flex-direction:row}.list-group-horizontal-xxl>.list-group-item:first-child:not(:last-child){border-bottom-left-radius:var(--bs-list-group-border-radius);border-top-right-radius:0}.list-group-horizontal-xxl>.list-group-item:last-child:not(:first-child){border-top-right-radius:var(--bs-list-group-border-radius);border-bottom-left-radius:0}.list-group-horizontal-xxl>.list-group-item.active{margin-top:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item{border-top-width:var(--bs-list-group-border-width);border-left-width:0}.list-group-horizontal-xxl>.list-group-item+.list-group-item.active{margin-left:calc(-1 * var(--bs-list-group-border-width));border-left-width:var(--bs-list-group-border-width)}}.list-group-flush{border-radius:0}.list-group-flush>.list-group-item{border-width:0 0 var(--bs-list-group-border-width)}.list-group-flush>.list-group-item:last-child{border-bottom-width:0}.list-group-item-primary{--bs-list-group-color: var(--bs-primary-text-emphasis);--bs-list-group-bg: var(--bs-primary-bg-subtle);--bs-list-group-border-color: var(--bs-primary-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-primary-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-primary-border-subtle);--bs-list-group-active-color: var(--bs-primary-bg-subtle);--bs-list-group-active-bg: var(--bs-primary-text-emphasis);--bs-list-group-active-border-color: var(--bs-primary-text-emphasis)}.list-group-item-secondary{--bs-list-group-color: var(--bs-secondary-text-emphasis);--bs-list-group-bg: var(--bs-secondary-bg-subtle);--bs-list-group-border-color: var(--bs-secondary-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-secondary-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-secondary-border-subtle);--bs-list-group-active-color: var(--bs-secondary-bg-subtle);--bs-list-group-active-bg: var(--bs-secondary-text-emphasis);--bs-list-group-active-border-color: var(--bs-secondary-text-emphasis)}.list-group-item-success{--bs-list-group-color: var(--bs-success-text-emphasis);--bs-list-group-bg: var(--bs-success-bg-subtle);--bs-list-group-border-color: var(--bs-success-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-success-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-success-border-subtle);--bs-list-group-active-color: var(--bs-success-bg-subtle);--bs-list-group-active-bg: var(--bs-success-text-emphasis);--bs-list-group-active-border-color: var(--bs-success-text-emphasis)}.list-group-item-info{--bs-list-group-color: var(--bs-info-text-emphasis);--bs-list-group-bg: var(--bs-info-bg-subtle);--bs-list-group-border-color: var(--bs-info-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-info-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-info-border-subtle);--bs-list-group-active-color: var(--bs-info-bg-subtle);--bs-list-group-active-bg: var(--bs-info-text-emphasis);--bs-list-group-active-border-color: var(--bs-info-text-emphasis)}.list-group-item-warning{--bs-list-group-color: var(--bs-warning-text-emphasis);--bs-list-group-bg: var(--bs-warning-bg-subtle);--bs-list-group-border-color: var(--bs-warning-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-warning-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-warning-border-subtle);--bs-list-group-active-color: var(--bs-warning-bg-subtle);--bs-list-group-active-bg: var(--bs-warning-text-emphasis);--bs-list-group-active-border-color: var(--bs-warning-text-emphasis)}.list-group-item-danger{--bs-list-group-color: var(--bs-danger-text-emphasis);--bs-list-group-bg: var(--bs-danger-bg-subtle);--bs-list-group-border-color: var(--bs-danger-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-danger-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-danger-border-subtle);--bs-list-group-active-color: var(--bs-danger-bg-subtle);--bs-list-group-active-bg: var(--bs-danger-text-emphasis);--bs-list-group-active-border-color: var(--bs-danger-text-emphasis)}.list-group-item-light{--bs-list-group-color: var(--bs-light-text-emphasis);--bs-list-group-bg: var(--bs-light-bg-subtle);--bs-list-group-border-color: var(--bs-light-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-light-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-light-border-subtle);--bs-list-group-active-color: var(--bs-light-bg-subtle);--bs-list-group-active-bg: var(--bs-light-text-emphasis);--bs-list-group-active-border-color: var(--bs-light-text-emphasis)}.list-group-item-dark{--bs-list-group-color: var(--bs-dark-text-emphasis);--bs-list-group-bg: var(--bs-dark-bg-subtle);--bs-list-group-border-color: var(--bs-dark-border-subtle);--bs-list-group-action-hover-color: var(--bs-emphasis-color);--bs-list-group-action-hover-bg: var(--bs-dark-border-subtle);--bs-list-group-action-active-color: var(--bs-emphasis-color);--bs-list-group-action-active-bg: var(--bs-dark-border-subtle);--bs-list-group-active-color: var(--bs-dark-bg-subtle);--bs-list-group-active-bg: var(--bs-dark-text-emphasis);--bs-list-group-active-border-color: var(--bs-dark-text-emphasis)}.btn-close{--bs-btn-close-color: #000;--bs-btn-close-bg: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23000'%3e%3cpath d='M.293.293a1 1 0 0 1 1.414 0L8 6.586 14.293.293a1 1 0 1 1 1.414 1.414L9.414 8l6.293 6.293a1 1 0 0 1-1.414 1.414L8 9.414l-6.293 6.293a1 1 0 0 1-1.414-1.414L6.586 8 .293 1.707a1 1 0 0 1 0-1.414z'/%3e%3c/svg%3e");--bs-btn-close-opacity: .5;--bs-btn-close-hover-opacity: .75;--bs-btn-close-focus-shadow: 0 0 0 .25rem rgba(13, 110, 253, .25);--bs-btn-close-focus-opacity: 1;--bs-btn-close-disabled-opacity: .25;--bs-btn-close-white-filter: invert(1) grayscale(100%) brightness(200%);box-sizing:content-box;width:1em;height:1em;padding:.25em;color:var(--bs-btn-close-color);background:transparent var(--bs-btn-close-bg) center/1em auto no-repeat;border:0;border-radius:.375rem;opacity:var(--bs-btn-close-opacity)}.btn-close:hover{color:var(--bs-btn-close-color);text-decoration:none;opacity:var(--bs-btn-close-hover-opacity)}.btn-close:focus{outline:0;box-shadow:var(--bs-btn-close-focus-shadow);opacity:var(--bs-btn-close-focus-opacity)}.btn-close:disabled,.btn-close.disabled{pointer-events:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;opacity:var(--bs-btn-close-disabled-opacity)}.btn-close-white,[data-bs-theme=dark] .btn-close{filter:var(--bs-btn-close-white-filter)}.toast{--bs-toast-zindex: 1090;--bs-toast-padding-x: .75rem;--bs-toast-padding-y: .5rem;--bs-toast-spacing: 1.5rem;--bs-toast-max-width: 350px;--bs-toast-font-size: .875rem;--bs-toast-color: ;--bs-toast-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-border-width: var(--bs-border-width);--bs-toast-border-color: var(--bs-border-color-translucent);--bs-toast-border-radius: var(--bs-border-radius);--bs-toast-box-shadow: var(--bs-box-shadow);--bs-toast-header-color: var(--bs-secondary-color);--bs-toast-header-bg: rgba(var(--bs-body-bg-rgb), .85);--bs-toast-header-border-color: var(--bs-border-color-translucent);width:var(--bs-toast-max-width);max-width:100%;font-size:var(--bs-toast-font-size);color:var(--bs-toast-color);pointer-events:auto;background-color:var(--bs-toast-bg);background-clip:padding-box;border:var(--bs-toast-border-width) solid var(--bs-toast-border-color);box-shadow:var(--bs-toast-box-shadow);border-radius:var(--bs-toast-border-radius)}.toast.showing{opacity:0}.toast:not(.show){display:none}.toast-container{--bs-toast-zindex: 1090;position:absolute;z-index:var(--bs-toast-zindex);width:-webkit-max-content;width:-moz-max-content;width:max-content;max-width:100%;pointer-events:none}.toast-container>:not(:last-child){margin-bottom:var(--bs-toast-spacing)}.toast-header{display:flex;align-items:center;padding:var(--bs-toast-padding-y) var(--bs-toast-padding-x);color:var(--bs-toast-header-color);background-color:var(--bs-toast-header-bg);background-clip:padding-box;border-bottom:var(--bs-toast-border-width) solid var(--bs-toast-header-border-color);border-top-left-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width));border-top-right-radius:calc(var(--bs-toast-border-radius) - var(--bs-toast-border-width))}.toast-header .btn-close{margin-right:calc(-.5 * var(--bs-toast-padding-x));margin-left:var(--bs-toast-padding-x)}.toast-body{padding:var(--bs-toast-padding-x);word-wrap:break-word}.modal{--bs-modal-zindex: 1055;--bs-modal-width: 500px;--bs-modal-padding: 1rem;--bs-modal-margin: .5rem;--bs-modal-color: ;--bs-modal-bg: var(--bs-body-bg);--bs-modal-border-color: var(--bs-border-color-translucent);--bs-modal-border-width: var(--bs-border-width);--bs-modal-border-radius: var(--bs-border-radius-lg);--bs-modal-box-shadow: var(--bs-box-shadow-sm);--bs-modal-inner-border-radius: calc(var(--bs-border-radius-lg) - (var(--bs-border-width)));--bs-modal-header-padding-x: 1rem;--bs-modal-header-padding-y: 1rem;--bs-modal-header-padding: 1rem 1rem;--bs-modal-header-border-color: var(--bs-border-color);--bs-modal-header-border-width: var(--bs-border-width);--bs-modal-title-line-height: 1.5;--bs-modal-footer-gap: .5rem;--bs-modal-footer-bg: ;--bs-modal-footer-border-color: var(--bs-border-color);--bs-modal-footer-border-width: var(--bs-border-width);position:fixed;top:0;left:0;z-index:var(--bs-modal-zindex);display:none;width:100%;height:100%;overflow-x:hidden;overflow-y:auto;outline:0}.modal-dialog{position:relative;width:auto;margin:var(--bs-modal-margin);pointer-events:none}.modal.fade .modal-dialog{transition:transform .3s ease-out;transform:translateY(-50px)}@media (prefers-reduced-motion: reduce){.modal.fade .modal-dialog{transition:none}}.modal.show .modal-dialog{transform:none}.modal.modal-static .modal-dialog{transform:scale(1.02)}.modal-dialog-scrollable{height:calc(100% - var(--bs-modal-margin) * 2)}.modal-dialog-scrollable .modal-content{max-height:100%;overflow:hidden}.modal-dialog-scrollable .modal-body{overflow-y:auto}.modal-dialog-centered{display:flex;align-items:center;min-height:calc(100% - var(--bs-modal-margin) * 2)}.modal-content{position:relative;display:flex;flex-direction:column;width:100%;color:var(--bs-modal-color);pointer-events:auto;background-color:var(--bs-modal-bg);background-clip:padding-box;border:var(--bs-modal-border-width) solid var(--bs-modal-border-color);border-radius:var(--bs-modal-border-radius);outline:0}.modal-backdrop{--bs-backdrop-zindex: 1050;--bs-backdrop-bg: #000;--bs-backdrop-opacity: .5;position:fixed;top:0;left:0;z-index:var(--bs-backdrop-zindex);width:100vw;height:100vh;background-color:var(--bs-backdrop-bg)}.modal-backdrop.fade{opacity:0}.modal-backdrop.show{opacity:var(--bs-backdrop-opacity)}.modal-header{display:flex;flex-shrink:0;align-items:center;justify-content:space-between;padding:var(--bs-modal-header-padding);border-bottom:var(--bs-modal-header-border-width) solid var(--bs-modal-header-border-color);border-top-left-radius:var(--bs-modal-inner-border-radius);border-top-right-radius:var(--bs-modal-inner-border-radius)}.modal-header .btn-close{padding:calc(var(--bs-modal-header-padding-y) * .5) calc(var(--bs-modal-header-padding-x) * .5);margin:calc(-.5 * var(--bs-modal-header-padding-y)) calc(-.5 * var(--bs-modal-header-padding-x)) calc(-.5 * var(--bs-modal-header-padding-y)) auto}.modal-title{margin-bottom:0;line-height:var(--bs-modal-title-line-height)}.modal-body{position:relative;flex:1 1 auto;padding:var(--bs-modal-padding)}.modal-footer{display:flex;flex-shrink:0;flex-wrap:wrap;align-items:center;justify-content:flex-end;padding:calc(var(--bs-modal-padding) - var(--bs-modal-footer-gap) * .5);background-color:var(--bs-modal-footer-bg);border-top:var(--bs-modal-footer-border-width) solid var(--bs-modal-footer-border-color);border-bottom-right-radius:var(--bs-modal-inner-border-radius);border-bottom-left-radius:var(--bs-modal-inner-border-radius)}.modal-footer>*{margin:calc(var(--bs-modal-footer-gap) * .5)}@media (min-width: 576px){.modal{--bs-modal-margin: 1.75rem;--bs-modal-box-shadow: var(--bs-box-shadow)}.modal-dialog{max-width:var(--bs-modal-width);margin-right:auto;margin-left:auto}.modal-sm{--bs-modal-width: 300px}}@media (min-width: 992px){.modal-lg,.modal-xl{--bs-modal-width: 800px}}@media (min-width: 1200px){.modal-xl{--bs-modal-width: 1140px}}.modal-fullscreen{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen .modal-header,.modal-fullscreen .modal-footer{border-radius:0}.modal-fullscreen .modal-body{overflow-y:auto}@media (max-width: 575.98px){.modal-fullscreen-sm-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-sm-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-sm-down .modal-header,.modal-fullscreen-sm-down .modal-footer{border-radius:0}.modal-fullscreen-sm-down .modal-body{overflow-y:auto}}@media (max-width: 767.98px){.modal-fullscreen-md-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-md-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-md-down .modal-header,.modal-fullscreen-md-down .modal-footer{border-radius:0}.modal-fullscreen-md-down .modal-body{overflow-y:auto}}@media (max-width: 991.98px){.modal-fullscreen-lg-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-lg-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-lg-down .modal-header,.modal-fullscreen-lg-down .modal-footer{border-radius:0}.modal-fullscreen-lg-down .modal-body{overflow-y:auto}}@media (max-width: 1199.98px){.modal-fullscreen-xl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xl-down .modal-header,.modal-fullscreen-xl-down .modal-footer{border-radius:0}.modal-fullscreen-xl-down .modal-body{overflow-y:auto}}@media (max-width: 1399.98px){.modal-fullscreen-xxl-down{width:100vw;max-width:none;height:100%;margin:0}.modal-fullscreen-xxl-down .modal-content{height:100%;border:0;border-radius:0}.modal-fullscreen-xxl-down .modal-header,.modal-fullscreen-xxl-down .modal-footer{border-radius:0}.modal-fullscreen-xxl-down .modal-body{overflow-y:auto}}.tooltip{--bs-tooltip-zindex: 1080;--bs-tooltip-max-width: 200px;--bs-tooltip-padding-x: .5rem;--bs-tooltip-padding-y: .25rem;--bs-tooltip-margin: ;--bs-tooltip-font-size: .875rem;--bs-tooltip-color: var(--bs-body-bg);--bs-tooltip-bg: var(--bs-emphasis-color);--bs-tooltip-border-radius: var(--bs-border-radius);--bs-tooltip-opacity: .9;--bs-tooltip-arrow-width: .8rem;--bs-tooltip-arrow-height: .4rem;z-index:var(--bs-tooltip-zindex);display:block;margin:var(--bs-tooltip-margin);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-tooltip-font-size);word-wrap:break-word;opacity:0}.tooltip.show{opacity:var(--bs-tooltip-opacity)}.tooltip .tooltip-arrow{display:block;width:var(--bs-tooltip-arrow-width);height:var(--bs-tooltip-arrow-height)}.tooltip .tooltip-arrow:before{position:absolute;content:"";border-color:transparent;border-style:solid}.bs-tooltip-top .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow{bottom:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-top .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=top] .tooltip-arrow:before{top:-1px;border-width:var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-top-color:var(--bs-tooltip-bg)}.bs-tooltip-end .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow{left:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-end .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=right] .tooltip-arrow:before{right:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height) calc(var(--bs-tooltip-arrow-width) * .5) 0;border-right-color:var(--bs-tooltip-bg)}.bs-tooltip-bottom .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow{top:calc(-1 * var(--bs-tooltip-arrow-height))}.bs-tooltip-bottom .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=bottom] .tooltip-arrow:before{bottom:-1px;border-width:0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-bottom-color:var(--bs-tooltip-bg)}.bs-tooltip-start .tooltip-arrow,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow{right:calc(-1 * var(--bs-tooltip-arrow-height));width:var(--bs-tooltip-arrow-height);height:var(--bs-tooltip-arrow-width)}.bs-tooltip-start .tooltip-arrow:before,.bs-tooltip-auto[data-popper-placement^=left] .tooltip-arrow:before{left:-1px;border-width:calc(var(--bs-tooltip-arrow-width) * .5) 0 calc(var(--bs-tooltip-arrow-width) * .5) var(--bs-tooltip-arrow-height);border-left-color:var(--bs-tooltip-bg)}.tooltip-inner{max-width:var(--bs-tooltip-max-width);padding:var(--bs-tooltip-padding-y) var(--bs-tooltip-padding-x);color:var(--bs-tooltip-color);text-align:center;background-color:var(--bs-tooltip-bg);border-radius:var(--bs-tooltip-border-radius)}.popover{--bs-popover-zindex: 1070;--bs-popover-max-width: 276px;--bs-popover-font-size: .875rem;--bs-popover-bg: var(--bs-body-bg);--bs-popover-border-width: var(--bs-border-width);--bs-popover-border-color: var(--bs-border-color-translucent);--bs-popover-border-radius: var(--bs-border-radius-lg);--bs-popover-inner-border-radius: calc(var(--bs-border-radius-lg) - var(--bs-border-width));--bs-popover-box-shadow: var(--bs-box-shadow);--bs-popover-header-padding-x: 1rem;--bs-popover-header-padding-y: .5rem;--bs-popover-header-font-size: 1rem;--bs-popover-header-color: inherit;--bs-popover-header-bg: var(--bs-secondary-bg);--bs-popover-body-padding-x: 1rem;--bs-popover-body-padding-y: 1rem;--bs-popover-body-color: var(--bs-body-color);--bs-popover-arrow-width: 1rem;--bs-popover-arrow-height: .5rem;--bs-popover-arrow-border: var(--bs-popover-border-color);z-index:var(--bs-popover-zindex);display:block;max-width:var(--bs-popover-max-width);font-family:var(--bs-font-sans-serif);font-style:normal;font-weight:400;line-height:1.5;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;white-space:normal;word-spacing:normal;line-break:auto;font-size:var(--bs-popover-font-size);word-wrap:break-word;background-color:var(--bs-popover-bg);background-clip:padding-box;border:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-radius:var(--bs-popover-border-radius)}.popover .popover-arrow{display:block;width:var(--bs-popover-arrow-width);height:var(--bs-popover-arrow-height)}.popover .popover-arrow:before,.popover .popover-arrow:after{position:absolute;display:block;content:"";border-color:transparent;border-style:solid;border-width:0}.bs-popover-top>.popover-arrow,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow{bottom:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before,.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{border-width:var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-top>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:before{bottom:0;border-top-color:var(--bs-popover-arrow-border)}.bs-popover-top>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=top]>.popover-arrow:after{bottom:var(--bs-popover-border-width);border-top-color:var(--bs-popover-bg)}.bs-popover-end>.popover-arrow,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow{left:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before,.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height) calc(var(--bs-popover-arrow-width) * .5) 0}.bs-popover-end>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:before{left:0;border-right-color:var(--bs-popover-arrow-border)}.bs-popover-end>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=right]>.popover-arrow:after{left:var(--bs-popover-border-width);border-right-color:var(--bs-popover-bg)}.bs-popover-bottom>.popover-arrow,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow{top:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width))}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before,.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{border-width:0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-bottom>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:before{top:0;border-bottom-color:var(--bs-popover-arrow-border)}.bs-popover-bottom>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=bottom]>.popover-arrow:after{top:var(--bs-popover-border-width);border-bottom-color:var(--bs-popover-bg)}.bs-popover-bottom .popover-header:before,.bs-popover-auto[data-popper-placement^=bottom] .popover-header:before{position:absolute;top:0;left:50%;display:block;width:var(--bs-popover-arrow-width);margin-left:calc(-.5 * var(--bs-popover-arrow-width));content:"";border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-header-bg)}.bs-popover-start>.popover-arrow,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow{right:calc(-1 * (var(--bs-popover-arrow-height)) - var(--bs-popover-border-width));width:var(--bs-popover-arrow-height);height:var(--bs-popover-arrow-width)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before,.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{border-width:calc(var(--bs-popover-arrow-width) * .5) 0 calc(var(--bs-popover-arrow-width) * .5) var(--bs-popover-arrow-height)}.bs-popover-start>.popover-arrow:before,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:before{right:0;border-left-color:var(--bs-popover-arrow-border)}.bs-popover-start>.popover-arrow:after,.bs-popover-auto[data-popper-placement^=left]>.popover-arrow:after{right:var(--bs-popover-border-width);border-left-color:var(--bs-popover-bg)}.popover-header{padding:var(--bs-popover-header-padding-y) var(--bs-popover-header-padding-x);margin-bottom:0;font-size:var(--bs-popover-header-font-size);color:var(--bs-popover-header-color);background-color:var(--bs-popover-header-bg);border-bottom:var(--bs-popover-border-width) solid var(--bs-popover-border-color);border-top-left-radius:var(--bs-popover-inner-border-radius);border-top-right-radius:var(--bs-popover-inner-border-radius)}.popover-header:empty{display:none}.popover-body{padding:var(--bs-popover-body-padding-y) var(--bs-popover-body-padding-x);color:var(--bs-popover-body-color)}.carousel{position:relative}.carousel.pointer-event{touch-action:pan-y}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner:after{display:block;clear:both;content:""}.carousel-item{position:relative;display:none;float:left;width:100%;margin-right:-100%;-webkit-backface-visibility:hidden;backface-visibility:hidden;transition:transform .6s ease-in-out}@media (prefers-reduced-motion: reduce){.carousel-item{transition:none}}.carousel-item.active,.carousel-item-next,.carousel-item-prev{display:block}.carousel-item-next:not(.carousel-item-start),.active.carousel-item-end{transform:translate(100%)}.carousel-item-prev:not(.carousel-item-end),.active.carousel-item-start{transform:translate(-100%)}.carousel-fade .carousel-item{opacity:0;transition-property:opacity;transform:none}.carousel-fade .carousel-item.active,.carousel-fade .carousel-item-next.carousel-item-start,.carousel-fade .carousel-item-prev.carousel-item-end{z-index:1;opacity:1}.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{z-index:0;opacity:0;transition:opacity 0s .6s}@media (prefers-reduced-motion: reduce){.carousel-fade .active.carousel-item-start,.carousel-fade .active.carousel-item-end{transition:none}}.carousel-control-prev,.carousel-control-next{position:absolute;top:0;bottom:0;z-index:1;display:flex;align-items:center;justify-content:center;width:15%;padding:0;color:#fff;text-align:center;background:none;border:0;opacity:.5;transition:opacity .15s ease}@media (prefers-reduced-motion: reduce){.carousel-control-prev,.carousel-control-next{transition:none}}.carousel-control-prev:hover,.carousel-control-prev:focus,.carousel-control-next:hover,.carousel-control-next:focus{color:#fff;text-decoration:none;outline:0;opacity:.9}.carousel-control-prev{left:0}.carousel-control-next{right:0}.carousel-control-prev-icon,.carousel-control-next-icon{display:inline-block;width:2rem;height:2rem;background-repeat:no-repeat;background-position:50%;background-size:100% 100%}.carousel-control-prev-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M11.354 1.646a.5.5 0 0 1 0 .708L5.707 8l5.647 5.646a.5.5 0 0 1-.708.708l-6-6a.5.5 0 0 1 0-.708l6-6a.5.5 0 0 1 .708 0z'/%3e%3c/svg%3e")}.carousel-control-next-icon{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23fff'%3e%3cpath d='M4.646 1.646a.5.5 0 0 1 .708 0l6 6a.5.5 0 0 1 0 .708l-6 6a.5.5 0 0 1-.708-.708L10.293 8 4.646 2.354a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e")}.carousel-indicators{position:absolute;right:0;bottom:0;left:0;z-index:2;display:flex;justify-content:center;padding:0;margin-right:15%;margin-bottom:1rem;margin-left:15%}.carousel-indicators [data-bs-target]{box-sizing:content-box;flex:0 1 auto;width:30px;height:3px;padding:0;margin-right:3px;margin-left:3px;text-indent:-999px;cursor:pointer;background-color:#fff;background-clip:padding-box;border:0;border-top:10px solid transparent;border-bottom:10px solid transparent;opacity:.5;transition:opacity .6s ease}@media (prefers-reduced-motion: reduce){.carousel-indicators [data-bs-target]{transition:none}}.carousel-indicators .active{opacity:1}.carousel-caption{position:absolute;right:15%;bottom:1.25rem;left:15%;padding-top:1.25rem;padding-bottom:1.25rem;color:#fff;text-align:center}.carousel-dark .carousel-control-prev-icon,.carousel-dark .carousel-control-next-icon{filter:invert(1) grayscale(100)}.carousel-dark .carousel-indicators [data-bs-target]{background-color:#000}.carousel-dark .carousel-caption{color:#000}[data-bs-theme=dark] .carousel .carousel-control-prev-icon,[data-bs-theme=dark] .carousel .carousel-control-next-icon,[data-bs-theme=dark].carousel .carousel-control-prev-icon,[data-bs-theme=dark].carousel .carousel-control-next-icon{filter:invert(1) grayscale(100)}[data-bs-theme=dark] .carousel .carousel-indicators [data-bs-target],[data-bs-theme=dark].carousel .carousel-indicators [data-bs-target]{background-color:#000}[data-bs-theme=dark] .carousel .carousel-caption,[data-bs-theme=dark].carousel .carousel-caption{color:#000}.spinner-grow,.spinner-border{display:inline-block;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}.spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}.spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}.spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}.spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media (prefers-reduced-motion: reduce){.spinner-border,.spinner-grow{--bs-spinner-animation-speed: 1.5s}}.offcanvas,.offcanvas-xxl,.offcanvas-xl,.offcanvas-lg,.offcanvas-md,.offcanvas-sm{--bs-offcanvas-zindex: 1045;--bs-offcanvas-width: 400px;--bs-offcanvas-height: 30vh;--bs-offcanvas-padding-x: 1rem;--bs-offcanvas-padding-y: 1rem;--bs-offcanvas-color: var(--bs-body-color);--bs-offcanvas-bg: var(--bs-body-bg);--bs-offcanvas-border-width: var(--bs-border-width);--bs-offcanvas-border-color: var(--bs-border-color-translucent);--bs-offcanvas-box-shadow: var(--bs-box-shadow-sm);--bs-offcanvas-transition: transform .3s ease-in-out;--bs-offcanvas-title-line-height: 1.5}@media (max-width: 575.98px){.offcanvas-sm{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width: 575.98px) and (prefers-reduced-motion: reduce){.offcanvas-sm{transition:none}}@media (max-width: 575.98px){.offcanvas-sm.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-sm.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-sm.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-sm.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-sm.showing,.offcanvas-sm.show:not(.hiding){transform:none}.offcanvas-sm.showing,.offcanvas-sm.hiding,.offcanvas-sm.show{visibility:visible}}@media (min-width: 576px){.offcanvas-sm{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-sm .offcanvas-header{display:none}.offcanvas-sm .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 767.98px){.offcanvas-md{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width: 767.98px) and (prefers-reduced-motion: reduce){.offcanvas-md{transition:none}}@media (max-width: 767.98px){.offcanvas-md.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-md.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-md.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-md.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-md.showing,.offcanvas-md.show:not(.hiding){transform:none}.offcanvas-md.showing,.offcanvas-md.hiding,.offcanvas-md.show{visibility:visible}}@media (min-width: 768px){.offcanvas-md{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-md .offcanvas-header{display:none}.offcanvas-md .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 991.98px){.offcanvas-lg{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width: 991.98px) and (prefers-reduced-motion: reduce){.offcanvas-lg{transition:none}}@media (max-width: 991.98px){.offcanvas-lg.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-lg.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-lg.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-lg.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-lg.showing,.offcanvas-lg.show:not(.hiding){transform:none}.offcanvas-lg.showing,.offcanvas-lg.hiding,.offcanvas-lg.show{visibility:visible}}@media (min-width: 992px){.offcanvas-lg{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-lg .offcanvas-header{display:none}.offcanvas-lg .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1199.98px){.offcanvas-xl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width: 1199.98px) and (prefers-reduced-motion: reduce){.offcanvas-xl{transition:none}}@media (max-width: 1199.98px){.offcanvas-xl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xl.showing,.offcanvas-xl.show:not(.hiding){transform:none}.offcanvas-xl.showing,.offcanvas-xl.hiding,.offcanvas-xl.show{visibility:visible}}@media (min-width: 1200px){.offcanvas-xl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xl .offcanvas-header{display:none}.offcanvas-xl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}@media (max-width: 1399.98px){.offcanvas-xxl{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}}@media (max-width: 1399.98px) and (prefers-reduced-motion: reduce){.offcanvas-xxl{transition:none}}@media (max-width: 1399.98px){.offcanvas-xxl.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas-xxl.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas-xxl.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas-xxl.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas-xxl.showing,.offcanvas-xxl.show:not(.hiding){transform:none}.offcanvas-xxl.showing,.offcanvas-xxl.hiding,.offcanvas-xxl.show{visibility:visible}}@media (min-width: 1400px){.offcanvas-xxl{--bs-offcanvas-height: auto;--bs-offcanvas-border-width: 0;background-color:transparent!important}.offcanvas-xxl .offcanvas-header{display:none}.offcanvas-xxl .offcanvas-body{display:flex;flex-grow:0;padding:0;overflow-y:visible;background-color:transparent!important}}.offcanvas{position:fixed;bottom:0;z-index:var(--bs-offcanvas-zindex);display:flex;flex-direction:column;max-width:100%;color:var(--bs-offcanvas-color);visibility:hidden;background-color:var(--bs-offcanvas-bg);background-clip:padding-box;outline:0;transition:var(--bs-offcanvas-transition)}@media (prefers-reduced-motion: reduce){.offcanvas{transition:none}}.offcanvas.offcanvas-start{top:0;left:0;width:var(--bs-offcanvas-width);border-right:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(-100%)}.offcanvas.offcanvas-end{top:0;right:0;width:var(--bs-offcanvas-width);border-left:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translate(100%)}.offcanvas.offcanvas-top{top:0;right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-bottom:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(-100%)}.offcanvas.offcanvas-bottom{right:0;left:0;height:var(--bs-offcanvas-height);max-height:100%;border-top:var(--bs-offcanvas-border-width) solid var(--bs-offcanvas-border-color);transform:translateY(100%)}.offcanvas.showing,.offcanvas.show:not(.hiding){transform:none}.offcanvas.showing,.offcanvas.hiding,.offcanvas.show{visibility:visible}.offcanvas-backdrop{position:fixed;top:0;left:0;z-index:1040;width:100vw;height:100vh;background-color:#000}.offcanvas-backdrop.fade{opacity:0}.offcanvas-backdrop.show{opacity:.5}.offcanvas-header{display:flex;align-items:center;justify-content:space-between;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x)}.offcanvas-header .btn-close{padding:calc(var(--bs-offcanvas-padding-y) * .5) calc(var(--bs-offcanvas-padding-x) * .5);margin-top:calc(-.5 * var(--bs-offcanvas-padding-y));margin-right:calc(-.5 * var(--bs-offcanvas-padding-x));margin-bottom:calc(-.5 * var(--bs-offcanvas-padding-y))}.offcanvas-title{margin-bottom:0;line-height:var(--bs-offcanvas-title-line-height)}.offcanvas-body{flex-grow:1;padding:var(--bs-offcanvas-padding-y) var(--bs-offcanvas-padding-x);overflow-y:auto}.placeholder{display:inline-block;min-height:1em;vertical-align:middle;cursor:wait;background-color:currentcolor;opacity:.5}.placeholder.btn:before{display:inline-block;content:""}.placeholder-xs{min-height:.6em}.placeholder-sm{min-height:.8em}.placeholder-lg{min-height:1.2em}.placeholder-glow .placeholder{animation:placeholder-glow 2s ease-in-out infinite}@keyframes placeholder-glow{50%{opacity:.2}}.placeholder-wave{-webkit-mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);mask-image:linear-gradient(130deg,#000 55%,rgba(0,0,0,.8) 75%,#000 95%);-webkit-mask-size:200% 100%;mask-size:200% 100%;animation:placeholder-wave 2s linear infinite}@keyframes placeholder-wave{to{-webkit-mask-position:-200% 0%;mask-position:-200% 0%}}.clearfix:after{display:block;clear:both;content:""}.text-bg-primary{color:#fff!important;background-color:RGBA(var(--bs-primary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-secondary{color:#fff!important;background-color:RGBA(var(--bs-secondary-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-success{color:#fff!important;background-color:RGBA(var(--bs-success-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-info{color:#000!important;background-color:RGBA(var(--bs-info-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-warning{color:#000!important;background-color:RGBA(var(--bs-warning-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-danger{color:#fff!important;background-color:RGBA(var(--bs-danger-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-light{color:#000!important;background-color:RGBA(var(--bs-light-rgb),var(--bs-bg-opacity, 1))!important}.text-bg-dark{color:#fff!important;background-color:RGBA(var(--bs-dark-rgb),var(--bs-bg-opacity, 1))!important}.link-primary{color:RGBA(var(--bs-primary-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-primary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-primary:hover,.link-primary:focus{color:RGBA(10,88,202,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(10,88,202,var(--bs-link-underline-opacity, 1))!important}.link-secondary{color:RGBA(var(--bs-secondary-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-secondary-rgb),var(--bs-link-underline-opacity, 1))!important}.link-secondary:hover,.link-secondary:focus{color:RGBA(86,94,100,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(86,94,100,var(--bs-link-underline-opacity, 1))!important}.link-success{color:RGBA(var(--bs-success-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-success-rgb),var(--bs-link-underline-opacity, 1))!important}.link-success:hover,.link-success:focus{color:RGBA(20,108,67,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(20,108,67,var(--bs-link-underline-opacity, 1))!important}.link-info{color:RGBA(var(--bs-info-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-info-rgb),var(--bs-link-underline-opacity, 1))!important}.link-info:hover,.link-info:focus{color:RGBA(61,213,243,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(61,213,243,var(--bs-link-underline-opacity, 1))!important}.link-warning{color:RGBA(var(--bs-warning-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-warning-rgb),var(--bs-link-underline-opacity, 1))!important}.link-warning:hover,.link-warning:focus{color:RGBA(255,205,57,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(255,205,57,var(--bs-link-underline-opacity, 1))!important}.link-danger{color:RGBA(var(--bs-danger-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-danger-rgb),var(--bs-link-underline-opacity, 1))!important}.link-danger:hover,.link-danger:focus{color:RGBA(176,42,55,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(176,42,55,var(--bs-link-underline-opacity, 1))!important}.link-light{color:RGBA(var(--bs-light-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-light-rgb),var(--bs-link-underline-opacity, 1))!important}.link-light:hover,.link-light:focus{color:RGBA(249,250,251,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(249,250,251,var(--bs-link-underline-opacity, 1))!important}.link-dark{color:RGBA(var(--bs-dark-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-dark-rgb),var(--bs-link-underline-opacity, 1))!important}.link-dark:hover,.link-dark:focus{color:RGBA(26,30,33,var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(26,30,33,var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, 1))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-body-emphasis:hover,.link-body-emphasis:focus{color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-opacity, .75))!important;-webkit-text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important;text-decoration-color:RGBA(var(--bs-emphasis-color-rgb),var(--bs-link-underline-opacity, .75))!important}.focus-ring:focus{outline:0;box-shadow:var(--bs-focus-ring-x, 0) var(--bs-focus-ring-y, 0) var(--bs-focus-ring-blur, 0) var(--bs-focus-ring-width) var(--bs-focus-ring-color)}.icon-link{display:inline-flex;gap:.375rem;align-items:center;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-opacity, .5));text-underline-offset:.25em;-webkit-backface-visibility:hidden;backface-visibility:hidden}.icon-link>.bi{flex-shrink:0;width:1em;height:1em;fill:currentcolor;transition:.2s ease-in-out transform}@media (prefers-reduced-motion: reduce){.icon-link>.bi{transition:none}}.icon-link-hover:hover>.bi,.icon-link-hover:focus-visible>.bi{transform:var(--bs-icon-link-transform, translate3d(.25em, 0, 0))}.ratio{position:relative;width:100%}.ratio:before{display:block;padding-top:var(--bs-aspect-ratio);content:""}.ratio>*{position:absolute;top:0;left:0;width:100%;height:100%}.ratio-1x1{--bs-aspect-ratio: 100%}.ratio-4x3{--bs-aspect-ratio: 75%}.ratio-16x9{--bs-aspect-ratio: 56.25%}.ratio-21x9{--bs-aspect-ratio: 42.8571428571%}.fixed-top{position:fixed;top:0;right:0;left:0;z-index:1030}.fixed-bottom{position:fixed;right:0;bottom:0;left:0;z-index:1030}.sticky-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}@media (min-width: 576px){.sticky-sm-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-sm-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width: 768px){.sticky-md-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-md-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width: 992px){.sticky-lg-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-lg-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width: 1200px){.sticky-xl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}@media (min-width: 1400px){.sticky-xxl-top{position:-webkit-sticky;position:sticky;top:0;z-index:1020}.sticky-xxl-bottom{position:-webkit-sticky;position:sticky;bottom:0;z-index:1020}}.hstack{display:flex;flex-direction:row;align-items:center;align-self:stretch}.vstack{display:flex;flex:1 1 auto;flex-direction:column;align-self:stretch}.visually-hidden,.visually-hidden-focusable:not(:focus):not(:focus-within){width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.visually-hidden:not(caption),.visually-hidden-focusable:not(:focus):not(:focus-within):not(caption){position:absolute!important}.stretched-link:after{position:absolute;inset:0;z-index:1;content:""}.text-truncate{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vr{display:inline-block;align-self:stretch;width:var(--bs-border-width);min-height:1em;background-color:currentcolor;opacity:.25}.align-baseline{vertical-align:baseline!important}.align-top{vertical-align:top!important}.align-middle{vertical-align:middle!important}.align-bottom{vertical-align:bottom!important}.align-text-bottom{vertical-align:text-bottom!important}.align-text-top{vertical-align:text-top!important}.float-start{float:left!important}.float-end{float:right!important}.float-none{float:none!important}.object-fit-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-none{-o-object-fit:none!important;object-fit:none!important}.opacity-0{opacity:0!important}.opacity-25{opacity:.25!important}.opacity-50{opacity:.5!important}.opacity-75{opacity:.75!important}.opacity-100{opacity:1!important}.overflow-auto{overflow:auto!important}.overflow-hidden{overflow:hidden!important}.overflow-visible{overflow:visible!important}.overflow-scroll{overflow:scroll!important}.overflow-x-auto{overflow-x:auto!important}.overflow-x-hidden{overflow-x:hidden!important}.overflow-x-visible{overflow-x:visible!important}.overflow-x-scroll{overflow-x:scroll!important}.overflow-y-auto{overflow-y:auto!important}.overflow-y-hidden{overflow-y:hidden!important}.overflow-y-visible{overflow-y:visible!important}.overflow-y-scroll{overflow-y:scroll!important}.d-inline{display:inline!important}.d-inline-block{display:inline-block!important}.d-block{display:block!important}.d-grid{display:grid!important}.d-inline-grid{display:inline-grid!important}.d-table{display:table!important}.d-table-row{display:table-row!important}.d-table-cell{display:table-cell!important}.d-flex{display:flex!important}.d-inline-flex{display:inline-flex!important}.d-none{display:none!important}.shadow{box-shadow:var(--bs-box-shadow)!important}.shadow-sm{box-shadow:var(--bs-box-shadow-sm)!important}.shadow-lg{box-shadow:var(--bs-box-shadow-lg)!important}.shadow-none{box-shadow:none!important}.focus-ring-primary{--bs-focus-ring-color: rgba(var(--bs-primary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-secondary{--bs-focus-ring-color: rgba(var(--bs-secondary-rgb), var(--bs-focus-ring-opacity))}.focus-ring-success{--bs-focus-ring-color: rgba(var(--bs-success-rgb), var(--bs-focus-ring-opacity))}.focus-ring-info{--bs-focus-ring-color: rgba(var(--bs-info-rgb), var(--bs-focus-ring-opacity))}.focus-ring-warning{--bs-focus-ring-color: rgba(var(--bs-warning-rgb), var(--bs-focus-ring-opacity))}.focus-ring-danger{--bs-focus-ring-color: rgba(var(--bs-danger-rgb), var(--bs-focus-ring-opacity))}.focus-ring-light{--bs-focus-ring-color: rgba(var(--bs-light-rgb), var(--bs-focus-ring-opacity))}.focus-ring-dark{--bs-focus-ring-color: rgba(var(--bs-dark-rgb), var(--bs-focus-ring-opacity))}.position-static{position:static!important}.position-relative{position:relative!important}.position-absolute{position:absolute!important}.position-fixed{position:fixed!important}.position-sticky{position:-webkit-sticky!important;position:sticky!important}.top-0{top:0!important}.top-50{top:50%!important}.top-100{top:100%!important}.bottom-0{bottom:0!important}.bottom-50{bottom:50%!important}.bottom-100{bottom:100%!important}.start-0{left:0!important}.start-50{left:50%!important}.start-100{left:100%!important}.end-0{right:0!important}.end-50{right:50%!important}.end-100{right:100%!important}.translate-middle{transform:translate(-50%,-50%)!important}.translate-middle-x{transform:translate(-50%)!important}.translate-middle-y{transform:translateY(-50%)!important}.border{border:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-0{border:0!important}.border-top{border-top:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-top-0{border-top:0!important}.border-end{border-right:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-end-0{border-right:0!important}.border-bottom{border-bottom:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-bottom-0{border-bottom:0!important}.border-start{border-left:var(--bs-border-width) var(--bs-border-style) var(--bs-border-color)!important}.border-start-0{border-left:0!important}.border-primary{--bs-border-opacity: 1;border-color:rgba(var(--bs-primary-rgb),var(--bs-border-opacity))!important}.border-secondary{--bs-border-opacity: 1;border-color:rgba(var(--bs-secondary-rgb),var(--bs-border-opacity))!important}.border-success{--bs-border-opacity: 1;border-color:rgba(var(--bs-success-rgb),var(--bs-border-opacity))!important}.border-info{--bs-border-opacity: 1;border-color:rgba(var(--bs-info-rgb),var(--bs-border-opacity))!important}.border-warning{--bs-border-opacity: 1;border-color:rgba(var(--bs-warning-rgb),var(--bs-border-opacity))!important}.border-danger{--bs-border-opacity: 1;border-color:rgba(var(--bs-danger-rgb),var(--bs-border-opacity))!important}.border-light{--bs-border-opacity: 1;border-color:rgba(var(--bs-light-rgb),var(--bs-border-opacity))!important}.border-dark{--bs-border-opacity: 1;border-color:rgba(var(--bs-dark-rgb),var(--bs-border-opacity))!important}.border-black{--bs-border-opacity: 1;border-color:rgba(var(--bs-black-rgb),var(--bs-border-opacity))!important}.border-white{--bs-border-opacity: 1;border-color:rgba(var(--bs-white-rgb),var(--bs-border-opacity))!important}.border-primary-subtle{border-color:var(--bs-primary-border-subtle)!important}.border-secondary-subtle{border-color:var(--bs-secondary-border-subtle)!important}.border-success-subtle{border-color:var(--bs-success-border-subtle)!important}.border-info-subtle{border-color:var(--bs-info-border-subtle)!important}.border-warning-subtle{border-color:var(--bs-warning-border-subtle)!important}.border-danger-subtle{border-color:var(--bs-danger-border-subtle)!important}.border-light-subtle{border-color:var(--bs-light-border-subtle)!important}.border-dark-subtle{border-color:var(--bs-dark-border-subtle)!important}.border-1{border-width:1px!important}.border-2{border-width:2px!important}.border-3{border-width:3px!important}.border-4{border-width:4px!important}.border-5{border-width:5px!important}.border-opacity-10{--bs-border-opacity: .1}.border-opacity-25{--bs-border-opacity: .25}.border-opacity-50{--bs-border-opacity: .5}.border-opacity-75{--bs-border-opacity: .75}.border-opacity-100{--bs-border-opacity: 1}.w-25{width:25%!important}.w-50{width:50%!important}.w-75{width:75%!important}.w-100{width:100%!important}.w-auto{width:auto!important}.mw-100{max-width:100%!important}.vw-100{width:100vw!important}.min-vw-100{min-width:100vw!important}.h-25{height:25%!important}.h-50{height:50%!important}.h-75{height:75%!important}.h-100{height:100%!important}.h-auto{height:auto!important}.mh-100{max-height:100%!important}.vh-100{height:100vh!important}.min-vh-100{min-height:100vh!important}.flex-fill{flex:1 1 auto!important}.flex-row{flex-direction:row!important}.flex-column{flex-direction:column!important}.flex-row-reverse{flex-direction:row-reverse!important}.flex-column-reverse{flex-direction:column-reverse!important}.flex-grow-0{flex-grow:0!important}.flex-grow-1{flex-grow:1!important}.flex-shrink-0{flex-shrink:0!important}.flex-shrink-1{flex-shrink:1!important}.flex-wrap{flex-wrap:wrap!important}.flex-nowrap{flex-wrap:nowrap!important}.flex-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-start{justify-content:flex-start!important}.justify-content-end{justify-content:flex-end!important}.justify-content-center{justify-content:center!important}.justify-content-between{justify-content:space-between!important}.justify-content-around{justify-content:space-around!important}.justify-content-evenly{justify-content:space-evenly!important}.align-items-start{align-items:flex-start!important}.align-items-end{align-items:flex-end!important}.align-items-center{align-items:center!important}.align-items-baseline{align-items:baseline!important}.align-items-stretch{align-items:stretch!important}.align-content-start{align-content:flex-start!important}.align-content-end{align-content:flex-end!important}.align-content-center{align-content:center!important}.align-content-between{align-content:space-between!important}.align-content-around{align-content:space-around!important}.align-content-stretch{align-content:stretch!important}.align-self-auto{align-self:auto!important}.align-self-start{align-self:flex-start!important}.align-self-end{align-self:flex-end!important}.align-self-center{align-self:center!important}.align-self-baseline{align-self:baseline!important}.align-self-stretch{align-self:stretch!important}.order-first{order:-1!important}.order-0{order:0!important}.order-1{order:1!important}.order-2{order:2!important}.order-3{order:3!important}.order-4{order:4!important}.order-5{order:5!important}.order-last{order:6!important}.m-0{margin:0!important}.m-1{margin:.25rem!important}.m-2{margin:.5rem!important}.m-3{margin:1rem!important}.m-4{margin:1.5rem!important}.m-5{margin:3rem!important}.m-auto{margin:auto!important}.mx-0{margin-right:0!important;margin-left:0!important}.mx-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-3{margin-right:1rem!important;margin-left:1rem!important}.mx-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-5{margin-right:3rem!important;margin-left:3rem!important}.mx-auto{margin-right:auto!important;margin-left:auto!important}.my-0{margin-top:0!important;margin-bottom:0!important}.my-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-0{margin-top:0!important}.mt-1{margin-top:.25rem!important}.mt-2{margin-top:.5rem!important}.mt-3{margin-top:1rem!important}.mt-4{margin-top:1.5rem!important}.mt-5{margin-top:3rem!important}.mt-auto{margin-top:auto!important}.me-0{margin-right:0!important}.me-1{margin-right:.25rem!important}.me-2{margin-right:.5rem!important}.me-3{margin-right:1rem!important}.me-4{margin-right:1.5rem!important}.me-5{margin-right:3rem!important}.me-auto{margin-right:auto!important}.mb-0{margin-bottom:0!important}.mb-1{margin-bottom:.25rem!important}.mb-2{margin-bottom:.5rem!important}.mb-3{margin-bottom:1rem!important}.mb-4{margin-bottom:1.5rem!important}.mb-5{margin-bottom:3rem!important}.mb-auto{margin-bottom:auto!important}.ms-0{margin-left:0!important}.ms-1{margin-left:.25rem!important}.ms-2{margin-left:.5rem!important}.ms-3{margin-left:1rem!important}.ms-4{margin-left:1.5rem!important}.ms-5{margin-left:3rem!important}.ms-auto{margin-left:auto!important}.p-0{padding:0!important}.p-1{padding:.25rem!important}.p-2{padding:.5rem!important}.p-3{padding:1rem!important}.p-4{padding:1.5rem!important}.p-5{padding:3rem!important}.px-0{padding-right:0!important;padding-left:0!important}.px-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-3{padding-right:1rem!important;padding-left:1rem!important}.px-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-5{padding-right:3rem!important;padding-left:3rem!important}.py-0{padding-top:0!important;padding-bottom:0!important}.py-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-0{padding-top:0!important}.pt-1{padding-top:.25rem!important}.pt-2{padding-top:.5rem!important}.pt-3{padding-top:1rem!important}.pt-4{padding-top:1.5rem!important}.pt-5{padding-top:3rem!important}.pe-0{padding-right:0!important}.pe-1{padding-right:.25rem!important}.pe-2{padding-right:.5rem!important}.pe-3{padding-right:1rem!important}.pe-4{padding-right:1.5rem!important}.pe-5{padding-right:3rem!important}.pb-0{padding-bottom:0!important}.pb-1{padding-bottom:.25rem!important}.pb-2{padding-bottom:.5rem!important}.pb-3{padding-bottom:1rem!important}.pb-4{padding-bottom:1.5rem!important}.pb-5{padding-bottom:3rem!important}.ps-0{padding-left:0!important}.ps-1{padding-left:.25rem!important}.ps-2{padding-left:.5rem!important}.ps-3{padding-left:1rem!important}.ps-4{padding-left:1.5rem!important}.ps-5{padding-left:3rem!important}.gap-0{gap:0!important}.gap-1{gap:.25rem!important}.gap-2{gap:.5rem!important}.gap-3{gap:1rem!important}.gap-4{gap:1.5rem!important}.gap-5{gap:3rem!important}.row-gap-0{row-gap:0!important}.row-gap-1{row-gap:.25rem!important}.row-gap-2{row-gap:.5rem!important}.row-gap-3{row-gap:1rem!important}.row-gap-4{row-gap:1.5rem!important}.row-gap-5{row-gap:3rem!important}.column-gap-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.font-monospace{font-family:var(--bs-font-monospace)!important}.fs-1{font-size:calc(1.375rem + 1.5vw)!important}.fs-2{font-size:calc(1.325rem + .9vw)!important}.fs-3{font-size:calc(1.3rem + .6vw)!important}.fs-4{font-size:calc(1.275rem + .3vw)!important}.fs-5{font-size:1.25rem!important}.fs-6{font-size:1rem!important}.fst-italic{font-style:italic!important}.fst-normal{font-style:normal!important}.fw-lighter{font-weight:lighter!important}.fw-light{font-weight:300!important}.fw-normal{font-weight:400!important}.fw-medium{font-weight:500!important}.fw-semibold{font-weight:600!important}.fw-bold{font-weight:700!important}.fw-bolder{font-weight:bolder!important}.lh-1{line-height:1!important}.lh-sm{line-height:1.25!important}.lh-base{line-height:1.5!important}.lh-lg{line-height:2!important}.text-start{text-align:left!important}.text-end{text-align:right!important}.text-center{text-align:center!important}.text-decoration-none{text-decoration:none!important}.text-decoration-underline{text-decoration:underline!important}.text-decoration-line-through{text-decoration:line-through!important}.text-lowercase{text-transform:lowercase!important}.text-uppercase{text-transform:uppercase!important}.text-capitalize{text-transform:capitalize!important}.text-wrap{white-space:normal!important}.text-nowrap{white-space:nowrap!important}.text-break{word-wrap:break-word!important;word-break:break-word!important}.text-primary{--bs-text-opacity: 1;color:rgba(var(--bs-primary-rgb),var(--bs-text-opacity))!important}.text-secondary{--bs-text-opacity: 1;color:rgba(var(--bs-secondary-rgb),var(--bs-text-opacity))!important}.text-success{--bs-text-opacity: 1;color:rgba(var(--bs-success-rgb),var(--bs-text-opacity))!important}.text-info{--bs-text-opacity: 1;color:rgba(var(--bs-info-rgb),var(--bs-text-opacity))!important}.text-warning{--bs-text-opacity: 1;color:rgba(var(--bs-warning-rgb),var(--bs-text-opacity))!important}.text-danger{--bs-text-opacity: 1;color:rgba(var(--bs-danger-rgb),var(--bs-text-opacity))!important}.text-light{--bs-text-opacity: 1;color:rgba(var(--bs-light-rgb),var(--bs-text-opacity))!important}.text-dark{--bs-text-opacity: 1;color:rgba(var(--bs-dark-rgb),var(--bs-text-opacity))!important}.text-black{--bs-text-opacity: 1;color:rgba(var(--bs-black-rgb),var(--bs-text-opacity))!important}.text-white{--bs-text-opacity: 1;color:rgba(var(--bs-white-rgb),var(--bs-text-opacity))!important}.text-body{--bs-text-opacity: 1;color:rgba(var(--bs-body-color-rgb),var(--bs-text-opacity))!important}.text-muted{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-black-50{--bs-text-opacity: 1;color:#00000080!important}.text-white-50{--bs-text-opacity: 1;color:#ffffff80!important}.text-body-secondary{--bs-text-opacity: 1;color:var(--bs-secondary-color)!important}.text-body-tertiary{--bs-text-opacity: 1;color:var(--bs-tertiary-color)!important}.text-body-emphasis{--bs-text-opacity: 1;color:var(--bs-emphasis-color)!important}.text-reset{--bs-text-opacity: 1;color:inherit!important}.text-opacity-25{--bs-text-opacity: .25}.text-opacity-50{--bs-text-opacity: .5}.text-opacity-75{--bs-text-opacity: .75}.text-opacity-100{--bs-text-opacity: 1}.text-primary-emphasis{color:var(--bs-primary-text-emphasis)!important}.text-secondary-emphasis{color:var(--bs-secondary-text-emphasis)!important}.text-success-emphasis{color:var(--bs-success-text-emphasis)!important}.text-info-emphasis{color:var(--bs-info-text-emphasis)!important}.text-warning-emphasis{color:var(--bs-warning-text-emphasis)!important}.text-danger-emphasis{color:var(--bs-danger-text-emphasis)!important}.text-light-emphasis{color:var(--bs-light-text-emphasis)!important}.text-dark-emphasis{color:var(--bs-dark-text-emphasis)!important}.link-opacity-10,.link-opacity-10-hover:hover{--bs-link-opacity: .1}.link-opacity-25,.link-opacity-25-hover:hover{--bs-link-opacity: .25}.link-opacity-50,.link-opacity-50-hover:hover{--bs-link-opacity: .5}.link-opacity-75,.link-opacity-75-hover:hover{--bs-link-opacity: .75}.link-opacity-100,.link-opacity-100-hover:hover{--bs-link-opacity: 1}.link-offset-1,.link-offset-1-hover:hover{text-underline-offset:.125em!important}.link-offset-2,.link-offset-2-hover:hover{text-underline-offset:.25em!important}.link-offset-3,.link-offset-3-hover:hover{text-underline-offset:.375em!important}.link-underline-primary{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-primary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-secondary{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-secondary-rgb),var(--bs-link-underline-opacity))!important}.link-underline-success{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-success-rgb),var(--bs-link-underline-opacity))!important}.link-underline-info{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-info-rgb),var(--bs-link-underline-opacity))!important}.link-underline-warning{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-warning-rgb),var(--bs-link-underline-opacity))!important}.link-underline-danger{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-danger-rgb),var(--bs-link-underline-opacity))!important}.link-underline-light{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-light-rgb),var(--bs-link-underline-opacity))!important}.link-underline-dark{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important;text-decoration-color:rgba(var(--bs-dark-rgb),var(--bs-link-underline-opacity))!important}.link-underline{--bs-link-underline-opacity: 1;-webkit-text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important;text-decoration-color:rgba(var(--bs-link-color-rgb),var(--bs-link-underline-opacity, 1))!important}.link-underline-opacity-0,.link-underline-opacity-0-hover:hover{--bs-link-underline-opacity: 0}.link-underline-opacity-10,.link-underline-opacity-10-hover:hover{--bs-link-underline-opacity: .1}.link-underline-opacity-25,.link-underline-opacity-25-hover:hover{--bs-link-underline-opacity: .25}.link-underline-opacity-50,.link-underline-opacity-50-hover:hover{--bs-link-underline-opacity: .5}.link-underline-opacity-75,.link-underline-opacity-75-hover:hover{--bs-link-underline-opacity: .75}.link-underline-opacity-100,.link-underline-opacity-100-hover:hover{--bs-link-underline-opacity: 1}.bg-primary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-primary-rgb),var(--bs-bg-opacity))!important}.bg-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-rgb),var(--bs-bg-opacity))!important}.bg-success{--bs-bg-opacity: 1;background-color:rgba(var(--bs-success-rgb),var(--bs-bg-opacity))!important}.bg-info{--bs-bg-opacity: 1;background-color:rgba(var(--bs-info-rgb),var(--bs-bg-opacity))!important}.bg-warning{--bs-bg-opacity: 1;background-color:rgba(var(--bs-warning-rgb),var(--bs-bg-opacity))!important}.bg-danger{--bs-bg-opacity: 1;background-color:rgba(var(--bs-danger-rgb),var(--bs-bg-opacity))!important}.bg-light{--bs-bg-opacity: 1;background-color:rgba(var(--bs-light-rgb),var(--bs-bg-opacity))!important}.bg-dark{--bs-bg-opacity: 1;background-color:rgba(var(--bs-dark-rgb),var(--bs-bg-opacity))!important}.bg-black{--bs-bg-opacity: 1;background-color:rgba(var(--bs-black-rgb),var(--bs-bg-opacity))!important}.bg-white{--bs-bg-opacity: 1;background-color:rgba(var(--bs-white-rgb),var(--bs-bg-opacity))!important}.bg-body{--bs-bg-opacity: 1;background-color:rgba(var(--bs-body-bg-rgb),var(--bs-bg-opacity))!important}.bg-transparent{--bs-bg-opacity: 1;background-color:transparent!important}.bg-body-secondary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-secondary-bg-rgb),var(--bs-bg-opacity))!important}.bg-body-tertiary{--bs-bg-opacity: 1;background-color:rgba(var(--bs-tertiary-bg-rgb),var(--bs-bg-opacity))!important}.bg-opacity-10{--bs-bg-opacity: .1}.bg-opacity-25{--bs-bg-opacity: .25}.bg-opacity-50{--bs-bg-opacity: .5}.bg-opacity-75{--bs-bg-opacity: .75}.bg-opacity-100{--bs-bg-opacity: 1}.bg-primary-subtle{background-color:var(--bs-primary-bg-subtle)!important}.bg-secondary-subtle{background-color:var(--bs-secondary-bg-subtle)!important}.bg-success-subtle{background-color:var(--bs-success-bg-subtle)!important}.bg-info-subtle{background-color:var(--bs-info-bg-subtle)!important}.bg-warning-subtle{background-color:var(--bs-warning-bg-subtle)!important}.bg-danger-subtle{background-color:var(--bs-danger-bg-subtle)!important}.bg-light-subtle{background-color:var(--bs-light-bg-subtle)!important}.bg-dark-subtle{background-color:var(--bs-dark-bg-subtle)!important}.bg-gradient{background-image:var(--bs-gradient)!important}.user-select-all{-webkit-user-select:all!important;-moz-user-select:all!important;user-select:all!important}.user-select-auto{-webkit-user-select:auto!important;-moz-user-select:auto!important;user-select:auto!important}.user-select-none{-webkit-user-select:none!important;-moz-user-select:none!important;user-select:none!important}.pe-none{pointer-events:none!important}.pe-auto{pointer-events:auto!important}.rounded{border-radius:var(--bs-border-radius)!important}.rounded-0{border-radius:0!important}.rounded-1{border-radius:var(--bs-border-radius-sm)!important}.rounded-2{border-radius:var(--bs-border-radius)!important}.rounded-3{border-radius:var(--bs-border-radius-lg)!important}.rounded-4{border-radius:var(--bs-border-radius-xl)!important}.rounded-5{border-radius:var(--bs-border-radius-xxl)!important}.rounded-circle{border-radius:50%!important}.rounded-pill{border-radius:var(--bs-border-radius-pill)!important}.rounded-top{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-0{border-top-left-radius:0!important;border-top-right-radius:0!important}.rounded-top-1{border-top-left-radius:var(--bs-border-radius-sm)!important;border-top-right-radius:var(--bs-border-radius-sm)!important}.rounded-top-2{border-top-left-radius:var(--bs-border-radius)!important;border-top-right-radius:var(--bs-border-radius)!important}.rounded-top-3{border-top-left-radius:var(--bs-border-radius-lg)!important;border-top-right-radius:var(--bs-border-radius-lg)!important}.rounded-top-4{border-top-left-radius:var(--bs-border-radius-xl)!important;border-top-right-radius:var(--bs-border-radius-xl)!important}.rounded-top-5{border-top-left-radius:var(--bs-border-radius-xxl)!important;border-top-right-radius:var(--bs-border-radius-xxl)!important}.rounded-top-circle{border-top-left-radius:50%!important;border-top-right-radius:50%!important}.rounded-top-pill{border-top-left-radius:var(--bs-border-radius-pill)!important;border-top-right-radius:var(--bs-border-radius-pill)!important}.rounded-end{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-0{border-top-right-radius:0!important;border-bottom-right-radius:0!important}.rounded-end-1{border-top-right-radius:var(--bs-border-radius-sm)!important;border-bottom-right-radius:var(--bs-border-radius-sm)!important}.rounded-end-2{border-top-right-radius:var(--bs-border-radius)!important;border-bottom-right-radius:var(--bs-border-radius)!important}.rounded-end-3{border-top-right-radius:var(--bs-border-radius-lg)!important;border-bottom-right-radius:var(--bs-border-radius-lg)!important}.rounded-end-4{border-top-right-radius:var(--bs-border-radius-xl)!important;border-bottom-right-radius:var(--bs-border-radius-xl)!important}.rounded-end-5{border-top-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-right-radius:var(--bs-border-radius-xxl)!important}.rounded-end-circle{border-top-right-radius:50%!important;border-bottom-right-radius:50%!important}.rounded-end-pill{border-top-right-radius:var(--bs-border-radius-pill)!important;border-bottom-right-radius:var(--bs-border-radius-pill)!important}.rounded-bottom{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-0{border-bottom-right-radius:0!important;border-bottom-left-radius:0!important}.rounded-bottom-1{border-bottom-right-radius:var(--bs-border-radius-sm)!important;border-bottom-left-radius:var(--bs-border-radius-sm)!important}.rounded-bottom-2{border-bottom-right-radius:var(--bs-border-radius)!important;border-bottom-left-radius:var(--bs-border-radius)!important}.rounded-bottom-3{border-bottom-right-radius:var(--bs-border-radius-lg)!important;border-bottom-left-radius:var(--bs-border-radius-lg)!important}.rounded-bottom-4{border-bottom-right-radius:var(--bs-border-radius-xl)!important;border-bottom-left-radius:var(--bs-border-radius-xl)!important}.rounded-bottom-5{border-bottom-right-radius:var(--bs-border-radius-xxl)!important;border-bottom-left-radius:var(--bs-border-radius-xxl)!important}.rounded-bottom-circle{border-bottom-right-radius:50%!important;border-bottom-left-radius:50%!important}.rounded-bottom-pill{border-bottom-right-radius:var(--bs-border-radius-pill)!important;border-bottom-left-radius:var(--bs-border-radius-pill)!important}.rounded-start{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-0{border-bottom-left-radius:0!important;border-top-left-radius:0!important}.rounded-start-1{border-bottom-left-radius:var(--bs-border-radius-sm)!important;border-top-left-radius:var(--bs-border-radius-sm)!important}.rounded-start-2{border-bottom-left-radius:var(--bs-border-radius)!important;border-top-left-radius:var(--bs-border-radius)!important}.rounded-start-3{border-bottom-left-radius:var(--bs-border-radius-lg)!important;border-top-left-radius:var(--bs-border-radius-lg)!important}.rounded-start-4{border-bottom-left-radius:var(--bs-border-radius-xl)!important;border-top-left-radius:var(--bs-border-radius-xl)!important}.rounded-start-5{border-bottom-left-radius:var(--bs-border-radius-xxl)!important;border-top-left-radius:var(--bs-border-radius-xxl)!important}.rounded-start-circle{border-bottom-left-radius:50%!important;border-top-left-radius:50%!important}.rounded-start-pill{border-bottom-left-radius:var(--bs-border-radius-pill)!important;border-top-left-radius:var(--bs-border-radius-pill)!important}.visible{visibility:visible!important}.invisible{visibility:hidden!important}.z-n1{z-index:-1!important}.z-0{z-index:0!important}.z-1{z-index:1!important}.z-2{z-index:2!important}.z-3{z-index:3!important}@media (min-width: 576px){.float-sm-start{float:left!important}.float-sm-end{float:right!important}.float-sm-none{float:none!important}.object-fit-sm-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-sm-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-sm-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-sm-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-sm-none{-o-object-fit:none!important;object-fit:none!important}.d-sm-inline{display:inline!important}.d-sm-inline-block{display:inline-block!important}.d-sm-block{display:block!important}.d-sm-grid{display:grid!important}.d-sm-inline-grid{display:inline-grid!important}.d-sm-table{display:table!important}.d-sm-table-row{display:table-row!important}.d-sm-table-cell{display:table-cell!important}.d-sm-flex{display:flex!important}.d-sm-inline-flex{display:inline-flex!important}.d-sm-none{display:none!important}.flex-sm-fill{flex:1 1 auto!important}.flex-sm-row{flex-direction:row!important}.flex-sm-column{flex-direction:column!important}.flex-sm-row-reverse{flex-direction:row-reverse!important}.flex-sm-column-reverse{flex-direction:column-reverse!important}.flex-sm-grow-0{flex-grow:0!important}.flex-sm-grow-1{flex-grow:1!important}.flex-sm-shrink-0{flex-shrink:0!important}.flex-sm-shrink-1{flex-shrink:1!important}.flex-sm-wrap{flex-wrap:wrap!important}.flex-sm-nowrap{flex-wrap:nowrap!important}.flex-sm-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-sm-start{justify-content:flex-start!important}.justify-content-sm-end{justify-content:flex-end!important}.justify-content-sm-center{justify-content:center!important}.justify-content-sm-between{justify-content:space-between!important}.justify-content-sm-around{justify-content:space-around!important}.justify-content-sm-evenly{justify-content:space-evenly!important}.align-items-sm-start{align-items:flex-start!important}.align-items-sm-end{align-items:flex-end!important}.align-items-sm-center{align-items:center!important}.align-items-sm-baseline{align-items:baseline!important}.align-items-sm-stretch{align-items:stretch!important}.align-content-sm-start{align-content:flex-start!important}.align-content-sm-end{align-content:flex-end!important}.align-content-sm-center{align-content:center!important}.align-content-sm-between{align-content:space-between!important}.align-content-sm-around{align-content:space-around!important}.align-content-sm-stretch{align-content:stretch!important}.align-self-sm-auto{align-self:auto!important}.align-self-sm-start{align-self:flex-start!important}.align-self-sm-end{align-self:flex-end!important}.align-self-sm-center{align-self:center!important}.align-self-sm-baseline{align-self:baseline!important}.align-self-sm-stretch{align-self:stretch!important}.order-sm-first{order:-1!important}.order-sm-0{order:0!important}.order-sm-1{order:1!important}.order-sm-2{order:2!important}.order-sm-3{order:3!important}.order-sm-4{order:4!important}.order-sm-5{order:5!important}.order-sm-last{order:6!important}.m-sm-0{margin:0!important}.m-sm-1{margin:.25rem!important}.m-sm-2{margin:.5rem!important}.m-sm-3{margin:1rem!important}.m-sm-4{margin:1.5rem!important}.m-sm-5{margin:3rem!important}.m-sm-auto{margin:auto!important}.mx-sm-0{margin-right:0!important;margin-left:0!important}.mx-sm-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-sm-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-sm-3{margin-right:1rem!important;margin-left:1rem!important}.mx-sm-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-sm-5{margin-right:3rem!important;margin-left:3rem!important}.mx-sm-auto{margin-right:auto!important;margin-left:auto!important}.my-sm-0{margin-top:0!important;margin-bottom:0!important}.my-sm-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-sm-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-sm-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-sm-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-sm-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-sm-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-sm-0{margin-top:0!important}.mt-sm-1{margin-top:.25rem!important}.mt-sm-2{margin-top:.5rem!important}.mt-sm-3{margin-top:1rem!important}.mt-sm-4{margin-top:1.5rem!important}.mt-sm-5{margin-top:3rem!important}.mt-sm-auto{margin-top:auto!important}.me-sm-0{margin-right:0!important}.me-sm-1{margin-right:.25rem!important}.me-sm-2{margin-right:.5rem!important}.me-sm-3{margin-right:1rem!important}.me-sm-4{margin-right:1.5rem!important}.me-sm-5{margin-right:3rem!important}.me-sm-auto{margin-right:auto!important}.mb-sm-0{margin-bottom:0!important}.mb-sm-1{margin-bottom:.25rem!important}.mb-sm-2{margin-bottom:.5rem!important}.mb-sm-3{margin-bottom:1rem!important}.mb-sm-4{margin-bottom:1.5rem!important}.mb-sm-5{margin-bottom:3rem!important}.mb-sm-auto{margin-bottom:auto!important}.ms-sm-0{margin-left:0!important}.ms-sm-1{margin-left:.25rem!important}.ms-sm-2{margin-left:.5rem!important}.ms-sm-3{margin-left:1rem!important}.ms-sm-4{margin-left:1.5rem!important}.ms-sm-5{margin-left:3rem!important}.ms-sm-auto{margin-left:auto!important}.p-sm-0{padding:0!important}.p-sm-1{padding:.25rem!important}.p-sm-2{padding:.5rem!important}.p-sm-3{padding:1rem!important}.p-sm-4{padding:1.5rem!important}.p-sm-5{padding:3rem!important}.px-sm-0{padding-right:0!important;padding-left:0!important}.px-sm-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-sm-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-sm-3{padding-right:1rem!important;padding-left:1rem!important}.px-sm-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-sm-5{padding-right:3rem!important;padding-left:3rem!important}.py-sm-0{padding-top:0!important;padding-bottom:0!important}.py-sm-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-sm-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-sm-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-sm-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-sm-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-sm-0{padding-top:0!important}.pt-sm-1{padding-top:.25rem!important}.pt-sm-2{padding-top:.5rem!important}.pt-sm-3{padding-top:1rem!important}.pt-sm-4{padding-top:1.5rem!important}.pt-sm-5{padding-top:3rem!important}.pe-sm-0{padding-right:0!important}.pe-sm-1{padding-right:.25rem!important}.pe-sm-2{padding-right:.5rem!important}.pe-sm-3{padding-right:1rem!important}.pe-sm-4{padding-right:1.5rem!important}.pe-sm-5{padding-right:3rem!important}.pb-sm-0{padding-bottom:0!important}.pb-sm-1{padding-bottom:.25rem!important}.pb-sm-2{padding-bottom:.5rem!important}.pb-sm-3{padding-bottom:1rem!important}.pb-sm-4{padding-bottom:1.5rem!important}.pb-sm-5{padding-bottom:3rem!important}.ps-sm-0{padding-left:0!important}.ps-sm-1{padding-left:.25rem!important}.ps-sm-2{padding-left:.5rem!important}.ps-sm-3{padding-left:1rem!important}.ps-sm-4{padding-left:1.5rem!important}.ps-sm-5{padding-left:3rem!important}.gap-sm-0{gap:0!important}.gap-sm-1{gap:.25rem!important}.gap-sm-2{gap:.5rem!important}.gap-sm-3{gap:1rem!important}.gap-sm-4{gap:1.5rem!important}.gap-sm-5{gap:3rem!important}.row-gap-sm-0{row-gap:0!important}.row-gap-sm-1{row-gap:.25rem!important}.row-gap-sm-2{row-gap:.5rem!important}.row-gap-sm-3{row-gap:1rem!important}.row-gap-sm-4{row-gap:1.5rem!important}.row-gap-sm-5{row-gap:3rem!important}.column-gap-sm-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-sm-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-sm-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-sm-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-sm-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-sm-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-sm-start{text-align:left!important}.text-sm-end{text-align:right!important}.text-sm-center{text-align:center!important}}@media (min-width: 768px){.float-md-start{float:left!important}.float-md-end{float:right!important}.float-md-none{float:none!important}.object-fit-md-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-md-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-md-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-md-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-md-none{-o-object-fit:none!important;object-fit:none!important}.d-md-inline{display:inline!important}.d-md-inline-block{display:inline-block!important}.d-md-block{display:block!important}.d-md-grid{display:grid!important}.d-md-inline-grid{display:inline-grid!important}.d-md-table{display:table!important}.d-md-table-row{display:table-row!important}.d-md-table-cell{display:table-cell!important}.d-md-flex{display:flex!important}.d-md-inline-flex{display:inline-flex!important}.d-md-none{display:none!important}.flex-md-fill{flex:1 1 auto!important}.flex-md-row{flex-direction:row!important}.flex-md-column{flex-direction:column!important}.flex-md-row-reverse{flex-direction:row-reverse!important}.flex-md-column-reverse{flex-direction:column-reverse!important}.flex-md-grow-0{flex-grow:0!important}.flex-md-grow-1{flex-grow:1!important}.flex-md-shrink-0{flex-shrink:0!important}.flex-md-shrink-1{flex-shrink:1!important}.flex-md-wrap{flex-wrap:wrap!important}.flex-md-nowrap{flex-wrap:nowrap!important}.flex-md-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-md-start{justify-content:flex-start!important}.justify-content-md-end{justify-content:flex-end!important}.justify-content-md-center{justify-content:center!important}.justify-content-md-between{justify-content:space-between!important}.justify-content-md-around{justify-content:space-around!important}.justify-content-md-evenly{justify-content:space-evenly!important}.align-items-md-start{align-items:flex-start!important}.align-items-md-end{align-items:flex-end!important}.align-items-md-center{align-items:center!important}.align-items-md-baseline{align-items:baseline!important}.align-items-md-stretch{align-items:stretch!important}.align-content-md-start{align-content:flex-start!important}.align-content-md-end{align-content:flex-end!important}.align-content-md-center{align-content:center!important}.align-content-md-between{align-content:space-between!important}.align-content-md-around{align-content:space-around!important}.align-content-md-stretch{align-content:stretch!important}.align-self-md-auto{align-self:auto!important}.align-self-md-start{align-self:flex-start!important}.align-self-md-end{align-self:flex-end!important}.align-self-md-center{align-self:center!important}.align-self-md-baseline{align-self:baseline!important}.align-self-md-stretch{align-self:stretch!important}.order-md-first{order:-1!important}.order-md-0{order:0!important}.order-md-1{order:1!important}.order-md-2{order:2!important}.order-md-3{order:3!important}.order-md-4{order:4!important}.order-md-5{order:5!important}.order-md-last{order:6!important}.m-md-0{margin:0!important}.m-md-1{margin:.25rem!important}.m-md-2{margin:.5rem!important}.m-md-3{margin:1rem!important}.m-md-4{margin:1.5rem!important}.m-md-5{margin:3rem!important}.m-md-auto{margin:auto!important}.mx-md-0{margin-right:0!important;margin-left:0!important}.mx-md-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-md-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-md-3{margin-right:1rem!important;margin-left:1rem!important}.mx-md-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-md-5{margin-right:3rem!important;margin-left:3rem!important}.mx-md-auto{margin-right:auto!important;margin-left:auto!important}.my-md-0{margin-top:0!important;margin-bottom:0!important}.my-md-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-md-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-md-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-md-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-md-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-md-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-md-0{margin-top:0!important}.mt-md-1{margin-top:.25rem!important}.mt-md-2{margin-top:.5rem!important}.mt-md-3{margin-top:1rem!important}.mt-md-4{margin-top:1.5rem!important}.mt-md-5{margin-top:3rem!important}.mt-md-auto{margin-top:auto!important}.me-md-0{margin-right:0!important}.me-md-1{margin-right:.25rem!important}.me-md-2{margin-right:.5rem!important}.me-md-3{margin-right:1rem!important}.me-md-4{margin-right:1.5rem!important}.me-md-5{margin-right:3rem!important}.me-md-auto{margin-right:auto!important}.mb-md-0{margin-bottom:0!important}.mb-md-1{margin-bottom:.25rem!important}.mb-md-2{margin-bottom:.5rem!important}.mb-md-3{margin-bottom:1rem!important}.mb-md-4{margin-bottom:1.5rem!important}.mb-md-5{margin-bottom:3rem!important}.mb-md-auto{margin-bottom:auto!important}.ms-md-0{margin-left:0!important}.ms-md-1{margin-left:.25rem!important}.ms-md-2{margin-left:.5rem!important}.ms-md-3{margin-left:1rem!important}.ms-md-4{margin-left:1.5rem!important}.ms-md-5{margin-left:3rem!important}.ms-md-auto{margin-left:auto!important}.p-md-0{padding:0!important}.p-md-1{padding:.25rem!important}.p-md-2{padding:.5rem!important}.p-md-3{padding:1rem!important}.p-md-4{padding:1.5rem!important}.p-md-5{padding:3rem!important}.px-md-0{padding-right:0!important;padding-left:0!important}.px-md-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-md-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-md-3{padding-right:1rem!important;padding-left:1rem!important}.px-md-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-md-5{padding-right:3rem!important;padding-left:3rem!important}.py-md-0{padding-top:0!important;padding-bottom:0!important}.py-md-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-md-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-md-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-md-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-md-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-md-0{padding-top:0!important}.pt-md-1{padding-top:.25rem!important}.pt-md-2{padding-top:.5rem!important}.pt-md-3{padding-top:1rem!important}.pt-md-4{padding-top:1.5rem!important}.pt-md-5{padding-top:3rem!important}.pe-md-0{padding-right:0!important}.pe-md-1{padding-right:.25rem!important}.pe-md-2{padding-right:.5rem!important}.pe-md-3{padding-right:1rem!important}.pe-md-4{padding-right:1.5rem!important}.pe-md-5{padding-right:3rem!important}.pb-md-0{padding-bottom:0!important}.pb-md-1{padding-bottom:.25rem!important}.pb-md-2{padding-bottom:.5rem!important}.pb-md-3{padding-bottom:1rem!important}.pb-md-4{padding-bottom:1.5rem!important}.pb-md-5{padding-bottom:3rem!important}.ps-md-0{padding-left:0!important}.ps-md-1{padding-left:.25rem!important}.ps-md-2{padding-left:.5rem!important}.ps-md-3{padding-left:1rem!important}.ps-md-4{padding-left:1.5rem!important}.ps-md-5{padding-left:3rem!important}.gap-md-0{gap:0!important}.gap-md-1{gap:.25rem!important}.gap-md-2{gap:.5rem!important}.gap-md-3{gap:1rem!important}.gap-md-4{gap:1.5rem!important}.gap-md-5{gap:3rem!important}.row-gap-md-0{row-gap:0!important}.row-gap-md-1{row-gap:.25rem!important}.row-gap-md-2{row-gap:.5rem!important}.row-gap-md-3{row-gap:1rem!important}.row-gap-md-4{row-gap:1.5rem!important}.row-gap-md-5{row-gap:3rem!important}.column-gap-md-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-md-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-md-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-md-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-md-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-md-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-md-start{text-align:left!important}.text-md-end{text-align:right!important}.text-md-center{text-align:center!important}}@media (min-width: 992px){.float-lg-start{float:left!important}.float-lg-end{float:right!important}.float-lg-none{float:none!important}.object-fit-lg-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-lg-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-lg-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-lg-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-lg-none{-o-object-fit:none!important;object-fit:none!important}.d-lg-inline{display:inline!important}.d-lg-inline-block{display:inline-block!important}.d-lg-block{display:block!important}.d-lg-grid{display:grid!important}.d-lg-inline-grid{display:inline-grid!important}.d-lg-table{display:table!important}.d-lg-table-row{display:table-row!important}.d-lg-table-cell{display:table-cell!important}.d-lg-flex{display:flex!important}.d-lg-inline-flex{display:inline-flex!important}.d-lg-none{display:none!important}.flex-lg-fill{flex:1 1 auto!important}.flex-lg-row{flex-direction:row!important}.flex-lg-column{flex-direction:column!important}.flex-lg-row-reverse{flex-direction:row-reverse!important}.flex-lg-column-reverse{flex-direction:column-reverse!important}.flex-lg-grow-0{flex-grow:0!important}.flex-lg-grow-1{flex-grow:1!important}.flex-lg-shrink-0{flex-shrink:0!important}.flex-lg-shrink-1{flex-shrink:1!important}.flex-lg-wrap{flex-wrap:wrap!important}.flex-lg-nowrap{flex-wrap:nowrap!important}.flex-lg-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-lg-start{justify-content:flex-start!important}.justify-content-lg-end{justify-content:flex-end!important}.justify-content-lg-center{justify-content:center!important}.justify-content-lg-between{justify-content:space-between!important}.justify-content-lg-around{justify-content:space-around!important}.justify-content-lg-evenly{justify-content:space-evenly!important}.align-items-lg-start{align-items:flex-start!important}.align-items-lg-end{align-items:flex-end!important}.align-items-lg-center{align-items:center!important}.align-items-lg-baseline{align-items:baseline!important}.align-items-lg-stretch{align-items:stretch!important}.align-content-lg-start{align-content:flex-start!important}.align-content-lg-end{align-content:flex-end!important}.align-content-lg-center{align-content:center!important}.align-content-lg-between{align-content:space-between!important}.align-content-lg-around{align-content:space-around!important}.align-content-lg-stretch{align-content:stretch!important}.align-self-lg-auto{align-self:auto!important}.align-self-lg-start{align-self:flex-start!important}.align-self-lg-end{align-self:flex-end!important}.align-self-lg-center{align-self:center!important}.align-self-lg-baseline{align-self:baseline!important}.align-self-lg-stretch{align-self:stretch!important}.order-lg-first{order:-1!important}.order-lg-0{order:0!important}.order-lg-1{order:1!important}.order-lg-2{order:2!important}.order-lg-3{order:3!important}.order-lg-4{order:4!important}.order-lg-5{order:5!important}.order-lg-last{order:6!important}.m-lg-0{margin:0!important}.m-lg-1{margin:.25rem!important}.m-lg-2{margin:.5rem!important}.m-lg-3{margin:1rem!important}.m-lg-4{margin:1.5rem!important}.m-lg-5{margin:3rem!important}.m-lg-auto{margin:auto!important}.mx-lg-0{margin-right:0!important;margin-left:0!important}.mx-lg-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-lg-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-lg-3{margin-right:1rem!important;margin-left:1rem!important}.mx-lg-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-lg-5{margin-right:3rem!important;margin-left:3rem!important}.mx-lg-auto{margin-right:auto!important;margin-left:auto!important}.my-lg-0{margin-top:0!important;margin-bottom:0!important}.my-lg-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-lg-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-lg-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-lg-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-lg-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-lg-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-lg-0{margin-top:0!important}.mt-lg-1{margin-top:.25rem!important}.mt-lg-2{margin-top:.5rem!important}.mt-lg-3{margin-top:1rem!important}.mt-lg-4{margin-top:1.5rem!important}.mt-lg-5{margin-top:3rem!important}.mt-lg-auto{margin-top:auto!important}.me-lg-0{margin-right:0!important}.me-lg-1{margin-right:.25rem!important}.me-lg-2{margin-right:.5rem!important}.me-lg-3{margin-right:1rem!important}.me-lg-4{margin-right:1.5rem!important}.me-lg-5{margin-right:3rem!important}.me-lg-auto{margin-right:auto!important}.mb-lg-0{margin-bottom:0!important}.mb-lg-1{margin-bottom:.25rem!important}.mb-lg-2{margin-bottom:.5rem!important}.mb-lg-3{margin-bottom:1rem!important}.mb-lg-4{margin-bottom:1.5rem!important}.mb-lg-5{margin-bottom:3rem!important}.mb-lg-auto{margin-bottom:auto!important}.ms-lg-0{margin-left:0!important}.ms-lg-1{margin-left:.25rem!important}.ms-lg-2{margin-left:.5rem!important}.ms-lg-3{margin-left:1rem!important}.ms-lg-4{margin-left:1.5rem!important}.ms-lg-5{margin-left:3rem!important}.ms-lg-auto{margin-left:auto!important}.p-lg-0{padding:0!important}.p-lg-1{padding:.25rem!important}.p-lg-2{padding:.5rem!important}.p-lg-3{padding:1rem!important}.p-lg-4{padding:1.5rem!important}.p-lg-5{padding:3rem!important}.px-lg-0{padding-right:0!important;padding-left:0!important}.px-lg-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-lg-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-lg-3{padding-right:1rem!important;padding-left:1rem!important}.px-lg-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-lg-5{padding-right:3rem!important;padding-left:3rem!important}.py-lg-0{padding-top:0!important;padding-bottom:0!important}.py-lg-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-lg-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-lg-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-lg-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-lg-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-lg-0{padding-top:0!important}.pt-lg-1{padding-top:.25rem!important}.pt-lg-2{padding-top:.5rem!important}.pt-lg-3{padding-top:1rem!important}.pt-lg-4{padding-top:1.5rem!important}.pt-lg-5{padding-top:3rem!important}.pe-lg-0{padding-right:0!important}.pe-lg-1{padding-right:.25rem!important}.pe-lg-2{padding-right:.5rem!important}.pe-lg-3{padding-right:1rem!important}.pe-lg-4{padding-right:1.5rem!important}.pe-lg-5{padding-right:3rem!important}.pb-lg-0{padding-bottom:0!important}.pb-lg-1{padding-bottom:.25rem!important}.pb-lg-2{padding-bottom:.5rem!important}.pb-lg-3{padding-bottom:1rem!important}.pb-lg-4{padding-bottom:1.5rem!important}.pb-lg-5{padding-bottom:3rem!important}.ps-lg-0{padding-left:0!important}.ps-lg-1{padding-left:.25rem!important}.ps-lg-2{padding-left:.5rem!important}.ps-lg-3{padding-left:1rem!important}.ps-lg-4{padding-left:1.5rem!important}.ps-lg-5{padding-left:3rem!important}.gap-lg-0{gap:0!important}.gap-lg-1{gap:.25rem!important}.gap-lg-2{gap:.5rem!important}.gap-lg-3{gap:1rem!important}.gap-lg-4{gap:1.5rem!important}.gap-lg-5{gap:3rem!important}.row-gap-lg-0{row-gap:0!important}.row-gap-lg-1{row-gap:.25rem!important}.row-gap-lg-2{row-gap:.5rem!important}.row-gap-lg-3{row-gap:1rem!important}.row-gap-lg-4{row-gap:1.5rem!important}.row-gap-lg-5{row-gap:3rem!important}.column-gap-lg-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-lg-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-lg-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-lg-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-lg-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-lg-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-lg-start{text-align:left!important}.text-lg-end{text-align:right!important}.text-lg-center{text-align:center!important}}@media (min-width: 1200px){.float-xl-start{float:left!important}.float-xl-end{float:right!important}.float-xl-none{float:none!important}.object-fit-xl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xl-none{-o-object-fit:none!important;object-fit:none!important}.d-xl-inline{display:inline!important}.d-xl-inline-block{display:inline-block!important}.d-xl-block{display:block!important}.d-xl-grid{display:grid!important}.d-xl-inline-grid{display:inline-grid!important}.d-xl-table{display:table!important}.d-xl-table-row{display:table-row!important}.d-xl-table-cell{display:table-cell!important}.d-xl-flex{display:flex!important}.d-xl-inline-flex{display:inline-flex!important}.d-xl-none{display:none!important}.flex-xl-fill{flex:1 1 auto!important}.flex-xl-row{flex-direction:row!important}.flex-xl-column{flex-direction:column!important}.flex-xl-row-reverse{flex-direction:row-reverse!important}.flex-xl-column-reverse{flex-direction:column-reverse!important}.flex-xl-grow-0{flex-grow:0!important}.flex-xl-grow-1{flex-grow:1!important}.flex-xl-shrink-0{flex-shrink:0!important}.flex-xl-shrink-1{flex-shrink:1!important}.flex-xl-wrap{flex-wrap:wrap!important}.flex-xl-nowrap{flex-wrap:nowrap!important}.flex-xl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xl-start{justify-content:flex-start!important}.justify-content-xl-end{justify-content:flex-end!important}.justify-content-xl-center{justify-content:center!important}.justify-content-xl-between{justify-content:space-between!important}.justify-content-xl-around{justify-content:space-around!important}.justify-content-xl-evenly{justify-content:space-evenly!important}.align-items-xl-start{align-items:flex-start!important}.align-items-xl-end{align-items:flex-end!important}.align-items-xl-center{align-items:center!important}.align-items-xl-baseline{align-items:baseline!important}.align-items-xl-stretch{align-items:stretch!important}.align-content-xl-start{align-content:flex-start!important}.align-content-xl-end{align-content:flex-end!important}.align-content-xl-center{align-content:center!important}.align-content-xl-between{align-content:space-between!important}.align-content-xl-around{align-content:space-around!important}.align-content-xl-stretch{align-content:stretch!important}.align-self-xl-auto{align-self:auto!important}.align-self-xl-start{align-self:flex-start!important}.align-self-xl-end{align-self:flex-end!important}.align-self-xl-center{align-self:center!important}.align-self-xl-baseline{align-self:baseline!important}.align-self-xl-stretch{align-self:stretch!important}.order-xl-first{order:-1!important}.order-xl-0{order:0!important}.order-xl-1{order:1!important}.order-xl-2{order:2!important}.order-xl-3{order:3!important}.order-xl-4{order:4!important}.order-xl-5{order:5!important}.order-xl-last{order:6!important}.m-xl-0{margin:0!important}.m-xl-1{margin:.25rem!important}.m-xl-2{margin:.5rem!important}.m-xl-3{margin:1rem!important}.m-xl-4{margin:1.5rem!important}.m-xl-5{margin:3rem!important}.m-xl-auto{margin:auto!important}.mx-xl-0{margin-right:0!important;margin-left:0!important}.mx-xl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xl-auto{margin-right:auto!important;margin-left:auto!important}.my-xl-0{margin-top:0!important;margin-bottom:0!important}.my-xl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xl-0{margin-top:0!important}.mt-xl-1{margin-top:.25rem!important}.mt-xl-2{margin-top:.5rem!important}.mt-xl-3{margin-top:1rem!important}.mt-xl-4{margin-top:1.5rem!important}.mt-xl-5{margin-top:3rem!important}.mt-xl-auto{margin-top:auto!important}.me-xl-0{margin-right:0!important}.me-xl-1{margin-right:.25rem!important}.me-xl-2{margin-right:.5rem!important}.me-xl-3{margin-right:1rem!important}.me-xl-4{margin-right:1.5rem!important}.me-xl-5{margin-right:3rem!important}.me-xl-auto{margin-right:auto!important}.mb-xl-0{margin-bottom:0!important}.mb-xl-1{margin-bottom:.25rem!important}.mb-xl-2{margin-bottom:.5rem!important}.mb-xl-3{margin-bottom:1rem!important}.mb-xl-4{margin-bottom:1.5rem!important}.mb-xl-5{margin-bottom:3rem!important}.mb-xl-auto{margin-bottom:auto!important}.ms-xl-0{margin-left:0!important}.ms-xl-1{margin-left:.25rem!important}.ms-xl-2{margin-left:.5rem!important}.ms-xl-3{margin-left:1rem!important}.ms-xl-4{margin-left:1.5rem!important}.ms-xl-5{margin-left:3rem!important}.ms-xl-auto{margin-left:auto!important}.p-xl-0{padding:0!important}.p-xl-1{padding:.25rem!important}.p-xl-2{padding:.5rem!important}.p-xl-3{padding:1rem!important}.p-xl-4{padding:1.5rem!important}.p-xl-5{padding:3rem!important}.px-xl-0{padding-right:0!important;padding-left:0!important}.px-xl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xl-0{padding-top:0!important;padding-bottom:0!important}.py-xl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xl-0{padding-top:0!important}.pt-xl-1{padding-top:.25rem!important}.pt-xl-2{padding-top:.5rem!important}.pt-xl-3{padding-top:1rem!important}.pt-xl-4{padding-top:1.5rem!important}.pt-xl-5{padding-top:3rem!important}.pe-xl-0{padding-right:0!important}.pe-xl-1{padding-right:.25rem!important}.pe-xl-2{padding-right:.5rem!important}.pe-xl-3{padding-right:1rem!important}.pe-xl-4{padding-right:1.5rem!important}.pe-xl-5{padding-right:3rem!important}.pb-xl-0{padding-bottom:0!important}.pb-xl-1{padding-bottom:.25rem!important}.pb-xl-2{padding-bottom:.5rem!important}.pb-xl-3{padding-bottom:1rem!important}.pb-xl-4{padding-bottom:1.5rem!important}.pb-xl-5{padding-bottom:3rem!important}.ps-xl-0{padding-left:0!important}.ps-xl-1{padding-left:.25rem!important}.ps-xl-2{padding-left:.5rem!important}.ps-xl-3{padding-left:1rem!important}.ps-xl-4{padding-left:1.5rem!important}.ps-xl-5{padding-left:3rem!important}.gap-xl-0{gap:0!important}.gap-xl-1{gap:.25rem!important}.gap-xl-2{gap:.5rem!important}.gap-xl-3{gap:1rem!important}.gap-xl-4{gap:1.5rem!important}.gap-xl-5{gap:3rem!important}.row-gap-xl-0{row-gap:0!important}.row-gap-xl-1{row-gap:.25rem!important}.row-gap-xl-2{row-gap:.5rem!important}.row-gap-xl-3{row-gap:1rem!important}.row-gap-xl-4{row-gap:1.5rem!important}.row-gap-xl-5{row-gap:3rem!important}.column-gap-xl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xl-start{text-align:left!important}.text-xl-end{text-align:right!important}.text-xl-center{text-align:center!important}}@media (min-width: 1400px){.float-xxl-start{float:left!important}.float-xxl-end{float:right!important}.float-xxl-none{float:none!important}.object-fit-xxl-contain{-o-object-fit:contain!important;object-fit:contain!important}.object-fit-xxl-cover{-o-object-fit:cover!important;object-fit:cover!important}.object-fit-xxl-fill{-o-object-fit:fill!important;object-fit:fill!important}.object-fit-xxl-scale{-o-object-fit:scale-down!important;object-fit:scale-down!important}.object-fit-xxl-none{-o-object-fit:none!important;object-fit:none!important}.d-xxl-inline{display:inline!important}.d-xxl-inline-block{display:inline-block!important}.d-xxl-block{display:block!important}.d-xxl-grid{display:grid!important}.d-xxl-inline-grid{display:inline-grid!important}.d-xxl-table{display:table!important}.d-xxl-table-row{display:table-row!important}.d-xxl-table-cell{display:table-cell!important}.d-xxl-flex{display:flex!important}.d-xxl-inline-flex{display:inline-flex!important}.d-xxl-none{display:none!important}.flex-xxl-fill{flex:1 1 auto!important}.flex-xxl-row{flex-direction:row!important}.flex-xxl-column{flex-direction:column!important}.flex-xxl-row-reverse{flex-direction:row-reverse!important}.flex-xxl-column-reverse{flex-direction:column-reverse!important}.flex-xxl-grow-0{flex-grow:0!important}.flex-xxl-grow-1{flex-grow:1!important}.flex-xxl-shrink-0{flex-shrink:0!important}.flex-xxl-shrink-1{flex-shrink:1!important}.flex-xxl-wrap{flex-wrap:wrap!important}.flex-xxl-nowrap{flex-wrap:nowrap!important}.flex-xxl-wrap-reverse{flex-wrap:wrap-reverse!important}.justify-content-xxl-start{justify-content:flex-start!important}.justify-content-xxl-end{justify-content:flex-end!important}.justify-content-xxl-center{justify-content:center!important}.justify-content-xxl-between{justify-content:space-between!important}.justify-content-xxl-around{justify-content:space-around!important}.justify-content-xxl-evenly{justify-content:space-evenly!important}.align-items-xxl-start{align-items:flex-start!important}.align-items-xxl-end{align-items:flex-end!important}.align-items-xxl-center{align-items:center!important}.align-items-xxl-baseline{align-items:baseline!important}.align-items-xxl-stretch{align-items:stretch!important}.align-content-xxl-start{align-content:flex-start!important}.align-content-xxl-end{align-content:flex-end!important}.align-content-xxl-center{align-content:center!important}.align-content-xxl-between{align-content:space-between!important}.align-content-xxl-around{align-content:space-around!important}.align-content-xxl-stretch{align-content:stretch!important}.align-self-xxl-auto{align-self:auto!important}.align-self-xxl-start{align-self:flex-start!important}.align-self-xxl-end{align-self:flex-end!important}.align-self-xxl-center{align-self:center!important}.align-self-xxl-baseline{align-self:baseline!important}.align-self-xxl-stretch{align-self:stretch!important}.order-xxl-first{order:-1!important}.order-xxl-0{order:0!important}.order-xxl-1{order:1!important}.order-xxl-2{order:2!important}.order-xxl-3{order:3!important}.order-xxl-4{order:4!important}.order-xxl-5{order:5!important}.order-xxl-last{order:6!important}.m-xxl-0{margin:0!important}.m-xxl-1{margin:.25rem!important}.m-xxl-2{margin:.5rem!important}.m-xxl-3{margin:1rem!important}.m-xxl-4{margin:1.5rem!important}.m-xxl-5{margin:3rem!important}.m-xxl-auto{margin:auto!important}.mx-xxl-0{margin-right:0!important;margin-left:0!important}.mx-xxl-1{margin-right:.25rem!important;margin-left:.25rem!important}.mx-xxl-2{margin-right:.5rem!important;margin-left:.5rem!important}.mx-xxl-3{margin-right:1rem!important;margin-left:1rem!important}.mx-xxl-4{margin-right:1.5rem!important;margin-left:1.5rem!important}.mx-xxl-5{margin-right:3rem!important;margin-left:3rem!important}.mx-xxl-auto{margin-right:auto!important;margin-left:auto!important}.my-xxl-0{margin-top:0!important;margin-bottom:0!important}.my-xxl-1{margin-top:.25rem!important;margin-bottom:.25rem!important}.my-xxl-2{margin-top:.5rem!important;margin-bottom:.5rem!important}.my-xxl-3{margin-top:1rem!important;margin-bottom:1rem!important}.my-xxl-4{margin-top:1.5rem!important;margin-bottom:1.5rem!important}.my-xxl-5{margin-top:3rem!important;margin-bottom:3rem!important}.my-xxl-auto{margin-top:auto!important;margin-bottom:auto!important}.mt-xxl-0{margin-top:0!important}.mt-xxl-1{margin-top:.25rem!important}.mt-xxl-2{margin-top:.5rem!important}.mt-xxl-3{margin-top:1rem!important}.mt-xxl-4{margin-top:1.5rem!important}.mt-xxl-5{margin-top:3rem!important}.mt-xxl-auto{margin-top:auto!important}.me-xxl-0{margin-right:0!important}.me-xxl-1{margin-right:.25rem!important}.me-xxl-2{margin-right:.5rem!important}.me-xxl-3{margin-right:1rem!important}.me-xxl-4{margin-right:1.5rem!important}.me-xxl-5{margin-right:3rem!important}.me-xxl-auto{margin-right:auto!important}.mb-xxl-0{margin-bottom:0!important}.mb-xxl-1{margin-bottom:.25rem!important}.mb-xxl-2{margin-bottom:.5rem!important}.mb-xxl-3{margin-bottom:1rem!important}.mb-xxl-4{margin-bottom:1.5rem!important}.mb-xxl-5{margin-bottom:3rem!important}.mb-xxl-auto{margin-bottom:auto!important}.ms-xxl-0{margin-left:0!important}.ms-xxl-1{margin-left:.25rem!important}.ms-xxl-2{margin-left:.5rem!important}.ms-xxl-3{margin-left:1rem!important}.ms-xxl-4{margin-left:1.5rem!important}.ms-xxl-5{margin-left:3rem!important}.ms-xxl-auto{margin-left:auto!important}.p-xxl-0{padding:0!important}.p-xxl-1{padding:.25rem!important}.p-xxl-2{padding:.5rem!important}.p-xxl-3{padding:1rem!important}.p-xxl-4{padding:1.5rem!important}.p-xxl-5{padding:3rem!important}.px-xxl-0{padding-right:0!important;padding-left:0!important}.px-xxl-1{padding-right:.25rem!important;padding-left:.25rem!important}.px-xxl-2{padding-right:.5rem!important;padding-left:.5rem!important}.px-xxl-3{padding-right:1rem!important;padding-left:1rem!important}.px-xxl-4{padding-right:1.5rem!important;padding-left:1.5rem!important}.px-xxl-5{padding-right:3rem!important;padding-left:3rem!important}.py-xxl-0{padding-top:0!important;padding-bottom:0!important}.py-xxl-1{padding-top:.25rem!important;padding-bottom:.25rem!important}.py-xxl-2{padding-top:.5rem!important;padding-bottom:.5rem!important}.py-xxl-3{padding-top:1rem!important;padding-bottom:1rem!important}.py-xxl-4{padding-top:1.5rem!important;padding-bottom:1.5rem!important}.py-xxl-5{padding-top:3rem!important;padding-bottom:3rem!important}.pt-xxl-0{padding-top:0!important}.pt-xxl-1{padding-top:.25rem!important}.pt-xxl-2{padding-top:.5rem!important}.pt-xxl-3{padding-top:1rem!important}.pt-xxl-4{padding-top:1.5rem!important}.pt-xxl-5{padding-top:3rem!important}.pe-xxl-0{padding-right:0!important}.pe-xxl-1{padding-right:.25rem!important}.pe-xxl-2{padding-right:.5rem!important}.pe-xxl-3{padding-right:1rem!important}.pe-xxl-4{padding-right:1.5rem!important}.pe-xxl-5{padding-right:3rem!important}.pb-xxl-0{padding-bottom:0!important}.pb-xxl-1{padding-bottom:.25rem!important}.pb-xxl-2{padding-bottom:.5rem!important}.pb-xxl-3{padding-bottom:1rem!important}.pb-xxl-4{padding-bottom:1.5rem!important}.pb-xxl-5{padding-bottom:3rem!important}.ps-xxl-0{padding-left:0!important}.ps-xxl-1{padding-left:.25rem!important}.ps-xxl-2{padding-left:.5rem!important}.ps-xxl-3{padding-left:1rem!important}.ps-xxl-4{padding-left:1.5rem!important}.ps-xxl-5{padding-left:3rem!important}.gap-xxl-0{gap:0!important}.gap-xxl-1{gap:.25rem!important}.gap-xxl-2{gap:.5rem!important}.gap-xxl-3{gap:1rem!important}.gap-xxl-4{gap:1.5rem!important}.gap-xxl-5{gap:3rem!important}.row-gap-xxl-0{row-gap:0!important}.row-gap-xxl-1{row-gap:.25rem!important}.row-gap-xxl-2{row-gap:.5rem!important}.row-gap-xxl-3{row-gap:1rem!important}.row-gap-xxl-4{row-gap:1.5rem!important}.row-gap-xxl-5{row-gap:3rem!important}.column-gap-xxl-0{-moz-column-gap:0!important;column-gap:0!important}.column-gap-xxl-1{-moz-column-gap:.25rem!important;column-gap:.25rem!important}.column-gap-xxl-2{-moz-column-gap:.5rem!important;column-gap:.5rem!important}.column-gap-xxl-3{-moz-column-gap:1rem!important;column-gap:1rem!important}.column-gap-xxl-4{-moz-column-gap:1.5rem!important;column-gap:1.5rem!important}.column-gap-xxl-5{-moz-column-gap:3rem!important;column-gap:3rem!important}.text-xxl-start{text-align:left!important}.text-xxl-end{text-align:right!important}.text-xxl-center{text-align:center!important}}@media (min-width: 1200px){.fs-1{font-size:2.5rem!important}.fs-2{font-size:2rem!important}.fs-3{font-size:1.75rem!important}.fs-4{font-size:1.5rem!important}}@media print{.d-print-inline{display:inline!important}.d-print-inline-block{display:inline-block!important}.d-print-block{display:block!important}.d-print-grid{display:grid!important}.d-print-inline-grid{display:inline-grid!important}.d-print-table{display:table!important}.d-print-table-row{display:table-row!important}.d-print-table-cell{display:table-cell!important}.d-print-flex{display:flex!important}.d-print-inline-flex{display:inline-flex!important}.d-print-none{display:none!important}} +/*! Bundled license information: + +highlight.js/styles/github.css: + (*! + Theme: GitHub + Description: Light theme as seen on github.com + Author: github.com + Maintainer: @Hirse + Updated: 2021-05-15 + + Outdated base version: https://github.com/primer/github-syntax-light + Current colors taken from GitHub's CSS + *) + +bootstrap/dist/css/bootstrap.css: + (*! + * Bootstrap v5.3.2 (https://getbootstrap.com/) + * Copyright 2011-2023 The Bootstrap Authors + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE) + *) +*/ +/*# sourceMappingURL=index.css.map */ diff --git a/archive/assets/index.js b/archive/assets/index.js new file mode 100644 index 0000000..c3f3777 --- /dev/null +++ b/archive/assets/index.js @@ -0,0 +1,4 @@ +(()=>{var st=Object.create;var Mr=Object.defineProperty;var lt=Object.getOwnPropertyDescriptor;var dt=Object.getOwnPropertyNames;var bt=Object.getPrototypeOf,pt=Object.prototype.hasOwnProperty;var mt=(r,t)=>()=>(t||r((t={exports:{}}).exports,t),t.exports);var ct=(r,t,o,l)=>{if(t&&typeof t=="object"||typeof t=="function")for(let g of dt(t))!pt.call(r,g)&&g!==o&&Mr(r,g,{get:()=>t[g],enumerable:!(l=lt(t,g))||l.enumerable});return r};var gt=(r,t,o)=>(o=r!=null?st(bt(r)):{},ct(t||!r||!r.__esModule?Mr(o,"default",{value:r,enumerable:!0}):o,r));var Zr=mt((io,Yr)=>{function Cr(r){return r instanceof Map?r.clear=r.delete=r.set=function(){throw new Error("map is read-only")}:r instanceof Set&&(r.add=r.clear=r.delete=function(){throw new Error("set is read-only")}),Object.freeze(r),Object.getOwnPropertyNames(r).forEach(t=>{let o=r[t],l=typeof o;(l==="object"||l==="function")&&!Object.isFrozen(o)&&Cr(o)}),r}var sr=class{constructor(t){t.data===void 0&&(t.data={}),this.data=t.data,this.isMatchIgnored=!1}ignoreMatch(){this.isMatchIgnored=!0}};function Lr(r){return r.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""").replace(/'/g,"'")}function C(r,...t){let o=Object.create(null);for(let l in r)o[l]=r[l];return t.forEach(function(l){for(let g in l)o[g]=l[g]}),o}var ft="</span>",Or=r=>!!r.scope,ut=(r,{prefix:t})=>{if(r.startsWith("language:"))return r.replace("language:","language-");if(r.includes(".")){let o=r.split(".");return[`${t}${o.shift()}`,...o.map((l,g)=>`${l}${"_".repeat(g+1)}`)].join(" ")}return`${t}${r}`},ur=class{constructor(t,o){this.buffer="",this.classPrefix=o.classPrefix,t.walk(this)}addText(t){this.buffer+=Lr(t)}openNode(t){if(!Or(t))return;let o=ut(t.scope,{prefix:this.classPrefix});this.span(o)}closeNode(t){Or(t)&&(this.buffer+=ft)}value(){return this.buffer}span(t){this.buffer+=`<span class="${t}">`}},Sr=(r={})=>{let t={children:[]};return Object.assign(t,r),t},vr=class r{constructor(){this.rootNode=Sr(),this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(t){this.top.children.push(t)}openNode(t){let o=Sr({scope:t});this.add(o),this.stack.push(o)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(t){return this.constructor._walk(t,this.rootNode)}static _walk(t,o){return typeof o=="string"?t.addText(o):o.children&&(t.openNode(o),o.children.forEach(l=>this._walk(t,l)),t.closeNode(o)),t}static _collapse(t){typeof t!="string"&&t.children&&(t.children.every(o=>typeof o=="string")?t.children=[t.children.join("")]:t.children.forEach(o=>{r._collapse(o)}))}},hr=class extends vr{constructor(t){super(),this.options=t}addText(t){t!==""&&this.add(t)}startScope(t){this.openNode(t)}endScope(){this.closeNode()}__addSublanguage(t,o){let l=t.root;o&&(l.scope=`language:${o}`),this.add(l)}toHTML(){return new ur(this,this.options).value()}finalize(){return this.closeAllNodes(),!0}};function V(r){return r?typeof r=="string"?r:r.source:null}function Dr(r){return P("(?=",r,")")}function vt(r){return P("(?:",r,")*")}function ht(r){return P("(?:",r,")?")}function P(...r){return r.map(o=>V(o)).join("")}function xt(r){let t=r[r.length-1];return typeof t=="object"&&t.constructor===Object?(r.splice(r.length-1,1),t):{}}function wr(...r){return"("+(xt(r).capture?"":"?:")+r.map(l=>V(l)).join("|")+")"}function Gr(r){return new RegExp(r.toString()+"|").exec("").length-1}function wt(r,t){let o=r&&r.exec(t);return o&&o.index===0}var yt=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./;function yr(r,{joinWith:t}){let o=0;return r.map(l=>{o+=1;let g=o,v=V(l),n="";for(;v.length>0;){let i=yt.exec(v);if(!i){n+=v;break}n+=v.substring(0,i.index),v=v.substring(i.index+i[0].length),i[0][0]==="\\"&&i[1]?n+="\\"+String(Number(i[1])+g):(n+=i[0],i[0]==="("&&o++)}return n}).map(l=>`(${l})`).join(t)}var kt=/\b\B/,Ur="[a-zA-Z]\\w*",kr="[a-zA-Z_]\\w*",Pr="\\b\\d+(\\.\\d+)?",Hr="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",Fr="\\b(0b[01]+)",zt="!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",Et=(r={})=>{let t=/^#![ ]*\//;return r.binary&&(r.begin=P(t,/.*\b/,r.binary,/\b.*/)),C({scope:"meta",begin:t,end:/$/,relevance:0,"on:begin":(o,l)=>{o.index!==0&&l.ignoreMatch()}},r)},J={begin:"\\\\[\\s\\S]",relevance:0},_t={scope:"string",begin:"'",end:"'",illegal:"\\n",contains:[J]},jt={scope:"string",begin:'"',end:'"',illegal:"\\n",contains:[J]},Rt={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},dr=function(r,t,o={}){let l=C({scope:"comment",begin:r,end:t,contains:[]},o);l.contains.push({scope:"doctag",begin:"[ ]*(?=(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):)",end:/(TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):/,excludeBegin:!0,relevance:0});let g=wr("I","a","is","so","us","to","at","if","in","it","on",/[A-Za-z]+['](d|ve|re|ll|t|s|n)/,/[A-Za-z]+[-][a-z]+/,/[A-Za-z][a-z]{2,}/);return l.contains.push({begin:P(/[ ]+/,"(",g,/[.]?[:]?([.][ ]|[ ])/,"){3}")}),l},At=dr("//","$"),Mt=dr("/\\*","\\*/"),Ot=dr("#","$"),St={scope:"number",begin:Pr,relevance:0},Bt={scope:"number",begin:Hr,relevance:0},Nt={scope:"number",begin:Fr,relevance:0},It={begin:/(?=\/[^/\n]*\/)/,contains:[{scope:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[J,{begin:/\[/,end:/\]/,relevance:0,contains:[J]}]}]},Tt={scope:"title",begin:Ur,relevance:0},Ct={scope:"title",begin:kr,relevance:0},Lt={begin:"\\.\\s*"+kr,relevance:0},Dt=function(r){return Object.assign(r,{"on:begin":(t,o)=>{o.data._beginMatch=t[1]},"on:end":(t,o)=>{o.data._beginMatch!==t[1]&&o.ignoreMatch()}})},nr=Object.freeze({__proto__:null,MATCH_NOTHING_RE:kt,IDENT_RE:Ur,UNDERSCORE_IDENT_RE:kr,NUMBER_RE:Pr,C_NUMBER_RE:Hr,BINARY_NUMBER_RE:Fr,RE_STARTERS_RE:zt,SHEBANG:Et,BACKSLASH_ESCAPE:J,APOS_STRING_MODE:_t,QUOTE_STRING_MODE:jt,PHRASAL_WORDS_MODE:Rt,COMMENT:dr,C_LINE_COMMENT_MODE:At,C_BLOCK_COMMENT_MODE:Mt,HASH_COMMENT_MODE:Ot,NUMBER_MODE:St,C_NUMBER_MODE:Bt,BINARY_NUMBER_MODE:Nt,REGEXP_MODE:It,TITLE_MODE:Tt,UNDERSCORE_TITLE_MODE:Ct,METHOD_GUARD:Lt,END_SAME_AS_BEGIN:Dt});function Gt(r,t){r.input[r.index-1]==="."&&t.ignoreMatch()}function Ut(r,t){r.className!==void 0&&(r.scope=r.className,delete r.className)}function Pt(r,t){t&&r.beginKeywords&&(r.begin="\\b("+r.beginKeywords.split(" ").join("|")+")(?!\\.)(?=\\b|\\s)",r.__beforeBegin=Gt,r.keywords=r.keywords||r.beginKeywords,delete r.beginKeywords,r.relevance===void 0&&(r.relevance=0))}function Ht(r,t){Array.isArray(r.illegal)&&(r.illegal=wr(...r.illegal))}function Ft(r,t){if(r.match){if(r.begin||r.end)throw new Error("begin & end are not supported with match");r.begin=r.match,delete r.match}}function $t(r,t){r.relevance===void 0&&(r.relevance=1)}var Xt=(r,t)=>{if(!r.beforeMatch)return;if(r.starts)throw new Error("beforeMatch cannot be used with starts");let o=Object.assign({},r);Object.keys(r).forEach(l=>{delete r[l]}),r.keywords=o.keywords,r.begin=P(o.beforeMatch,Dr(o.begin)),r.starts={relevance:0,contains:[Object.assign(o,{endsParent:!0})]},r.relevance=0,delete o.beforeMatch},Kt=["of","and","for","in","not","or","if","then","parent","list","value"],Wt="keyword";function $r(r,t,o=Wt){let l=Object.create(null);return typeof r=="string"?g(o,r.split(" ")):Array.isArray(r)?g(o,r):Object.keys(r).forEach(function(v){Object.assign(l,$r(r[v],t,v))}),l;function g(v,n){t&&(n=n.map(i=>i.toLowerCase())),n.forEach(function(i){let b=i.split("|");l[b[0]]=[v,Yt(b[0],b[1])]})}}function Yt(r,t){return t?Number(t):Zt(r)?0:1}function Zt(r){return Kt.includes(r.toLowerCase())}var Br={},U=r=>{console.error(r)},Nr=(r,...t)=>{console.log(`WARN: ${r}`,...t)},K=(r,t)=>{Br[`${r}/${t}`]||(console.log(`Deprecated as of ${r}. ${t}`),Br[`${r}/${t}`]=!0)},lr=new Error;function Xr(r,t,{key:o}){let l=0,g=r[o],v={},n={};for(let i=1;i<=t.length;i++)n[i+l]=g[i],v[i+l]=!0,l+=Gr(t[i-1]);r[o]=n,r[o]._emit=v,r[o]._multi=!0}function qt(r){if(Array.isArray(r.begin)){if(r.skip||r.excludeBegin||r.returnBegin)throw U("skip, excludeBegin, returnBegin not compatible with beginScope: {}"),lr;if(typeof r.beginScope!="object"||r.beginScope===null)throw U("beginScope must be object"),lr;Xr(r,r.begin,{key:"beginScope"}),r.begin=yr(r.begin,{joinWith:""})}}function Qt(r){if(Array.isArray(r.end)){if(r.skip||r.excludeEnd||r.returnEnd)throw U("skip, excludeEnd, returnEnd not compatible with endScope: {}"),lr;if(typeof r.endScope!="object"||r.endScope===null)throw U("endScope must be object"),lr;Xr(r,r.end,{key:"endScope"}),r.end=yr(r.end,{joinWith:""})}}function Vt(r){r.scope&&typeof r.scope=="object"&&r.scope!==null&&(r.beginScope=r.scope,delete r.scope)}function Jt(r){Vt(r),typeof r.beginScope=="string"&&(r.beginScope={_wrap:r.beginScope}),typeof r.endScope=="string"&&(r.endScope={_wrap:r.endScope}),qt(r),Qt(r)}function ro(r){function t(n,i){return new RegExp(V(n),"m"+(r.case_insensitive?"i":"")+(r.unicodeRegex?"u":"")+(i?"g":""))}class o{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(i,b){b.position=this.position++,this.matchIndexes[this.matchAt]=b,this.regexes.push([b,i]),this.matchAt+=Gr(i)+1}compile(){this.regexes.length===0&&(this.exec=()=>null);let i=this.regexes.map(b=>b[1]);this.matcherRe=t(yr(i,{joinWith:"|"}),!0),this.lastIndex=0}exec(i){this.matcherRe.lastIndex=this.lastIndex;let b=this.matcherRe.exec(i);if(!b)return null;let w=b.findIndex((L,H)=>H>0&&L!==void 0),x=this.matchIndexes[w];return b.splice(0,w),Object.assign(b,x)}}class l{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(i){if(this.multiRegexes[i])return this.multiRegexes[i];let b=new o;return this.rules.slice(i).forEach(([w,x])=>b.addRule(w,x)),b.compile(),this.multiRegexes[i]=b,b}resumingScanAtSamePosition(){return this.regexIndex!==0}considerAll(){this.regexIndex=0}addRule(i,b){this.rules.push([i,b]),b.type==="begin"&&this.count++}exec(i){let b=this.getMatcher(this.regexIndex);b.lastIndex=this.lastIndex;let w=b.exec(i);if(this.resumingScanAtSamePosition()&&!(w&&w.index===this.lastIndex)){let x=this.getMatcher(0);x.lastIndex=this.lastIndex+1,w=x.exec(i)}return w&&(this.regexIndex+=w.position+1,this.regexIndex===this.count&&this.considerAll()),w}}function g(n){let i=new l;return n.contains.forEach(b=>i.addRule(b.begin,{rule:b,type:"begin"})),n.terminatorEnd&&i.addRule(n.terminatorEnd,{type:"end"}),n.illegal&&i.addRule(n.illegal,{type:"illegal"}),i}function v(n,i){let b=n;if(n.isCompiled)return b;[Ut,Ft,Jt,Xt].forEach(x=>x(n,i)),r.compilerExtensions.forEach(x=>x(n,i)),n.__beforeBegin=null,[Pt,Ht,$t].forEach(x=>x(n,i)),n.isCompiled=!0;let w=null;return typeof n.keywords=="object"&&n.keywords.$pattern&&(n.keywords=Object.assign({},n.keywords),w=n.keywords.$pattern,delete n.keywords.$pattern),w=w||/\w+/,n.keywords&&(n.keywords=$r(n.keywords,r.case_insensitive)),b.keywordPatternRe=t(w,!0),i&&(n.begin||(n.begin=/\B|\b/),b.beginRe=t(b.begin),!n.end&&!n.endsWithParent&&(n.end=/\B|\b/),n.end&&(b.endRe=t(b.end)),b.terminatorEnd=V(b.end)||"",n.endsWithParent&&i.terminatorEnd&&(b.terminatorEnd+=(n.end?"|":"")+i.terminatorEnd)),n.illegal&&(b.illegalRe=t(n.illegal)),n.contains||(n.contains=[]),n.contains=[].concat(...n.contains.map(function(x){return to(x==="self"?n:x)})),n.contains.forEach(function(x){v(x,b)}),n.starts&&v(n.starts,i),b.matcher=g(b),b}if(r.compilerExtensions||(r.compilerExtensions=[]),r.contains&&r.contains.includes("self"))throw new Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return r.classNameAliases=C(r.classNameAliases||{}),v(r)}function Kr(r){return r?r.endsWithParent||Kr(r.starts):!1}function to(r){return r.variants&&!r.cachedVariants&&(r.cachedVariants=r.variants.map(function(t){return C(r,{variants:null},t)})),r.cachedVariants?r.cachedVariants:Kr(r)?C(r,{starts:r.starts?C(r.starts):null}):Object.isFrozen(r)?C(r):r}var oo="11.8.0",xr=class extends Error{constructor(t,o){super(t),this.name="HTMLInjectionError",this.html=o}},fr=Lr,Ir=C,Tr=Symbol("nomatch"),ao=7,Wr=function(r){let t=Object.create(null),o=Object.create(null),l=[],g=!0,v="Could not find the language '{}', did you forget to load/include a language module?",n={disableAutodetect:!0,name:"Plain text",contains:[]},i={ignoreUnescapedHTML:!1,throwUnescapedHTML:!1,noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",cssSelector:"pre code",languages:null,__emitter:hr};function b(a){return i.noHighlightRe.test(a)}function w(a){let d=a.className+" ";d+=a.parentNode?a.parentNode.className:"";let c=i.languageDetectRe.exec(d);if(c){let u=j(c[1]);return u||(Nr(v.replace("{}",c[1])),Nr("Falling back to no-highlight mode for this block.",a)),u?c[1]:"no-highlight"}return d.split(/\s+/).find(u=>b(u)||j(u))}function x(a,d,c){let u="",y="";typeof d=="object"?(u=a,c=d.ignoreIllegals,y=d.language):(K("10.7.0","highlight(lang, code, ...args) has been deprecated."),K("10.7.0",`Please use highlight(code, options) instead. +https://github.com/highlightjs/highlight.js/issues/2277`),y=a,u=d),c===void 0&&(c=!0);let R={code:u,language:y};M("before:highlight",R);let T=R.result?R.result:L(R.language,R.code,c);return T.code=R.code,M("after:highlight",T),T}function L(a,d,c,u){let y=Object.create(null);function R(e,s){return e.keywords[s]}function T(){if(!p.keywords){k.addText(h);return}let e=0;p.keywordPatternRe.lastIndex=0;let s=p.keywordPatternRe.exec(h),m="";for(;s;){m+=h.substring(e,s.index);let f=S.case_insensitive?s[0].toLowerCase():s[0],z=R(p,f);if(z){let[B,it]=z;if(k.addText(m),m="",y[f]=(y[f]||0)+1,y[f]<=ao&&(ir+=it),B.startsWith("_"))m+=s[0];else{let nt=S.classNameAliases[B]||B;O(s[0],nt)}}else m+=s[0];e=p.keywordPatternRe.lastIndex,s=p.keywordPatternRe.exec(h)}m+=h.substring(e),k.addText(m)}function ar(){if(h==="")return;let e=null;if(typeof p.subLanguage=="string"){if(!t[p.subLanguage]){k.addText(h);return}e=L(p.subLanguage,h,!0,Ar[p.subLanguage]),Ar[p.subLanguage]=e._top}else e=N(h,p.subLanguage.length?p.subLanguage:null);p.relevance>0&&(ir+=e.relevance),k.__addSublanguage(e._emitter,e.language)}function _(){p.subLanguage!=null?ar():T(),h=""}function O(e,s){e!==""&&(k.startScope(s),k.addText(e),k.endScope())}function Er(e,s){let m=1,f=s.length-1;for(;m<=f;){if(!e._emit[m]){m++;continue}let z=S.classNameAliases[e[m]]||e[m],B=s[m];z?O(B,z):(h=B,T(),h=""),m++}}function _r(e,s){return e.scope&&typeof e.scope=="string"&&k.openNode(S.classNameAliases[e.scope]||e.scope),e.beginScope&&(e.beginScope._wrap?(O(h,S.classNameAliases[e.beginScope._wrap]||e.beginScope._wrap),h=""):e.beginScope._multi&&(Er(e.beginScope,s),h="")),p=Object.create(e,{parent:{value:p}}),p}function jr(e,s,m){let f=wt(e.endRe,m);if(f){if(e["on:end"]){let z=new sr(e);e["on:end"](s,z),z.isMatchIgnored&&(f=!1)}if(f){for(;e.endsParent&&e.parent;)e=e.parent;return e}}if(e.endsWithParent)return jr(e.parent,s,m)}function rt(e){return p.matcher.regexIndex===0?(h+=e[0],1):(gr=!0,0)}function tt(e){let s=e[0],m=e.rule,f=new sr(m),z=[m.__beforeBegin,m["on:begin"]];for(let B of z)if(B&&(B(e,f),f.isMatchIgnored))return rt(s);return m.skip?h+=s:(m.excludeBegin&&(h+=s),_(),!m.returnBegin&&!m.excludeBegin&&(h=s)),_r(m,e),m.returnBegin?0:s.length}function ot(e){let s=e[0],m=d.substring(e.index),f=jr(p,e,m);if(!f)return Tr;let z=p;p.endScope&&p.endScope._wrap?(_(),O(s,p.endScope._wrap)):p.endScope&&p.endScope._multi?(_(),Er(p.endScope,e)):z.skip?h+=s:(z.returnEnd||z.excludeEnd||(h+=s),_(),z.excludeEnd&&(h=s));do p.scope&&k.closeNode(),!p.skip&&!p.subLanguage&&(ir+=p.relevance),p=p.parent;while(p!==f.parent);return f.starts&&_r(f.starts,e),z.returnEnd?0:s.length}function at(){let e=[];for(let s=p;s!==S;s=s.parent)s.scope&&e.unshift(s.scope);e.forEach(s=>k.openNode(s))}let er={};function Rr(e,s){let m=s&&s[0];if(h+=e,m==null)return _(),0;if(er.type==="begin"&&s.type==="end"&&er.index===s.index&&m===""){if(h+=d.slice(s.index,s.index+1),!g){let f=new Error(`0 width match regex (${a})`);throw f.languageName=a,f.badRule=er.rule,f}return 1}if(er=s,s.type==="begin")return tt(s);if(s.type==="illegal"&&!c){let f=new Error('Illegal lexeme "'+m+'" for mode "'+(p.scope||"<unnamed>")+'"');throw f.mode=p,f}else if(s.type==="end"){let f=ot(s);if(f!==Tr)return f}if(s.type==="illegal"&&m==="")return 1;if(cr>1e5&&cr>s.index*3)throw new Error("potential infinite loop, way more iterations than matches");return h+=m,m.length}let S=j(a);if(!S)throw U(v.replace("{}",a)),new Error('Unknown language: "'+a+'"');let et=ro(S),mr="",p=u||et,Ar={},k=new i.__emitter(i);at();let h="",ir=0,G=0,cr=0,gr=!1;try{if(S.__emitTokens)S.__emitTokens(d,k);else{for(p.matcher.considerAll();;){cr++,gr?gr=!1:p.matcher.considerAll(),p.matcher.lastIndex=G;let e=p.matcher.exec(d);if(!e)break;let s=d.substring(G,e.index),m=Rr(s,e);G=e.index+m}Rr(d.substring(G))}return k.finalize(),mr=k.toHTML(),{language:a,value:mr,relevance:ir,illegal:!1,_emitter:k,_top:p}}catch(e){if(e.message&&e.message.includes("Illegal"))return{language:a,value:fr(d),illegal:!0,relevance:0,_illegalBy:{message:e.message,index:G,context:d.slice(G-100,G+100),mode:e.mode,resultSoFar:mr},_emitter:k};if(g)return{language:a,value:fr(d),illegal:!1,relevance:0,errorRaised:e,_emitter:k,_top:p};throw e}}function H(a){let d={value:fr(a),illegal:!1,relevance:0,_top:n,_emitter:new i.__emitter(i)};return d._emitter.addText(a),d}function N(a,d){d=d||i.languages||Object.keys(t);let c=H(a),u=d.filter(j).filter(Q).map(_=>L(_,a,!1));u.unshift(c);let y=u.sort((_,O)=>{if(_.relevance!==O.relevance)return O.relevance-_.relevance;if(_.language&&O.language){if(j(_.language).supersetOf===O.language)return 1;if(j(O.language).supersetOf===_.language)return-1}return 0}),[R,T]=y,ar=R;return ar.secondBest=T,ar}function F(a,d,c){let u=d&&o[d]||c;a.classList.add("hljs"),a.classList.add(`language-${u}`)}function D(a){let d=null,c=w(a);if(b(c))return;if(M("before:highlightElement",{el:a,language:c}),a.children.length>0&&(i.ignoreUnescapedHTML||(console.warn("One of your code blocks includes unescaped HTML. This is a potentially serious security risk."),console.warn("https://github.com/highlightjs/highlight.js/wiki/security"),console.warn("The element with unescaped HTML:"),console.warn(a)),i.throwUnescapedHTML))throw new xr("One of your code blocks includes unescaped HTML.",a.innerHTML);d=a;let u=d.textContent,y=c?x(u,{language:c,ignoreIllegals:!0}):N(u);a.innerHTML=y.value,F(a,c,y.language),a.result={language:y.language,re:y.relevance,relevance:y.relevance},y.secondBest&&(a.secondBest={language:y.secondBest.language,relevance:y.secondBest.relevance}),M("after:highlightElement",{el:a,result:y,text:u})}function rr(a){i=Ir(i,a)}let Y=()=>{I(),K("10.6.0","initHighlighting() deprecated. Use highlightAll() now.")};function zr(){I(),K("10.6.0","initHighlightingOnLoad() deprecated. Use highlightAll() now.")}let $=!1;function I(){if(document.readyState==="loading"){$=!0;return}document.querySelectorAll(i.cssSelector).forEach(D)}function Z(){$&&I()}typeof window<"u"&&window.addEventListener&&window.addEventListener("DOMContentLoaded",Z,!1);function tr(a,d){let c=null;try{c=d(r)}catch(u){if(U("Language definition for '{}' could not be registered.".replace("{}",a)),g)U(u);else throw u;c=n}c.name||(c.name=a),t[a]=c,c.rawDefinition=d.bind(null,r),c.aliases&&q(c.aliases,{languageName:a})}function X(a){delete t[a];for(let d of Object.keys(o))o[d]===a&&delete o[d]}function or(){return Object.keys(t)}function j(a){return a=(a||"").toLowerCase(),t[a]||t[o[a]]}function q(a,{languageName:d}){typeof a=="string"&&(a=[a]),a.forEach(c=>{o[c.toLowerCase()]=d})}function Q(a){let d=j(a);return d&&!d.disableAutodetect}function pr(a){a["before:highlightBlock"]&&!a["before:highlightElement"]&&(a["before:highlightElement"]=d=>{a["before:highlightBlock"](Object.assign({block:d.el},d))}),a["after:highlightBlock"]&&!a["after:highlightElement"]&&(a["after:highlightElement"]=d=>{a["after:highlightBlock"](Object.assign({block:d.el},d))})}function A(a){pr(a),l.push(a)}function E(a){let d=l.indexOf(a);d!==-1&&l.splice(d,1)}function M(a,d){let c=a;l.forEach(function(u){u[c]&&u[c](d)})}function Jr(a){return K("10.7.0","highlightBlock will be removed entirely in v12.0"),K("10.7.0","Please use highlightElement now."),D(a)}Object.assign(r,{highlight:x,highlightAuto:N,highlightAll:I,highlightElement:D,highlightBlock:Jr,configure:rr,initHighlighting:Y,initHighlightingOnLoad:zr,registerLanguage:tr,unregisterLanguage:X,listLanguages:or,getLanguage:j,registerAliases:q,autoDetection:Q,inherit:Ir,addPlugin:A,removePlugin:E}),r.debugMode=function(){g=!1},r.safeMode=function(){g=!0},r.versionString=oo,r.regex={concat:P,lookahead:Dr,either:wr,optional:ht,anyNumberOfTimes:vt};for(let a in nr)typeof nr[a]=="object"&&Cr(nr[a]);return Object.assign(r,nr),r},W=Wr({});W.newInstance=()=>Wr({});Yr.exports=W;W.HighlightJS=W;W.default=W});var qr=gt(Zr(),1);var br=qr.default;function Qr(r){let t=r.regex,o=/(?![A-Za-z0-9])(?![$])/,l=t.concat(/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/,o),g=t.concat(/(\\?[A-Z][a-z0-9_\x7f-\xff]+|\\?[A-Z]+(?=[A-Z][a-z0-9_\x7f-\xff])){1,}/,o),v={scope:"variable",match:"\\$+"+l},n={scope:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?=/},{begin:/<\?/,relevance:.1},{begin:/\?>/}]},i={scope:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},b=r.inherit(r.APOS_STRING_MODE,{illegal:null}),w=r.inherit(r.QUOTE_STRING_MODE,{illegal:null,contains:r.QUOTE_STRING_MODE.contains.concat(i)}),x={begin:/<<<[ \t]*(?:(\w+)|"(\w+)")\n/,end:/[ \t]*(\w+)\b/,contains:r.QUOTE_STRING_MODE.contains.concat(i),"on:begin":(A,E)=>{E.data._beginMatch=A[1]||A[2]},"on:end":(A,E)=>{E.data._beginMatch!==A[1]&&E.ignoreMatch()}},L=r.END_SAME_AS_BEGIN({begin:/<<<[ \t]*'(\w+)'\n/,end:/[ \t]*(\w+)\b/}),H=`[ +]`,N={scope:"string",variants:[w,b,x,L]},F={scope:"number",variants:[{begin:"\\b0[bB][01]+(?:_[01]+)*\\b"},{begin:"\\b0[oO][0-7]+(?:_[0-7]+)*\\b"},{begin:"\\b0[xX][\\da-fA-F]+(?:_[\\da-fA-F]+)*\\b"},{begin:"(?:\\b\\d+(?:_\\d+)*(\\.(?:\\d+(?:_\\d+)*))?|\\B\\.\\d+)(?:[eE][+-]?\\d+)?"}],relevance:0},D=["false","null","true"],rr=["__CLASS__","__DIR__","__FILE__","__FUNCTION__","__COMPILER_HALT_OFFSET__","__LINE__","__METHOD__","__NAMESPACE__","__TRAIT__","die","echo","exit","include","include_once","print","require","require_once","array","abstract","and","as","binary","bool","boolean","break","callable","case","catch","class","clone","const","continue","declare","default","do","double","else","elseif","empty","enddeclare","endfor","endforeach","endif","endswitch","endwhile","enum","eval","extends","final","finally","float","for","foreach","from","global","goto","if","implements","instanceof","insteadof","int","integer","interface","isset","iterable","list","match|0","mixed","new","never","object","or","private","protected","public","readonly","real","return","string","switch","throw","trait","try","unset","use","var","void","while","xor","yield"],Y=["Error|0","AppendIterator","ArgumentCountError","ArithmeticError","ArrayIterator","ArrayObject","AssertionError","BadFunctionCallException","BadMethodCallException","CachingIterator","CallbackFilterIterator","CompileError","Countable","DirectoryIterator","DivisionByZeroError","DomainException","EmptyIterator","ErrorException","Exception","FilesystemIterator","FilterIterator","GlobIterator","InfiniteIterator","InvalidArgumentException","IteratorIterator","LengthException","LimitIterator","LogicException","MultipleIterator","NoRewindIterator","OutOfBoundsException","OutOfRangeException","OuterIterator","OverflowException","ParentIterator","ParseError","RangeException","RecursiveArrayIterator","RecursiveCachingIterator","RecursiveCallbackFilterIterator","RecursiveDirectoryIterator","RecursiveFilterIterator","RecursiveIterator","RecursiveIteratorIterator","RecursiveRegexIterator","RecursiveTreeIterator","RegexIterator","RuntimeException","SeekableIterator","SplDoublyLinkedList","SplFileInfo","SplFileObject","SplFixedArray","SplHeap","SplMaxHeap","SplMinHeap","SplObjectStorage","SplObserver","SplPriorityQueue","SplQueue","SplStack","SplSubject","SplTempFileObject","TypeError","UnderflowException","UnexpectedValueException","UnhandledMatchError","ArrayAccess","BackedEnum","Closure","Fiber","Generator","Iterator","IteratorAggregate","Serializable","Stringable","Throwable","Traversable","UnitEnum","WeakReference","WeakMap","Directory","__PHP_Incomplete_Class","parent","php_user_filter","self","static","stdClass"],$={keyword:rr,literal:(A=>{let E=[];return A.forEach(M=>{E.push(M),M.toLowerCase()===M?E.push(M.toUpperCase()):E.push(M.toLowerCase())}),E})(D),built_in:Y},I=A=>A.map(E=>E.replace(/\|\d+$/,"")),Z={variants:[{match:[/new/,t.concat(H,"+"),t.concat("(?!",I(Y).join("\\b|"),"\\b)"),g],scope:{1:"keyword",4:"title.class"}}]},tr=t.concat(l,"\\b(?!\\()"),X={variants:[{match:[t.concat(/::/,t.lookahead(/(?!class\b)/)),tr],scope:{2:"variable.constant"}},{match:[/::/,/class/],scope:{2:"variable.language"}},{match:[g,t.concat(/::/,t.lookahead(/(?!class\b)/)),tr],scope:{1:"title.class",3:"variable.constant"}},{match:[g,t.concat("::",t.lookahead(/(?!class\b)/))],scope:{1:"title.class"}},{match:[g,/::/,/class/],scope:{1:"title.class",3:"variable.language"}}]},or={scope:"attr",match:t.concat(l,t.lookahead(":"),t.lookahead(/(?!::)/))},j={relevance:0,begin:/\(/,end:/\)/,keywords:$,contains:[or,v,X,r.C_BLOCK_COMMENT_MODE,N,F,Z]},q={relevance:0,match:[/\b/,t.concat("(?!fn\\b|function\\b|",I(rr).join("\\b|"),"|",I(Y).join("\\b|"),"\\b)"),l,t.concat(H,"*"),t.lookahead(/(?=\()/)],scope:{3:"title.function.invoke"},contains:[j]};j.contains.push(q);let Q=[or,X,r.C_BLOCK_COMMENT_MODE,N,F,Z],pr={begin:t.concat(/#\[\s*/,g),beginScope:"meta",end:/]/,endScope:"meta",keywords:{literal:D,keyword:["new","array"]},contains:[{begin:/\[/,end:/]/,keywords:{literal:D,keyword:["new","array"]},contains:["self",...Q]},...Q,{scope:"meta",match:g}]};return{case_insensitive:!1,keywords:$,contains:[pr,r.HASH_COMMENT_MODE,r.COMMENT("//","$"),r.COMMENT("/\\*","\\*/",{contains:[{scope:"doctag",match:"@[A-Za-z]+"}]}),{match:/__halt_compiler\(\);/,keywords:"__halt_compiler",starts:{scope:"comment",end:r.MATCH_NOTHING_RE,contains:[{match:/\?>/,scope:"meta",endsParent:!0}]}},n,{scope:"variable.language",match:/\$this\b/},v,q,X,{match:[/const/,/\s/,l],scope:{1:"keyword",3:"variable.constant"}},Z,{scope:"function",relevance:0,beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[{beginKeywords:"use"},r.UNDERSCORE_TITLE_MODE,{begin:"=>",endsParent:!0},{scope:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:$,contains:["self",v,X,r.C_BLOCK_COMMENT_MODE,N,F]}]},{scope:"class",variants:[{beginKeywords:"enum",illegal:/[($"]/},{beginKeywords:"class interface trait",illegal:/[:($"]/}],relevance:0,end:/\{/,excludeEnd:!0,contains:[{beginKeywords:"extends implements"},r.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",relevance:0,end:";",illegal:/[.']/,contains:[r.inherit(r.UNDERSCORE_TITLE_MODE,{scope:"title.class"})]},{beginKeywords:"use",relevance:0,end:";",contains:[{match:/\b(as|const|function)\b/,scope:"keyword"},r.UNDERSCORE_TITLE_MODE]},N,F]}}function Vr(r){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}document.addEventListener("DOMContentLoaded",()=>{br.registerLanguage("php",Qr),br.registerLanguage("plaintext",Vr),br.highlightAll()});console.log("#Hooray!Albatross!");})(); +//# sourceMappingURL=index.js.map diff --git a/archive/assets/loading.js b/archive/assets/loading.js new file mode 100644 index 0000000..109743d --- /dev/null +++ b/archive/assets/loading.js @@ -0,0 +1,2 @@ +(()=>{document.addEventListener("DOMContentLoaded",()=>{let m=document.getElementsByClassName("js-phper-token")[0],a=document.getElementsByClassName("js-aggregated-execution-status")[0],c=document.getElementsByClassName("js-aggregated-execution-status-loading-indicator")[0],u=a.dataset.answerId,s=t=>new Map(Array.from(document.getElementsByClassName(t)??[]).map(n=>[parseInt(n.dataset.testcaseExecutionId),n])),g=s("js-testcase-execution-status"),E=s("js-testcase-execution-status-loading-indicator"),x=s("js-testcase-execution-stdout"),p=s("js-testcase-execution-stderr");if(!c)return;let C=`/phperkaigi/2024/golf/api/answers/${u}/statuses`,d;d=setInterval(()=>{fetch(C).then(t=>t.json()).then(({aggregated_status:t,testcase_executions:n,phper_token:i})=>{i&&(m.innerHTML=`<div class="alert alert-success">\u30D0\u30FC\u30C7\u30A3\u30FC\uFF01 ${i}</div>`);for(let e of n){let r=g.get(e.id),l=E.get(e.id),f=x.get(e.id),I=p.get(e.id),{status:o,stdout:j,stderr:v}=e;o.label!==r.textContent&&(r.textContent=o.label,f.textContent=j,I.textContent=v,l&&!o.show_loading_indicator&&l.remove())}t.label!==a.textContent&&(a.textContent=t.label,t.show_loading_indicator||(c.remove(),clearInterval(d)))})},5*1e3)});})(); +//# sourceMappingURL=loading.js.map diff --git a/archive/index.html b/archive/index.html new file mode 100644 index 0000000..f12b721 --- /dev/null +++ b/archive/index.html @@ -0,0 +1,38 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題一覧 | Albatross.PHP</title> + <link rel="stylesheet" href="assets/index.css"> + <link rel="icon" type="image/svg+xml" href="assets/favicon.svg"> + <script type="module" src="assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題一覧</h1> + <a class="card mb-3 text-dark text-decoration-none" href="q/fizzbuzz/index.html"> + <div class="card-body"> + <h5 class="card-title">問題 #1: FizzBuzz</span> + </div> + </a> + <a class="card mb-3 text-dark text-decoration-none" href="q/base32/index.html"> + <div class="card-body"> + <h5 class="card-title">問題 #2: Base32</span> + </div> + </a> + <a class="card mb-3 text-dark text-decoration-none" href="q/brainf-ck/index.html"> + <div class="card-body"> + <h5 class="card-title">問題 #3: Brainf*ck</span> + </div> + </a> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/1/index.html b/archive/q/base32/a/1/index.html new file mode 100644 index 0000000..6520299 --- /dev/null +++ b/archive/q/base32/a/1/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #1 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #1</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#1</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #1</h2> + <p> + nsfisis が 2024-03-06 03:57:04 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="3">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="3">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="3">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="3"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="4">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="4">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="4"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="5">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="5">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="5"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="57">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="57">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="57"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/10/index.html b/archive/q/base32/a/10/index.html new file mode 100644 index 0000000..d56d1ed --- /dev/null +++ b/archive/q/base32/a/10/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #10 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #10</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#10</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #10</h2> + <p> + tadsan が 2024-03-06 21:45:09 に投稿 + </p> + <h2>コード</h2> + <p> + 292 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=trim($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',decbin(ord($l[$i]).''));echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="26">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="54">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="54">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="54"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="55">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="55">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="55"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="56">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="56">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="56"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="66">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="66">MEQGEIDD +4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="66"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/100/index.html b/archive/q/base32/a/100/index.html new file mode 100644 index 0000000..34f1590 --- /dev/null +++ b/archive/q/base32/a/100/index.html @@ -0,0 +1,130 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #100 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #100</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#100</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #100</h2> + <p> + basi が 2024-03-09 01:07:54 に投稿 + </p> + <h2>コード</h2> + <p> + 490 byte + </p> + <pre><code class="hljs language-php">const T = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while($l=fgets(STDIN)){
+ $b='';
+ foreach(str_split(rtrim($l))as$c)
+ $b.=sprintf('%08b',ord($c));
+ $r='';
+ foreach(str_split($b,5)as$c)
+ $r.=T[bindec(str_pad($c,5,'0'))];
+ $r.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});
+ echo $r,'
+ ';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="360">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="801">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="801">NBXWOZI= + OBUXS3Y= + MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="801"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="802">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="802">4OAYNY4BRPRYFCXDQGX6HAMS + 4OA2VY4BRTRYFCPDQGDOHAMX + 4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="802"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="803">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="803">GEZDGNBVGY3Q==== + GEZA==== + GEZDGNBVGY3TQOJQ + GEZDGNBVGY3TQ=== + GEZDG=== + GEZDGNBV + GEZDGNBVGY3TQOI= + GEZDGNA= + GE====== + GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="803"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="804">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="804">MEQGEIDD + EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="804"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/101/index.html b/archive/q/base32/a/101/index.html new file mode 100644 index 0000000..8fd907e --- /dev/null +++ b/archive/q/base32/a/101/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #101 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #101</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#101</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #101</h2> + <p> + hanhan1978 が 2024-03-09 01:16:53 に投稿 + </p> + <h2>コード</h2> + <p> + 378 byte + </p> + <pre><code class="hljs language-php">$T=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while($l=fgets(STDIN)){
+$l=rtrim($l);
+$z='';
+for($i = 0; $i < strlen($l); $i++){
+ $z .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+}
+$b3 = '';
+foreach(str_split($z,5) as $b){
+ $b3 .=$T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+}
+echo $b3 .=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="363">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="807">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="807">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="807"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="808">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="808">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="808"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="809">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="809">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="809"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="810">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="810">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="810"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/102/index.html b/archive/q/base32/a/102/index.html new file mode 100644 index 0000000..d41df9b --- /dev/null +++ b/archive/q/base32/a/102/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #102 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #102</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#102</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #102</h2> + <p> + basi が 2024-03-09 01:20:30 に投稿 + </p> + <h2>コード</h2> + <p> + 514 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="365">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="812">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="812">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="812"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="813">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="813">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="813"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="814">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="814">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="814"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="815">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="815">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="815"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/103/index.html b/archive/q/base32/a/103/index.html new file mode 100644 index 0000000..27a9c55 --- /dev/null +++ b/archive/q/base32/a/103/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #103 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #103</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#103</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #103</h2> + <p> + basi が 2024-03-09 01:21:40 に投稿 + </p> + <h2>コード</h2> + <p> + 510 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="366">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="816">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="816">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="816"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="817">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="817">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="817"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="818">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="818">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="818"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="819">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="819">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="819"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/104/index.html b/archive/q/base32/a/104/index.html new file mode 100644 index 0000000..a52b2ba --- /dev/null +++ b/archive/q/base32/a/104/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #104 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #104</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#104</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #104</h2> + <p> + hanhan1978 が 2024-03-09 01:21:58 に投稿 + </p> + <h2>コード</h2> + <p> + 370 byte + </p> + <pre><code class="hljs language-php">$T=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while($l=fgets(STDIN)){
+$l=rtrim($l);
+$z='';
+for($i = 0; $i < strlen($l); $i++){
+ $z .= str_pad(base_convert(ord($l[$i]), 10, 2), 8, '0', 0);
+}
+$b3 = '';
+foreach(str_split($z,5) as $b){
+ $b3 .=$T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+}
+echo $b3 .=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="367">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="820">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="820">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="820"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="821">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="821">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="821"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="822">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="822">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="822"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="823">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="823">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="823"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/105/index.html b/archive/q/base32/a/105/index.html new file mode 100644 index 0000000..604dfd7 --- /dev/null +++ b/archive/q/base32/a/105/index.html @@ -0,0 +1,121 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #105 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #105</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#105</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #105</h2> + <p> + hanhan1978 が 2024-03-09 01:24:12 に投稿 + </p> + <h2>コード</h2> + <p> + 349 byte + </p> + <pre><code class="hljs language-php">$T=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while($l=fgets(STDIN)){
+$l=rtrim($l);$z='';
+for($i = 0; $i < strlen($l); $i++){$z .=str_pad(base_convert(ord($l[$i]),10,2),8,'0',0);}
+$b3='';
+foreach(str_split($z,5) as $b){$b3 .=$T[base_convert(str_pad($b,5,'0'),2,10)];}
+echo $b3 .=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="368">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="824">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="824">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="824"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="825">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="825">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="825"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="826">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="826">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="826"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="827">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="827">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="827"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/106/index.html b/archive/q/base32/a/106/index.html new file mode 100644 index 0000000..1e213ea --- /dev/null +++ b/archive/q/base32/a/106/index.html @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #106 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #106</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#106</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #106</h2> + <p> + hanhan1978 が 2024-03-09 01:26:26 に投稿 + </p> + <h2>コード</h2> + <p> + 340 byte + </p> + <pre><code class="hljs language-php">$T=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while($l=fgets(STDIN)){$l=rtrim($l);$z='';for($i=0;$i<strlen($l);$i++){$z .=str_pad(base_convert(ord($l[$i]),10,2),8,'0',0);}
+$b3='';foreach(str_split($z,5) as $b){$b3 .=$T[base_convert(str_pad($b,5,'0'),2,10)];}
+echo $b3 .=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="369">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="828">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="828">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="828"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="829">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="829">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="829"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="830">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="830">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="830"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="831">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="831">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="831"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/107/index.html b/archive/q/base32/a/107/index.html new file mode 100644 index 0000000..c20b732 --- /dev/null +++ b/archive/q/base32/a/107/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #107 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #107</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#107</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #107</h2> + <p> + basi が 2024-03-09 01:31:06 に投稿 + </p> + <h2>コード</h2> + <p> + 405 byte + </p> + <pre><code class="hljs language-php">define('T',join(range('A','Z')).'234567');while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=T[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="371">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="833">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="833">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="833"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="834">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="834">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="834"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="835">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="835">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="835"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="836">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="836">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="836"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/108/index.html b/archive/q/base32/a/108/index.html new file mode 100644 index 0000000..e373478 --- /dev/null +++ b/archive/q/base32/a/108/index.html @@ -0,0 +1,116 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #108 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #108</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#108</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #108</h2> + <p> + hanhan1978 が 2024-03-09 01:31:17 に投稿 + </p> + <h2>コード</h2> + <p> + 329 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$z='';for($i=0;$i<strlen($l);$i++){$z.=str_pad(base_convert(ord($l[$i]),10,2),8,'0',0);}
+$b3='';foreach(str_split($z,5) as $b){$b3.=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')[base_convert(str_pad($b,5,'0'),2,10)];}
+echo $b3.=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="372">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="837">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="837">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="837"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="838">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="838">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="838"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="839">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="839">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="839"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="840">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="840">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="840"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/109/index.html b/archive/q/base32/a/109/index.html new file mode 100644 index 0000000..40f764c --- /dev/null +++ b/archive/q/base32/a/109/index.html @@ -0,0 +1,146 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #109 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #109</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#109</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #109</h2> + <p> + hanhan1978 が 2024-03-09 01:34:27 に投稿 + </p> + <h2>コード</h2> + <p> + 323 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$z='';for(;$i<strlen($l);$i++){$z.=str_pad(base_convert(ord($l[$i]),10,2),8,'0',0);}$b3='';foreach(str_split($z,5) as $b){$b3.=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567')[base_convert(str_pad($b,5,'0'),2,10)];}echo $b3.=str_repeat('=',[8=>6,16=>4,24=>3,32=>1][strlen($z)%40]??0),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="375">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="843">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="843"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 +NBXWOZI= + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="843"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="844">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="844"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 +4OAYNY4BRPRYFCXDQGX6HAMS + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="844"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="845">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="845"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 +GEZDGNBVGY3Q==== + +HA4TA=== + + + + + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="845"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="846">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="846"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 +MEQGEIDD +4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="846"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/11/index.html b/archive/q/base32/a/11/index.html new file mode 100644 index 0000000..c6db329 --- /dev/null +++ b/archive/q/base32/a/11/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #11 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #11</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#11</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #11</h2> + <p> + nsfisis が 2024-03-07 15:26:45 に投稿 + </p> + <h2>コード</h2> + <p> + 231 byte + </p> + <pre><code class="hljs language-php">while($l=unpack('C*',chop(fgets(STDIN)))){$b=$r='';for($i=1;$k=$l[$i++]??0;)$b.=sprintf('%08b',$k);foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,strlen($r)/8*8,'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="33">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="73">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="73">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="73"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="74">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="74">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="74"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="75">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="75">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="75"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="76">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="76">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="76"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/110/index.html b/archive/q/base32/a/110/index.html new file mode 100644 index 0000000..36afa2e --- /dev/null +++ b/archive/q/base32/a/110/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #110 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #110</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#110</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #110</h2> + <p> + basi が 2024-03-09 01:37:23 に投稿 + </p> + <h2>コード</h2> + <p> + 349 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);}$p='';foreach(str_split($b,5)as$z){$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];}$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="377">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="848">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="848">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="848"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="849">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="849">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="849"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="850">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="850">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="850"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="851">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="851">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="851"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/111/index.html b/archive/q/base32/a/111/index.html new file mode 100644 index 0000000..ef869a6 --- /dev/null +++ b/archive/q/base32/a/111/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #111 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #111</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#111</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #111</h2> + <p> + basi が 2024-03-09 01:41:17 に投稿 + </p> + <h2>コード</h2> + <p> + 344 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$l=trim($l);$b='';for($i=0;$i<strlen($l);$i++)$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);$p='';foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="379">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="855">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="855">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="855"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="856">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="856">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="856"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="857">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="857">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="857"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="858">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="858">MEQGEIDD +4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="858"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/112/index.html b/archive/q/base32/a/112/index.html new file mode 100644 index 0000000..7471acf --- /dev/null +++ b/archive/q/base32/a/112/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #112 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #112</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#112</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #112</h2> + <p> + basi が 2024-03-09 01:48:59 に投稿 + </p> + <h2>コード</h2> + <p> + 315 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++)$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);$p='';foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=str_repeat('=',max(0,(8-strlen($b)%8)%8*3/8));echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="383">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="862">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="862">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="862"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="863">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="863">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="863"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="864">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="864">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="864"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="865">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="865">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="865"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/113/index.html b/archive/q/base32/a/113/index.html new file mode 100644 index 0000000..6e12490 --- /dev/null +++ b/archive/q/base32/a/113/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #113 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #113</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#113</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #113</h2> + <p> + basi が 2024-03-09 01:51:04 に投稿 + </p> + <h2>コード</h2> + <p> + 345 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++)$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);$p='';foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="385">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="867">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="867">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="867"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="868">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="868">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="868"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="869">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="869">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="869"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="870">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="870">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="870"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/114/index.html b/archive/q/base32/a/114/index.html new file mode 100644 index 0000000..6014d6e --- /dev/null +++ b/archive/q/base32/a/114/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #114 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #114</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#114</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #114</h2> + <p> + basi が 2024-03-09 01:53:01 に投稿 + </p> + <h2>コード</h2> + <p> + 331 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$l=rtrim($l);$b='';foreach(str_split($l)as$c)$b.=str_pad(base_convert(ord($c),10,2),8,'0',STR_PAD_LEFT);$p='';foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="386">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="871">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="871">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="871"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="872">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="872">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="872"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="873">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="873">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="873"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="874">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="874">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="874"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/115/index.html b/archive/q/base32/a/115/index.html new file mode 100644 index 0000000..48f16ba --- /dev/null +++ b/archive/q/base32/a/115/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #115 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #115</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#115</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #115</h2> + <p> + basi が 2024-03-09 02:04:41 に投稿 + </p> + <h2>コード</h2> + <p> + 325 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$b='';foreach(str_split(rtrim($l))as$c)$b.=str_pad(base_convert(ord($c),10,2),8,'0',STR_PAD_LEFT);$p='';foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="390">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="878">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="878">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="878"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="879">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="879">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="879"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="880">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="880">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="880"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="881">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="881">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="881"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/116/index.html b/archive/q/base32/a/116/index.html new file mode 100644 index 0000000..7e2f7a4 --- /dev/null +++ b/archive/q/base32/a/116/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #116 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #116</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#116</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #116</h2> + <p> + basi が 2024-03-09 02:09:43 に投稿 + </p> + <h2>コード</h2> + <p> + 322 byte + </p> + <pre><code class="hljs language-php">$a=join(range('A','Z')).'234567';while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=str_pad(base_convert(ord($c),10,2),8,'0',STR_PAD_LEFT);foreach(str_split($b,5)as$z)$p.=$a[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="394">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="885">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="885">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="885"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="886">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="886">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="886"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="887">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="887">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="887"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="888">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="888">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="888"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/117/index.html b/archive/q/base32/a/117/index.html new file mode 100644 index 0000000..8b8461f --- /dev/null +++ b/archive/q/base32/a/117/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #117 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #117</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#117</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #117</h2> + <p> + basi が 2024-03-09 02:17:47 に投稿 + </p> + <h2>コード</h2> + <p> + 318 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=str_pad(base_convert(ord($c),10,2),8,'0',STR_PAD_LEFT);foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[base_convert(str_pad($z,5,'0'),2,10)];$p.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="396">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="890">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="890">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="890"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="891">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="891">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="891"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="892">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="892">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="892"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="893">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="893">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="893"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/118/index.html b/archive/q/base32/a/118/index.html new file mode 100644 index 0000000..84aed05 --- /dev/null +++ b/archive/q/base32/a/118/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #118 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #118</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#118</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #118</h2> + <p> + basi が 2024-03-09 02:24:42 に投稿 + </p> + <h2>コード</h2> + <p> + 303 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=str_pad(base_convert(ord($c),10,2),8,'0',0);foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[base_convert(str_pad($z,5,'0'),2,10)];$p.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="398">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="895">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="895">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="895"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="896">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="896">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="896"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="897">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="897">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="897"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="898">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="898">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="898"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/119/index.html b/archive/q/base32/a/119/index.html new file mode 100644 index 0000000..7d4813f --- /dev/null +++ b/archive/q/base32/a/119/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #119 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #119</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#119</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #119</h2> + <p> + basi が 2024-03-09 02:31:02 に投稿 + </p> + <h2>コード</h2> + <p> + 283 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[base_convert(str_pad($z,5,'0'),2,10)];$p.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="399">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="899">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="899">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="899"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="900">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="900">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="900"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="901">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="901">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="901"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="902">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="902">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="902"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/12/index.html b/archive/q/base32/a/12/index.html new file mode 100644 index 0000000..f96fac4 --- /dev/null +++ b/archive/q/base32/a/12/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #12 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #12</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#12</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #12</h2> + <p> + nsfisis が 2024-03-07 16:05:10 に投稿 + </p> + <h2>コード</h2> + <p> + 237 byte + </p> + <pre><code class="hljs language-php">while($l=unpack('C*',chop(fgets(STDIN)))){$b=$r='';for($i=1;$k=$l[$i++]??0;)$b.=sprintf('%08b',$k);foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,ceil(strlen($r)/8*8),'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="36">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="83">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="83">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="83"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="84">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="84">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="84"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="85">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="85">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="85"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="86">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="86">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="86"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/120/index.html b/archive/q/base32/a/120/index.html new file mode 100644 index 0000000..46e3ba1 --- /dev/null +++ b/archive/q/base32/a/120/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #120 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #120</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#120</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #120</h2> + <p> + basi が 2024-03-09 02:37:58 に投稿 + </p> + <h2>コード</h2> + <p> + 280 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){
+ $b=$p='';
+ foreach(str_split(rtrim($l))as$c)
+ $b .= sprintf('%08b', ord($c));
+ foreach(str_split($b,5)as$z)
+ $p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];
+ $p.=str_repeat('=',strlen($b)%40?:0%40/8);echo$p,'
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="400">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="903">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="903">NBXWOZI================================ +OBUXS3Y================================ +MZ2WOYI================================ + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="903"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="904">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="904">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="904"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="905">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="905">GEZDGNBVGY3Q================ +GEZA================ +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ======================== +GEZDG======================== +GEZDGNBV +GEZDGNBVGY3TQOI================================ +GEZDGNA================================ +GE======== +GEZDGNBVGY======== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="905"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="906">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="906">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="906"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/121/index.html b/archive/q/base32/a/121/index.html new file mode 100644 index 0000000..4100e0c --- /dev/null +++ b/archive/q/base32/a/121/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #121 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #121</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#121</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #121</h2> + <p> + basi が 2024-03-09 02:39:49 に投稿 + </p> + <h2>コード</h2> + <p> + 299 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){
+ $b=$p='';
+ foreach(str_split(rtrim($l))as$c)
+ $b .= sprintf('%08b', ord($c));
+ foreach(str_split($b,5)as$z)
+ $p.=(join(range('A','Z')).'234567')[bindec($z)];
+ $p.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});echo$p,'
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="401">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="907">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="907">NBXWOZB= +OBUXS3D= +MZ2WOYB= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="907"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="908">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="908">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="908"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="909">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="909">GEZDGNBVGY3B==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TI=== +GEZDD=== +GEZDGNBV +GEZDGNBVGY3TQOB= +GEZDGNA= +GB====== +GEZDGNBVGG====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="909"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="910">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="910">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="910"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/122/index.html b/archive/q/base32/a/122/index.html new file mode 100644 index 0000000..7dc7e7f --- /dev/null +++ b/archive/q/base32/a/122/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #122 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #122</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#122</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #122</h2> + <p> + basi が 2024-03-09 02:41:05 に投稿 + </p> + <h2>コード</h2> + <p> + 314 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){
+ $b=$p='';
+ foreach(str_split(rtrim($l))as$c)
+ $b .= sprintf('%08b', ord($c));
+ foreach(str_split($b,5)as$z)
+ $p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];
+ $p.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});echo$p,'
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="402">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="911">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="911">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="911"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="912">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="912">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="912"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="913">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="913">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="913"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="914">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="914">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="914"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/123/index.html b/archive/q/base32/a/123/index.html new file mode 100644 index 0000000..56e8215 --- /dev/null +++ b/archive/q/base32/a/123/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #123 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #123</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#123</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #123</h2> + <p> + basi が 2024-03-09 02:44:38 に投稿 + </p> + <h2>コード</h2> + <p> + 235 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];$p.=substr("======",0,strlen($b)%40/8);echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="403">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="915">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="915">NBXWOZI==== +OBUXS3Y==== +MZ2WOYI==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="915"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="916">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="916">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="916"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="917">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="917">GEZDGNBVGY3Q== +GEZA== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI==== +GEZDGNA==== +GE= +GEZDGNBVGY= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="917"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="918">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="918">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="918"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/124/index.html b/archive/q/base32/a/124/index.html new file mode 100644 index 0000000..f5d440b --- /dev/null +++ b/archive/q/base32/a/124/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #124 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #124</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#124</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #124</h2> + <p> + basi が 2024-03-09 02:46:40 に投稿 + </p> + <h2>コード</h2> + <p> + 252 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];$p.=substr("=======",0,strlen($b)%40?strlen($b)%40/8:0);echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="404">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="919">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="919">NBXWOZI==== +OBUXS3Y==== +MZ2WOYI==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="919"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="920">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="920">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="920"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="921">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="921">GEZDGNBVGY3Q== +GEZA== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI==== +GEZDGNA==== +GE= +GEZDGNBVGY= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="921"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="922">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="922">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="922"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/125/index.html b/archive/q/base32/a/125/index.html new file mode 100644 index 0000000..6c76a69 --- /dev/null +++ b/archive/q/base32/a/125/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #125 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #125</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#125</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #125</h2> + <p> + basi が 2024-03-09 02:48:09 に投稿 + </p> + <h2>コード</h2> + <p> + 246 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];$p.=str_repeat('=',strlen($b)%5?5-strlen($b)%5:0);echo$p,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="405">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="923">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="923">NBXWOZI=== +OBUXS3Y=== +MZ2WOYI=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="923"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="924">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="924">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="924"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="925">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="925">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ= +GEZDG= +GEZDGNBV +GEZDGNBVGY3TQOI=== +GEZDGNA=== +GE== +GEZDGNBVGY== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="925"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="926">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="926">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="926"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/126/index.html b/archive/q/base32/a/126/index.html new file mode 100644 index 0000000..29da7ab --- /dev/null +++ b/archive/q/base32/a/126/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #126 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #126</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#126</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #126</h2> + <p> + basi が 2024-03-09 03:07:05 に投稿 + </p> + <h2>コード</h2> + <p> + 257 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];echo$p.str_repeat('=',[8=>6,16=>4,24=>3,32=>1,0=>0][strlen($b)%40]).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="406">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="927">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="927">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="927"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="928">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="928">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="928"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="929">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="929">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="929"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="930">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="930">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="930"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/127/index.html b/archive/q/base32/a/127/index.html new file mode 100644 index 0000000..774c8dc --- /dev/null +++ b/archive/q/base32/a/127/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #127 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #127</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#127</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #127</h2> + <p> + azuki-penguin が 2024-03-09 03:21:55 に投稿 + </p> + <h2>コード</h2> + <p> + 355 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$b=join(array_map(fn($x)=>str_pad(base_convert(ord($x),10,2),8,0,0),str_split($l)));$e=join(array_map(fn($x)=>$x< 26?chr(ord('A')+$x):chr(ord('2')+$x-26),array_map(fn($y)=>base_convert(str_pad($y,5,0),2,10),str_split($b,5))));$e.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo "$e\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="407">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="931">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="931">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="931"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="932">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="932">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="932"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="933">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="933">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="933"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="934">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="934">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="934"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/128/index.html b/archive/q/base32/a/128/index.html new file mode 100644 index 0000000..c48d4c6 --- /dev/null +++ b/archive/q/base32/a/128/index.html @@ -0,0 +1,137 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #128 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #128</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#128</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #128</h2> + <p> + basi が 2024-03-09 03:41:42 に投稿 + </p> + <h2>コード</h2> + <p> + 247 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$z)$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];$m=strlen($b)%40;echo$p.str_repeat('=',$m?(8-($m/5))%8:0).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="408">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="935">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="935"> +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 6 +NBXWOZI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 6 +OBUXS3Y= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 6 +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="935"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="936">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="936">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="936"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="937">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="937"> +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 6 +GEZDGNBVGY3Q==== + +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 6 +GEZA==== +GEZDGNBVGY3TQOJQ + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 6 +GEZDGNBVGY3TQ=== + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 6 +GEZDG=== +GEZDGNBV + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 6 +GEZDGNBVGY3TQOI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 6 +GEZDGNA= + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 6 +GE====== + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 6 +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="937"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="938">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="938">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="938"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/129/index.html b/archive/q/base32/a/129/index.html new file mode 100644 index 0000000..fddda30 --- /dev/null +++ b/archive/q/base32/a/129/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #129 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #129</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#129</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #129</h2> + <p> + basi が 2024-03-09 04:02:45 に投稿 + </p> + <h2>コード</h2> + <p> + 269 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b='';foreach(str_split(rtrim($l))as$c)$b.=sprintf('%08b',ord($c));$p='';foreach(str_split($b,5)as$z)$p.='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[bindec(str_pad($z,5,'0',STR_PAD_RIGHT))];$m=strlen($b)%40;echo$p.str_repeat('=',($m?8-ceil($m/5):0)).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="409">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="939">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="939">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="939"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="940">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="940">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="940"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="941">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="941">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="941"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="942">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="942">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="942"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/13/index.html b/archive/q/base32/a/13/index.html new file mode 100644 index 0000000..ed426f2 --- /dev/null +++ b/archive/q/base32/a/13/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #13 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #13</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#13</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #13</h2> + <p> + nsfisis が 2024-03-07 16:08:31 に投稿 + </p> + <h2>コード</h2> + <p> + 237 byte + </p> + <pre><code class="hljs language-php">while($l=unpack('C*',chop(fgets(STDIN)))){$b=$r='';for($i=1;$k=$l[$i++]??0;)$b.=sprintf('%08b',$k);foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,ceil(strlen($r)/8)*8,'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="37">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="87">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="87">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="87"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="88">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="88">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="88"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="89">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="89">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="89"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="90">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="90">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="90"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/130/index.html b/archive/q/base32/a/130/index.html new file mode 100644 index 0000000..71dd4e0 --- /dev/null +++ b/archive/q/base32/a/130/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #130 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #130</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#130</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #130</h2> + <p> + basi が 2024-03-09 04:06:21 に投稿 + </p> + <h2>コード</h2> + <p> + 253 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c){$b.=sprintf('%08b',ord($c));}foreach(str_split($b,5)as$z){$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];}$m=strlen($b)%40;echo$p.str_repeat('=',($m?8-ceil($m/5):0)).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="410">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="943">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="943">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="943"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="944">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="944">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="944"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="945">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="945">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="945"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="946">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="946">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="946"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/131/index.html b/archive/q/base32/a/131/index.html new file mode 100644 index 0000000..62b737d --- /dev/null +++ b/archive/q/base32/a/131/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #131 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #131</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#131</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #131</h2> + <p> + basi が 2024-03-09 04:12:38 に投稿 + </p> + <h2>コード</h2> + <p> + 348 byte + </p> + <pre><code class="hljs language-php">while ($l = fgets(STDIN)) {
+ $b = $p = '';
+ foreach (str_split(rtrim($l)) as $c) {
+ $b .= sprintf('%08b', ord($c));
+ }
+ foreach (str_split($b, 5) as $z) {
+ $p .= (join(range('A', 'Z')) . '234567')[bindec(str_pad($z, 5, '0'))];
+ }
+ $m = strlen($b) % 40;
+ echo $p . str_repeat('=', ($m ? 8 - ($m / 5) : 0)) . '
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="411">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="947">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="947"> +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 15 +NBXWOZI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 15 +OBUXS3Y= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 15 +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="947"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="948">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="948">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="948"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="949">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="949"> +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 15 +GEZDGNBVGY3Q==== + +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 15 +GEZA==== +GEZDGNBVGY3TQOJQ + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 15 +GEZDGNBVGY3TQ=== + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 15 +GEZDG=== +GEZDGNBV + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 15 +GEZDGNBVGY3TQOI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 15 +GEZDGNA= + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 15 +GE====== + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 15 +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="949"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="950">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="950">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="950"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/132/index.html b/archive/q/base32/a/132/index.html new file mode 100644 index 0000000..79852d5 --- /dev/null +++ b/archive/q/base32/a/132/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #132 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #132</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#132</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #132</h2> + <p> + basi が 2024-03-09 04:12:55 に投稿 + </p> + <h2>コード</h2> + <p> + 352 byte + </p> + <pre><code class="hljs language-php">while ($l = fgets(STDIN)) {
+ $b = $p = '';
+ foreach (str_split(rtrim($l)) as $c) {
+ $b .= sprintf('%08b', ord($c));
+ }
+ foreach (str_split($b, 5) as $z) {
+ $p .= (join(range('A', 'Z')) . '234567')[bindec(str_pad($z, 5, '0'))];
+ }
+ $m = strlen($b) % 40;
+ echo $p . str_repeat('=', ($m ? 8 - ceil($m / 5) : 0)) . '
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="412">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="951">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="951">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="951"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="952">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="952">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="952"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="953">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="953">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="953"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="954">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="954">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="954"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/133/index.html b/archive/q/base32/a/133/index.html new file mode 100644 index 0000000..86e4ff8 --- /dev/null +++ b/archive/q/base32/a/133/index.html @@ -0,0 +1,124 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #133 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #133</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#133</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #133</h2> + <p> + basi が 2024-03-09 04:13:39 に投稿 + </p> + <h2>コード</h2> + <p> + 344 byte + </p> + <pre><code class="hljs language-php">while ($l = fgets(STDIN)) {
+ $b = $p = '';
+ foreach (str_split(rtrim($l)) as $c) {
+ $b .= sprintf('%08b', ord($c));
+ }
+ foreach (str_split($b, 5) as $z) {
+ $p .= (join(range('A', 'Z')) . '234567')[bindec(str_pad($z, 5, '0'))];
+ }
+ echo $p . str_repeat('=', ($m = strlen($b) % 40) ? 8 - ceil($m / 5) : 0) . '
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="413">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="955">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="955">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="955"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="956">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="956">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="956"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="957">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="957">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="957"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="958">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="958">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="958"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/134/index.html b/archive/q/base32/a/134/index.html new file mode 100644 index 0000000..eb48708 --- /dev/null +++ b/archive/q/base32/a/134/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #134 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #134</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#134</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #134</h2> + <p> + tadsan が 2024-03-09 04:21:30 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);foreach(str_split($t,5)as$b)echo[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,0))]; echo str_repeat('=',(fn($n)=>($n%8)?0:6-$n/8)(strlen($t)%40))??'',"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="414">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="959">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="959">NBXWOZI== +OBUXS3Y== +MZ2WOYI== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="959"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="960">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="960">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OA2VY4BRTRYFCPDQGDOHAMX====== +4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="960"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="961">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="961">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ====== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV====== +GEZDGNBVGY3TQOI== +GEZDGNA== +GE===== +GEZDGNBVGY===== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="961"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="962">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="962">MEQGEIDD====== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="962"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/135/index.html b/archive/q/base32/a/135/index.html new file mode 100644 index 0000000..c3460f1 --- /dev/null +++ b/archive/q/base32/a/135/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #135 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #135</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#135</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #135</h2> + <p> + tadsan が 2024-03-09 04:24:05 に投稿 + </p> + <h2>コード</h2> + <p> + 276 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);foreach(str_split($t,5)as$b)echo[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,0))]; echo [8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="415">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="963">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="963">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="963"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="964">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="964">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="964"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="965">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="965">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="965"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="966">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="966">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="966"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/136/index.html b/archive/q/base32/a/136/index.html new file mode 100644 index 0000000..3e7e4de --- /dev/null +++ b/archive/q/base32/a/136/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #136 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #136</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#136</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #136</h2> + <p> + basi が 2024-03-09 04:27:11 に投稿 + </p> + <h2>コード</h2> + <p> + 286 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){for($p=$b='',$c=str_split(rtrim($l));$z=current($c);$b.=sprintf('%08b',ord($z)),next($c));for($c=str_split($b,5);$z=current($c);$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))],next($c));echo$p.str_repeat('=',($m=strlen($b)%40)?8-ceil($m/5):0).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="416">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="967">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="967">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="967"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="968">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="968">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="968"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="969">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="969">GEZDGNBVGY3Q==== +GEZ==== +GEZDGNBVGY3TQOI= +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="969"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="970">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="970">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="970"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/137/index.html b/archive/q/base32/a/137/index.html new file mode 100644 index 0000000..3dbae83 --- /dev/null +++ b/archive/q/base32/a/137/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #137 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #137</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#137</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #137</h2> + <p> + basi が 2024-03-09 04:27:40 に投稿 + </p> + <h2>コード</h2> + <p> + 250 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b=$p='';foreach(str_split(rtrim($l))as$c){$b.=sprintf('%08b',ord($c));}foreach(str_split($b,5)as$z){$p.=(join(range('A','Z')).'234567')[bindec(str_pad($z,5,'0'))];}echo$p.str_repeat('=',($m=strlen($b)%40)?8-ceil($m/5):0).'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="417">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="971">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="971">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="971"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="972">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="972">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="972"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="973">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="973">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="973"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="974">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="974">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="974"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/138/index.html b/archive/q/base32/a/138/index.html new file mode 100644 index 0000000..9a909d9 --- /dev/null +++ b/archive/q/base32/a/138/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #138 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #138</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#138</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #138</h2> + <p> + basi が 2024-03-09 04:48:38 に投稿 + </p> + <h2>コード</h2> + <p> + 348 byte + </p> + <pre><code class="hljs language-php">while ($l = fgets(STDIN)) {
+ $b = '';
+ foreach (str_split(rtrim($l)) as $c) {
+ $b .= sprintf('%08b', ord($c));
+ }
+ $m = strlen($b) % 40;
+ foreach (str_split($b, 5) as $z) {
+ @$p .= (join(range('A', 'Z')) . '234567')[bindec(str_pad($z, 5, '0'))];
+ }
+ echo $p . str_repeat('=', ($m ? 8 - ceil($m / 5) : 0)) . '
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="421">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="984">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="984">NBXWOZI= +NBXWOZIOBUXS3Y= +NBXWOZIOBUXS3YMZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="984"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="985">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="985">4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="985"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="986">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="986">GEZDGNBVGY3Q==== +GEZDGNBVGY3QGEZA==== +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQ +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQ=== +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDG=== +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDGGEZDGNBV +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDGGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDGGEZDGNBVGEZDGNBVGY3TQOIGEZDGNA= +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDGGEZDGNBVGEZDGNBVGY3TQOIGEZDGNAGE====== +GEZDGNBVGY3QGEZAGEZDGNBVGY3TQOJQGEZDGNBVGY3TQGEZDGGEZDGNBVGEZDGNBVGY3TQOIGEZDGNAGEGEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="986"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="987">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="987">MEQGEIDD +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="987"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/139/index.html b/archive/q/base32/a/139/index.html new file mode 100644 index 0000000..5a8e0bc --- /dev/null +++ b/archive/q/base32/a/139/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #139 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #139</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#139</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #139</h2> + <p> + basi が 2024-03-09 04:49:11 に投稿 + </p> + <h2>コード</h2> + <p> + 352 byte + </p> + <pre><code class="hljs language-php">while ($l = fgets(STDIN)) {
+ $p = $b = '';
+ foreach (str_split(rtrim($l)) as $c) {
+ $b .= sprintf('%08b', ord($c));
+ }
+ $m = strlen($b) % 40;
+ foreach (str_split($b, 5) as $z) {
+ $p .= (join(range('A', 'Z')) . '234567')[bindec(str_pad($z, 5, '0'))];
+ }
+ echo $p . str_repeat('=', ($m ? 8 - ceil($m / 5) : 0)) . '
+';
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="422">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="988">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="988">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="988"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="989">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="989">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="989"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="990">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="990">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="990"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="991">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="991">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="991"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/14/index.html b/archive/q/base32/a/14/index.html new file mode 100644 index 0000000..ff43ab4 --- /dev/null +++ b/archive/q/base32/a/14/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #14 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #14</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#14</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #14</h2> + <p> + tadsan が 2024-03-07 16:50:16 に投稿 + </p> + <h2>コード</h2> + <p> + 287 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),str_repeat('=',(fn($n)=>($n%8)?0:6-$n/8)(strlen($t)%40))??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="47">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="106">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="106">NBXWOZI== +OBUXS3Y== +MZ2WOYI== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="106"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="107">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="107">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OA2VY4BRTRYFCPDQGDOHAMX====== +4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="107"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="108">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="108">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ====== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV====== +GEZDGNBVGY3TQOI== +GEZDGNA== +GE===== +GEZDGNBVGY===== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="108"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="109">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="109">MEQGEIDD====== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="109"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/140/index.html b/archive/q/base32/a/140/index.html new file mode 100644 index 0000000..e4df3e4 --- /dev/null +++ b/archive/q/base32/a/140/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #140 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #140</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#140</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #140</h2> + <p> + masnmt が 2024-03-09 04:52:12 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="424">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="993">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="993">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="993"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="994">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="994">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="994"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="995">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="995">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="995"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="996">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="996">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="996"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/141/index.html b/archive/q/base32/a/141/index.html new file mode 100644 index 0000000..aefd25c --- /dev/null +++ b/archive/q/base32/a/141/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #141 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #141</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#141</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #141</h2> + <p> + k-kuwata が 2024-03-09 08:36:45 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="431">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1005">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1005">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1005"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1006">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1006">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1006"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1007">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1007">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1007"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1008">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1008">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1008"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/142/index.html b/archive/q/base32/a/142/index.html new file mode 100644 index 0000000..1627700 --- /dev/null +++ b/archive/q/base32/a/142/index.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #142 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #142</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#142</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #142</h2> + <p> + keitamax が 2024-03-09 10:38:24 に投稿 + </p> + <h2>コード</h2> + <p> + 426 byte + </p> + <pre><code class="hljs language-php">$t=array_merge(range('A','Z'),range('2','7'));
+while($line=STDIN) {
+$line=rtrim($line);
+$bits='';
+for($i=-1;$i++<strlen($line);) {
+$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);
+}
+$base32='';
+foreach(str_split($bits,5)as$b) {
+$base32.=t[base_convert(str_pad($b,5,'0'),2,10)];
+}
+$base32.=match(strlen($bits)%40){
+8=>'======',
+16=>'====',
+24=>'===',
+32=>'=',
+default=>'',
+};
+echo$base32,PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="445">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1032">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1032"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1032"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1033">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1033"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1033"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1034">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1034"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1034"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1035">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1035"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1035"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/143/index.html b/archive/q/base32/a/143/index.html new file mode 100644 index 0000000..c54b3fb --- /dev/null +++ b/archive/q/base32/a/143/index.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #143 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #143</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#143</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #143</h2> + <p> + keitamax が 2024-03-09 10:39:08 に投稿 + </p> + <h2>コード</h2> + <p> + 429 byte + </p> + <pre><code class="hljs language-php">$t=array_merge(range('A','Z'),range('2','7'));
+while($line=STDIN) {
+$line=rtrim($line);
+$bits='';
+for($i=0;$i++<strlen($line);) {
+$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);
+}
+$base32='';
+foreach(str_split($bits,5)as$b) {
+$base32.=t[base_convert(str_pad($b,5,'0'),2,10)];
+}
+$base32.=match(strlen($bits)%40){
+8=>'======',
+16=>'====',
+24=>'===',
+32=>'=',
+default => '',
+};
+echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="446">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1036">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1036"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1036"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1037">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1037"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1037"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1038">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1038"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1038"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1039">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1039"> +Fatal error: Uncaught TypeError: rtrim(): Argument #1 ($string) must be of type string, resource given in php.wasm code:8 +Stack trace: +#0 php.wasm code(8): rtrim(Resource id #2) +#1 {main} + thrown in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1039"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/144/index.html b/archive/q/base32/a/144/index.html new file mode 100644 index 0000000..a7a150b --- /dev/null +++ b/archive/q/base32/a/144/index.html @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #144 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #144</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#144</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #144</h2> + <p> + tsbkw が 2024-03-09 11:04:03 に投稿 + </p> + <h2>コード</h2> + <p> + 431 byte + </p> + <pre><code class="hljs language-php">const TABLE = ['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$l=rtrim($l);$b='';while($i<strlen($l)){$b.=str_pad(base_convert(''.ord($l[$i++]),10,2),8,0,0);}foreach(str_split($b,5)as$b){$a.=TABLE[base_convert(str_pad($b,5,0),2,10)];}$a.=match(count_chars($b)[48]){8=>'======',16:'====',24:'===',32:'=',0:''};echo$a.PHP_EOL;};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="456">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1061">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1061"> +Parse error: syntax error, unexpected token ":", expecting "=>" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1061"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1062">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1062"> +Parse error: syntax error, unexpected token ":", expecting "=>" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1062"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1063">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1063"> +Parse error: syntax error, unexpected token ":", expecting "=>" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1063"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1064">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1064"> +Parse error: syntax error, unexpected token ":", expecting "=>" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1064"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/145/index.html b/archive/q/base32/a/145/index.html new file mode 100644 index 0000000..3a88757 --- /dev/null +++ b/archive/q/base32/a/145/index.html @@ -0,0 +1,150 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #145 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #145</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#145</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #145</h2> + <p> + tsbkw が 2024-03-09 11:19:53 に投稿 + </p> + <h2>コード</h2> + <p> + 420 byte + </p> + <pre><code class="hljs language-php">$T=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$l=rtrim($l);$b='';while($i<strlen($l)){$b.=str_pad(base_convert(''.ord($l[$i++]),10,2),8,0,0);}foreach(str_split($b,5)as$b){$a.=$T[base_convert(str_pad($b,5,0),2,10)];}$a.=match(count_chars($b)[48]){8=>'======',16=>'====',24=>'===',32=>'=',0=>''};echo$a.PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="464">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1074">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1074"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Fatal error: Uncaught UnhandledMatchError: Unhandled match case 1 in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1074"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1075">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1075"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Fatal error: Uncaught UnhandledMatchError: Unhandled match case 3 in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1075"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1076">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1076"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 +GEZDGNBVGY3Q +GEZDGNBVGY3Q + +Fatal error: Uncaught UnhandledMatchError: Unhandled match case 4 in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1076"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1077">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1077"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Fatal error: Uncaught UnhandledMatchError: Unhandled match case 3 in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1077"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/146/index.html b/archive/q/base32/a/146/index.html new file mode 100644 index 0000000..c1180e0 --- /dev/null +++ b/archive/q/base32/a/146/index.html @@ -0,0 +1,466 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #146 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #146</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#146</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #146</h2> + <p> + tsbkw が 2024-03-09 11:22:02 に投稿 + </p> + <h2>コード</h2> + <p> + 431 byte + </p> + <pre><code class="hljs language-php">const T=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$l=rtrim($l);$b='';while($i<strlen($l)){$b.=str_pad(base_convert(''.ord($l[$i++]),10,2),8,0,0);}foreach(str_split($b,5)as$b){$a.=$T[base_convert(str_pad($b,5,0),2,10)];}$a.=match(count_chars($b)[48]){8=>'======',16=>'====',24=>'===',32=>'=',default=>''};echo$a.PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="465">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1078">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1078"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1078"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1079">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1079"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1079"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1080">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1080"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + + + + + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1080"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1081">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1081"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $a in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Undefined variable $T in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1081"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/147/index.html b/archive/q/base32/a/147/index.html new file mode 100644 index 0000000..88d2ea8 --- /dev/null +++ b/archive/q/base32/a/147/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #147 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #147</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#147</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #147</h2> + <p> + tsbkw が 2024-03-09 11:32:35 に投稿 + </p> + <h2>コード</h2> + <p> + 457 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$l=trim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);}foreach(str_split($b,5)as$n){$a.=TABLE[base_convert(str_pad($n,5,'0'),2,10)];}$a.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>''};echo$a.PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="467">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1083">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1083"> +Warning: Undefined variable $a in php.wasm code on line 6 +NBXWOZI= +NBXWOZI=OBUXS3Y= +NBXWOZI=OBUXS3Y=MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1083"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1084">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1084"> +Warning: Undefined variable $a in php.wasm code on line 6 +4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1084"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1085">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1085"> +Warning: Undefined variable $a in php.wasm code on line 6 +GEZDGNBVGY3Q==== +GEZDGNBVGY3Q====GEZA==== +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQ +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ=== +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG=== +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG===GEZDGNBV +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG===GEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG===GEZDGNBVGEZDGNBVGY3TQOI=GEZDGNA= +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG===GEZDGNBVGEZDGNBVGY3TQOI=GEZDGNA=GE====== +GEZDGNBVGY3Q====GEZA====GEZDGNBVGY3TQOJQGEZDGNBVGY3TQ===GEZDG===GEZDGNBVGEZDGNBVGY3TQOI=GEZDGNA=GE======GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1085"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1086">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1086"> +Warning: Undefined variable $a in php.wasm code on line 6 +MEQGEIDD +MEQGEIDD4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1086"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/148/index.html b/archive/q/base32/a/148/index.html new file mode 100644 index 0000000..4648db3 --- /dev/null +++ b/archive/q/base32/a/148/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #148 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #148</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#148</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #148</h2> + <p> + tsbkw が 2024-03-09 11:36:39 に投稿 + </p> + <h2>コード</h2> + <p> + 463 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$l=trim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);}foreach(str_split($b,5)as$n){$a.=TABLE[base_convert(str_pad($n,5,'0'),2,10)];}$a.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>''};echo$a.PHP_EOL;$a='';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="470">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1089">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1089"> +Warning: Undefined variable $a in php.wasm code on line 6 +NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1089"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1090">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1090"> +Warning: Undefined variable $a in php.wasm code on line 6 +4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1090"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1091">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1091"> +Warning: Undefined variable $a in php.wasm code on line 6 +GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1091"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1092">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1092"> +Warning: Undefined variable $a in php.wasm code on line 6 +MEQGEIDD +4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1092"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/149/index.html b/archive/q/base32/a/149/index.html new file mode 100644 index 0000000..c83f3bb --- /dev/null +++ b/archive/q/base32/a/149/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #149 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #149</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#149</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #149</h2> + <p> + tsbkw が 2024-03-09 11:39:54 に投稿 + </p> + <h2>コード</h2> + <p> + 463 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$a='';$l=trim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);}foreach(str_split($b,5)as$n){$a.=TABLE[base_convert(str_pad($n,5,'0'),2,10)];}$a.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>''};echo$a.PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="474">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1096">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1096">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1096"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1097">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1097">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1097"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1098">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1098">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1098"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1099">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1099">MEQGEIDD +4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1099"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/15/index.html b/archive/q/base32/a/15/index.html new file mode 100644 index 0000000..019c2a8 --- /dev/null +++ b/archive/q/base32/a/15/index.html @@ -0,0 +1,116 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #15 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #15</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#15</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #15</h2> + <p> + tadsan が 2024-03-07 16:51:13 に投稿 + </p> + <h2>コード</h2> + <p> + 288 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=srt_pad(decbin(ord($l[$i]),8,0,0));echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="48">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="110">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="110"> +Fatal error: Uncaught Error: Call to undefined function srt_pad() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="110"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="111">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="111"> +Fatal error: Uncaught Error: Call to undefined function srt_pad() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="111"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="112">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="112"> +Fatal error: Uncaught Error: Call to undefined function srt_pad() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="112"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="113">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="113"> +Fatal error: Uncaught Error: Call to undefined function srt_pad() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="113"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/150/index.html b/archive/q/base32/a/150/index.html new file mode 100644 index 0000000..141826d --- /dev/null +++ b/archive/q/base32/a/150/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #150 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #150</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#150</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #150</h2> + <p> + tsbkw が 2024-03-09 11:41:14 に投稿 + </p> + <h2>コード</h2> + <p> + 461 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7'];while($l=fgets(STDIN)){$a=$b='';$l=rtrim($l);for($i=0;$i<strlen($l);$i++){$b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);}foreach(str_split($b,5)as$n){$a.=TABLE[base_convert(str_pad($n,5,'0'),2,10)];}$a.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>''};echo$a.PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="477">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1102">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1102">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1102"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1103">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1103">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1103"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1104">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1104">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1104"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1105">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1105">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1105"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/151/index.html b/archive/q/base32/a/151/index.html new file mode 100644 index 0000000..122585d --- /dev/null +++ b/archive/q/base32/a/151/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #151 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #151</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#151</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #151</h2> + <p> + ticknical が 2024-03-09 14:38:16 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="531">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1183">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1183">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1183"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1184">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1184">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1184"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1185">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1185">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1185"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1186">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1186">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1186"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/152/index.html b/archive/q/base32/a/152/index.html new file mode 100644 index 0000000..b6692c9 --- /dev/null +++ b/archive/q/base32/a/152/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #152 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #152</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#152</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #152</h2> + <p> + ticknical が 2024-03-09 14:39:27 に投稿 + </p> + <h2>コード</h2> + <p> + 327 byte + </p> + <pre><code class="hljs language-php">const TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(ord($line[$i]),10,2),8,0,0);}echo chunk_split(strtr($bits,'01',TABLE),8,''),match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>''},PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="533">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1188">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1188">ABBABAAAABBABBBBABBAABBBABBAABAB= +ABBBAAAAABBABAABABBBBAABABBABBBB= +ABBAABBAABBBABABABBAABBBABBAAAAB= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1188"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1189">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1189">BBBAAABBBAAAAAABBAAAABBABBBAAABBBAAAAAABBAAABABBBBBAAABBBAAAAABABAAABABABBBAAABBBAAAAAABBABABBBBBBBAAABBBAAAAAABBAABAABA +BBBAAABBBAAAAAABBABABABABBBAAABBBAAAAAABBAAABBAABBBAAABBBAAAAABABAAABAABBBBAAABBBAAAAAABBAAAABBABBBAAABBBAAAAAABBAABABBB +BBBAAABBBAAAAABABAAABBBBBBBAAABBBAAAAAABBAABBAABBBBAAABBBAAAAABABAAABAABBBBAAABBBAAAAABABAAAAABABBBAAABBBAAAAAABBABAAAAB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1189"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1190">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1190">AABBAAABAABBAABAAABBAABBAABBABAAAABBABABAABBABBAAABBABBB==== +AABBAAABAABBAABA==== +AABBAAABAABBAABAAABBAABBAABBABAAAABBABABAABBABBAAABBABBBAABBBAAAAABBBAABAABBAAAA +AABBAAABAABBAABAAABBAABBAABBABAAAABBABABAABBABBAAABBABBBAABBBAAA=== +AABBAAABAABBAABAAABBAABB=== +AABBAAABAABBAABAAABBAABBAABBABAAAABBABAB +AABBAAABAABBAABAAABBAABBAABBABAAAABBABABAABBABBAAABBABBBAABBBAAAAABBBAAB= +AABBAAABAABBAABAAABBAABBAABBABAA= +AABBAAAB====== +AABBAAABAABBAABAAABBAABBAABBABAAAABBABABAABBABBA====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1190"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1191">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1191">ABBAAAABAABAAAAAABBAAABAAABAAAAAABBAAABB +AABAAAAAAABAAAAABBBAAABBBAAAAAABBAAAAABABBBAAABBBAAAAAABBAAAABAAAABAAAAABBBAAABBBAAAAAABBAAAABBAAABAAAAABBBAAABBBAAAAAABBAAABAAAAABAAAAABBBAAABBBAAAAAABBAAABABA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1191"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/153/index.html b/archive/q/base32/a/153/index.html new file mode 100644 index 0000000..a0ea6bf --- /dev/null +++ b/archive/q/base32/a/153/index.html @@ -0,0 +1,143 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #153 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #153</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#153</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #153</h2> + <p> + hanhan1978 が 2024-03-09 15:15:43 に投稿 + </p> + <h2>コード</h2> + <p> + 319 byte + </p> + <pre><code class="hljs language-php">$T='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $b=$r='';
+ foreach(str_split($l) as $c) $b.=str_pad(decbin(ord($c)),8,0,STR_PAD_LEFT);
+ foreach(str_split($b,5) as $s) $r.=$T[bindec(str_pad($s,5,"0"))];
+ $r.=str_repeat("=", strlen($b)%40?8-(strlen($b)%40)/5:0);
+ echo $r, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="559">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1229">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1229"> +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 11 +NBXWOZI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 11 +OBUXS3Y= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 11 +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1229"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1230">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1230">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1230"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1231">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1231"> +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 11 +GEZDGNBVGY3Q==== + +Deprecated: Implicit conversion from float 4.8 to int loses precision in php.wasm code on line 11 +GEZA==== +GEZDGNBVGY3TQOJQ + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 11 +GEZDGNBVGY3TQ=== + +Deprecated: Implicit conversion from float 3.2 to int loses precision in php.wasm code on line 11 +GEZDG=== +GEZDGNBV + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 11 +GEZDGNBVGY3TQOI= + +Deprecated: Implicit conversion from float 1.5999999999999996 to int loses precision in php.wasm code on line 11 +GEZDGNA= + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 11 +GE====== + +Deprecated: Implicit conversion from float 6.4 to int loses precision in php.wasm code on line 11 +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1231"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1232">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1232">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1232"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/154/index.html b/archive/q/base32/a/154/index.html new file mode 100644 index 0000000..426c86c --- /dev/null +++ b/archive/q/base32/a/154/index.html @@ -0,0 +1,121 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #154 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #154</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#154</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #154</h2> + <p> + hanhan1978 が 2024-03-09 15:16:54 に投稿 + </p> + <h2>コード</h2> + <p> + 320 byte + </p> + <pre><code class="hljs language-php">$T='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $b=$r='';
+ foreach(str_split($l) as $c) $b.=str_pad(decbin(ord($c)),8,0,STR_PAD_LEFT);
+ foreach(str_split($b,5) as $s) $r.=$T[bindec(str_pad($s,5,"0"))];
+ $r.=@str_repeat("=", strlen($b)%40?8-(strlen($b)%40)/5:0);
+ echo $r, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="561">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1234">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1234">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1234"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1235">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1235">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1235"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1236">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1236">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1236"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1237">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1237">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1237"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/155/index.html b/archive/q/base32/a/155/index.html new file mode 100644 index 0000000..4370848 --- /dev/null +++ b/archive/q/base32/a/155/index.html @@ -0,0 +1,117 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #155 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #155</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#155</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #155</h2> + <p> + hanhan1978 が 2024-03-09 15:19:33 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php">while($l=rtrim(fgets(STDIN))){$b=$r='';
+foreach(str_split($l) as $c) $b.=str_pad(decbin(ord($c)),8,0,0);
+foreach(str_split($b,5) as $s) $r.='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[bindec(str_pad($s,5,"0"))];
+$r.=@str_repeat("=", strlen($b)%40?8-(strlen($b)%40)/5:0);echo $r,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="564">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1240">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1240">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1240"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1241">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1241">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1241"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1242">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1242">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1242"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1243">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1243">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1243"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/156/index.html b/archive/q/base32/a/156/index.html new file mode 100644 index 0000000..9a3cf10 --- /dev/null +++ b/archive/q/base32/a/156/index.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #156 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #156</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#156</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #156</h2> + <p> + notchman が 2024-03-09 15:52:17 に投稿 + </p> + <h2>コード</h2> + <p> + 394 byte + </p> + <pre><code class="hljs language-php">const TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while ($line = rtrim(fgets(STDIN))) {
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++)
+ $bits .= sprintf('%08b', ord($line[$i]));
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b)
+ $base32 .= TABLE[bindec(str_pad($b, 5, '0', STR_PAD_RIGHT))];
+ echo $base32 . str_repeat('=', [0, 6, 4, 3, 1][strlen($bits) % 40 / 8]), PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="569">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1252">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1252">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1252"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1253">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1253">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1253"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1254">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1254">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1254"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1255">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1255">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1255"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/157/index.html b/archive/q/base32/a/157/index.html new file mode 100644 index 0000000..cfbed13 --- /dev/null +++ b/archive/q/base32/a/157/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #157 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #157</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#157</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #157</h2> + <p> + notchman が 2024-03-09 15:53:40 に投稿 + </p> + <h2>コード</h2> + <p> + 322 byte + </p> + <pre><code class="hljs language-php">const TABLE='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';while($line=rtrim(fgets(STDIN))){$bits='';for($i=0;$i<strlen($line);$i++)$bits.=sprintf('%08b',ord($line[$i]));$base32='';foreach(str_split($bits,5)as$b)$base32.=TABLE[bindec(str_pad($b,5,'0',STR_PAD_RIGHT))];echo$base32.str_repeat('=',[0,6,4,3,1][strlen($bits)%40/8]),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="570">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1256">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1256">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1256"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1257">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1257">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1257"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1258">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1258">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1258"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1259">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1259">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1259"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/158/index.html b/archive/q/base32/a/158/index.html new file mode 100644 index 0000000..f8f394a --- /dev/null +++ b/archive/q/base32/a/158/index.html @@ -0,0 +1,116 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #158 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #158</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#158</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #158</h2> + <p> + notchman が 2024-03-09 15:54:51 に投稿 + </p> + <h2>コード</h2> + <p> + 362 byte + </p> + <pre><code class="hljs language-php">while ($line = rtrim(fgets(STDIN))) {
+ echo array_reduce(str_split($b = '', strlen($line)) && array_map(function($c) use(&$b) { $b .= sprintf('%08b', ord($c)); }, str_split($line)) ? str_split($b, 5) : [], function($c, $n) { return $c.TABLE[bindec(str_pad($n, 5, '0', STR_PAD_RIGHT))]; }, '') . str_repeat('=', [0, 6, 4, 3, 1][strlen($b) % 40 / 8]) . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="571">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1260">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1260"> + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1260"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1261">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1261"> + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1261"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1262">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1262"> + + + + + + + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1262"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1263">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1263"> + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1263"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/159/index.html b/archive/q/base32/a/159/index.html new file mode 100644 index 0000000..bc3dca6 --- /dev/null +++ b/archive/q/base32/a/159/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #159 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #159</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#159</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #159</h2> + <p> + zonepotage が 2024-03-09 16:57:29 に投稿 + </p> + <h2>コード</h2> + <p> + 808 byte + </p> + <pre><code class="hljs language-php">while ($plaintext = fgets(STDIN)) {
+ $text = '';
+ $bit = 0;
+ $value = 0;
+ $i = 0;
+
+ while(($bit >= 5) || ($i < strlen($plaintext))){
+ if($i < strlen($plaintext)){
+ $value = ($value * 256) + ord($plaintext[$i]);
+ $bit+= 8;
+ $i++;
+ }
+ $bit -= 5;
+ $code = (int)($value / pow(2,$bit));
+ $text .= chr($code + 65 - ($code > 25 ? 41 : 0));
+ $value %= (pow(2, $bit));
+ if(($bit < 5) && ($bit > 0) && ($i >= strlen($plaintext))){
+ $value *= pow(2,5 - $bit);
+ $bit = 5;
+ }
+ }
+ if(strlen($text) % 8){
+ $text .= str_repeat("=",8 - strlen($text) % 8);
+ }
+ echo $text, PHP_EOL;
+ }</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="582">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1274">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1274">NBXWOZIK +OBUXS3YK +MZ2WOYIK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1274"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1275">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1275"> +Deprecated: Implicit conversion from float 2346943114 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float -17657853213 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float -122363911295 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float 8589934592 to int loses precision in php.wasm code on line 21 + +Fatal error: Uncaught DivisionByZeroError: Modulo by zero in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1275"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1276">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1276">GEZDGNBVGY3QU=== +GEZAU=== + +Deprecated: Implicit conversion from float 26696235312 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float 237166473226 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float 8589934592 to int loses precision in php.wasm code on line 21 + +Fatal error: Uncaught DivisionByZeroError: Modulo by zero in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1276"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1277">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1277">MEQGEIDDBI====== + +Deprecated: Implicit conversion from float 3816916000 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float -19301916445 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float -268366191743 to int loses precision in php.wasm code on line 21 + +Deprecated: Implicit conversion from float 8589934592 to int loses precision in php.wasm code on line 21 + +Fatal error: Uncaught DivisionByZeroError: Modulo by zero in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1277"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/16/index.html b/archive/q/base32/a/16/index.html new file mode 100644 index 0000000..e95dbf8 --- /dev/null +++ b/archive/q/base32/a/16/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #16 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #16</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#16</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #16</h2> + <p> + tadsan が 2024-03-07 16:52:28 に投稿 + </p> + <h2>コード</h2> + <p> + 288 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="49">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="114">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="114">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="114"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="115">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="115">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="115"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="116">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="116">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="116"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="117">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="117">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="117"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/17/index.html b/archive/q/base32/a/17/index.html new file mode 100644 index 0000000..b2b33a5 --- /dev/null +++ b/archive/q/base32/a/17/index.html @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #17 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #17</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#17</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #17</h2> + <p> + rinchoku が 2024-03-07 23:04:26 に投稿 + </p> + <h2>コード</h2> + <p> + 512 byte + </p> + <pre><code class="hljs language-php">constTABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo$base32,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="72">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="140">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="140"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="140"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="141">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="141"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="141"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="142">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="142"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="142"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="143">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="143"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="143"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/18/index.html b/archive/q/base32/a/18/index.html new file mode 100644 index 0000000..6d3d7b7 --- /dev/null +++ b/archive/q/base32/a/18/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #18 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #18</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#18</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #18</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:06:42 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="73">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="144">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="144">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="144"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="145">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="145">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="145"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="146">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="146">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="146"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="147">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="147">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="147"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/19/index.html b/archive/q/base32/a/19/index.html new file mode 100644 index 0000000..33b62fa --- /dev/null +++ b/archive/q/base32/a/19/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #19 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #19</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#19</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #19</h2> + <p> + rinchoku が 2024-03-07 23:14:36 に投稿 + </p> + <h2>コード</h2> + <p> + 470 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=str_repeat('=',strlen($bits)%40/8);echo $base32,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="74">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="148">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="148">NBXWOZI==== +OBUXS3Y==== +MZ2WOYI==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="148"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="149">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="149">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="149"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="150">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="150">GEZDGNBVGY3Q== +GEZA== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI==== +GEZDGNA==== +GE= +GEZDGNBVGY= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="150"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="151">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="151">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="151"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/2/index.html b/archive/q/base32/a/2/index.html new file mode 100644 index 0000000..8dab270 --- /dev/null +++ b/archive/q/base32/a/2/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #2 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #2</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#2</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #2</h2> + <p> + blue-goheimochi が 2024-03-06 08:24:32 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="7">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="11">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="11">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="11"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="12">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="12">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="12"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="13">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="13">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="13"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="58">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="58">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="58"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/20/index.html b/archive/q/base32/a/20/index.html new file mode 100644 index 0000000..7efb546 --- /dev/null +++ b/archive/q/base32/a/20/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #20 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #20</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#20</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #20</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:25:32 に投稿 + </p> + <h2>コード</h2> + <p> + 446 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=trim(fgets(STDIN))){
+ $b=$c='';
+ for($i=0;$i++<strlen($l);){
+ $b.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);
+ }
+ $c='';
+ foreach (str_split($b, 5) as $b) {
+ $c .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $c .= match (strlen($b) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $c, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="75">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="152">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="152"> +Warning: Uninitialized string offset 4 in php.wasm code on line 10 +N5TWKAA + +Warning: Uninitialized string offset 4 in php.wasm code on line 10 +NF4W6AA + +Warning: Uninitialized string offset 4 in php.wasm code on line 10 +OVTWCAA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="152"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="153">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="153"> +Warning: Uninitialized string offset 15 in php.wasm code on line 10 +QGDOHAML4OBIVY4BV7RYDEQA + +Warning: Uninitialized string offset 15 in php.wasm code on line 10 +QGVOHAMM4OBITY4BQ3RYDFYA + +Warning: Uninitialized string offset 15 in php.wasm code on line 10 +QKH6HAMZ4OBITY4CQLRYDIIA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="153"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="154">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="154"> +Warning: Uninitialized string offset 7 in php.wasm code on line 10 +GIZTINJWG4AA + +Warning: Uninitialized string offset 2 in php.wasm code on line 10 +GIAA + +Warning: Uninitialized string offset 10 in php.wasm code on line 10 +GIZTINJWG44DSMAA + +Warning: Uninitialized string offset 8 in php.wasm code on line 10 +GIZTINJWG44AA + +Warning: Uninitialized string offset 3 in php.wasm code on line 10 +GIZQA + +Warning: Uninitialized string offset 5 in php.wasm code on line 10 +GIZTINIA + +Warning: Uninitialized string offset 9 in php.wasm code on line 10 +GIZTINJWG44DSAA + +Warning: Uninitialized string offset 4 in php.wasm code on line 10 +GIZTIAA + +Warning: Uninitialized string offset 1 in php.wasm code on line 10 +AA + +Warning: Uninitialized string offset 6 in php.wasm code on line 10 +GIZTINJWAA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="154"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="155">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="155"> +Warning: Uninitialized string offset 5 in php.wasm code on line 10 +EBRCAYYA + +Warning: Uninitialized string offset 18 in php.wasm code on line 10 +QGBOHAMEEDRYDBRA4OAYQIHDQGFAA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="155"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/21/index.html b/archive/q/base32/a/21/index.html new file mode 100644 index 0000000..9223928 --- /dev/null +++ b/archive/q/base32/a/21/index.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #21 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #21</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#21</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #21</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:27:32 に投稿 + </p> + <h2>コード</h2> + <p> + 530 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="76">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="156">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="156">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="156"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="157">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="157">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="157"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="158">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="158">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="158"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="159">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="159">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="159"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/22/index.html b/archive/q/base32/a/22/index.html new file mode 100644 index 0000000..860de85 --- /dev/null +++ b/archive/q/base32/a/22/index.html @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #22 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #22</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#22</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #22</h2> + <p> + rinchoku が 2024-03-07 23:28:39 に投稿 + </p> + <h2>コード</h2> + <p> + 505 byte + </p> + <pre><code class="hljs language-php">TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="77">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="160">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="160"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="160"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="161">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="161"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="161"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="162">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="162"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="162"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="163">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="163"> +Parse error: syntax error, unexpected token "=" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="163"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/23/index.html b/archive/q/base32/a/23/index.html new file mode 100644 index 0000000..dd3e2d6 --- /dev/null +++ b/archive/q/base32/a/23/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #23 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #23</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#23</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #23</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:29:14 に投稿 + </p> + <h2>コード</h2> + <p> + 474 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $b = $c = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $b .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($b, 5) as $b) {
+ $c .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $c .= match (strlen($b) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $c, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="78">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="164">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="164">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="164"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="165">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="165">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="165"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="166">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="166">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="166"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="167">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="167">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="167"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/24/index.html b/archive/q/base32/a/24/index.html new file mode 100644 index 0000000..afd9ac0 --- /dev/null +++ b/archive/q/base32/a/24/index.html @@ -0,0 +1,133 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #24 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #24</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#24</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #24</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:30:02 に投稿 + </p> + <h2>コード</h2> + <p> + 480 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $b = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $b .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $c = '';
+ foreach (str_split($b, 5) as $b) {
+ $c .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $c .= match (strlen($b) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $c, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="79">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="168">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="168">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="168"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="169">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="169">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="169"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="170">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="170">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="170"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="171">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="171">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="171"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/25/index.html b/archive/q/base32/a/25/index.html new file mode 100644 index 0000000..db2e972 --- /dev/null +++ b/archive/q/base32/a/25/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #25 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #25</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#25</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #25</h2> + <p> + rinchoku が 2024-03-07 23:30:23 に投稿 + </p> + <h2>コード</h2> + <p> + 511 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=str_pad(base_convert(strval(ord($line[$i])),10,2),8,'0',STR_PAD_LEFT);}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="80">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="172">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="172">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="172"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="173">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="173">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="173"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="174">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="174">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="174"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="175">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="175">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="175"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/26/index.html b/archive/q/base32/a/26/index.html new file mode 100644 index 0000000..5dbade5 --- /dev/null +++ b/archive/q/base32/a/26/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #26 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #26</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#26</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #26</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:32:42 に投稿 + </p> + <h2>コード</h2> + <p> + 499 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=trim(fgets(STDIN))){
+ $bits = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="81">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="176">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="176">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="176"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="177">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="177">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="177"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="178">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="178">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="178"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="179">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="179">MEQGEIDD +4OAYFY4BQQQOHAMGEDRYDCBA4OAYU=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="179"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/27/index.html b/archive/q/base32/a/27/index.html new file mode 100644 index 0000000..481fa07 --- /dev/null +++ b/archive/q/base32/a/27/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #27 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #27</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#27</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #27</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:33:06 に投稿 + </p> + <h2>コード</h2> + <p> + 500 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $bits = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="82">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="180">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="180">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="180"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="181">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="181">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="181"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="182">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="182">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="182"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="183">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="183">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="183"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/28/index.html b/archive/q/base32/a/28/index.html new file mode 100644 index 0000000..7b80f73 --- /dev/null +++ b/archive/q/base32/a/28/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #28 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #28</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#28</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #28</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:33:46 に投稿 + </p> + <h2>コード</h2> + <p> + 483 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $b='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $b .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($b, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($b) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="83">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="184">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="184">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="184"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="185">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="185">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="185"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="186">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="186">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="186"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="187">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="187">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="187"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/29/index.html b/archive/q/base32/a/29/index.html new file mode 100644 index 0000000..a74eaff --- /dev/null +++ b/archive/q/base32/a/29/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #29 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #29</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#29</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #29</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:34:13 に投稿 + </p> + <h2>コード</h2> + <p> + 486 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $b='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $b .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($b, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($b) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="84">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="188">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="188">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="188"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="189">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="189">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="189"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="190">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="190">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="190"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="191">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="191">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="191"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/3/index.html b/archive/q/base32/a/3/index.html new file mode 100644 index 0000000..995b308 --- /dev/null +++ b/archive/q/base32/a/3/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #3 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #3</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#3</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #3</h2> + <p> + muno92 が 2024-03-06 08:42:30 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="11">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="19">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="19">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="19"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="20">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="20">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="20"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="21">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="21">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="21"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="59">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="59">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="59"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/30/index.html b/archive/q/base32/a/30/index.html new file mode 100644 index 0000000..2870c11 --- /dev/null +++ b/archive/q/base32/a/30/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #30 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #30</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#30</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #30</h2> + <p> + rinchoku が 2024-03-07 23:34:31 に投稿 + </p> + <h2>コード</h2> + <p> + 491 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=sprintf("%08d",base_convert(ord($line[$i]),10,2));}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="85">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="192">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="192">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="192"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="193">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="193">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="193"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="194">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="194">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="194"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="195">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="195">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="195"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/31/index.html b/archive/q/base32/a/31/index.html new file mode 100644 index 0000000..01c43e4 --- /dev/null +++ b/archive/q/base32/a/31/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #31 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #31</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#31</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #31</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:35:01 に投稿 + </p> + <h2>コード</h2> + <p> + 497 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $bits = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="86">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="196">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="196">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="196"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="197">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="197">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="197"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="198">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="198">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="198"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="199">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="199">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="199"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/32/index.html b/archive/q/base32/a/32/index.html new file mode 100644 index 0000000..a4fcfb2 --- /dev/null +++ b/archive/q/base32/a/32/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #32 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #32</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#32</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #32</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:36:03 に投稿 + </p> + <h2>コード</h2> + <p> + 483 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($t, 5) as $b) {
+ $base32 .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($t) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="87">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="200">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="200">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="200"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="201">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="201">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="201"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="202">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="202">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="202"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="203">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="203">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="203"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/33/index.html b/archive/q/base32/a/33/index.html new file mode 100644 index 0000000..3734bfc --- /dev/null +++ b/archive/q/base32/a/33/index.html @@ -0,0 +1,131 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #33 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #33</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#33</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #33</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:37:59 に投稿 + </p> + <h2>コード</h2> + <p> + 455 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $s .= match (strlen($t) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $s, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="88">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="204">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="204">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="204"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="205">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="205">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="205"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="206">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="206">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="206"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="207">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="207">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="207"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/34/index.html b/archive/q/base32/a/34/index.html new file mode 100644 index 0000000..cf4a6f4 --- /dev/null +++ b/archive/q/base32/a/34/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #34 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #34</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#34</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #34</h2> + <p> + rinchoku が 2024-03-07 23:44:28 に投稿 + </p> + <h2>コード</h2> + <p> + 428 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=sprintf("%08d",base_convert(ord($l[$i]),10,2));}$c='';foreach(str_split($b,5)as$b){$c.=$t[base_convert(str_pad($b,5,'0'),2,10)];}echo $c,match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="89">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="208">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="208">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="208"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="209">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="209">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="209"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="210">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="210">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="210"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="211">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="211">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="211"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/35/index.html b/archive/q/base32/a/35/index.html new file mode 100644 index 0000000..5d71428 --- /dev/null +++ b/archive/q/base32/a/35/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #35 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #35</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#35</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #35</h2> + <p> + rinchoku が 2024-03-07 23:45:34 に投稿 + </p> + <h2>コード</h2> + <p> + 436 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=sprintf("%08d",base_convert(strval(ord($l[$i])),10,2));}$c='';foreach(str_split($b,5)as$b){$c.=$t[base_convert(str_pad($b,5,'0'),2,10)];}echo $c,match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="90">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="212">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="212">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="212"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="213">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="213">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="213"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="214">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="214">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="214"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="215">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="215">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="215"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/36/index.html b/archive/q/base32/a/36/index.html new file mode 100644 index 0000000..c1c7b6f --- /dev/null +++ b/archive/q/base32/a/36/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #36 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #36</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#36</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #36</h2> + <p> + rinchoku が 2024-03-07 23:50:41 に投稿 + </p> + <h2>コード</h2> + <p> + 447 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($c=fgets(STDIN)){$c=rtrim($c);$b='';for($i=0;$i<strlen($c);$i++){$b.=sprintf("%08d",base_convert(ord($c[$i]),10,2));}$c='';foreach(str_split($b,5)as$b){$c.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$c.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $c,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="91">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="216">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="216">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="216"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="217">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="217">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="217"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="218">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="218">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="218"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="219">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="219">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="219"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/37/index.html b/archive/q/base32/a/37/index.html new file mode 100644 index 0000000..49fceb8 --- /dev/null +++ b/archive/q/base32/a/37/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #37 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #37</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#37</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #37</h2> + <p> + rinchoku が 2024-03-07 23:52:46 に投稿 + </p> + <h2>コード</h2> + <p> + 447 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=sprintf("%08d",base_convert(ord($l[$i]),10,2));}$c='';foreach(str_split($b,5)as$b){$c.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$c.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $c,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="92">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="220">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="220">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="220"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="221">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="221">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="221"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="222">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="222">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="222"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="223">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="223">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="223"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/38/index.html b/archive/q/base32/a/38/index.html new file mode 100644 index 0000000..eecba73 --- /dev/null +++ b/archive/q/base32/a/38/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #38 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #38</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#38</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #38</h2> + <p> + rinchoku が 2024-03-07 23:54:16 に投稿 + </p> + <h2>コード</h2> + <p> + 494 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=sprintf("%08d",base_convert(ord($line[$i]),10,2));}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="93">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="224">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="224">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="224"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="225">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="225">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="225"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="226">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="226">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="226"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="227">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="227">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="227"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/39/index.html b/archive/q/base32/a/39/index.html new file mode 100644 index 0000000..545030e --- /dev/null +++ b/archive/q/base32/a/39/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #39 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #39</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#39</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #39</h2> + <p> + rinchoku が 2024-03-07 23:55:58 に投稿 + </p> + <h2>コード</h2> + <p> + 491 byte + </p> + <pre><code class="hljs language-php">const TABLE=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=sprintf("%08d",base_convert(ord($line[$i]),10,2));}$base32='';foreach(str_split($bits,5)as$b){$base32.=TABLE[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="94">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="228">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="228">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="228"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="229">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="229">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="229"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="230">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="230">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="230"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="231">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="231">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="231"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/4/index.html b/archive/q/base32/a/4/index.html new file mode 100644 index 0000000..8f9960f --- /dev/null +++ b/archive/q/base32/a/4/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #4 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #4</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#4</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #4</h2> + <p> + tadsan が 2024-03-06 20:46:21 に投稿 + </p> + <h2>コード</h2> + <p> + 365 byte + </p> + <pre><code class="hljs language-php">while($line=fgets(STDIN)){$line = rtrim($line);$bits='';for ($i = 0; $i < strlen($line); $i++)$bits.=sprintf('%08d',base_convert(strval(ord($line[$i])),10,2));echo implode(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][base_convert(str_pad($b, 5, '0'), 2, 10)],str_split($bits, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($bits) % 40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="17">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="29">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="29">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="29"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="30">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="30">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="30"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="31">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="31">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="31"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="61">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="61">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="61"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/40/index.html b/archive/q/base32/a/40/index.html new file mode 100644 index 0000000..18c1e3d --- /dev/null +++ b/archive/q/base32/a/40/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #40 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #40</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#40</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #40</h2> + <p> + rinchoku が 2024-03-07 23:57:01 に投稿 + </p> + <h2>コード</h2> + <p> + 479 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$bits='';for($i=0;$i<strlen($line);$i++){$bits.=sprintf("%08d",base_convert(ord($line[$i]),10,2));}$base32='';foreach(str_split($bits,5)as$b){$base32.=$t[base_convert(str_pad($b,5,'0'),2,10)];}$base32.=match(strlen($bits)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $base32."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="95">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="232">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="232">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="232"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="233">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="233">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="233"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="234">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="234">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="234"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="235">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="235">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="235"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/41/index.html b/archive/q/base32/a/41/index.html new file mode 100644 index 0000000..ce2d984 --- /dev/null +++ b/archive/q/base32/a/41/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #41 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #41</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#41</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #41</h2> + <p> + rinchoku が 2024-03-07 23:58:10 に投稿 + </p> + <h2>コード</h2> + <p> + 432 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($l=fgets(STDIN)){$l=rtrim($l);$b='';for($i=0;$i<strlen($l);$i++){$b.=sprintf("%08d",base_convert(ord($l[$i]),10,2));}$c='';foreach(str_split($b,5)as$b){$c.=$t[base_convert(str_pad($b,5,'0'),2,10)];}$c.=match(strlen($b)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $c."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="96">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="236">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="236">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="236"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="237">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="237">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="237"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="238">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="238">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="238"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="239">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="239">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="239"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/42/index.html b/archive/q/base32/a/42/index.html new file mode 100644 index 0000000..1ee9f95 --- /dev/null +++ b/archive/q/base32/a/42/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #42 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #42</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#42</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #42</h2> + <p> + rinchoku が 2024-03-07 23:59:24 に投稿 + </p> + <h2>コード</h2> + <p> + 447 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($line=fgets(STDIN)){$line=rtrim($line);$c='';for($i=0;$i<strlen($line);$i++){$c.=sprintf("%08d",base_convert(ord($line[$i]),10,2));}$d='';foreach(str_split($c,5)as$b){$d.=$t[base_convert(str_pad($b,5,'0'),2,10)];}$d.=match(strlen($c)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',};echo $d."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="97">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="240">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="240">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="240"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="241">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="241">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="241"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="242">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="242">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="242"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="243">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="243">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="243"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/43/index.html b/archive/q/base32/a/43/index.html new file mode 100644 index 0000000..fe9fbab --- /dev/null +++ b/archive/q/base32/a/43/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #43 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #43</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#43</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #43</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:02:05 に投稿 + </p> + <h2>コード</h2> + <p> + 417 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ $s.=$u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':'')));
+ echo $s, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="99">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="245">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="245">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="245"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="246">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="246">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="246"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="247">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="247">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="247"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="248">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="248">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="248"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/44/index.html b/archive/q/base32/a/44/index.html new file mode 100644 index 0000000..bfa9f52 --- /dev/null +++ b/archive/q/base32/a/44/index.html @@ -0,0 +1,104 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #44 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #44</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#44</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #44</h2> + <p> + rinchoku が 2024-03-08 00:03:28 に投稿 + </p> + <h2>コード</h2> + <p> + 429 byte + </p> + <pre><code class="hljs language-php">$t=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','2','3','4','5','6','7',];while($l=fgets(STDIN)){$l=rtrim($l);$c='';for($i=0;$i<strlen($l);$i++){$c.=sprintf("%08d",base_convert(ord($l[$i]),10,2));}$d='';foreach(str_split($c,5)as$b){$d.=$t[base_convert(str_pad($b,5,'0'),2,10)];}echo $d.match(strlen($c)%40){8=>'======',16=>'====',24=>'===',32=>'=',default=>'',}.$"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="100">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="249">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="249"> +Parse error: syntax error, unexpected double-quoted string "\n", expecting variable or "{" or "$" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="249"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="250">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="250"> +Parse error: syntax error, unexpected double-quoted string "\n", expecting variable or "{" or "$" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="250"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="251">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="251"> +Parse error: syntax error, unexpected double-quoted string "\n", expecting variable or "{" or "$" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="251"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="252">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="252"> +Parse error: syntax error, unexpected double-quoted string "\n", expecting variable or "{" or "$" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="252"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/45/index.html b/archive/q/base32/a/45/index.html new file mode 100644 index 0000000..e35038b --- /dev/null +++ b/archive/q/base32/a/45/index.html @@ -0,0 +1,120 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #45 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #45</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#45</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #45</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:04:57 に投稿 + </p> + <h2>コード</h2> + <p> + 409 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=$u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':'')))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="101">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="253">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="253">NBXWOZI=OBUXS3Y=MZ2WOYI= +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="253"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="254">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="254">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="254"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="255">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="255">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI=GEZDGNA=GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="255"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="256">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="256">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="256"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/46/index.html b/archive/q/base32/a/46/index.html new file mode 100644 index 0000000..675d61f --- /dev/null +++ b/archive/q/base32/a/46/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #46 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #46</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#46</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #46</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:05:38 に投稿 + </p> + <h2>コード</h2> + <p> + 411 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="102">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="257">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="257">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="257"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="258">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="258">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="258"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="259">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="259">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="259"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="260">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="260">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="260"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/47/index.html b/archive/q/base32/a/47/index.html new file mode 100644 index 0000000..38c240e --- /dev/null +++ b/archive/q/base32/a/47/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #47 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #47</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#47</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #47</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:12:46 に投稿 + </p> + <h2>コード</h2> + <p> + 400 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="105">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="263">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="263">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="263"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="264">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="264">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="264"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="265">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="265">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="265"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="266">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="266">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="266"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/48/index.html b/archive/q/base32/a/48/index.html new file mode 100644 index 0000000..cce97aa --- /dev/null +++ b/archive/q/base32/a/48/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #48 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #48</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#48</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #48</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:14:07 に投稿 + </p> + <h2>コード</h2> + <p> + 398 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, 0), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="106">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="267">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="267">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="267"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="268">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="268">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="268"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="269">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="269">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="269"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="270">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="270">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="270"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/49/index.html b/archive/q/base32/a/49/index.html new file mode 100644 index 0000000..ad18ba1 --- /dev/null +++ b/archive/q/base32/a/49/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #49 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #49</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#49</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #49</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:15:04 に投稿 + </p> + <h2>コード</h2> + <p> + 396 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $t .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, 0, 0);
+ }
+ foreach (str_split($t, 5) as $b) {
+ $s .= A[base_convert(str_pad($b, 5, 0), 2, 10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="107">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="271">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="271">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="271"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="272">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="272">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="272"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="273">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="273">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="273"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="274">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="274">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="274"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/5/index.html b/archive/q/base32/a/5/index.html new file mode 100644 index 0000000..6b9e0d6 --- /dev/null +++ b/archive/q/base32/a/5/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #5 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #5</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#5</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #5</h2> + <p> + tadsan が 2024-03-06 21:25:10 に投稿 + </p> + <h2>コード</h2> + <p> + 321 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',base_convert(strval(ord($l[$i])),10,2));echo implode(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][base_convert(str_pad($b, 5, '0'), 2, 10)],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="20">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="38">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="38"> +Warning: Undefined variable $t in php.wasm code on line 6 +NBXWOZI= +NBXWOZLQNF4W6=== +NBXWOZLQNF4W6ZTVM5QQ==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="38"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="39">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="39"> +Warning: Undefined variable $t in php.wasm code on line 6 +4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="39"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="40">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="40"> +Warning: Undefined variable $t in php.wasm code on line 6 +GEZDGNBVGY3Q==== +GEZDGNBVGY3TCMQ= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A==== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI=== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="40"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="60">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="60"> +Warning: Undefined variable $t in php.wasm code on line 6 +MEQGEIDD +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="60"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/50/index.html b/archive/q/base32/a/50/index.html new file mode 100644 index 0000000..f8cbf16 --- /dev/null +++ b/archive/q/base32/a/50/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #50 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #50</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#50</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #50</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:16:34 に投稿 + </p> + <h2>コード</h2> + <p> + 370 byte + </p> + <pre><code class="hljs language-php">const A='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for($i=0;$i<strlen($l);$i++){
+ $t.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,0,0);
+ }
+ foreach(str_split($t,5)as$b){
+ $s.=A[base_convert(str_pad($b,5,0),2,10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="108">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="275">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="275">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="275"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="276">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="276">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="276"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="277">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="277">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="277"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="278">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="278">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="278"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/51/index.html b/archive/q/base32/a/51/index.html new file mode 100644 index 0000000..fc78b86 --- /dev/null +++ b/archive/q/base32/a/51/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #51 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #51</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#51</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #51</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:17:05 に投稿 + </p> + <h2>コード</h2> + <p> + 366 byte + </p> + <pre><code class="hljs language-php">$a='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=rtrim(fgets(STDIN))){
+ $t=$s='';
+ for($i=0;$i<strlen($l);$i++){
+ $t.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,0,0);
+ }
+ foreach(str_split($t,5)as$b){
+ $s.=$a[base_convert(str_pad($b,5,0),2,10)];
+ }
+ $u=strlen($t)%40;
+ echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="109">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="279">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="279">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="279"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="280">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="280">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="280"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="281">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="281">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="281"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="282">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="282">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="282"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/52/index.html b/archive/q/base32/a/52/index.html new file mode 100644 index 0000000..1d1790f --- /dev/null +++ b/archive/q/base32/a/52/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #52 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #52</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#52</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #52</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:18:57 に投稿 + </p> + <h2>コード</h2> + <p> + 333 byte + </p> + <pre><code class="hljs language-php">$a='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';while($l=rtrim(fgets(STDIN))){$t=$s='';for($i=0;$i<strlen($l);$i++){$t.=str_pad(base_convert(strval(ord($l[$i])),10,2),8,0,0);}foreach(str_split($t,5)as$b){$s.=$a[base_convert(str_pad($b,5,0),2,10)];}$u=strlen($t)%40;echo$s.=($u==32?'=':($u==24?'===':($u==16?'====':($u==8?'======':''))))."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="110">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="283">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="283">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="283"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="284">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="284">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="284"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="285">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="285">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="285"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="286">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="286">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="286"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/53/index.html b/archive/q/base32/a/53/index.html new file mode 100644 index 0000000..7f0539e --- /dev/null +++ b/archive/q/base32/a/53/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #53 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #53</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#53</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #53</h2> + <p> + kunikiya が 2024-03-08 02:21:52 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="140">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="330">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="330">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="330"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="331">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="331">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="331"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="332">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="332">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="332"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="333">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="333">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="333"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/54/index.html b/archive/q/base32/a/54/index.html new file mode 100644 index 0000000..a13c1d8 --- /dev/null +++ b/archive/q/base32/a/54/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #54 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #54</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#54</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #54</h2> + <p> + kunikiya が 2024-03-08 02:26:59 に投稿 + </p> + <h2>コード</h2> + <p> + 484 byte + </p> + <pre><code class="hljs language-php">$t = array_merge(range('A','Z'),range(2,7));
+while ($line = rtrim(fgets(STDIN))) {
+ $bi = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $b = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b .= $t[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $b .= match (strlen($bi) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $b, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="141">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="334">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="334">01I= +11Y= +01I= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="334"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="335">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="335">10010S +10111X +00001B + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="335"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="336">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="336">1Q==== +0A==== +10000Q +1000Q=== +0011G=== +10101V +01I= +00A= +001E====== +110Y====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="336"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="337">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="337">00011D +01010K + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="337"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/55/index.html b/archive/q/base32/a/55/index.html new file mode 100644 index 0000000..5641344 --- /dev/null +++ b/archive/q/base32/a/55/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #55 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #55</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#55</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #55</h2> + <p> + kunikiya が 2024-03-08 02:29:59 に投稿 + </p> + <h2>コード</h2> + <p> + 484 byte + </p> + <pre><code class="hljs language-php">$t = array_merge(range('A','Z'),range(2,7));
+while ($line = rtrim(fgets(STDIN))) {
+ $bi = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $b = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b .= $t[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $b .= match (strlen($bi) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $b, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="143">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="339">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="339">01I= +11Y= +01I= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="339"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="340">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="340">10010S +10111X +00001B + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="340"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="341">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="341">1Q==== +0A==== +10000Q +1000Q=== +0011G=== +10101V +01I= +00A= +001E====== +110Y====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="341"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="342">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="342">00011D +01010K + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="342"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/56/index.html b/archive/q/base32/a/56/index.html new file mode 100644 index 0000000..6097781 --- /dev/null +++ b/archive/q/base32/a/56/index.html @@ -0,0 +1,132 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #56 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #56</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#56</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #56</h2> + <p> + kunikiya が 2024-03-08 02:32:40 に投稿 + </p> + <h2>コード</h2> + <p> + 488 byte + </p> + <pre><code class="hljs language-php">$t = array_merge(range('A','Z'),range(2,7));
+while ($line = rtrim(fgets(STDIN))) {
+ $bi = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $b3 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b3 .= $t[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $b3 .= match (strlen($bi) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $b3, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="144">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="343">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="343">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="343"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="344">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="344">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="344"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="345">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="345">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="345"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="346">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="346">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="346"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/57/index.html b/archive/q/base32/a/57/index.html new file mode 100644 index 0000000..8d3adc9 --- /dev/null +++ b/archive/q/base32/a/57/index.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #57 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #57</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#57</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #57</h2> + <p> + kunikiya が 2024-03-08 02:34:49 に投稿 + </p> + <h2>コード</h2> + <p> + 399 byte + </p> + <pre><code class="hljs language-php">$t = array_merge(range('A','Z'),range(2,7));
+while ($l = rtrim(fgets(STDIN))) {
+$bi = '';
+for ($i = 0; $i < strlen($l); $i++)$bi .= str_pad(base_convert(strval(ord($l[$i])),10,2),8,'0',STR_PAD_LEFT);
+$b3 = '';
+foreach (str_split($bi, 5) as $b)$b3 .= $t[base_convert(str_pad($b,5,'0'),2,10)];
+$b3 .= match(strlen($bi)%40){
+8=>'======',
+16=>'====',
+24=>'===',
+32=>'=',
+default=>'',
+};
+echo $b3,"\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="145">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="347">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="347">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="347"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="348">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="348">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="348"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="349">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="349">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="349"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="350">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="350">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="350"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/58/index.html b/archive/q/base32/a/58/index.html new file mode 100644 index 0000000..0b70f3b --- /dev/null +++ b/archive/q/base32/a/58/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #58 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #58</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#58</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #58</h2> + <p> + tadsan が 2024-03-08 04:54:22 に投稿 + </p> + <h2>コード</h2> + <p> + 287 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),str_repeat('=',(fn($n)=>($n%8)?0:6-$n/8)(strlen($t)%40))??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="166">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="395">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="395">NBXWOZI== +OBUXS3Y== +MZ2WOYI== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="395"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="396">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="396">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OA2VY4BRTRYFCPDQGDOHAMX====== +4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="396"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="397">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="397">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ====== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV====== +GEZDGNBVGY3TQOI== +GEZDGNA== +GE===== +GEZDGNBVGY===== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="397"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="398">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="398">MEQGEIDD====== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="398"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/59/index.html b/archive/q/base32/a/59/index.html new file mode 100644 index 0000000..db0fc92 --- /dev/null +++ b/archive/q/base32/a/59/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #59 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #59</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#59</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #59</h2> + <p> + tadsan が 2024-03-08 04:56:22 に投稿 + </p> + <h2>コード</h2> + <p> + 280 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for(;@$i++<strlen($l);)$t.=str_pad(decbin(ord($l[$i])),8,0,0);echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,0))],str_split($t,5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="167">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="399">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="399"> +Warning: Uninitialized string offset 4 in php.wasm code on line 6 +N5TWKAA= + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="399"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="400">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="400"> +Warning: Uninitialized string offset 15 in php.wasm code on line 6 +QGDOHAML4OBIVY4BV7RYDEQA + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="400"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="401">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="401"> +Warning: Uninitialized string offset 7 in php.wasm code on line 6 +GIZTINJWG4AA==== + + +Warning: Uninitialized string offset 10 in php.wasm code on line 6 +AA====== + + + + + + + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="401"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="402">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="402"> +Warning: Uninitialized string offset 5 in php.wasm code on line 6 +EBRCAYYA + +Warning: Uninitialized string offset 20 in php.wasm code on line 6 +QQQOHAMGEDRYDCBA4OAYUAA= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="402"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/6/index.html b/archive/q/base32/a/6/index.html new file mode 100644 index 0000000..2eb8a70 --- /dev/null +++ b/archive/q/base32/a/6/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #6 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #6</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#6</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #6</h2> + <p> + tadsan が 2024-03-06 21:31:02 に投稿 + </p> + <h2>コード</h2> + <p> + 329 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',base_convert(strval(ord($l[$i])),10,2));echo implode(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][base_convert(str_pad($b, 5, '0'), 2, 10)],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t) % 40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="21">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="41">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="41">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="41"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="42">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="42">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="42"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="43">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="43">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="43"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="63">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="63">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="63"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/60/index.html b/archive/q/base32/a/60/index.html new file mode 100644 index 0000000..5990fe4 --- /dev/null +++ b/archive/q/base32/a/60/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #60 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #60</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#60</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #60</h2> + <p> + tadsan が 2024-03-08 04:58:12 に投稿 + </p> + <h2>コード</h2> + <p> + 286 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=chop($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=str_pad(decbin(ord($l[$i])),8,0,0);echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,0))],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="168">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="403">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="403">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="403"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="404">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="404">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="404"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="405">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="405">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="405"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="406">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="406">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="406"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/61/index.html b/archive/q/base32/a/61/index.html new file mode 100644 index 0000000..9d11fe1 --- /dev/null +++ b/archive/q/base32/a/61/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #61 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #61</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#61</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #61</h2> + <p> + tadsan が 2024-03-08 05:25:17 に投稿 + </p> + <h2>コード</h2> + <p> + 383 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch ($s[$c]) {case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){for($d=1;$d>0;$c++){if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){for($d=1;$d>0;$c--){if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="169">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="407">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="407"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="407"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="408">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="408"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="408"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="409">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="409"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="409"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="410">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="410"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="410"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/62/index.html b/archive/q/base32/a/62/index.html new file mode 100644 index 0000000..034beb7 --- /dev/null +++ b/archive/q/base32/a/62/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #62 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #62</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#62</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #62</h2> + <p> + nsfisis が 2024-03-08 05:25:41 に投稿 + </p> + <h2>コード</h2> + <p> + 235 byte + </p> + <pre><code class="hljs language-php">while($l=unpack('C*',chop(fgets(STDIN)))){$b=$r='';for($i=1;$k=@$l[$i++];)$b.=sprintf('%08b',$k);foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,ceil(strlen($r)/8)*8,'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="170">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="411">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="411">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="411"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="412">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="412">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="412"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="413">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="413">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="413"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="414">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="414">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="414"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/63/index.html b/archive/q/base32/a/63/index.html new file mode 100644 index 0000000..88083f0 --- /dev/null +++ b/archive/q/base32/a/63/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #63 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #63</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#63</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #63</h2> + <p> + nsfisis が 2024-03-08 05:41:48 に投稿 + </p> + <h2>コード</h2> + <p> + 227 byte + </p> + <pre><code class="hljs language-php">while($l=chop(fgets(STDIN))){$b=$r='';for($i=0;$k=@$l[$i++];)$b.=sprintf('%08b',ord($k));foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,ceil(strlen($r)/8)*8,'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="179">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="439">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="439">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="439"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="440">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="440">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="440"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="441">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="441">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOI= +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="441"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="442">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="442">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="442"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/64/index.html b/archive/q/base32/a/64/index.html new file mode 100644 index 0000000..d47f392 --- /dev/null +++ b/archive/q/base32/a/64/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #64 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #64</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#64</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #64</h2> + <p> + nsfisis が 2024-03-08 05:45:58 に投稿 + </p> + <h2>コード</h2> + <p> + 236 byte + </p> + <pre><code class="hljs language-php">while($l=chop(fgets(STDIN))){$b=$r='';for($i=0;$i++<strlen($l);)$b.=sprintf('%08b',ord($l[$i-1]));foreach(str_split($b,5)as$b)$r.=[...range('A','Z'),...range(2,7)][bindec(str_pad($b,5,0))];echo str_pad($r,ceil(strlen($r)/8)*8,'='),"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="181">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="446">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="446">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="446"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="447">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="447">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="447"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="448">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="448">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="448"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="449">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="449">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="449"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/65/index.html b/archive/q/base32/a/65/index.html new file mode 100644 index 0000000..9448362 --- /dev/null +++ b/archive/q/base32/a/65/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #65 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #65</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#65</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #65</h2> + <p> + ticknical が 2024-03-08 09:38:51 に投稿 + </p> + <h2>コード</h2> + <p> + 266 byte + </p> + <pre><code class="hljs language-php">const TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=fgets(STDIN)){$l=rtrim($l);$b='';foreach(str_split($l)as$c)$b.=str_pad(decbin(ord($c)),8,0,0);$b32='';foreach(str_split($b,5)as$b)$b32.=TABLE[bindec(str_pad($b,5,0))];echo$b32.(strlen($b)%40?'===':''),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="194">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="470">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="470">NBXWOZI=== +OBUXS3Y=== +MZ2WOYI=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="470"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="471">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="471">4OAYNY4BRPRYFCXDQGX6HAMS=== +4OA2VY4BRTRYFCPDQGDOHAMX=== +4OBI7Y4BTHRYFCPDQKBOHANB=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="471"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="472">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="472">GEZDGNBVGY3Q=== +GEZA=== +GEZDGNBVGY3TQOJQ=== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV=== +GEZDGNBVGY3TQOI=== +GEZDGNA=== +GE=== +GEZDGNBVGY=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="472"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="473">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="473">MEQGEIDD=== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="473"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/66/index.html b/archive/q/base32/a/66/index.html new file mode 100644 index 0000000..7315f93 --- /dev/null +++ b/archive/q/base32/a/66/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #66 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #66</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#66</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #66</h2> + <p> + ticknical が 2024-03-08 09:39:17 に投稿 + </p> + <h2>コード</h2> + <p> + 267 byte + </p> + <pre><code class="hljs language-php">const TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while($l=fgets(STDIN)){$l=rtrim($l);$b='';foreach(str_split($l)as$c)$b.=str_pad(decbin(ord($c)),8,0,0);$b32='';foreach(str_split($b,5)as$b)$b32.=TABLE[bindec(str_pad($b,5,0))];echo$b32.(strlen($b)%40?'===':''),"\n";};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="195">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="474">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="474">NBXWOZI=== +OBUXS3Y=== +MZ2WOYI=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="474"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="475">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="475">4OAYNY4BRPRYFCXDQGX6HAMS=== +4OA2VY4BRTRYFCPDQGDOHAMX=== +4OBI7Y4BTHRYFCPDQKBOHANB=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="475"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="476">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="476">GEZDGNBVGY3Q=== +GEZA=== +GEZDGNBVGY3TQOJQ=== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV=== +GEZDGNBVGY3TQOI=== +GEZDGNA=== +GE=== +GEZDGNBVGY=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="476"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="477">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="477">MEQGEIDD=== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK=== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="477"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/67/index.html b/archive/q/base32/a/67/index.html new file mode 100644 index 0000000..a9db897 --- /dev/null +++ b/archive/q/base32/a/67/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #67 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #67</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#67</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #67</h2> + <p> + ticknical が 2024-03-08 09:57:33 に投稿 + </p> + <h2>コード</h2> + <p> + 351 byte + </p> + <pre><code class="hljs language-php">const TABLE = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+while ($l = rtrim(fgets(STDIN))) {
+ $b = '';
+ foreach (str_split($l) as $c) {
+ $b .= str_pad(decbin(ord($c)), 8, '0', STR_PAD_LEFT);
+ }
+ $b32 = '';
+ foreach (str_split($b, 5) as $b) {
+ $b32 .= TABLE[bindec(str_pad($b, 5, '0'))];
+ }
+ echo rtrim($b32, '='), PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="196">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="478">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="478">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="478"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="479">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="479">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="479"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="480">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="480">GEZDGNBVGY3Q +GEZA +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ +GEZDG +GEZDGNBV +GEZDGNBVGY3TQOI +GEZDGNA +GE +GEZDGNBVGY + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="480"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="481">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="481">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="481"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/68/index.html b/archive/q/base32/a/68/index.html new file mode 100644 index 0000000..48ce6c3 --- /dev/null +++ b/archive/q/base32/a/68/index.html @@ -0,0 +1,144 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #68 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #68</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#68</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #68</h2> + <p> + oogFranz が 2024-03-08 11:16:28 に投稿 + </p> + <h2>コード</h2> + <p> + 203 byte + </p> + <pre><code class="hljs language-php"><?$t=str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');while($l=fgets(STDIN)){for($b='';$c=ord($l[$i++]);)$b.=str_pad(decbin($c),8,0,0);echo str_replace('=','',chunk_split(strtr($b,'01',$t),8,'======'))."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="205">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="492">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="492"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Uninitialized string offset 5 in php.wasm code on line 6 + +Fatal error: Uncaught TypeError: strtr(): Argument #3 ($to) must be of type ?string, array given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): strtr('011010000110111...', '01', Array) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="492"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="493">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="493"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Uninitialized string offset 16 in php.wasm code on line 6 + +Fatal error: Uncaught TypeError: strtr(): Argument #3 ($to) must be of type ?string, array given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): strtr('111000111000000...', '01', Array) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="493"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="494">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="494"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Uninitialized string offset 8 in php.wasm code on line 6 + +Fatal error: Uncaught TypeError: strtr(): Argument #3 ($to) must be of type ?string, array given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): strtr('001100010011001...', '01', Array) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="494"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="495">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="495"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Uninitialized string offset 6 in php.wasm code on line 6 + +Fatal error: Uncaught TypeError: strtr(): Argument #3 ($to) must be of type ?string, array given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): strtr('011000010010000...', '01', Array) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="495"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/69/index.html b/archive/q/base32/a/69/index.html new file mode 100644 index 0000000..d263ecc --- /dev/null +++ b/archive/q/base32/a/69/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #69 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #69</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#69</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #69</h2> + <p> + takaram が 2024-03-08 12:34:15 に投稿 + </p> + <h2>コード</h2> + <p> + 229 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b='';for($i=0;$i<strlen($l)-1;){$b.=sprintf('%08b',ord($l[$i++]));}foreach(str_split($b,5)as$j){echo[...range('A','Z'),...range(2,7)][bindec(str_pad($j,5,0))];}echo str_repeat('=',[0,6,4,3,1][$i%5]),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="222">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="512">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="512">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="512"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="513">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="513">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="513"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="514">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="514">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="514"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="515">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="515">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="515"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/7/index.html b/archive/q/base32/a/7/index.html new file mode 100644 index 0000000..d4843e6 --- /dev/null +++ b/archive/q/base32/a/7/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #7 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #7</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#7</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #7</h2> + <p> + tadsan が 2024-03-06 21:39:42 に投稿 + </p> + <h2>コード</h2> + <p> + 317 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',base_convert(ord($l[$i]).'',10,2));echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][base_convert(str_pad($b,5,'0'),2,10)],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t) % 40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="23">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="45">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="45">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="45"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="46">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="46">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="46"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="47">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="47">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="47"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="64">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="64">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="64"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/70/index.html b/archive/q/base32/a/70/index.html new file mode 100644 index 0000000..b19a5fb --- /dev/null +++ b/archive/q/base32/a/70/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #70 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #70</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#70</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #70</h2> + <p> + takaram が 2024-03-08 12:40:28 に投稿 + </p> + <h2>コード</h2> + <p> + 225 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$b='';for($i=0;$i<strlen($l)-1;)$b.=sprintf('%08b',ord($l[$i++]));foreach(str_split($b,5)as$j)echo[...range('A','Z'),...range(2,7)][bindec(str_pad($j,5,0))];echo str_repeat('=',[0,6,4,3,1][$i%5]),"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="223">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="516">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="516">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="516"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="517">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="517">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="517"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="518">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="518">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="518"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="519">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="519">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="519"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/71/index.html b/archive/q/base32/a/71/index.html new file mode 100644 index 0000000..5ab1d35 --- /dev/null +++ b/archive/q/base32/a/71/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #71 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #71</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#71</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #71</h2> + <p> + m3m0r7 が 2024-03-08 12:52:07 に投稿 + </p> + <h2>コード</h2> + <p> + 360 byte + </p> + <pre><code class="hljs language-php">$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';$c='base_convert';$s='str_pad';$l="strlen";while($line=fgets(STDIN)){for($i= 0,$line=rtrim($line);$i<$l($line);$i++)$bits=($bits??'').$s($c(''.ord($line[$i]),10,2),8,'0',STR_PAD_LEFT);foreach (str_split($bits,5)as$b)echo$t[$c($s($b,5,'0'),2,10)];echo [8=>'======',16=>'====',24=>'===',32=>'='][($v=$l($bits)%40)]??'',"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="224">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="520">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="520">NBXWOZI= +NBXWOZLQNF4W6=== +NBXWOZLQNF4W6ZTVM5QQ==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="520"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="521">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="521">4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="521"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="522">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="522">GEZDGNBVGY3Q==== +GEZDGNBVGY3TCMQ= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A==== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI=== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="522"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="523">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="523">MEQGEIDD +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="523"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/72/index.html b/archive/q/base32/a/72/index.html new file mode 100644 index 0000000..de040ac --- /dev/null +++ b/archive/q/base32/a/72/index.html @@ -0,0 +1,130 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #72 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #72</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#72</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #72</h2> + <p> + m3m0r7 が 2024-03-08 12:59:10 に投稿 + </p> + <h2>コード</h2> + <p> + 491 byte + </p> + <pre><code class="hljs language-php"><?php
+$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+$c='base_convert';
+$s='str_pad';
+$l="strlen";
+
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($bits, 5) as $b) {
+ echo $t[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo [8=>'======',16=>'====',24=>'===',32=>'='][$l($bits)%40]??'', PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="225">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="524">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="524">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="524"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="525">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="525">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="525"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="526">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="526">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="526"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="527">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="527">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="527"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/73/index.html b/archive/q/base32/a/73/index.html new file mode 100644 index 0000000..83a6ff8 --- /dev/null +++ b/archive/q/base32/a/73/index.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #73 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #73</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#73</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #73</h2> + <p> + m3m0r7 が 2024-03-08 12:59:59 に投稿 + </p> + <h2>コード</h2> + <p> + 457 byte + </p> + <pre><code class="hljs language-php"><?php
+$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+$c='base_convert';
+$s='str_pad';
+$l="strlen";
+
+while ($line = fgets(STDIN)) {
+ for ($i = 0,$line = rtrim($line); $i < $l($line); $i++) {
+ $bits = ($bits??'').str_pad($c(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($bits, 5) as $b) {
+ echo $t[$c(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo [8=>'======',16=>'====',24=>'===',32=>'='][$l($bits)%40]??'', PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="226">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="528">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="528">NBXWOZI= +NBXWOZLQNF4W6=== +NBXWOZLQNF4W6ZTVM5QQ==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="528"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="529">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="529">4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="529"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="530">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="530">GEZDGNBVGY3Q==== +GEZDGNBVGY3TCMQ= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A==== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI=== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="530"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="531">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="531">MEQGEIDD +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="531"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/74/index.html b/archive/q/base32/a/74/index.html new file mode 100644 index 0000000..b712477 --- /dev/null +++ b/archive/q/base32/a/74/index.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #74 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #74</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#74</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #74</h2> + <p> + m3m0r7 が 2024-03-08 13:00:19 に投稿 + </p> + <h2>コード</h2> + <p> + 462 byte + </p> + <pre><code class="hljs language-php"><?php
+$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+$c='base_convert';
+$s='str_pad';
+$l="strlen";
+
+while ($line = fgets(STDIN)) {
+ $bits = '';
+ for ($i = 0,$line = rtrim($line); $i < $l($line); $i++) {
+ $bits .= str_pad($c(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ foreach (str_split($bits, 5) as $b) {
+ echo $t[$c(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo [8=>'======',16=>'====',24=>'===',32=>'='][$l($bits)%40]??'', PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="227">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="532">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="532">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="532"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="533">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="533">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="533"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="534">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="534">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="534"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="535">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="535">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="535"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/75/index.html b/archive/q/base32/a/75/index.html new file mode 100644 index 0000000..7161054 --- /dev/null +++ b/archive/q/base32/a/75/index.html @@ -0,0 +1,129 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #75 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #75</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#75</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #75</h2> + <p> + m3m0r7 が 2024-03-08 13:04:02 に投稿 + </p> + <h2>コード</h2> + <p> + 396 byte + </p> + <pre><code class="hljs language-php"><?php
+$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+$c='base_convert';
+$s='str_pad';
+$l="strlen";
+
+while ($line = fgets(STDIN)) {
+ for ($a='',$i=0;$i < $l($line)-1; $i++) {
+ $a .= sprintf("%08s",$c(''.ord($line[$i]), 10, 2));
+ }
+ foreach (str_split($a, 5) as $b) {
+ echo $t[$c(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo [8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="228">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="536">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="536">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="536"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="537">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="537">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="537"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="538">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="538">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="538"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="539">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="539">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="539"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/76/index.html b/archive/q/base32/a/76/index.html new file mode 100644 index 0000000..c5b4a2f --- /dev/null +++ b/archive/q/base32/a/76/index.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #76 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #76</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#76</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #76</h2> + <p> + m3m0r7 が 2024-03-08 13:15:22 に投稿 + </p> + <h2>コード</h2> + <p> + 326 byte + </p> + <pre><code class="hljs language-php">$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+$c='base_convert';
+$l="strlen";
+
+while($s=fgets(STDIN)) {
+ foreach(str_split($a=implode(array_map(fn($v)=>sprintf("%08s",$c($v,10,2)),unpack('C'.$l($s)-1,$s))),5)as$b)
+ echo$t[$c(str_pad($b,5,'0'),2,10)];
+ echo[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="229">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="540">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="540">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="540"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="541">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="541">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="541"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="542">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="542">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="542"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="543">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="543">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="543"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/77/index.html b/archive/q/base32/a/77/index.html new file mode 100644 index 0000000..c5465bb --- /dev/null +++ b/archive/q/base32/a/77/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #77 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #77</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#77</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #77</h2> + <p> + m3m0r7 が 2024-03-08 13:19:19 に投稿 + </p> + <h2>コード</h2> + <p> + 301 byte + </p> + <pre><code class="hljs language-php">$t='ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';$c='base_convert';$l="strlen";while($s=fgets(STDIN)){foreach(str_split($a=implode(array_map(fn($v)=>sprintf("%08s",$c($v,10,2)),unpack('C'.$l($s)-1,$s))),5)as$b)echo$t[$c(str_pad($b,5,'0'),2,10)];echo[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="230">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="544">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="544">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="544"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="545">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="545">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="545"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="546">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="546">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="546"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="547">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="547">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="547"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/78/index.html b/archive/q/base32/a/78/index.html new file mode 100644 index 0000000..5b52ff2 --- /dev/null +++ b/archive/q/base32/a/78/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #78 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #78</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#78</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #78</h2> + <p> + m3m0r7 が 2024-03-08 13:26:38 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php"><?php
+$l="strlen";
+
+while($s=fgets(STDIN)) {
+ foreach(str_split($a=implode(array_map(fn($v)=>sprintf("%08s",decbin($v)),unpack('C'.$l($s)-1,$s))),5)as$b)
+echo'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[bindec($b)];
+ echo[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="231">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="548">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="548">NBXWOZB= +OBUXS3D= +MZ2WOYB= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="548"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="549">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="549">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="549"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="550">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="550">GEZDGNBVGY3B==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TI=== +GEZDD=== +GEZDGNBV +GEZDGNBVGY3TQOB= +GEZDGNA= +GB====== +GEZDGNBVGG====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="550"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="551">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="551">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="551"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/79/index.html b/archive/q/base32/a/79/index.html new file mode 100644 index 0000000..15f77c1 --- /dev/null +++ b/archive/q/base32/a/79/index.html @@ -0,0 +1,152 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #79 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #79</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#79</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #79</h2> + <p> + oogFranz が 2024-03-08 13:27:17 に投稿 + </p> + <h2>コード</h2> + <p> + 947 byte + </p> + <pre><code class="hljs language-php"><?php
+
+/**
+ * RFC 4648 準拠の Base32 エンコーディング
+ *
+ * @param string $input エンコード対象の文字列
+ * @return string Base32 エンコードされた文字列
+ */
+function base32_encode_rfc4648($input)
+{
+ $base32Alphabet = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567';
+ $output = '';
+ $buffer = 0;
+ $bitsRemaining = 0;
+
+ foreach (str_split($input) as $byte) {
+ $buffer <<= 8;
+ $buffer |= ord($byte);
+ $bitsRemaining += 8;
+
+ while ($bitsRemaining >= 5) {
+ $output .= $base32Alphabet[$buffer >> (32 - 5)];
+ $buffer <<= 5;
+ $bitsRemaining -= 5;
+ }
+ }
+
+ if ($bitsRemaining > 0) {
+ $buffer <<= (32 - $bitsRemaining);
+ $output .= $base32Alphabet[$buffer];
+ }
+
+ return $output;
+}
+
+// 標準入力から各行を読み込み、Base32 エンコード
+while ($line = fgets(STDIN)) {
+ echo base32_encode_rfc4648(trim($line)) . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="232">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="552">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="552">AAAAQAA +AAAAQAA +AAAAQAA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="552"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="553">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="553">AAAQQAAOAQAQQAAIAQAQQAQI +AAAQQAAOAQAAQAAIAQAQAAQI +AAAQAAQOAQAQQAAIAQAAAAQI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="553"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="554">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="554">AAAQAAQDAQAA +AAAA +AAAQAAQDAQAAQAAD +AAAQAAQDAQAAA +AAAQA +AAAQAAQD +AAAQAAQDAQAAQAA +AAAQAAA +AA +AAAQAAQDAA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="554"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="555">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="555">AAAQAAAC +AAAQQAAOAQAAAAQIAAAAQAQIAAAQA + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="555"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/8/index.html b/archive/q/base32/a/8/index.html new file mode 100644 index 0000000..63d8a3a --- /dev/null +++ b/archive/q/base32/a/8/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #8 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #8</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#8</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #8</h2> + <p> + tadsan が 2024-03-06 21:42:16 に投稿 + </p> + <h2>コード</h2> + <p> + 315 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',base_convert(ord($l[$i]).'',10,2));echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][base_convert(str_pad($b,5,'0'),2,10)],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="24">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="48">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="48">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="48"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="49">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="49">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="49"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="50">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="50">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="50"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="65">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="65">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="65"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/80/index.html b/archive/q/base32/a/80/index.html new file mode 100644 index 0000000..83920c4 --- /dev/null +++ b/archive/q/base32/a/80/index.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #80 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #80</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#80</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #80</h2> + <p> + m3m0r7 が 2024-03-08 13:27:18 に投稿 + </p> + <h2>コード</h2> + <p> + 310 byte + </p> + <pre><code class="hljs language-php"><?php
+$c='base_convert';
+$l="strlen";
+
+while($s=fgets(STDIN)) {
+ foreach(str_split($a=implode(array_map(fn($v)=>sprintf("%08s",decbin($v)),unpack('C'.$l($s)-1,$s))),5)as$b)
+echo'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[$c(str_pad($b,5,'0'),2,10)];
+ echo[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="233">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="556">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="556">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="556"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="557">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="557">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="557"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="558">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="558">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="558"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="559">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="559">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="559"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/81/index.html b/archive/q/base32/a/81/index.html new file mode 100644 index 0000000..cb31b1e --- /dev/null +++ b/archive/q/base32/a/81/index.html @@ -0,0 +1,122 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #81 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #81</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#81</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #81</h2> + <p> + m3m0r7 が 2024-03-08 13:28:38 に投稿 + </p> + <h2>コード</h2> + <p> + 290 byte + </p> + <pre><code class="hljs language-php"><?php
+$l="strlen";
+
+while($s=fgets(STDIN)) {
+ foreach(str_split($a=implode(array_map(fn($v)=>sprintf("%08s",decbin($v)),unpack('C'.$l($s)-1,$s))),5)as$b)
+echo'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[bindec(str_pad($b,5,'0'))];
+ echo[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="234">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="560">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="560">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="560"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="561">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="561">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="561"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="562">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="562">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="562"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="563">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="563">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="563"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/82/index.html b/archive/q/base32/a/82/index.html new file mode 100644 index 0000000..a93288e --- /dev/null +++ b/archive/q/base32/a/82/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #82 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #82</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#82</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #82</h2> + <p> + m3m0r7 が 2024-03-08 13:37:42 に投稿 + </p> + <h2>コード</h2> + <p> + 286 byte + </p> + <pre><code class="hljs language-php">$l="strlen";$m='array_map';$j='join';while($s=fgets(STDIN))echo$j($m(fn($b)=>'ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'[bindec(str_pad($b,5,'0'))],str_split($a=$j($m(fn($v)=>sprintf("%08s",decbin($v)),unpack('C'.$l($s)-1,$s))),5))),[8=>'======',16=>'====',24=>'===',32=>'='][$l($a)%40]??'',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="237">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="566">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="566">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="566"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="567">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="567">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="567"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="568">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="568">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="568"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="569">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="569">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="569"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/83/index.html b/archive/q/base32/a/83/index.html new file mode 100644 index 0000000..932ad48 --- /dev/null +++ b/archive/q/base32/a/83/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #83 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #83</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#83</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #83</h2> + <p> + m3m0r7 が 2024-03-08 14:17:24 に投稿 + </p> + <h2>コード</h2> + <p> + 268 byte + </p> + <pre><code class="hljs language-php">for($l="strlen",$m='array_map',$j='join';$s=fgets(STDIN);)echo$j($m(fn($b)=>[...range('A','Z'),2,3,4,5,6,7][bindec(str_pad($b,5,0))],str_split($a=$j($m(fn($v)=>str_pad(decbin($v),8,0,0),unpack('C'.$l($s)-1,$s))),5))),['======','====','===','='][$l($a)%40/8-1]??'',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="243">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="575">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="575">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="575"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="576">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="576">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="576"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="577">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="577">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="577"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="578">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="578">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="578"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/84/index.html b/archive/q/base32/a/84/index.html new file mode 100644 index 0000000..01a6a43 --- /dev/null +++ b/archive/q/base32/a/84/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #84 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #84</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#84</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #84</h2> + <p> + m3m0r7 が 2024-03-08 14:56:11 に投稿 + </p> + <h2>コード</h2> + <p> + 250 byte + </p> + <pre><code class="hljs language-php">for($m='array_map',$j='join',$d='str_pad';$s=fgets(STDIN);)echo$j($m(fn($b)=>[...range('A','Z'),2,3,4,5,6,7][bindec($d($b,5,0))],str_split($a=$j($m(fn($v)=>$d(decbin($v),8,0,0),unpack('C*',rtrim($s)))),5))),substr('======',0,6-(strlen($a)%40/8)),"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="244">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="579">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="579">NBXWOZI== +OBUXS3Y== +MZ2WOYI== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="579"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="580">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="580">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OA2VY4BRTRYFCPDQGDOHAMX====== +4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="580"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="581">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="581">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ====== +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV====== +GEZDGNBVGY3TQOI== +GEZDGNA== +GE===== +GEZDGNBVGY===== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="581"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="582">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="582">MEQGEIDD====== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="582"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/85/index.html b/archive/q/base32/a/85/index.html new file mode 100644 index 0000000..dadfb94 --- /dev/null +++ b/archive/q/base32/a/85/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #85 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #85</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#85</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #85</h2> + <p> + m3m0r7 が 2024-03-08 14:57:05 に投稿 + </p> + <h2>コード</h2> + <p> + 262 byte + </p> + <pre><code class="hljs language-php">for($m='array_map',$j='join',$d='str_pad';$s=fgets(STDIN);)echo$j($m(fn($b)=>[...range('A','Z'),2,3,4,5,6,7][bindec($d($b,5,0))],str_split($a=$j($m(fn($v)=>$d(decbin($v),8,0,0),unpack('C*',rtrim($s)))),5))),['======','====','===','='][strlen($a)%40/8-1]??'',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="245">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="583">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="583">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="583"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="584">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="584">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="584"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="585">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="585">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="585"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="586">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="586">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="586"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/86/index.html b/archive/q/base32/a/86/index.html new file mode 100644 index 0000000..0941753 --- /dev/null +++ b/archive/q/base32/a/86/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #86 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #86</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#86</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #86</h2> + <p> + m3m0r7 が 2024-03-08 14:58:07 に投稿 + </p> + <h2>コード</h2> + <p> + 254 byte + </p> + <pre><code class="hljs language-php">for($m='array_map',$j='join',$d='str_pad';$s=fgets(STDIN);)echo$j($m(fn($b)=>[...range('A','Z'),2,3,4,5,6,7][bindec($d($b,5,0))],str_split($a=$j($m(fn($v)=>$d(decbin($v),8,0,0),unpack('C*',rtrim($s)))),5))),substr('======',0,6-(strlen($a)%40/8-1)*2),"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="246">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="587">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="587">NBXWOZI +OBUXS3Y +MZ2WOYI + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="587"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="588">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="588">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OA2VY4BRTRYFCPDQGDOHAMX====== +4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="588"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="589">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="589">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ====== +GEZDGNBVGY3TQ== +GEZDG== +GEZDGNBV====== +GEZDGNBVGY3TQOI +GEZDGNA +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="589"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="590">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="590">MEQGEIDD====== +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="590"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/87/index.html b/archive/q/base32/a/87/index.html new file mode 100644 index 0000000..1d7fdd3 --- /dev/null +++ b/archive/q/base32/a/87/index.html @@ -0,0 +1,138 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #87 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #87</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#87</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #87</h2> + <p> + hanhan1978 が 2024-03-08 15:13:28 に投稿 + </p> + <h2>コード</h2> + <p> + 677 byte + </p> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="249">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="593">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="593">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="593"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="594">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="594">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="594"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="595">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="595">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="595"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="596">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="596">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="596"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/88/index.html b/archive/q/base32/a/88/index.html new file mode 100644 index 0000000..e45916d --- /dev/null +++ b/archive/q/base32/a/88/index.html @@ -0,0 +1,139 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #88 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #88</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#88</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #88</h2> + <p> + hanhan1978 が 2024-03-08 15:19:15 に投稿 + </p> + <h2>コード</h2> + <p> + 620 byte + </p> + <pre><code class="hljs language-php"><?php
+const T = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $bi = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+ }
+ $b32 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b32 .= T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $b32 .= match (strlen($bi) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $b32, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="250">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="597">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="597">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="597"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="598">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="598">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="598"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="599">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="599">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="599"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="600">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="600">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="600"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/89/index.html b/archive/q/base32/a/89/index.html new file mode 100644 index 0000000..ee13a2f --- /dev/null +++ b/archive/q/base32/a/89/index.html @@ -0,0 +1,134 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #89 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #89</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#89</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #89</h2> + <p> + hanhan1978 が 2024-03-08 15:22:44 に投稿 + </p> + <h2>コード</h2> + <p> + 490 byte + </p> + <pre><code class="hljs language-php"><?php
+$T = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $bi = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+ }
+ $b32 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b32 .= $T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $b32 .= match (strlen($bi) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $b32, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="251">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="601">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="601">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="601"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="602">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="602">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="602"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="603">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="603">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="603"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="604">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="604">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="604"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/9/index.html b/archive/q/base32/a/9/index.html new file mode 100644 index 0000000..8a90483 --- /dev/null +++ b/archive/q/base32/a/9/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #9 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #9</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#9</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #9</h2> + <p> + tadsan が 2024-03-06 21:44:29 に投稿 + </p> + <h2>コード</h2> + <p> + 293 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){$l=rtrim($l);$t='';for($i=0;$i<strlen($l);$i++)$t.=sprintf('%08d',decbin(ord($l[$i]).''));echo join(array_map(fn($b)=>[...range('A','Z'),...range('2','7')][bindec(str_pad($b,5,'0'))],str_split($t, 5))),[8=>'======',16=>'====',24=>'===',32=>'='][strlen($t)%40]??'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="25">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="51">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="51">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="51"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="52">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="52">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="52"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="53">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="53">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="53"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="62">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="62">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="62"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/90/index.html b/archive/q/base32/a/90/index.html new file mode 100644 index 0000000..4ad2f98 --- /dev/null +++ b/archive/q/base32/a/90/index.html @@ -0,0 +1,127 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #90 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #90</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#90</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #90</h2> + <p> + hanhan1978 が 2024-03-08 15:52:02 に投稿 + </p> + <h2>コード</h2> + <p> + 404 byte + </p> + <pre><code class="hljs language-php"><?php
+$T = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $bi = '';
+ foreach(mb_str_split($l) as $m){
+ $bi .= str_pad(base_convert(ord($m), 10, 2), 8, '0', 0);
+ }
+ $b3 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b3 .= $T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo $b3 .= str_repeat('=', [8=>6,16=>4,24=>3,32=>1][strlen($bi)%40]??0), "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="256">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="617">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="617">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="617"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="618">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="618">4PR6HY7D +4PR6HY7D +4PR6HY7D + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="618"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="619">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="619">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="619"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="620">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="620">MEQGEIDD +EAQOHYZA4MQOGIHD + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="620"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/91/index.html b/archive/q/base32/a/91/index.html new file mode 100644 index 0000000..ab6148d --- /dev/null +++ b/archive/q/base32/a/91/index.html @@ -0,0 +1,127 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #91 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #91</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#91</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #91</h2> + <p> + hanhan1978 が 2024-03-08 15:52:44 に投稿 + </p> + <h2>コード</h2> + <p> + 412 byte + </p> + <pre><code class="hljs language-php"><?php
+$T = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $bi = '';
+ foreach(mb_str_split($l) as $m){
+ $bi .= str_pad(base_convert(strval(ord($m)), 10, 2), 8, '0', 0);
+ }
+ $b3 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b3 .= $T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo $b3 .= str_repeat('=', [8=>6,16=>4,24=>3,32=>1][strlen($bi)%40]??0), "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="257">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="621">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="621">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="621"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="622">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="622">4PR6HY7D +4PR6HY7D +4PR6HY7D + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="622"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="623">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="623">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="623"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="624">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="624">MEQGEIDD +EAQOHYZA4MQOGIHD + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="624"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/92/index.html b/archive/q/base32/a/92/index.html new file mode 100644 index 0000000..59a9d6d --- /dev/null +++ b/archive/q/base32/a/92/index.html @@ -0,0 +1,126 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #92 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #92</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#92</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #92</h2> + <p> + hanhan1978 が 2024-03-08 15:54:28 に投稿 + </p> + <h2>コード</h2> + <p> + 421 byte + </p> + <pre><code class="hljs language-php">$T = str_split('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567');
+while ($l = fgets(STDIN)) {
+ $l = rtrim($l);
+ $bi = '';
+ for ($i = 0; $i < strlen($l); $i++) {
+ $bi .= str_pad(base_convert(strval(ord($l[$i])), 10, 2), 8, '0', 0);
+ }
+ $b3 = '';
+ foreach (str_split($bi, 5) as $b) {
+ $b3 .= $T[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ echo $b3 .= str_repeat('=', [8=>6,16=>4,24=>3,32=>1][strlen($bi)%40]??0), "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="258">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="625">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="625">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="625"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="626">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="626">4OAYNY4BRPRYFCXDQGX6HAMS +4OA2VY4BRTRYFCPDQGDOHAMX +4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="626"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="627">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="627">GEZDGNBVGY3Q==== +GEZA==== +GEZDGNBVGY3TQOJQ +GEZDGNBVGY3TQ=== +GEZDG=== +GEZDGNBV +GEZDGNBVGY3TQOI= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="627"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="628">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="628">MEQGEIDD +EAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="628"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/93/index.html b/archive/q/base32/a/93/index.html new file mode 100644 index 0000000..abfd7a6 --- /dev/null +++ b/archive/q/base32/a/93/index.html @@ -0,0 +1,116 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #93 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #93</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#93</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #93</h2> + <p> + happylifetaka が 2024-03-08 17:36:52 に投稿 + </p> + <h2>コード</h2> + <p> + 59 byte + </p> + <pre><code class="hljs language-php"><?php while($s=fgets(STDIN))echo strtoupper(base32_encode($s));?></code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="284">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="684">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="684"> +Fatal error: Uncaught Error: Call to undefined function base32_encode() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="684"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="685">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="685"> +Fatal error: Uncaught Error: Call to undefined function base32_encode() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="685"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="686">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="686"> +Fatal error: Uncaught Error: Call to undefined function base32_encode() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="686"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="687">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="687"> +Fatal error: Uncaught Error: Call to undefined function base32_encode() in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="687"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/94/index.html b/archive/q/base32/a/94/index.html new file mode 100644 index 0000000..cb16501 --- /dev/null +++ b/archive/q/base32/a/94/index.html @@ -0,0 +1,114 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #94 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #94</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#94</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #94</h2> + <p> + xpadev が 2024-03-08 21:36:57 に投稿 + </p> + <h2>コード</h2> + <p> + 288 byte + </p> + <pre><code class="hljs language-php">$a=array_merge(range('A','Z'),range(2,7));while ($b=base_convert(unpack('H*',rtrim(fgets(STDIN)))[1],16,2)) {$c=strlen($b);$b=str_split(str_pad($b,$c+(8-$c%8),'0',STR_PAD_LEFT),5);$e="";foreach($b as $d){$e.=$a[bindec(str_pad($d,5,"0"))];}$e.=str_repeat("=", 8-count($b)%8);echo $e."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="343">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="762">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="762">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="762"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="763">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="763">AAAAAAAAAAAAAAA= +AAAAAAAAAAAAAAA= +AAAAAAAAAAAAAAA= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="763"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="764">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="764">GEZDGNBVGY4A==== +GEZA==== +AAZTINJWHAAAAAA= +GEZDGNBVGY4AA=== +GEZDG=== +GEZDGNBV======== +AAZDGNBVGY4AAAA= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="764"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="765">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="765">MEQGEIDD======== +AAAAAAAAAAAAAAA= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="765"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/95/index.html b/archive/q/base32/a/95/index.html new file mode 100644 index 0000000..24dc6e9 --- /dev/null +++ b/archive/q/base32/a/95/index.html @@ -0,0 +1,125 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #95 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #95</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#95</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #95</h2> + <p> + xpadev が 2024-03-08 21:41:11 に投稿 + </p> + <h2>コード</h2> + <p> + 340 byte + </p> + <pre><code class="hljs language-php">$a=array_merge(range('A','Z'),range(2,7));
+while ($b=base_convert(unpack('H*',rtrim(fgets(STDIN)))[1],16,2)) {
+ $c=strlen($b);
+ $b=str_split(str_pad($b,$c+(8-$c%8),'0',STR_PAD_LEFT),5);
+ $e="";
+ foreach ($b as $d) {
+ $e.=$a[bindec(str_pad($d,5,"0"))];
+ }
+ $f=strlen($e);
+ $e=str_pad($e,$f+(8-$f%8),"=");
+ echo $e."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="344">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="766">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="766">NBXWOZI= +OBUXS3Y= +MZ2WOYI= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="766"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="767">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="767">AAAAAAAAAAAAAAA= +AAAAAAAAAAAAAAA= +AAAAAAAAAAAAAAA= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="767"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="768">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="768">GEZDGNBVGY4A==== +GEZA==== +AAZTINJWHAAAAAA= +GEZDGNBVGY4AA=== +GEZDG=== +GEZDGNBV======== +AAZDGNBVGY4AAAA= +GEZDGNA= +GE====== +GEZDGNBVGY====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="768"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="769">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="769">MEQGEIDD======== +AAAAAAAAAAAAAAA= + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="769"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/96/index.html b/archive/q/base32/a/96/index.html new file mode 100644 index 0000000..377e4bc --- /dev/null +++ b/archive/q/base32/a/96/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #96 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #96</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#96</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #96</h2> + <p> + basi が 2024-03-09 00:40:11 に投稿 + </p> + <h2>コード</h2> + <p> + 227 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){foreach(str_split(trim($l))as$c)@$b.=sprintf('%08b',ord($c));$p=strlen($b)%40;foreach(str_split($b,5)as$c)echo(join(range('A','Z')).'234567')[bindec(str_pad($c,5,'0'))];echo str_repeat('=',6-$p%8%6),'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="352">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="781">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="781">NBXWOZI====== +NBXWOZLQNF4W6====== +NBXWOZLQNF4W6ZTVM5QQ====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="781"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="782">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="782">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX====== +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="782"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="783">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="783">GEZDGNBVGY3Q====== +GEZDGNBVGY3TCMQ====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="783"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="784">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="784">MEQGEIDD====== +MEQGEIDD4OAYFY4BQQQOHAMGEDRYDCBA4OAYU====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="784"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/97/index.html b/archive/q/base32/a/97/index.html new file mode 100644 index 0000000..237e1a2 --- /dev/null +++ b/archive/q/base32/a/97/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #97 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #97</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#97</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #97</h2> + <p> + basi が 2024-03-09 00:42:32 に投稿 + </p> + <h2>コード</h2> + <p> + 228 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){foreach(str_split(rtrim($l))as$c)@$b.=sprintf('%08b',ord($c));$p=strlen($b)%40;foreach(str_split($b,5)as$c)echo(join(range('A','Z')).'234567')[bindec(str_pad($c,5,'0'))];echo str_repeat('=',6-$p%8%6),'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="353">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="785">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="785">NBXWOZI====== +NBXWOZLQNF4W6====== +NBXWOZLQNF4W6ZTVM5QQ====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="785"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="786">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="786">4OAYNY4BRPRYFCXDQGX6HAMS====== +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX====== +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="786"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="787">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="787">GEZDGNBVGY3Q====== +GEZDGNBVGY3TCMQ====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI====== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="787"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="788">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="788">MEQGEIDD====== +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK====== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="788"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/98/index.html b/archive/q/base32/a/98/index.html new file mode 100644 index 0000000..fdeaa20 --- /dev/null +++ b/archive/q/base32/a/98/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #98 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #98</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#98</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #98</h2> + <p> + basi が 2024-03-09 00:45:01 に投稿 + </p> + <h2>コード</h2> + <p> + 240 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){foreach(str_split(rtrim($l))as$c)@$b.=sprintf('%08b',ord($c));$p=strlen($b)%40;foreach(str_split($b,5)as$c)echo(join(range('A','Z')).'234567')[bindec(str_pad($c,5,'0'))];echo str_repeat('=',($p?(int)(8-$p/5):0)),'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="354">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="789">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="789">NBXWOZI= +NBXWOZLQNF4W6=== +NBXWOZLQNF4W6ZTVM5QQ==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="789"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="790">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="790">4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="790"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="791">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="791">GEZDGNBVGY3Q==== +GEZDGNBVGY3TCMQ= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMA= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A==== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI=== +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI= +GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="791"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="792">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="792">MEQGEIDD +MEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="792"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/99/index.html b/archive/q/base32/a/99/index.html new file mode 100644 index 0000000..a6ca7aa --- /dev/null +++ b/archive/q/base32/a/99/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答 #99 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答 #99</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Base32</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#99</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答 #99</h2> + <p> + basi が 2024-03-09 01:07:04 に投稿 + </p> + <h2>コード</h2> + <p> + 266 byte + </p> + <pre><code class="hljs language-php">while($l=fgets(STDIN)){foreach(str_split(rtrim($l))as$c)@$b.=sprintf('%08b',ord($c));foreach(str_split($b,5)as$c)@$r.=(join(range('A','Z')).'234567')[bindec(str_pad($c,5,'0'))];$r.=str_repeat('=',match(strlen($b)%40){8=>6,16=>4,24=>3,32=>1,default=>0});echo $r,"
+";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="359">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="797">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="797">NBXWOZI= +NBXWOZI=NBXWOZLQNF4W6=== +NBXWOZI=NBXWOZLQNF4W6===NBXWOZLQNF4W6ZTVM5QQ==== + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="797"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="798">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="798">4OAYNY4BRPRYFCXDQGX6HAMS +4OAYNY4BRPRYFCXDQGX6HAMS4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX +4OAYNY4BRPRYFCXDQGX6HAMS4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OAYNY4BRPRYFCXDQGX6HAMS4OA2VY4BRTRYFCPDQGDOHAMX4OBI7Y4BTHRYFCPDQKBOHANB + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="798"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="799">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="799">GEZDGNBVGY3Q==== +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ= +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA= +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A==== +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRT +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBV +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI= +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI=== +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI===GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI= +GEZDGNBVGY3Q====GEZDGNBVGY3TCMQ=GEZDGNBVGY3TCMRRGIZTINJWG44DSMA=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44A====GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOI=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTI===GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMI=GEZDGNBVGY3TCMRRGIZTINJWG44DSMBRGIZTINJWG44DCMRTGEZDGNBVGEZDGNBVGY3TQOJRGIZTIMJRGIZTINJW + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="799"> +</code></pre> + <h3>テストケース 4</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="800">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="800">MEQGEIDD +MEQGEIDDMEQGEIDDEAQOHAMC4OAYIIHDQGDCBY4BRAQOHAMK + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="800"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/a/index.html b/archive/q/base32/a/index.html new file mode 100644 index 0000000..1f2cc17 --- /dev/null +++ b/archive/q/base32/a/index.html @@ -0,0 +1,1960 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 - 回答一覧 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../assets/favicon.svg"> + <script type="module" src="../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2 - 回答一覧</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../index.html">Base32</a></li> + <li class="breadcrumb-item active">回答一覧</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h2>回答一覧</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + <th>ステータス</th> + </tr> + </thead> + <tbody> + <tr> + <td> + 1 + </td> + <td> + <a href="70/index.html">#70</a> + </td> + <td>takaram</td> + <td>225 byte</td> + <td>2024-03-08 12:40:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 2 + </td> + <td> + <a href="69/index.html">#69</a> + </td> + <td>takaram</td> + <td>229 byte</td> + <td>2024-03-08 12:34:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 3 + </td> + <td> + <a href="62/index.html">#62</a> + </td> + <td>nsfisis (staff)</td> + <td>235 byte</td> + <td>2024-03-08 05:25:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 4 + </td> + <td> + <a href="64/index.html">#64</a> + </td> + <td>nsfisis (staff)</td> + <td>236 byte</td> + <td>2024-03-08 05:45:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 5 + </td> + <td> + <a href="13/index.html">#13</a> + </td> + <td>nsfisis (staff)</td> + <td>237 byte</td> + <td>2024-03-07 16:08:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 6 + </td> + <td> + <a href="137/index.html">#137</a> + </td> + <td>basi</td> + <td>250 byte</td> + <td>2024-03-09 04:27:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 7 + </td> + <td> + <a href="130/index.html">#130</a> + </td> + <td>basi</td> + <td>253 byte</td> + <td>2024-03-09 04:06:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 8 + </td> + <td> + <a href="126/index.html">#126</a> + </td> + <td>basi</td> + <td>257 byte</td> + <td>2024-03-09 03:07:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 9 + </td> + <td> + <a href="85/index.html">#85</a> + </td> + <td>m3m0r7</td> + <td>262 byte</td> + <td>2024-03-08 14:57:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 10 + </td> + <td> + <a href="83/index.html">#83</a> + </td> + <td>m3m0r7</td> + <td>268 byte</td> + <td>2024-03-08 14:17:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 11 + </td> + <td> + <a href="129/index.html">#129</a> + </td> + <td>basi</td> + <td>269 byte</td> + <td>2024-03-09 04:02:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 12 + </td> + <td> + <a href="155/index.html">#155</a> + </td> + <td>hanhan1978</td> + <td>275 byte</td> + <td>2024-03-09 15:19:33</td> + <td>OK</td> + </tr> + <tr> + <td> + 13 + </td> + <td> + <a href="135/index.html">#135</a> + </td> + <td>tadsan (staff)</td> + <td>276 byte</td> + <td>2024-03-09 04:24:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 14 + </td> + <td> + <a href="119/index.html">#119</a> + </td> + <td>basi</td> + <td>283 byte</td> + <td>2024-03-09 02:31:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 15 + </td> + <td> + <a href="60/index.html">#60</a> + </td> + <td>tadsan (staff)</td> + <td>286 byte</td> + <td>2024-03-08 04:58:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 16 + </td> + <td> + <a href="82/index.html">#82</a> + </td> + <td>m3m0r7</td> + <td>286 byte</td> + <td>2024-03-08 13:37:42</td> + <td>OK</td> + </tr> + <tr> + <td> + 17 + </td> + <td> + <a href="16/index.html">#16</a> + </td> + <td>tadsan (staff)</td> + <td>288 byte</td> + <td>2024-03-07 16:52:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 18 + </td> + <td> + <a href="81/index.html">#81</a> + </td> + <td>m3m0r7</td> + <td>290 byte</td> + <td>2024-03-08 13:28:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 19 + </td> + <td> + <a href="9/index.html">#9</a> + </td> + <td>tadsan (staff)</td> + <td>293 byte</td> + <td>2024-03-06 21:44:29</td> + <td>OK</td> + </tr> + <tr> + <td> + 20 + </td> + <td> + <a href="77/index.html">#77</a> + </td> + <td>m3m0r7</td> + <td>301 byte</td> + <td>2024-03-08 13:19:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 21 + </td> + <td> + <a href="118/index.html">#118</a> + </td> + <td>basi</td> + <td>303 byte</td> + <td>2024-03-09 02:24:42</td> + <td>OK</td> + </tr> + <tr> + <td> + 22 + </td> + <td> + <a href="80/index.html">#80</a> + </td> + <td>m3m0r7</td> + <td>310 byte</td> + <td>2024-03-08 13:27:18</td> + <td>OK</td> + </tr> + <tr> + <td> + 23 + </td> + <td> + <a href="122/index.html">#122</a> + </td> + <td>basi</td> + <td>314 byte</td> + <td>2024-03-09 02:41:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 24 + </td> + <td> + <a href="8/index.html">#8</a> + </td> + <td>tadsan (staff)</td> + <td>315 byte</td> + <td>2024-03-06 21:42:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 25 + </td> + <td> + <a href="7/index.html">#7</a> + </td> + <td>tadsan (staff)</td> + <td>317 byte</td> + <td>2024-03-06 21:39:42</td> + <td>OK</td> + </tr> + <tr> + <td> + 26 + </td> + <td> + <a href="117/index.html">#117</a> + </td> + <td>basi</td> + <td>318 byte</td> + <td>2024-03-09 02:17:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 27 + </td> + <td> + <a href="154/index.html">#154</a> + </td> + <td>hanhan1978</td> + <td>320 byte</td> + <td>2024-03-09 15:16:54</td> + <td>OK</td> + </tr> + <tr> + <td> + 28 + </td> + <td> + <a href="116/index.html">#116</a> + </td> + <td>basi</td> + <td>322 byte</td> + <td>2024-03-09 02:09:43</td> + <td>OK</td> + </tr> + <tr> + <td> + 29 + </td> + <td> + <a href="157/index.html">#157</a> + </td> + <td>notchman</td> + <td>322 byte</td> + <td>2024-03-09 15:53:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 30 + </td> + <td> + <a href="115/index.html">#115</a> + </td> + <td>basi</td> + <td>325 byte</td> + <td>2024-03-09 02:04:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 31 + </td> + <td> + <a href="76/index.html">#76</a> + </td> + <td>m3m0r7</td> + <td>326 byte</td> + <td>2024-03-08 13:15:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 32 + </td> + <td> + <a href="6/index.html">#6</a> + </td> + <td>tadsan (staff)</td> + <td>329 byte</td> + <td>2024-03-06 21:31:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 33 + </td> + <td> + <a href="108/index.html">#108</a> + </td> + <td>hanhan1978</td> + <td>329 byte</td> + <td>2024-03-09 01:31:17</td> + <td>OK</td> + </tr> + <tr> + <td> + 34 + </td> + <td> + <a href="114/index.html">#114</a> + </td> + <td>basi</td> + <td>331 byte</td> + <td>2024-03-09 01:53:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 35 + </td> + <td> + <a href="52/index.html">#52</a> + </td> + <td>yamamoto-hiroya</td> + <td>333 byte</td> + <td>2024-03-08 00:18:57</td> + <td>OK</td> + </tr> + <tr> + <td> + 36 + </td> + <td> + <a href="106/index.html">#106</a> + </td> + <td>hanhan1978</td> + <td>340 byte</td> + <td>2024-03-09 01:26:26</td> + <td>OK</td> + </tr> + <tr> + <td> + 37 + </td> + <td> + <a href="133/index.html">#133</a> + </td> + <td>basi</td> + <td>344 byte</td> + <td>2024-03-09 04:13:39</td> + <td>OK</td> + </tr> + <tr> + <td> + 38 + </td> + <td> + <a href="113/index.html">#113</a> + </td> + <td>basi</td> + <td>345 byte</td> + <td>2024-03-09 01:51:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 39 + </td> + <td> + <a href="105/index.html">#105</a> + </td> + <td>hanhan1978</td> + <td>349 byte</td> + <td>2024-03-09 01:24:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 40 + </td> + <td> + <a href="110/index.html">#110</a> + </td> + <td>basi</td> + <td>349 byte</td> + <td>2024-03-09 01:37:23</td> + <td>OK</td> + </tr> + <tr> + <td> + 41 + </td> + <td> + <a href="132/index.html">#132</a> + </td> + <td>basi</td> + <td>352 byte</td> + <td>2024-03-09 04:12:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 42 + </td> + <td> + <a href="139/index.html">#139</a> + </td> + <td>basi</td> + <td>352 byte</td> + <td>2024-03-09 04:49:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 43 + </td> + <td> + <a href="127/index.html">#127</a> + </td> + <td>azuki-penguin</td> + <td>355 byte</td> + <td>2024-03-09 03:21:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 44 + </td> + <td> + <a href="4/index.html">#4</a> + </td> + <td>tadsan (staff)</td> + <td>365 byte</td> + <td>2024-03-06 20:46:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 45 + </td> + <td> + <a href="51/index.html">#51</a> + </td> + <td>yamamoto-hiroya</td> + <td>366 byte</td> + <td>2024-03-08 00:17:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 46 + </td> + <td> + <a href="50/index.html">#50</a> + </td> + <td>yamamoto-hiroya</td> + <td>370 byte</td> + <td>2024-03-08 00:16:34</td> + <td>OK</td> + </tr> + <tr> + <td> + 47 + </td> + <td> + <a href="104/index.html">#104</a> + </td> + <td>hanhan1978</td> + <td>370 byte</td> + <td>2024-03-09 01:21:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 48 + </td> + <td> + <a href="101/index.html">#101</a> + </td> + <td>hanhan1978</td> + <td>378 byte</td> + <td>2024-03-09 01:16:53</td> + <td>OK</td> + </tr> + <tr> + <td> + 49 + </td> + <td> + <a href="156/index.html">#156</a> + </td> + <td>notchman</td> + <td>394 byte</td> + <td>2024-03-09 15:52:17</td> + <td>OK</td> + </tr> + <tr> + <td> + 50 + </td> + <td> + <a href="49/index.html">#49</a> + </td> + <td>yamamoto-hiroya</td> + <td>396 byte</td> + <td>2024-03-08 00:15:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 51 + </td> + <td> + <a href="75/index.html">#75</a> + </td> + <td>m3m0r7</td> + <td>396 byte</td> + <td>2024-03-08 13:04:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 52 + </td> + <td> + <a href="48/index.html">#48</a> + </td> + <td>yamamoto-hiroya</td> + <td>398 byte</td> + <td>2024-03-08 00:14:07</td> + <td>OK</td> + </tr> + <tr> + <td> + 53 + </td> + <td> + <a href="57/index.html">#57</a> + </td> + <td>kunikiya</td> + <td>399 byte</td> + <td>2024-03-08 02:34:49</td> + <td>OK</td> + </tr> + <tr> + <td> + 54 + </td> + <td> + <a href="47/index.html">#47</a> + </td> + <td>yamamoto-hiroya</td> + <td>400 byte</td> + <td>2024-03-08 00:12:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 55 + </td> + <td> + <a href="107/index.html">#107</a> + </td> + <td>basi</td> + <td>405 byte</td> + <td>2024-03-09 01:31:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 56 + </td> + <td> + <a href="46/index.html">#46</a> + </td> + <td>yamamoto-hiroya</td> + <td>411 byte</td> + <td>2024-03-08 00:05:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 57 + </td> + <td> + <a href="43/index.html">#43</a> + </td> + <td>yamamoto-hiroya</td> + <td>417 byte</td> + <td>2024-03-08 00:02:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 58 + </td> + <td> + <a href="92/index.html">#92</a> + </td> + <td>hanhan1978</td> + <td>421 byte</td> + <td>2024-03-08 15:54:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 59 + </td> + <td> + <a href="42/index.html">#42</a> + </td> + <td>rinchoku</td> + <td>447 byte</td> + <td>2024-03-07 23:59:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 60 + </td> + <td> + <a href="33/index.html">#33</a> + </td> + <td>yamamoto-hiroya</td> + <td>455 byte</td> + <td>2024-03-07 23:37:59</td> + <td>OK</td> + </tr> + <tr> + <td> + 61 + </td> + <td> + <a href="150/index.html">#150</a> + </td> + <td>tsbkw</td> + <td>461 byte</td> + <td>2024-03-09 11:41:14</td> + <td>OK</td> + </tr> + <tr> + <td> + 62 + </td> + <td> + <a href="74/index.html">#74</a> + </td> + <td>m3m0r7</td> + <td>462 byte</td> + <td>2024-03-08 13:00:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 63 + </td> + <td> + <a href="40/index.html">#40</a> + </td> + <td>rinchoku</td> + <td>479 byte</td> + <td>2024-03-07 23:57:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 64 + </td> + <td> + <a href="32/index.html">#32</a> + </td> + <td>yamamoto-hiroya</td> + <td>483 byte</td> + <td>2024-03-07 23:36:03</td> + <td>OK</td> + </tr> + <tr> + <td> + 65 + </td> + <td> + <a href="56/index.html">#56</a> + </td> + <td>kunikiya</td> + <td>488 byte</td> + <td>2024-03-08 02:32:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 66 + </td> + <td> + <a href="89/index.html">#89</a> + </td> + <td>hanhan1978</td> + <td>490 byte</td> + <td>2024-03-08 15:22:44</td> + <td>OK</td> + </tr> + <tr> + <td> + 67 + </td> + <td> + <a href="30/index.html">#30</a> + </td> + <td>rinchoku</td> + <td>491 byte</td> + <td>2024-03-07 23:34:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 68 + </td> + <td> + <a href="39/index.html">#39</a> + </td> + <td>rinchoku</td> + <td>491 byte</td> + <td>2024-03-07 23:55:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 69 + </td> + <td> + <a href="72/index.html">#72</a> + </td> + <td>m3m0r7</td> + <td>491 byte</td> + <td>2024-03-08 12:59:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 70 + </td> + <td> + <a href="38/index.html">#38</a> + </td> + <td>rinchoku</td> + <td>494 byte</td> + <td>2024-03-07 23:54:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 71 + </td> + <td> + <a href="31/index.html">#31</a> + </td> + <td>yamamoto-hiroya</td> + <td>497 byte</td> + <td>2024-03-07 23:35:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 72 + </td> + <td> + <a href="27/index.html">#27</a> + </td> + <td>yamamoto-hiroya</td> + <td>500 byte</td> + <td>2024-03-07 23:33:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 73 + </td> + <td> + <a href="103/index.html">#103</a> + </td> + <td>basi</td> + <td>510 byte</td> + <td>2024-03-09 01:21:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 74 + </td> + <td> + <a href="25/index.html">#25</a> + </td> + <td>rinchoku</td> + <td>511 byte</td> + <td>2024-03-07 23:30:23</td> + <td>OK</td> + </tr> + <tr> + <td> + 75 + </td> + <td> + <a href="102/index.html">#102</a> + </td> + <td>basi</td> + <td>514 byte</td> + <td>2024-03-09 01:20:30</td> + <td>OK</td> + </tr> + <tr> + <td> + 76 + </td> + <td> + <a href="21/index.html">#21</a> + </td> + <td>yamamoto-hiroya</td> + <td>530 byte</td> + <td>2024-03-07 23:27:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 77 + </td> + <td> + <a href="88/index.html">#88</a> + </td> + <td>hanhan1978</td> + <td>620 byte</td> + <td>2024-03-08 15:19:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 78 + </td> + <td> + <a href="1/index.html">#1</a> + </td> + <td>nsfisis (staff)</td> + <td>677 byte</td> + <td>2024-03-06 03:57:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 79 + </td> + <td> + <a href="2/index.html">#2</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>677 byte</td> + <td>2024-03-06 08:24:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 80 + </td> + <td> + <a href="3/index.html">#3</a> + </td> + <td>muno92 (staff)</td> + <td>677 byte</td> + <td>2024-03-06 08:42:30</td> + <td>OK</td> + </tr> + <tr> + <td> + 81 + </td> + <td> + <a href="18/index.html">#18</a> + </td> + <td>yamamoto-hiroya</td> + <td>677 byte</td> + <td>2024-03-07 23:06:42</td> + <td>OK</td> + </tr> + <tr> + <td> + 82 + </td> + <td> + <a href="53/index.html">#53</a> + </td> + <td>kunikiya</td> + <td>677 byte</td> + <td>2024-03-08 02:21:52</td> + <td>OK</td> + </tr> + <tr> + <td> + 83 + </td> + <td> + <a href="87/index.html">#87</a> + </td> + <td>hanhan1978</td> + <td>677 byte</td> + <td>2024-03-08 15:13:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 84 + </td> + <td> + <a href="140/index.html">#140</a> + </td> + <td>masnmt</td> + <td>677 byte</td> + <td>2024-03-09 04:52:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 85 + </td> + <td> + <a href="141/index.html">#141</a> + </td> + <td>k-kuwata</td> + <td>677 byte</td> + <td>2024-03-09 08:36:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 86 + </td> + <td> + <a href="151/index.html">#151</a> + </td> + <td>ticknical</td> + <td>677 byte</td> + <td>2024-03-09 14:38:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 87 + </td> + <td> + <a href="93/index.html">#93</a> + </td> + <td>happylifetaka</td> + <td>59 byte</td> + <td>2024-03-08 17:36:52</td> + <td>失敗</td> + </tr> + <tr> + <td> + 88 + </td> + <td> + <a href="68/index.html">#68</a> + </td> + <td>oogFranz</td> + <td>203 byte</td> + <td>2024-03-08 11:16:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 89 + </td> + <td> + <a href="63/index.html">#63</a> + </td> + <td>nsfisis (staff)</td> + <td>227 byte</td> + <td>2024-03-08 05:41:48</td> + <td>失敗</td> + </tr> + <tr> + <td> + 90 + </td> + <td> + <a href="96/index.html">#96</a> + </td> + <td>basi</td> + <td>227 byte</td> + <td>2024-03-09 00:40:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 91 + </td> + <td> + <a href="97/index.html">#97</a> + </td> + <td>basi</td> + <td>228 byte</td> + <td>2024-03-09 00:42:32</td> + <td>失敗</td> + </tr> + <tr> + <td> + 92 + </td> + <td> + <a href="11/index.html">#11</a> + </td> + <td>nsfisis (staff)</td> + <td>231 byte</td> + <td>2024-03-07 15:26:45</td> + <td>失敗</td> + </tr> + <tr> + <td> + 93 + </td> + <td> + <a href="123/index.html">#123</a> + </td> + <td>basi</td> + <td>235 byte</td> + <td>2024-03-09 02:44:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 94 + </td> + <td> + <a href="12/index.html">#12</a> + </td> + <td>nsfisis (staff)</td> + <td>237 byte</td> + <td>2024-03-07 16:05:10</td> + <td>失敗</td> + </tr> + <tr> + <td> + 95 + </td> + <td> + <a href="98/index.html">#98</a> + </td> + <td>basi</td> + <td>240 byte</td> + <td>2024-03-09 00:45:01</td> + <td>失敗</td> + </tr> + <tr> + <td> + 96 + </td> + <td> + <a href="125/index.html">#125</a> + </td> + <td>basi</td> + <td>246 byte</td> + <td>2024-03-09 02:48:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 97 + </td> + <td> + <a href="128/index.html">#128</a> + </td> + <td>basi</td> + <td>247 byte</td> + <td>2024-03-09 03:41:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 98 + </td> + <td> + <a href="84/index.html">#84</a> + </td> + <td>m3m0r7</td> + <td>250 byte</td> + <td>2024-03-08 14:56:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 99 + </td> + <td> + <a href="124/index.html">#124</a> + </td> + <td>basi</td> + <td>252 byte</td> + <td>2024-03-09 02:46:40</td> + <td>失敗</td> + </tr> + <tr> + <td> + 100 + </td> + <td> + <a href="86/index.html">#86</a> + </td> + <td>m3m0r7</td> + <td>254 byte</td> + <td>2024-03-08 14:58:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 101 + </td> + <td> + <a href="65/index.html">#65</a> + </td> + <td>ticknical</td> + <td>266 byte</td> + <td>2024-03-08 09:38:51</td> + <td>失敗</td> + </tr> + <tr> + <td> + 102 + </td> + <td> + <a href="99/index.html">#99</a> + </td> + <td>basi</td> + <td>266 byte</td> + <td>2024-03-09 01:07:04</td> + <td>失敗</td> + </tr> + <tr> + <td> + 103 + </td> + <td> + <a href="66/index.html">#66</a> + </td> + <td>ticknical</td> + <td>267 byte</td> + <td>2024-03-08 09:39:17</td> + <td>失敗</td> + </tr> + <tr> + <td> + 104 + </td> + <td> + <a href="78/index.html">#78</a> + </td> + <td>m3m0r7</td> + <td>275 byte</td> + <td>2024-03-08 13:26:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 105 + </td> + <td> + <a href="134/index.html">#134</a> + </td> + <td>tadsan (staff)</td> + <td>275 byte</td> + <td>2024-03-09 04:21:30</td> + <td>失敗</td> + </tr> + <tr> + <td> + 106 + </td> + <td> + <a href="59/index.html">#59</a> + </td> + <td>tadsan (staff)</td> + <td>280 byte</td> + <td>2024-03-08 04:56:22</td> + <td>失敗</td> + </tr> + <tr> + <td> + 107 + </td> + <td> + <a href="120/index.html">#120</a> + </td> + <td>basi</td> + <td>280 byte</td> + <td>2024-03-09 02:37:58</td> + <td>失敗</td> + </tr> + <tr> + <td> + 108 + </td> + <td> + <a href="136/index.html">#136</a> + </td> + <td>basi</td> + <td>286 byte</td> + <td>2024-03-09 04:27:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 109 + </td> + <td> + <a href="14/index.html">#14</a> + </td> + <td>tadsan (staff)</td> + <td>287 byte</td> + <td>2024-03-07 16:50:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 110 + </td> + <td> + <a href="58/index.html">#58</a> + </td> + <td>tadsan (staff)</td> + <td>287 byte</td> + <td>2024-03-08 04:54:22</td> + <td>失敗</td> + </tr> + <tr> + <td> + 111 + </td> + <td> + <a href="15/index.html">#15</a> + </td> + <td>tadsan (staff)</td> + <td>288 byte</td> + <td>2024-03-07 16:51:13</td> + <td>失敗</td> + </tr> + <tr> + <td> + 112 + </td> + <td> + <a href="94/index.html">#94</a> + </td> + <td>xpadev</td> + <td>288 byte</td> + <td>2024-03-08 21:36:57</td> + <td>失敗</td> + </tr> + <tr> + <td> + 113 + </td> + <td> + <a href="10/index.html">#10</a> + </td> + <td>tadsan (staff)</td> + <td>292 byte</td> + <td>2024-03-06 21:45:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 114 + </td> + <td> + <a href="121/index.html">#121</a> + </td> + <td>basi</td> + <td>299 byte</td> + <td>2024-03-09 02:39:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 115 + </td> + <td> + <a href="112/index.html">#112</a> + </td> + <td>basi</td> + <td>315 byte</td> + <td>2024-03-09 01:48:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 116 + </td> + <td> + <a href="153/index.html">#153</a> + </td> + <td>hanhan1978</td> + <td>319 byte</td> + <td>2024-03-09 15:15:43</td> + <td>失敗</td> + </tr> + <tr> + <td> + 117 + </td> + <td> + <a href="5/index.html">#5</a> + </td> + <td>tadsan (staff)</td> + <td>321 byte</td> + <td>2024-03-06 21:25:10</td> + <td>失敗</td> + </tr> + <tr> + <td> + 118 + </td> + <td> + <a href="109/index.html">#109</a> + </td> + <td>hanhan1978</td> + <td>323 byte</td> + <td>2024-03-09 01:34:27</td> + <td>失敗</td> + </tr> + <tr> + <td> + 119 + </td> + <td> + <a href="152/index.html">#152</a> + </td> + <td>ticknical</td> + <td>327 byte</td> + <td>2024-03-09 14:39:27</td> + <td>失敗</td> + </tr> + <tr> + <td> + 120 + </td> + <td> + <a href="95/index.html">#95</a> + </td> + <td>xpadev</td> + <td>340 byte</td> + <td>2024-03-08 21:41:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 121 + </td> + <td> + <a href="111/index.html">#111</a> + </td> + <td>basi</td> + <td>344 byte</td> + <td>2024-03-09 01:41:17</td> + <td>失敗</td> + </tr> + <tr> + <td> + 122 + </td> + <td> + <a href="131/index.html">#131</a> + </td> + <td>basi</td> + <td>348 byte</td> + <td>2024-03-09 04:12:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 123 + </td> + <td> + <a href="138/index.html">#138</a> + </td> + <td>basi</td> + <td>348 byte</td> + <td>2024-03-09 04:48:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 124 + </td> + <td> + <a href="67/index.html">#67</a> + </td> + <td>ticknical</td> + <td>351 byte</td> + <td>2024-03-08 09:57:33</td> + <td>失敗</td> + </tr> + <tr> + <td> + 125 + </td> + <td> + <a href="71/index.html">#71</a> + </td> + <td>m3m0r7</td> + <td>360 byte</td> + <td>2024-03-08 12:52:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 126 + </td> + <td> + <a href="158/index.html">#158</a> + </td> + <td>notchman</td> + <td>362 byte</td> + <td>2024-03-09 15:54:51</td> + <td>失敗</td> + </tr> + <tr> + <td> + 127 + </td> + <td> + <a href="61/index.html">#61</a> + </td> + <td>tadsan (staff)</td> + <td>383 byte</td> + <td>2024-03-08 05:25:17</td> + <td>失敗</td> + </tr> + <tr> + <td> + 128 + </td> + <td> + <a href="90/index.html">#90</a> + </td> + <td>hanhan1978</td> + <td>404 byte</td> + <td>2024-03-08 15:52:02</td> + <td>失敗</td> + </tr> + <tr> + <td> + 129 + </td> + <td> + <a href="45/index.html">#45</a> + </td> + <td>yamamoto-hiroya</td> + <td>409 byte</td> + <td>2024-03-08 00:04:57</td> + <td>失敗</td> + </tr> + <tr> + <td> + 130 + </td> + <td> + <a href="91/index.html">#91</a> + </td> + <td>hanhan1978</td> + <td>412 byte</td> + <td>2024-03-08 15:52:44</td> + <td>失敗</td> + </tr> + <tr> + <td> + 131 + </td> + <td> + <a href="145/index.html">#145</a> + </td> + <td>tsbkw</td> + <td>420 byte</td> + <td>2024-03-09 11:19:53</td> + <td>失敗</td> + </tr> + <tr> + <td> + 132 + </td> + <td> + <a href="142/index.html">#142</a> + </td> + <td>keitamax</td> + <td>426 byte</td> + <td>2024-03-09 10:38:24</td> + <td>失敗</td> + </tr> + <tr> + <td> + 133 + </td> + <td> + <a href="34/index.html">#34</a> + </td> + <td>rinchoku</td> + <td>428 byte</td> + <td>2024-03-07 23:44:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 134 + </td> + <td> + <a href="44/index.html">#44</a> + </td> + <td>rinchoku</td> + <td>429 byte</td> + <td>2024-03-08 00:03:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 135 + </td> + <td> + <a href="143/index.html">#143</a> + </td> + <td>keitamax</td> + <td>429 byte</td> + <td>2024-03-09 10:39:08</td> + <td>失敗</td> + </tr> + <tr> + <td> + 136 + </td> + <td> + <a href="144/index.html">#144</a> + </td> + <td>tsbkw</td> + <td>431 byte</td> + <td>2024-03-09 11:04:03</td> + <td>失敗</td> + </tr> + <tr> + <td> + 137 + </td> + <td> + <a href="146/index.html">#146</a> + </td> + <td>tsbkw</td> + <td>431 byte</td> + <td>2024-03-09 11:22:02</td> + <td>失敗</td> + </tr> + <tr> + <td> + 138 + </td> + <td> + <a href="41/index.html">#41</a> + </td> + <td>rinchoku</td> + <td>432 byte</td> + <td>2024-03-07 23:58:10</td> + <td>失敗</td> + </tr> + <tr> + <td> + 139 + </td> + <td> + <a href="35/index.html">#35</a> + </td> + <td>rinchoku</td> + <td>436 byte</td> + <td>2024-03-07 23:45:34</td> + <td>失敗</td> + </tr> + <tr> + <td> + 140 + </td> + <td> + <a href="20/index.html">#20</a> + </td> + <td>yamamoto-hiroya</td> + <td>446 byte</td> + <td>2024-03-07 23:25:32</td> + <td>失敗</td> + </tr> + <tr> + <td> + 141 + </td> + <td> + <a href="36/index.html">#36</a> + </td> + <td>rinchoku</td> + <td>447 byte</td> + <td>2024-03-07 23:50:41</td> + <td>失敗</td> + </tr> + <tr> + <td> + 142 + </td> + <td> + <a href="37/index.html">#37</a> + </td> + <td>rinchoku</td> + <td>447 byte</td> + <td>2024-03-07 23:52:46</td> + <td>失敗</td> + </tr> + <tr> + <td> + 143 + </td> + <td> + <a href="73/index.html">#73</a> + </td> + <td>m3m0r7</td> + <td>457 byte</td> + <td>2024-03-08 12:59:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 144 + </td> + <td> + <a href="147/index.html">#147</a> + </td> + <td>tsbkw</td> + <td>457 byte</td> + <td>2024-03-09 11:32:35</td> + <td>失敗</td> + </tr> + <tr> + <td> + 145 + </td> + <td> + <a href="148/index.html">#148</a> + </td> + <td>tsbkw</td> + <td>463 byte</td> + <td>2024-03-09 11:36:39</td> + <td>失敗</td> + </tr> + <tr> + <td> + 146 + </td> + <td> + <a href="149/index.html">#149</a> + </td> + <td>tsbkw</td> + <td>463 byte</td> + <td>2024-03-09 11:39:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 147 + </td> + <td> + <a href="19/index.html">#19</a> + </td> + <td>rinchoku</td> + <td>470 byte</td> + <td>2024-03-07 23:14:36</td> + <td>失敗</td> + </tr> + <tr> + <td> + 148 + </td> + <td> + <a href="23/index.html">#23</a> + </td> + <td>yamamoto-hiroya</td> + <td>474 byte</td> + <td>2024-03-07 23:29:14</td> + <td>失敗</td> + </tr> + <tr> + <td> + 149 + </td> + <td> + <a href="24/index.html">#24</a> + </td> + <td>yamamoto-hiroya</td> + <td>480 byte</td> + <td>2024-03-07 23:30:02</td> + <td>失敗</td> + </tr> + <tr> + <td> + 150 + </td> + <td> + <a href="28/index.html">#28</a> + </td> + <td>yamamoto-hiroya</td> + <td>483 byte</td> + <td>2024-03-07 23:33:46</td> + <td>失敗</td> + </tr> + <tr> + <td> + 151 + </td> + <td> + <a href="54/index.html">#54</a> + </td> + <td>kunikiya</td> + <td>484 byte</td> + <td>2024-03-08 02:26:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 152 + </td> + <td> + <a href="55/index.html">#55</a> + </td> + <td>kunikiya</td> + <td>484 byte</td> + <td>2024-03-08 02:29:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 153 + </td> + <td> + <a href="29/index.html">#29</a> + </td> + <td>yamamoto-hiroya</td> + <td>486 byte</td> + <td>2024-03-07 23:34:13</td> + <td>失敗</td> + </tr> + <tr> + <td> + 154 + </td> + <td> + <a href="100/index.html">#100</a> + </td> + <td>basi</td> + <td>490 byte</td> + <td>2024-03-09 01:07:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 155 + </td> + <td> + <a href="26/index.html">#26</a> + </td> + <td>yamamoto-hiroya</td> + <td>499 byte</td> + <td>2024-03-07 23:32:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 156 + </td> + <td> + <a href="22/index.html">#22</a> + </td> + <td>rinchoku</td> + <td>505 byte</td> + <td>2024-03-07 23:28:39</td> + <td>失敗</td> + </tr> + <tr> + <td> + 157 + </td> + <td> + <a href="17/index.html">#17</a> + </td> + <td>rinchoku</td> + <td>512 byte</td> + <td>2024-03-07 23:04:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 158 + </td> + <td> + <a href="159/index.html">#159</a> + </td> + <td>zonepotage</td> + <td>808 byte</td> + <td>2024-03-09 16:57:29</td> + <td>失敗</td> + </tr> + <tr> + <td> + 159 + </td> + <td> + <a href="79/index.html">#79</a> + </td> + <td>oogFranz</td> + <td>947 byte</td> + <td>2024-03-08 13:27:17</td> + <td>失敗</td> + </tr> + </tbody> + </table> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/base32/index.html b/archive/q/base32/index.html new file mode 100644 index 0000000..ca2f765 --- /dev/null +++ b/archive/q/base32/index.html @@ -0,0 +1,236 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #2 | Albatross.PHP</title> + <link rel="stylesheet" href="../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg"> + <script type="module" src="../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #2</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../index.html">問題一覧</a></li> + <li class="breadcrumb-item active">Base32</li> + </ol> + </nav> + + <h2>Base32</h2> + <p> + RFC 4648 で定義された Base32 エンコーディングを実装してください。
+標準入力から与えられる各行に対し、Base32 エンコードをおこなった文字列を標準出力へ改行区切りで出力してください。
+なお、アルファベットの出力には大文字を用いてください。 + </p> + <h3>実装例</h3> + <pre><code class="hljs language-php">const TABLE = [
+ 'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H',
+ 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
+ 'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X',
+ 'Y', 'Z', '2', '3', '4', '5', '6', '7',
+];
+while ($line = fgets(STDIN)) {
+ $line = rtrim($line);
+ $bits = '';
+ for ($i = 0; $i < strlen($line); $i++) {
+ $bits .= str_pad(base_convert(strval(ord($line[$i])), 10, 2), 8, '0', STR_PAD_LEFT);
+ }
+ $base32 = '';
+ foreach (str_split($bits, 5) as $b) {
+ $base32 .= TABLE[base_convert(str_pad($b, 5, '0'), 2, 10)];
+ }
+ $base32 .= match (strlen($bits) % 40) {
+ 8 => '======',
+ 16 => '====',
+ 24 => '===',
+ 32 => '=',
+ default => '',
+ };
+ echo $base32, PHP_EOL;
+}</code></pre> + <h2>ランキング</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td> + <a href="a/70/index.html">#70</a> + </td> + <td>takaram</td> + <td>225 byte</td> + <td>2024-03-08 12:40:28</td> + </tr> + <tr> + <td>2</td> + <td> + <a href="a/62/index.html">#62</a> + </td> + <td>nsfisis (staff)</td> + <td>235 byte</td> + <td>2024-03-08 05:25:41</td> + </tr> + <tr> + <td>3</td> + <td> + <a href="a/137/index.html">#137</a> + </td> + <td>basi</td> + <td>250 byte</td> + <td>2024-03-09 04:27:40</td> + </tr> + <tr> + <td>4</td> + <td> + <a href="a/85/index.html">#85</a> + </td> + <td>m3m0r7</td> + <td>262 byte</td> + <td>2024-03-08 14:57:05</td> + </tr> + <tr> + <td>5</td> + <td> + <a href="a/155/index.html">#155</a> + </td> + <td>hanhan1978</td> + <td>275 byte</td> + <td>2024-03-09 15:19:33</td> + </tr> + <tr> + <td>6</td> + <td> + <a href="a/135/index.html">#135</a> + </td> + <td>tadsan (staff)</td> + <td>276 byte</td> + <td>2024-03-09 04:24:05</td> + </tr> + <tr> + <td>7</td> + <td> + <a href="a/157/index.html">#157</a> + </td> + <td>notchman</td> + <td>322 byte</td> + <td>2024-03-09 15:53:40</td> + </tr> + <tr> + <td>8</td> + <td> + <a href="a/52/index.html">#52</a> + </td> + <td>yamamoto-hiroya</td> + <td>333 byte</td> + <td>2024-03-08 00:18:57</td> + </tr> + <tr> + <td>9</td> + <td> + <a href="a/127/index.html">#127</a> + </td> + <td>azuki-penguin</td> + <td>355 byte</td> + <td>2024-03-09 03:21:55</td> + </tr> + <tr> + <td>10</td> + <td> + <a href="a/57/index.html">#57</a> + </td> + <td>kunikiya</td> + <td>399 byte</td> + <td>2024-03-08 02:34:49</td> + </tr> + <tr> + <td>11</td> + <td> + <a href="a/42/index.html">#42</a> + </td> + <td>rinchoku</td> + <td>447 byte</td> + <td>2024-03-07 23:59:24</td> + </tr> + <tr> + <td>12</td> + <td> + <a href="a/150/index.html">#150</a> + </td> + <td>tsbkw</td> + <td>461 byte</td> + <td>2024-03-09 11:41:14</td> + </tr> + <tr> + <td>13</td> + <td> + <a href="a/2/index.html">#2</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>677 byte</td> + <td>2024-03-06 08:24:32</td> + </tr> + <tr> + <td>14</td> + <td> + <a href="a/3/index.html">#3</a> + </td> + <td>muno92 (staff)</td> + <td>677 byte</td> + <td>2024-03-06 08:42:30</td> + </tr> + <tr> + <td>15</td> + <td> + <a href="a/140/index.html">#140</a> + </td> + <td>masnmt</td> + <td>677 byte</td> + <td>2024-03-09 04:52:12</td> + </tr> + <tr> + <td>16</td> + <td> + <a href="a/141/index.html">#141</a> + </td> + <td>k-kuwata</td> + <td>677 byte</td> + <td>2024-03-09 08:36:45</td> + </tr> + <tr> + <td>17</td> + <td> + <a href="a/151/index.html">#151</a> + </td> + <td>ticknical</td> + <td>677 byte</td> + <td>2024-03-09 14:38:16</td> + </tr> + </tbody> + </table> + <div> + <canvas id="chart" data-quiz-id="2"></canvas> + <script type="module" src="../../assets/chart.js"></script> + </div> + <p> + <a href="a/index.html">すべての回答を見る</a> + </p> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/1/index.html b/archive/q/brainf-ck/a/1/index.html new file mode 100644 index 0000000..e6aac0e --- /dev/null +++ b/archive/q/brainf-ck/a/1/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #1 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #1</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#1</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #1</h2> + <p> + nsfisis が 2024-03-06 03:57:49 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="4">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="6">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="6">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="6"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="7">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="7">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="7"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="8">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="8">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="8"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/10/index.html b/archive/q/brainf-ck/a/10/index.html new file mode 100644 index 0000000..837dcdc --- /dev/null +++ b/archive/q/brainf-ck/a/10/index.html @@ -0,0 +1,110 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #10 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #10</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#10</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #10</h2> + <p> + tadsan が 2024-03-07 16:19:25 に投稿 + </p> + <h2>コード</h2> + <p> + 360 byte + </p> + <pre><code class="hljs language-php">$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]){
+case'>':$p++;break;
+case'<':$p--;break;
+case'+':$m[$p]++;break;
+case'-':$m[$p]--;break;
+case'.':echo chr($m[$p]);break;
+case'[':if(!$m[$p]){$d=1;while($d>0)match($s[++$c]){'['=>$d++,']'=>$d--,default=>0};}break;
+case']':if($m[$p]){$d=1;while($d>0)match($s[--$c]){']'=>$d++,'['=>$d--,default=>0};}}$c++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="41">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="98">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="98"> +Warning: Undefined variable $s in php.wasm code on line 6 + +Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="98"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="99">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="99"> +Warning: Undefined variable $s in php.wasm code on line 6 + +Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="99"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="100">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="100"> +Warning: Undefined variable $s in php.wasm code on line 6 + +Deprecated: strlen(): Passing null to parameter #1 ($string) of type string is deprecated in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="100"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/100/index.html b/archive/q/brainf-ck/a/100/index.html new file mode 100644 index 0000000..d3caa59 --- /dev/null +++ b/archive/q/brainf-ck/a/100/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #100 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #100</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#100</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #100</h2> + <p> + takaram が 2024-03-09 14:33:18 に投稿 + </p> + <h2>コード</h2> + <p> + 262 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,999);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;){$a=&$m[$t];match(ord($s[$p])){62=>$t++,60=>$t--,43=>$a++,45=>$a--,46=>print chr($a),91=>$a||l($s,$p,1),93=>$a&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="523">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1171">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1171">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1171"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1172">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1172">PHPerKaig +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1172"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1173">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1173">グレゴール +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1173"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/101/index.html b/archive/q/brainf-ck/a/101/index.html new file mode 100644 index 0000000..6725800 --- /dev/null +++ b/archive/q/brainf-ck/a/101/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #101 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #101</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#101</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #101</h2> + <p> + takaram が 2024-03-09 14:33:37 に投稿 + </p> + <h2>コード</h2> + <p> + 263 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;){$a=&$m[$t];match(ord($s[$p])){62=>$t++,60=>$t--,43=>$a++,45=>$a--,46=>print chr($a),91=>$a||l($s,$p,1),93=>$a&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="524">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1174">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1174">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1174"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1175">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1175">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1175"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1176">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1176">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1176"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/102/index.html b/archive/q/brainf-ck/a/102/index.html new file mode 100644 index 0000000..95822af --- /dev/null +++ b/archive/q/brainf-ck/a/102/index.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #102 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #102</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#102</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #102</h2> + <p> + m3m0r7 が 2024-03-09 14:42:46 に投稿 + </p> + <h2>コード</h2> + <p> + 271 byte + </p> + <pre><code class="hljs language-php">for($s=fgets(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="535">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1193">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1193"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1193"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1194">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1194">P +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1194"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1195">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1195"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1195"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/103/index.html b/archive/q/brainf-ck/a/103/index.html new file mode 100644 index 0000000..e2e80eb --- /dev/null +++ b/archive/q/brainf-ck/a/103/index.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #103 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #103</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#103</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #103</h2> + <p> + m3m0r7 が 2024-03-09 14:43:05 に投稿 + </p> + <h2>コード</h2> + <p> + 273 byte + </p> + <pre><code class="hljs language-php">for($s=fgets(STDIN),$q=0,$m=[],$p=0;$q<strlen($s)-1;$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="536">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1196">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1196"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1196"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1197">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1197">P +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1197"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1198">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1198"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1198"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/104/index.html b/archive/q/brainf-ck/a/104/index.html new file mode 100644 index 0000000..81b0a9a --- /dev/null +++ b/archive/q/brainf-ck/a/104/index.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #104 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #104</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#104</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #104</h2> + <p> + m3m0r7 が 2024-03-09 14:43:47 に投稿 + </p> + <h2>コード</h2> + <p> + 271 byte + </p> + <pre><code class="hljs language-php">for($s=fgets(STDIN),$q=1,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="537">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1199">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1199"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1199"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1200">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1200">O +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1200"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1201">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1201"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1201"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/105/index.html b/archive/q/brainf-ck/a/105/index.html new file mode 100644 index 0000000..0056ea1 --- /dev/null +++ b/archive/q/brainf-ck/a/105/index.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #105 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #105</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#105</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #105</h2> + <p> + m3m0r7 が 2024-03-09 14:44:45 に投稿 + </p> + <h2>コード</h2> + <p> + 273 byte + </p> + <pre><code class="hljs language-php">for($s=fgets(STDIN),$q=0,$m=[],$p=0;$q<strlen($s)-2;$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="538">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1202">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1202"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1202"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1203">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1203">P +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1203"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1204">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1204"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1204"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/106/index.html b/archive/q/brainf-ck/a/106/index.html new file mode 100644 index 0000000..8f3c842 --- /dev/null +++ b/archive/q/brainf-ck/a/106/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #106 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #106</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#106</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #106</h2> + <p> + m3m0r7 が 2024-03-09 14:49:33 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="540">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1206">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1206">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1206"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1207">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1207">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1207"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1208">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1208">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1208"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/107/index.html b/archive/q/brainf-ck/a/107/index.html new file mode 100644 index 0000000..ff7e0fc --- /dev/null +++ b/archive/q/brainf-ck/a/107/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #107 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #107</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#107</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #107</h2> + <p> + m3m0r7 が 2024-03-09 14:50:06 に投稿 + </p> + <h2>コード</h2> + <p> + 273 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>--$m[$p],default=>$d=1},$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="541">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1209">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1209">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1209"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1210">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1210">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1210"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1211">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1211">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1211"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/108/index.html b/archive/q/brainf-ck/a/108/index.html new file mode 100644 index 0000000..3be8024 --- /dev/null +++ b/archive/q/brainf-ck/a/108/index.html @@ -0,0 +1,92 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #108 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #108</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#108</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #108</h2> + <p> + hanhan1978 が 2024-03-09 15:22:11 に投稿 + </p> + <h2>コード</h2> + <p> + 397 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);
+for($p=$r=0,$m=[];$p<strlen($s);$p++)switch($s[$p]){case'>':$r++;break;case'<':$r--;break;case '+':$m[$r]=($m[$r]??0)+1;break;case '-':$m[$r]=($m[$r]??0)-1;break;case '.':echo chr($m[$r]);break;case '[':if(!($m[$r]??0)){for($d=1;$d&&++$p;$d+=$s[$p]==']'?-1:($s[$p]=='['));}break;case']':if($m[$r]??0){for($d=1;$d&&$p--;$d+=$s[$p]=='['?-1:($s[$p]==']'));$p--;}break;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="565">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1244">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1244">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1244"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1245">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1245">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1245"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1246">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1246">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1246"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/109/index.html b/archive/q/brainf-ck/a/109/index.html new file mode 100644 index 0000000..47fb83a --- /dev/null +++ b/archive/q/brainf-ck/a/109/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #109 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #109</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#109</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #109</h2> + <p> + hanhan1978 が 2024-03-09 15:33:46 に投稿 + </p> + <h2>コード</h2> + <p> + 392 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);for($p=$r=0,$m=[];$p<strlen($s);$p++)switch($s[$p]){case'>':$r++;break;case'<':$r--;break;case'+':$m[$r]=($m[$r]??0)+1;break;case'-':$m[$r]=($m[$r]??0)-1;break;case'.':echo chr($m[$r]);break;case'[':if(!($m[$r]??0)){for($d=1;$d&&++$p;$d+=$s[$p]==']'?-1:($s[$p]=='['));}break;case']':if($m[$r]??0){for($d=1;$d&&$p--;$d+=$s[$p]=='['?-1:($s[$p]==']'));$p--;}break;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="567">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1248">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1248">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1248"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1249">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1249">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1249"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1250">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1250">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1250"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/11/index.html b/archive/q/brainf-ck/a/11/index.html new file mode 100644 index 0000000..de42585 --- /dev/null +++ b/archive/q/brainf-ck/a/11/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #11 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #11</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#11</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #11</h2> + <p> + yamamoto-hiroya が 2024-03-08 00:28:28 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="111">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="287">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="287">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="287"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="288">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="288">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="288"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="289">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="289">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="289"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/12/index.html b/archive/q/brainf-ck/a/12/index.html new file mode 100644 index 0000000..fa95d0e --- /dev/null +++ b/archive/q/brainf-ck/a/12/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #12 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #12</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#12</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #12</h2> + <p> + yamamoto-hiroya が 2024-03-08 01:18:12 に投稿 + </p> + <h2>コード</h2> + <p> + 499 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=0;$m=[];$r=0;while($p<strlen($s)){switch($s[$p]){case'>':$r++;break;case'<':$r--;break;case'+':if(!isset($m[$r])){$m[$r]=0;}$m[$r]++;break;case'-':if(!isset($m[$r])){$m[$r]=0;}$m[$r]--;break;case'.':echo chr($m[$r]);break;case'[':if(!isset($m[$r])||$m[$r]===0){$d=1;while($d>0){$p++;if($s[$p]==='['){$d++;}elseif($s[$p]===']'){$d--;}}}break;case']':if(isset($m[$r])&&$m[$r]!==0){$d=1;while($d>0){$p--;if($s[$p]===']'){$d++;}elseif($s[$p]==='['){$d--;}}}break;}$p++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="112">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="290">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="290">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="290"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="291">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="291">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="291"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="292">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="292">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="292"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/13/index.html b/archive/q/brainf-ck/a/13/index.html new file mode 100644 index 0000000..98b2e7b --- /dev/null +++ b/archive/q/brainf-ck/a/13/index.html @@ -0,0 +1,134 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #13 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #13</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#13</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #13</h2> + <p> + yamamoto-hiroya が 2024-03-08 01:43:52 に投稿 + </p> + <h2>コード</h2> + <p> + 712 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=$r=0;$m=[];
+
+while($p<strlen($s)){
+ $a=$s[$p];
+ $a=='>'?$r++:($a=='<'?$r--:'');
+ if($a=='+'){
+ if(empty($m[$r]))$m[$r]=0;
+ $m[$r]++;
+ }
+ if($a=='-'){
+ if(empty($m[$r]))$m[$r]=0;
+ $m[$r]--;
+ }
+ if($a=='.')echo chr($m[$r]);
+ if($a=='['){
+ if(empty($m[$r])||$m[$r]==0){
+ $d=1;
+ while($d>0){
+ $p++;
+ if($s[$p]=='['){
+ $d++;
+ }
+ if($s[$p]==']'){
+ $d--;
+ }
+ }
+ }
+ }
+ if($a==']'){
+ if(isset($m[$r])&&$m[$r]!==0){
+ $d=1;
+ while($d>0){
+ $p--;
+ if($s[$p]==']'){
+ $d++;
+ }
+ if($s[$p]=='['){
+ $d--;
+ }
+ }
+ }
+ }
+ $p++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="127">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="307">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="307">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="307"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="308">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="308">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="308"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="309">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="309">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="309"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/14/index.html b/archive/q/brainf-ck/a/14/index.html new file mode 100644 index 0000000..740e164 --- /dev/null +++ b/archive/q/brainf-ck/a/14/index.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #14 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #14</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#14</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #14</h2> + <p> + yamamoto-hiroya が 2024-03-08 01:56:49 に投稿 + </p> + <h2>コード</h2> + <p> + 603 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=$r=0;$m=[];
+while($p<strlen($s)){
+ $a=$s[$p];
+ $a=='>'?$r++:($a=='<'?$r--:'');
+ if($a=='+'){
+ if(empty($m[$r]))$m[$r]=0;
+ $m[$r]++;
+ }
+ if($a=='-'){
+ if(empty($m[$r]))$m[$r]=0;
+ $m[$r]--;
+ }
+ if($a=='.')echo chr($m[$r]);
+ if($a=='['){
+ if(empty($m[$r])||$m[$r]==0){
+ $d=1;
+ while($d>0){
+ $p++;
+ $s[$p]=='['?$d++:($s[$p]==']'?$d--:'');
+ }
+ }
+ }
+ if($a==']'){
+ if(isset($m[$r])&&$m[$r]!==0){
+ $d=1;
+ while($d>0){
+ $p--;
+ $s[$p]==']'?$d++:($s[$p]=='['?$d--:'');
+ }
+ }
+ }
+ $p++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="132">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="314">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="314">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="314"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="315">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="315">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="315"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="316">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="316">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="316"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/15/index.html b/archive/q/brainf-ck/a/15/index.html new file mode 100644 index 0000000..0094c3b --- /dev/null +++ b/archive/q/brainf-ck/a/15/index.html @@ -0,0 +1,123 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #15 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #15</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#15</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #15</h2> + <p> + yamamoto-hiroya が 2024-03-08 02:00:12 に投稿 + </p> + <h2>コード</h2> + <p> + 585 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=$r=0;$m=[];
+while($p<strlen($s)){
+ $a=$s[$p];
+ $a=='>'?$r++:($a=='<'?$r--:'');
+ if($a=='+'){
+ $m[$r]=$m[$r]??0;
+ $m[$r]++;
+ }
+ if($a=='-'){
+ $m[$r]=$m[$r]??0;
+ $m[$r]--;
+ }
+ if($a=='.')echo chr($m[$r]);
+ if($a=='['){
+ if(empty($m[$r])||$m[$r]==0){
+ $d=1;
+ while($d>0){
+ $p++;
+ $s[$p]=='['?$d++:($s[$p]==']'?$d--:'');
+ }
+ }
+ }
+ if($a==']'){
+ if(isset($m[$r])&&$m[$r]!==0){
+ $d=1;
+ while($d>0){
+ $p--;
+ $s[$p]==']'?$d++:($s[$p]=='['?$d--:'');
+ }
+ }
+ }
+ $p++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="133">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="317">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="317">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="317"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="318">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="318">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="318"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="319">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="319">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="319"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/16/index.html b/archive/q/brainf-ck/a/16/index.html new file mode 100644 index 0000000..d9d9bf5 --- /dev/null +++ b/archive/q/brainf-ck/a/16/index.html @@ -0,0 +1,117 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #16 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #16</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#16</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #16</h2> + <p> + yamamoto-hiroya が 2024-03-08 02:02:02 に投稿 + </p> + <h2>コード</h2> + <p> + 545 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=$r=0;$m=[];
+while($p<strlen($s)){
+ $a=$s[$p];
+ $a=='>'?$r++:($a=='<'?$r--:'');
+ if($a=='+')$m[$r]=($m[$r]??0)+1;
+ if($a=='-')$m[$r]=($m[$r]??0)-1;
+ if($a=='.')echo chr($m[$r]);
+ if($a=='['){
+ if(empty($m[$r])||$m[$r]==0){
+ $d=1;
+ while($d>0){
+ $p++;
+ $s[$p]=='['?$d++:($s[$p]==']'?$d--:'');
+ }
+ }
+ }
+ if($a==']'){
+ if(isset($m[$r])&&$m[$r]!==0){
+ $d=1;
+ while($d>0){
+ $p--;
+ $s[$p]==']'?$d++:($s[$p]=='['?$d--:'');
+ }
+ }
+ }
+ $p++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="134">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="320">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="320">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="320"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="321">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="321">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="321"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="322">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="322">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="322"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/17/index.html b/archive/q/brainf-ck/a/17/index.html new file mode 100644 index 0000000..00af6f7 --- /dev/null +++ b/archive/q/brainf-ck/a/17/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #17 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #17</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#17</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #17</h2> + <p> + yamamoto-hiroya が 2024-03-08 02:05:50 に投稿 + </p> + <h2>コード</h2> + <p> + 415 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=$r=0;$m=[];while($p<strlen($s)){$a=$s[$p];$a=='>'?$r++:($a=='<'?$r--:'');if($a=='+')$m[$r]=($m[$r]??0)+1;if($a=='-')$m[$r]=($m[$r]??0)-1;if($a=='.')echo chr($m[$r]);if($a=='['){if(empty($m[$r])||$m[$r]==0){$d=1;while($d>0){$p++;$s[$p]=='['?$d++:($s[$p]==']'?$d--:'');}}}if($a==']'){if(isset($m[$r])&&$m[$r]!==0){$d=1;while($d>0){$p--;$s[$p]==']'?$d++:($s[$p]=='['?$d--:'');}}}$p++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="136">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="324">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="324">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="324"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="325">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="325">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="325"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="326">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="326">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="326"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/18/index.html b/archive/q/brainf-ck/a/18/index.html new file mode 100644 index 0000000..5fee30f --- /dev/null +++ b/archive/q/brainf-ck/a/18/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #18 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #18</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#18</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #18</h2> + <p> + kunikiya が 2024-03-08 02:38:10 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="147">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="352">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="352">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="352"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="353">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="353">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="353"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="354">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="354">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="354"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/19/index.html b/archive/q/brainf-ck/a/19/index.html new file mode 100644 index 0000000..b1781db --- /dev/null +++ b/archive/q/brainf-ck/a/19/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #19 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #19</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#19</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #19</h2> + <p> + kunikiya が 2024-03-08 02:40:04 に投稿 + </p> + <h2>コード</h2> + <p> + 696 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$ptr = 0;
+
+while ($pc < strlen($s)) {
+switch ($s[$pc]) {
+case '>':
+$ptr++;
+break;
+case '<':
+$ptr--;
+break;
+case '+':
+if (!isset($m[$ptr])) {
+$m[$ptr] = 0;
+}
+$m[$ptr]++;
+break;
+case '-':
+if (!isset($m[$ptr])) {
+$m[$ptr] = 0;
+}
+$m[$ptr]--;
+break;
+case '.':
+echo chr($m[$ptr]);
+break;
+case '[':
+if (!isset($m[$ptr]) || $m[$ptr] === 0) {
+$depth = 1;
+while ($depth > 0) {
+$pc++;
+if ($s[$pc] === '[') {
+$depth++;
+} elseif ($s[$pc] === ']') {
+$depth--;
+}
+}
+}
+break;
+case ']':
+if (isset($m[$ptr]) && $m[$ptr] !== 0) {
+$depth = 1;
+while ($depth > 0) {
+$pc--;
+if ($s[$pc] === ']') {
+$depth++;
+} elseif ($s[$pc] === '[') {
+$depth--;
+}
+}
+}
+break;
+}
+$pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="148">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="355">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="355">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="355"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="356">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="356">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="356"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="357">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="357">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="357"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/2/index.html b/archive/q/brainf-ck/a/2/index.html new file mode 100644 index 0000000..f62e907 --- /dev/null +++ b/archive/q/brainf-ck/a/2/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #2 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #2</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#2</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #2</h2> + <p> + blue-goheimochi が 2024-03-06 08:26:28 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="8">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="14">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="14">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="14"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="15">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="15">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="15"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="16">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="16">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="16"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/20/index.html b/archive/q/brainf-ck/a/20/index.html new file mode 100644 index 0000000..f1f3532 --- /dev/null +++ b/archive/q/brainf-ck/a/20/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #20 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #20</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#20</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #20</h2> + <p> + kunikiya が 2024-03-08 02:43:32 に投稿 + </p> + <h2>コード</h2> + <p> + 569 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$pc=0;$m=[];$ptr=0;while($pc<strlen($s)){switch($s[$pc]){case'>':$ptr++;break;case'<':$ptr--;break;case'+':if(!isset($m[$ptr])){$m[$ptr]=0;}$m[$ptr]++;break;case'-':if(!isset($m[$ptr])){$m[$ptr]=0;}$m[$ptr]--;break;case'.':echo chr($m[$ptr]);break;case'[':if(!isset($m[$ptr])||$m[$ptr]===0){$depth=1;while($depth>0){$pc++;if($s[$pc]==='['){$depth++;}elseif($s[$pc]===']'){$depth--;}}}break;case']':if(isset($m[$ptr])&&$m[$ptr]!==0){$depth=1;while($depth>0){$pc--;if($s[$pc]===']'){$depth++;}elseif($s[$pc]==='['){$depth--;}}}break;}$pc++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="149">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="358">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="358">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="358"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="359">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="359">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="359"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="360">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="360">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="360"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/21/index.html b/archive/q/brainf-ck/a/21/index.html new file mode 100644 index 0000000..ca26948 --- /dev/null +++ b/archive/q/brainf-ck/a/21/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #21 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #21</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#21</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #21</h2> + <p> + kunikiya が 2024-03-08 02:44:40 に投稿 + </p> + <h2>コード</h2> + <p> + 509 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$pc=0;$m=[];$p=0;while($pc<strlen($s)){switch($s[$pc]){case'>':$p++;break;case'<':$p--;break;case'+':if(!isset($m[$p])){$m[$p]=0;}$m[$p]++;break;case'-':if(!isset($m[$p])){$m[$p]=0;}$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!isset($m[$p])||$m[$p]===0){$d=1;while($d>0){$pc++;if($s[$pc]==='['){$d++;}elseif($s[$pc]===']'){$d--;}}}break;case']':if(isset($m[$p])&&$m[$p]!==0){$d=1;while($d>0){$pc--;if($s[$pc]===']'){$d++;}elseif($s[$pc]==='['){$d--;}}}break;}$pc++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="150">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="361">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="361">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="361"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="362">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="362">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="362"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="363">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="363">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="363"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/22/index.html b/archive/q/brainf-ck/a/22/index.html new file mode 100644 index 0000000..adfa0ec --- /dev/null +++ b/archive/q/brainf-ck/a/22/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #22 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #22</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#22</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #22</h2> + <p> + kunikiya が 2024-03-08 02:45:37 に投稿 + </p> + <h2>コード</h2> + <p> + 499 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$c=0;$m=[];$p=0;while($c<strlen($s)){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':if(!isset($m[$p])){$m[$p]=0;}$m[$p]++;break;case'-':if(!isset($m[$p])){$m[$p]=0;}$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!isset($m[$p])||$m[$p]===0){$d=1;while($d>0){$c++;if($s[$c]==='['){$d++;}elseif($s[$c]===']'){$d--;}}}break;case']':if(isset($m[$p])&&$m[$p]!==0){$d=1;while($d>0){$c--;if($s[$c]===']'){$d++;}elseif($s[$c]==='['){$d--;}}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="151">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="364">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="364">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="364"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="365">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="365">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="365"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="366">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="366">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="366"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/23/index.html b/archive/q/brainf-ck/a/23/index.html new file mode 100644 index 0000000..8f3de00 --- /dev/null +++ b/archive/q/brainf-ck/a/23/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #23 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #23</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#23</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #23</h2> + <p> + kunikiya が 2024-03-08 02:48:15 に投稿 + </p> + <h2>コード</h2> + <p> + 495 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$m=[];$p=0;for($c=0;$c<strlen($s);$c++)switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':if(!isset($m[$p])){$m[$p]=0;}$m[$p]++;break;case'-':if(!isset($m[$p])){$m[$p]=0;}$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!isset($m[$p])||$m[$p]===0){$d=1;while($d>0){$c++;if($s[$c]==='['){$d++;}elseif($s[$c]===']'){$d--;}}}break;case']':if(isset($m[$p])&&$m[$p]!==0){$d=1;while($d>0){$c--;if($s[$c]===']'){$d++;}elseif($s[$c]==='['){$d--;}}}break;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="153">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="368">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="368">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="368"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="369">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="369">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="369"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="370">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="370">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="370"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/24/index.html b/archive/q/brainf-ck/a/24/index.html new file mode 100644 index 0000000..ff5fb07 --- /dev/null +++ b/archive/q/brainf-ck/a/24/index.html @@ -0,0 +1,390 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #24 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #24</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#24</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #24</h2> + <p> + tadsan が 2024-03-08 03:19:00 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="155">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="372">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="372">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="372"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="373">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="373">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="373"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="374">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="374">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="374"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/25/index.html b/archive/q/brainf-ck/a/25/index.html new file mode 100644 index 0000000..f386be0 --- /dev/null +++ b/archive/q/brainf-ck/a/25/index.html @@ -0,0 +1,88 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #25 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #25</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#25</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #25</h2> + <p> + tadsan が 2024-03-08 04:22:52 に投稿 + </p> + <h2>コード</h2> + <p> + 385 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]) {case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if($m[$p]){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="161">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="380">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="380"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="380"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="381">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="381">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="381"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="382">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="382">�</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="382"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/26/index.html b/archive/q/brainf-ck/a/26/index.html new file mode 100644 index 0000000..58471ba --- /dev/null +++ b/archive/q/brainf-ck/a/26/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #26 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #26</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#26</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #26</h2> + <p> + tadsan が 2024-03-08 04:27:26 に投稿 + </p> + <h2>コード</h2> + <p> + 385 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="162">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="383">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="383">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="383"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="384">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="384">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="384"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="385">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="385">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="385"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/27/index.html b/archive/q/brainf-ck/a/27/index.html new file mode 100644 index 0000000..1b6d354 --- /dev/null +++ b/archive/q/brainf-ck/a/27/index.html @@ -0,0 +1,98 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #27 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #27</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#27</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #27</h2> + <p> + tadsan が 2024-03-08 04:37:11 に投稿 + </p> + <h2>コード</h2> + <p> + 380 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;match($s[$c]){'>'=>$p++,'<'=>$p--,'+'=>$m[$p]++,'-'=>$m[$p]--,'.'=>print chr($m[$p]),'['=>(function()use(&$c,&$d){if(!$m[$p]){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}})(),']'=>(function()use(&$c,&$d){if($m[$p]){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}})()};$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="163">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="386">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="386"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="386">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="387">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="387">P +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '\n' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="387"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="388">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="388"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case ' ' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="388"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/28/index.html b/archive/q/brainf-ck/a/28/index.html new file mode 100644 index 0000000..30dc8b3 --- /dev/null +++ b/archive/q/brainf-ck/a/28/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #28 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #28</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#28</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #28</h2> + <p> + tadsan が 2024-03-08 04:42:48 に投稿 + </p> + <h2>コード</h2> + <p> + 386 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;do{$m[$p]??=0;switch ($s[$c]) {case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}}while(++$c<strlen($s))</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="164">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="389">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="389"> +Parse error: syntax error, unexpected end of file, expecting ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="389"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="390">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="390"> +Parse error: syntax error, unexpected end of file, expecting ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="390"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="391">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="391"> +Parse error: syntax error, unexpected end of file, expecting ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="391"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/29/index.html b/archive/q/brainf-ck/a/29/index.html new file mode 100644 index 0000000..8db89d5 --- /dev/null +++ b/archive/q/brainf-ck/a/29/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #29 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #29</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#29</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #29</h2> + <p> + tadsan が 2024-03-08 04:45:20 に投稿 + </p> + <h2>コード</h2> + <p> + 385 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;do{$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}}while(++$c<strlen($s));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="165">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="392">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="392">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="392"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="393">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="393">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="393"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="394">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="394">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="394"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/3/index.html b/archive/q/brainf-ck/a/3/index.html new file mode 100644 index 0000000..ba28346 --- /dev/null +++ b/archive/q/brainf-ck/a/3/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #3 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #3</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#3</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #3</h2> + <p> + muno92 が 2024-03-06 08:42:52 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="12">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="22">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="22">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="22"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="23">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="23">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="23"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="24">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="24">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="24"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/30/index.html b/archive/q/brainf-ck/a/30/index.html new file mode 100644 index 0000000..b02cb70 --- /dev/null +++ b/archive/q/brainf-ck/a/30/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #30 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #30</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#30</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #30</h2> + <p> + tadsan が 2024-03-08 05:26:59 に投稿 + </p> + <h2>コード</h2> + <p> + 383 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){for($d=1;$d>0;){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if($m[$p]){for($d=1;$d>0;){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="171">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="415">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="415">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="415"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="416">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="416">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="416"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="417">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="417">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="417"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/31/index.html b/archive/q/brainf-ck/a/31/index.html new file mode 100644 index 0000000..0a82fda --- /dev/null +++ b/archive/q/brainf-ck/a/31/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #31 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #31</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#31</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #31</h2> + <p> + tadsan が 2024-03-08 05:28:26 に投稿 + </p> + <h2>コード</h2> + <p> + 373 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p]){for($d=1;$d>0;)if($s[++$c]=='[')$d++;elseif($s[$c]==']')$d--;}break;case']':if($m[$p]){for($d=1;$d>0;)if($s[--$c]==']')$d++;elseif($s[$c]=='[')$d--;}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="172">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="418">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="418">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="418"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="419">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="419">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="419"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="420">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="420">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="420"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/32/index.html b/archive/q/brainf-ck/a/32/index.html new file mode 100644 index 0000000..1bd4c07 --- /dev/null +++ b/archive/q/brainf-ck/a/32/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #32 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #32</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#32</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #32</h2> + <p> + tadsan が 2024-03-08 05:31:32 に投稿 + </p> + <h2>コード</h2> + <p> + 363 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)if($s[++$c]=='[')$d++;elseif($s[$c]==']')$d--;break;case']':if($m[$p])for($d=1;$d>0;)if($s[--$c]==']')$d++;elseif($s[$c]=='[')$d--;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="173">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="421">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="421">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="421"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="422">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="422">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="422"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="423">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="423">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="423"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/33/index.html b/archive/q/brainf-ck/a/33/index.html new file mode 100644 index 0000000..58b9f89 --- /dev/null +++ b/archive/q/brainf-ck/a/33/index.html @@ -0,0 +1,103 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #33 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #33</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#33</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #33</h2> + <p> + tadsan が 2024-03-08 05:33:11 に投稿 + </p> + <h2>コード</h2> + <p> + 361 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);$m[$p]??=0){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)if($s[++$c]=='[')$d++;elseif($s[$c]==']')$d--;break;case']':if($m[$p])for($d=1;$d>0;)if($s[--$c]==']')$d++;elseif($s[$c]=='[')$d--;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="174">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="424">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="424"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Undefined array key 0 in php.wasm code on line 6 +Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="424"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="425">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="425"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Undefined array key 0 in php.wasm code on line 6 +PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="425"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="426">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="426"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Undefined array key 0 in php.wasm code on line 6 +グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="426"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/34/index.html b/archive/q/brainf-ck/a/34/index.html new file mode 100644 index 0000000..28a0dff --- /dev/null +++ b/archive/q/brainf-ck/a/34/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #34 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #34</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#34</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #34</h2> + <p> + tadsan が 2024-03-08 05:33:54 に投稿 + </p> + <h2>コード</h2> + <p> + 362 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)if($s[++$c]=='[')$d++;elseif($s[$c]==']')$d--;break;case']':if($m[$p])for($d=1;$d>0;)if($s[--$c]==']')$d++;elseif($s[$c]=='[')$d--;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="175">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="427">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="427">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="427"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="428">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="428">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="428"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="429">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="429">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="429"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/35/index.html b/archive/q/brainf-ck/a/35/index.html new file mode 100644 index 0000000..f8270e6 --- /dev/null +++ b/archive/q/brainf-ck/a/35/index.html @@ -0,0 +1,88 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #35 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #35</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#35</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #35</h2> + <p> + tadsan が 2024-03-08 05:38:33 に投稿 + </p> + <h2>コード</h2> + <p> + 350 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)($s[++$c]=='[')?$d++:$s[$c]==']'and$d--;break;case']':if($m[$p])for($d=1;$d>0;)($s[--$c]==']')?$d++:$s[$c]=='['and$d--;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="176">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="430">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="430"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="430">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="431">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="431">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="431"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="432">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="432">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="432"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/36/index.html b/archive/q/brainf-ck/a/36/index.html new file mode 100644 index 0000000..39ecb30 --- /dev/null +++ b/archive/q/brainf-ck/a/36/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #36 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #36</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#36</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #36</h2> + <p> + tadsan が 2024-03-08 05:40:10 に投稿 + </p> + <h2>コード</h2> + <p> + 352 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)($s[++$c]=='[')?$d++:($s[$c]==']'&&$d--);break;case']':if($m[$p])for($d=1;$d>0;)($s[--$c]==']')?$d++:($s[$c]=='['&&$d--);}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="177">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="433">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="433">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="433"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="434">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="434">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="434"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="435">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="435">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="435"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/37/index.html b/archive/q/brainf-ck/a/37/index.html new file mode 100644 index 0000000..a397ea9 --- /dev/null +++ b/archive/q/brainf-ck/a/37/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #37 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #37</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#37</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #37</h2> + <p> + tadsan が 2024-03-08 05:41:46 に投稿 + </p> + <h2>コード</h2> + <p> + 344 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)$s[++$c]=='['?$d++:$s[$c]==']'&&$d--;break;case']':if($m[$p])for($d=1;$d>0;)$s[--$c]==']'?$d++:$s[$c]=='['&&$d--;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="178">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="436">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="436">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="436"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="437">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="437">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="437"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="438">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="438">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="438"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/38/index.html b/archive/q/brainf-ck/a/38/index.html new file mode 100644 index 0000000..33161e6 --- /dev/null +++ b/archive/q/brainf-ck/a/38/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #38 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #38</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#38</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #38</h2> + <p> + tadsan が 2024-03-08 05:43:06 に投稿 + </p> + <h2>コード</h2> + <p> + 343 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);$c++){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)$s[++$c]=='['?$d++:$s[$c]==']'&&$d--;break;case']':if($m[$p])for($d=1;$d>0;)$s[--$c]==']'?$d++:$s[$c]=='['&&$d--;}}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="180">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="443">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="443">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="443"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="444">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="444">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="444"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="445">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="445">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="445"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/39/index.html b/archive/q/brainf-ck/a/39/index.html new file mode 100644 index 0000000..53cda0f --- /dev/null +++ b/archive/q/brainf-ck/a/39/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #39 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #39</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#39</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #39</h2> + <p> + rinchoku が 2024-03-08 07:38:40 に投稿 + </p> + <h2>コード</h2> + <p> + 558 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$c=0;$m=[];$p=0;while ($c < strlen($s)){switch ($s[$c]){case '>':$p++;break;case '<':$p--;break;case '+':if(!isset($m[$p])){$m[$p]=0;}$m[$p]++;break;case '-':if(!isset($m[$p])){$m[$p]=0;}$m[$p]--;break;case '.':echo chr($m[$p]);break;case '[':if(!isset($m[$p]) || $m[$p] === 0){$depth=1;while ($depth>0){$c++;if($s[$c] === '['){$depth++;} elseif($s[$c] === ']'){$depth--;}}}break;case ']':if(isset($m[$p])&&$m[$p]!==0){$depth=1;while ($depth>0){$c--;if($s[$c] === ']'){$depth++;} elseif($s[$c] === '['){$depth--;}}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="182">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="450">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="450">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="450"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="451">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="451">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="451"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="452">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="452">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="452"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/4/index.html b/archive/q/brainf-ck/a/4/index.html new file mode 100644 index 0000000..814e4c7 --- /dev/null +++ b/archive/q/brainf-ck/a/4/index.html @@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #4 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #4</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#4</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #4</h2> + <p> + tadsan が 2024-03-06 21:07:43 に投稿 + </p> + <h2>コード</h2> + <p> + 374 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,999);$c=$p=0;while($c<strlen($s)){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]??=0;$m[$p]++;break;case'-':$m[$p]??=0;$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!($m[$p]??0)){$d=1;while($d>0){match($s[++$c]){'['=>$d++,']'=>$d--};}}break;case ']':if($m[$p]??0){$d=1;while($d>0){match($s[--$c]){']'=>$d++,'['=>$d--};}}}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="18">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="32">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="32"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '-' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="32"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="33">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="33">PHPerKaig +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="33"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="34">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="34"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case ' ' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="34"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/40/index.html b/archive/q/brainf-ck/a/40/index.html new file mode 100644 index 0000000..9d813bf --- /dev/null +++ b/archive/q/brainf-ck/a/40/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #40 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #40</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#40</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #40</h2> + <p> + rinchoku が 2024-03-08 07:43:02 に投稿 + </p> + <h2>コード</h2> + <p> + 544 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$c=0;$m=[];$p=0;while ($c < strlen($s)){switch ($s[$c]){case '>':$p++;break;case '<':$p--;break;case '+':if(!isset($m[$p]))$m[$p]=0;$m[$p]++;break;case '-':if(!isset($m[$p]))$m[$p]=0;$m[$p]--;break;case '.':echo chr($m[$p]);break;case '[':if(!isset($m[$p]) || $m[$p] === 0){$depth=1;while ($depth>0){$c++;if($s[$c] === '[')$depth++;elseif($s[$c] === ']')$depth--;}}break;case ']':if(isset($m[$p])&&$m[$p]!==0){$depth=1;while ($depth>0){$c--;if($s[$c] === ']')$depth++;elseif($s[$c] === '[')$depth--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="183">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="453">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="453">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="453"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="454">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="454">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="454"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="455">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="455">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="455"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/41/index.html b/archive/q/brainf-ck/a/41/index.html new file mode 100644 index 0000000..a066e2c --- /dev/null +++ b/archive/q/brainf-ck/a/41/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #41 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #41</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#41</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #41</h2> + <p> + rinchoku が 2024-03-08 07:48:58 に投稿 + </p> + <h2>コード</h2> + <p> + 555 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$c=0;$m=[];$p=0;while ($c<strlen($s)) {if($s[$c]=='>')$p++;elseif($s[$c]=='<')$p--;elseif($s[$c]=='+'){if(!isset($m[$p]))$m[$p]=0;$m[$p]++;} elseif($s[$c]=='-'){if(!isset($m[$p]))$m[$p]=0;$m[$p]--;} elseif($s[$c]=='.')echo chr($m[$p]);elseif($s[$c]=='['){if(!isset($m[$p])||$m[$p]===0) {$depth=1;while ($depth >0) {$c++;if($s[$c]==='[')$depth++;elseif($s[$c]===']')$depth--;}}} elseif($s[$c]==']'){if(isset($m[$p])&&$m[$p]!==0) {$depth=1;while ($depth >0) {$c--;if($s[$c]===']')$depth++;elseif($s[$c]==='[')$depth--;}}}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="184">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="456">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="456">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="456"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="457">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="457">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="457"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="458">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="458">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="458"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/42/index.html b/archive/q/brainf-ck/a/42/index.html new file mode 100644 index 0000000..1ca5081 --- /dev/null +++ b/archive/q/brainf-ck/a/42/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #42 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #42</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#42</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #42</h2> + <p> + rinchoku が 2024-03-08 07:55:27 に投稿 + </p> + <h2>コード</h2> + <p> + 481 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$c=0;$m=[];$p=0;while($c<strlen($s)){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':if(!isset($m[$p]))$m[$p]=0;$m[$p]++;break;case'-':if(!isset($m[$p]))$m[$p]=0;$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!isset($m[$p])||$m[$p]==0){$d=1;while($d>0){$c++;if($s[$c]=='[')$d++;elseif($s[$c]==']')$d--;}}break;case']':if(isset($m[$p])&&$m[$p]!=0){$d=1;while($d>0){$c--;if($s[$c]==']')$d++;elseif($s[$c]=='[')$d--;}}break;}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="185">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="459">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="459">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="459"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="460">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="460">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="460"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="461">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="461">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="461"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/43/index.html b/archive/q/brainf-ck/a/43/index.html new file mode 100644 index 0000000..0d728a3 --- /dev/null +++ b/archive/q/brainf-ck/a/43/index.html @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #43 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #43</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#43</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #43</h2> + <p> + ticknical が 2024-03-08 10:23:21 に投稿 + </p> + <h2>コード</h2> + <p> + 580 byte + </p> + <pre><code class="hljs language-php">$src=stream_get_contents(STDIN);$p=$m=[];$r=0;
+
+while($r<strlen($src)){
+ switch($src[$r]){
+ case'>':$p++;break;
+ case'<':$p--;break;
+ case'+':if(!isset($m[$p]))$m[$p]=0;$m[$p]++;break;
+ case'-':if(!isset($m[$p]))$m[$p]=0;$m[$p]--;break;
+ case'.':echo chr($m[$p]);break;
+ case'[':if(!isset($m[$p])||$m[$p]===0){$d=1;while($d>0){$r++;if($src[$r]==='[')$d++;elseif($src[$r]===']')$d--;}}break;
+ case']':if(isset($m[$p])&&$m[$p]!==0){$d=1;while($d>0){$r--;if($src[$r]===']')$d++;elseif($src[$r]==='[')$d--;}}break;
+ }
+ $r++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="197">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="482">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="482"> +Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in php.wasm code:12 +Stack trace: +#0 {main} + thrown in php.wasm code on line 12 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="482"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="483">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="483"> +Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in php.wasm code:12 +Stack trace: +#0 {main} + thrown in php.wasm code on line 12 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="483"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="484">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="484"> +Fatal error: Uncaught TypeError: Illegal offset type in isset or empty in php.wasm code:12 +Stack trace: +#0 {main} + thrown in php.wasm code on line 12 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="484"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/44/index.html b/archive/q/brainf-ck/a/44/index.html new file mode 100644 index 0000000..a56edab --- /dev/null +++ b/archive/q/brainf-ck/a/44/index.html @@ -0,0 +1,118 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #44 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #44</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#44</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #44</h2> + <p> + m3m0r7 が 2024-03-08 15:43:41 に投稿 + </p> + <h2>コード</h2> + <p> + 665 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$q = 0;
+$m = [];
+$p = 0;
+
+while ($q < strlen($s)) {
+ match ($c=$s[$q]) {
+ '>' => $p++,
+ '<' => $p--,
+ '.' => print chr($m[$p]),
+ '+','-' => $m[$p] = ($m[$p] ?? 0)+($c=='+'?1:-1),
+ default => '',
+ };
+
+ if (($a = $c == '[') || $c == ']') {
+ $b = isset($m[$p]) && $m[$p] !== 0;
+ if ((!$b && $a) || ($b && $c == ']')) {
+ $d = 1;
+ while ($d > 0) {
+ $q += $a ? 1 : -1;
+ $d += $s[$q] === '['
+ ? ($a ? 1 : -1)
+ : ($s[$q] === ']' ? ($a ? -1 : 1) : 0);
+ }
+ }
+ }
+ $q++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="252">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="605">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="605">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="605"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="606">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="606">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="606"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="607">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="607">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="607"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/45/index.html b/archive/q/brainf-ck/a/45/index.html new file mode 100644 index 0000000..3d27445 --- /dev/null +++ b/archive/q/brainf-ck/a/45/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #45 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #45</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#45</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #45</h2> + <p> + m3m0r7 が 2024-03-08 15:44:20 に投稿 + </p> + <h2>コード</h2> + <p> + 360 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$q=0;$m=[];$p=0;while($q<strlen($s)){match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>'',};if(($a=$c=='[')||$c==']'){$b=isset($m[$p])&&$m[$p]!==0;if((!$b&&$a)||($b&&$c==']')){$d=1;while($d>0){$q+=$a?1:-1;$d+=$s[$q]==='['?($a?1:-1):($s[$q]===']'?($a?-1:1):0);}}}$q++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="253">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="608">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="608">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="608"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="609">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="609">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="609"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="610">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="610">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="610"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/46/index.html b/archive/q/brainf-ck/a/46/index.html new file mode 100644 index 0000000..f7e39dd --- /dev/null +++ b/archive/q/brainf-ck/a/46/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #46 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #46</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#46</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #46</h2> + <p> + oogFranz が 2024-03-08 15:46:56 に投稿 + </p> + <h2>コード</h2> + <p> + 375 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);for($p=$m=[];$i<strlen($s);){$c=$s[$i++];switch($c){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':$m[$p]||($j=$i-1;$d=1;while($d){$s[$i]=='['?$d++:$s[$i++]==']'&&$d--;}$i=$j);break;case']':!$m[$p]&&($j=$i;$d=1;while($d){$s[--$i]==']'&&$d++:$s[$i]=='['&&$d--;}}break;}}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="254">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="611">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="611"> +Parse error: syntax error, unexpected token ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="611"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="612">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="612"> +Parse error: syntax error, unexpected token ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="612"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="613">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="613"> +Parse error: syntax error, unexpected token ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="613"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/47/index.html b/archive/q/brainf-ck/a/47/index.html new file mode 100644 index 0000000..977db10 --- /dev/null +++ b/archive/q/brainf-ck/a/47/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #47 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #47</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#47</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #47</h2> + <p> + m3m0r7 が 2024-03-08 15:48:47 に投稿 + </p> + <h2>コード</h2> + <p> + 357 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$q=0;$m=[];$p=0;while($q<strlen($s)){match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>''};if(($a=$c=='[')||$c==']'){$b=isset($m[$p])&&$m[$p]!==0;if((!$b&&$a)||($b&&$c==']')){$d=1;while($d>0){$q+=$a?1:-1;$d+=$s[$q]=='['?($a?1:-1):($s[$q]==']'?($a?-1:1):0);}}}$q++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="255">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="614">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="614">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="614"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="615">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="615">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="615"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="616">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="616">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="616"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/48/index.html b/archive/q/brainf-ck/a/48/index.html new file mode 100644 index 0000000..b80ce0d --- /dev/null +++ b/archive/q/brainf-ck/a/48/index.html @@ -0,0 +1,142 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #48 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #48</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#48</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #48</h2> + <p> + hanhan1978 が 2024-03-08 16:04:11 に投稿 + </p> + <h2>コード</h2> + <p> + 883 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]++;
+ break;
+ case '-':
+ if ($m[$p]??1) {
+ $m[$p] = 0;
+ }
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if (!isset($m[$p]) || $m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($m[$p]) && $m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="259">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="629">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="629"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="629">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="630">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="630">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="630"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="631">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="631"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="631">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/49/index.html b/archive/q/brainf-ck/a/49/index.html new file mode 100644 index 0000000..b1ce567 --- /dev/null +++ b/archive/q/brainf-ck/a/49/index.html @@ -0,0 +1,142 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #49 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #49</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#49</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #49</h2> + <p> + hanhan1978 が 2024-03-08 16:04:53 に投稿 + </p> + <h2>コード</h2> + <p> + 883 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]++;
+ break;
+ case '-':
+ if ($m[$p]??1) {
+ $m[$p] = 0;
+ }
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if (!isset($m[$p]) || $m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($m[$p]) && $m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="260">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="632">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="632"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="632">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="633">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="633">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="633"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="634">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="634"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="634">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/5/index.html b/archive/q/brainf-ck/a/5/index.html new file mode 100644 index 0000000..7423a1f --- /dev/null +++ b/archive/q/brainf-ck/a/5/index.html @@ -0,0 +1,99 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #5 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #5</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#5</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #5</h2> + <p> + tadsan が 2024-03-06 21:10:44 に投稿 + </p> + <h2>コード</h2> + <p> + 405 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);
+$c=$p=0;while($c<strlen($s)){switch($s[$c]){
+case'>':$p++;break;
+case'<':$p--;break;
+case'+':$m[$p]??=0;$m[$p]++;break;
+case'-':$m[$p]??=0;$m[$p]--;break;
+case'.':echo chr($m[$p]);break;
+case'[':if(!($m[$p]??0)){$d=1;while($d>0){match($s[++$c]){'['=>$d++,']'=>$d--,default=>0};}}break;
+case ']':if($m[$p]??0){$d=1;while($d>0){match($s[--$c]){']'=>$d++,'['=>$d--,default=>0};}}}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="19">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="35">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="35">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="35"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="36">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="36">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="36"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="37">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="37">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="37"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/50/index.html b/archive/q/brainf-ck/a/50/index.html new file mode 100644 index 0000000..5393d3c --- /dev/null +++ b/archive/q/brainf-ck/a/50/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #50 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #50</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#50</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #50</h2> + <p> + hanhan1978 が 2024-03-08 16:05:40 に投稿 + </p> + <h2>コード</h2> + <p> + 888 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]++;
+ break;
+ case '-':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if (!isset($m[$p]) || $m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($m[$p]) && $m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="261">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="635">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="635">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="635"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="636">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="636">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="636"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="637">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="637">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="637"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/51/index.html b/archive/q/brainf-ck/a/51/index.html new file mode 100644 index 0000000..1fe59c9 --- /dev/null +++ b/archive/q/brainf-ck/a/51/index.html @@ -0,0 +1,141 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #51 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #51</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#51</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #51</h2> + <p> + hanhan1978 が 2024-03-08 16:14:59 に投稿 + </p> + <h2>コード</h2> + <p> + 867 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ $m[$p] = isset($m[$p]) ? ++$m[$p] : 0;
+ break;
+ case '-':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if (!isset($m[$p]) || $m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($m[$p]) && $m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="262">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="638">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="638"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="638">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="639">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="639">OGOdqJ`hfh1/13 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="639"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="640">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="640">�t��u��t��u��u��u�͜��t� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="640"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/52/index.html b/archive/q/brainf-ck/a/52/index.html new file mode 100644 index 0000000..b4facc9 --- /dev/null +++ b/archive/q/brainf-ck/a/52/index.html @@ -0,0 +1,149 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #52 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #52</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#52</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #52</h2> + <p> + hanhan1978 が 2024-03-08 16:16:47 に投稿 + </p> + <h2>コード</h2> + <p> + 926 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ if (!isset($m[$p]))
+ $m[$p] = 0;
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]++;
+ break;
+ case '-':
+ if (!isset($m[$p])) {
+ $m[$p] = 0;
+ }
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if (!isset($m[$p]) || $m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($m[$p]) && $m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="263">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="641">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="641">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="641"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="642">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="642">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="642"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="643">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="643">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="643"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/53/index.html b/archive/q/brainf-ck/a/53/index.html new file mode 100644 index 0000000..760818a --- /dev/null +++ b/archive/q/brainf-ck/a/53/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #53 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #53</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#53</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #53</h2> + <p> + m3m0r7 が 2024-03-08 16:17:56 に投稿 + </p> + <h2>コード</h2> + <p> + 350 byte + </p> + <pre><code class="hljs language-php">for($s=stream_get_contents(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++){match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>'',};for($d=1,$b=isset($m[$p])&&$m[$p]!==0;(($a=$c=='[')||$c==']')&&((!$b&&$a)||($b&&$c==']'))&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?($a?1:-1):($o==']'?($a?-1:1):0));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="264">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="644">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="644">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="644"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="645">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="645">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="645"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="646">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="646">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="646"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/54/index.html b/archive/q/brainf-ck/a/54/index.html new file mode 100644 index 0000000..efba4dc --- /dev/null +++ b/archive/q/brainf-ck/a/54/index.html @@ -0,0 +1,143 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #54 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #54</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#54</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #54</h2> + <p> + hanhan1978 が 2024-03-08 16:17:57 に投稿 + </p> + <h2>コード</h2> + <p> + 791 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ if (!isset($m[$p]))
+ $m[$p] = 0;
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ $m[$p]++;
+ break;
+ case '-':
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if ($m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if ($m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="265">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="647">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="647">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="647"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="648">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="648">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="648"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="649">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="649">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="649"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/55/index.html b/archive/q/brainf-ck/a/55/index.html new file mode 100644 index 0000000..cbe4ad9 --- /dev/null +++ b/archive/q/brainf-ck/a/55/index.html @@ -0,0 +1,128 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #55 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #55</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#55</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #55</h2> + <p> + hanhan1978 が 2024-03-08 16:20:21 に投稿 + </p> + <h2>コード</h2> + <p> + 713 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+while ($pc < strlen($s)) {
+ if (!isset($m[$p]))
+ $m[$p] = 0;
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ case '<':
+ $p--;
+ case '+':
+ $m[$p]++;
+ case '-':
+ $m[$p]--;
+ case '.':
+ echo chr($m[$p]);
+ case '[':
+ if ($m[$p] === 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] === '[') {
+ $d++;
+ } elseif ($s[$pc] === ']') {
+ $d--;
+ }
+ }
+ }
+ case ']':
+ if ($m[$p] !== 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] === ']') {
+ $d++;
+ } elseif ($s[$pc] === '[') {
+ $d--;
+ }
+ }
+ }
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="266">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="650">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="650"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="650">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="651">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="651"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="651">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="652">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="652"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="652">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/56/index.html b/archive/q/brainf-ck/a/56/index.html new file mode 100644 index 0000000..1585c42 --- /dev/null +++ b/archive/q/brainf-ck/a/56/index.html @@ -0,0 +1,143 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #56 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #56</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#56</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #56</h2> + <p> + hanhan1978 が 2024-03-08 16:22:56 に投稿 + </p> + <h2>コード</h2> + <p> + 785 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$pc = 0;
+$m = [];
+$p = 0;
+
+while ($pc < strlen($s)) {
+ if (!isset($m[$p]))
+ $m[$p] = 0;
+ switch ($s[$pc]) {
+ case '>':
+ $p++;
+ break;
+ case '<':
+ $p--;
+ break;
+ case '+':
+ $m[$p]++;
+ break;
+ case '-':
+ $m[$p]--;
+ break;
+ case '.':
+ echo chr($m[$p]);
+ break;
+ case '[':
+ if ($m[$p] == 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc++;
+ if ($s[$pc] == '[') {
+ $d++;
+ } elseif ($s[$pc] == ']') {
+ $d--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if ($m[$p] != 0) {
+ $d = 1;
+ while ($d > 0) {
+ $pc--;
+ if ($s[$pc] == ']') {
+ $d++;
+ } elseif ($s[$pc] == '[') {
+ $d--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="267">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="653">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="653">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="653"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="654">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="654">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="654"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="655">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="655">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="655"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/57/index.html b/archive/q/brainf-ck/a/57/index.html new file mode 100644 index 0000000..d9a834d --- /dev/null +++ b/archive/q/brainf-ck/a/57/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #57 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #57</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#57</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #57</h2> + <p> + m3m0r7 が 2024-03-08 16:24:31 に投稿 + </p> + <h2>コード</h2> + <p> + 341 byte + </p> + <pre><code class="hljs language-php"><?php for($s=stream_get_contents(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++){match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>'',};for($d=1,$b=isset($m[$p])&&$m[$p]!==0;($a=$c=='[')||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="268">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="656">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="656">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="656"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="657">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="657">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="657"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="658">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="658">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="658"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/58/index.html b/archive/q/brainf-ck/a/58/index.html new file mode 100644 index 0000000..aa5ad7d --- /dev/null +++ b/archive/q/brainf-ck/a/58/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #58 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #58</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#58</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #58</h2> + <p> + m3m0r7 が 2024-03-08 16:25:44 に投稿 + </p> + <h2>コード</h2> + <p> + 341 byte + </p> + <pre><code class="hljs language-php">for($s=stream_get_contents(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++){match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>'',};for($d=1,$b=isset($m[$p])&&$m[$p]!==0;($a=$c=='[')||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="269">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="659">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="659">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="659"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="660">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="660">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="660"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="661">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="661">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="661"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/59/index.html b/archive/q/brainf-ck/a/59/index.html new file mode 100644 index 0000000..7e77ba8 --- /dev/null +++ b/archive/q/brainf-ck/a/59/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #59 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #59</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#59</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #59</h2> + <p> + hanhan1978 が 2024-03-08 16:29:09 に投稿 + </p> + <h2>コード</h2> + <p> + 493 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);
+$pc=0;$m=[];$p=0;
+while($pc<strlen($s)){
+if(!isset($m[$p]))
+$m[$p]=0;
+$z=$s[$pc];
+if($z=='>'){
+$p++;
+}elseif($z=='<'){
+$p--;
+}elseif($z=='+'){
+$m[$p]++;
+}elseif($z=='-'){
+$m[$p]--;
+}elseif($z=='.'){
+echochr($m[$p]);
+}elseif($z=='['){
+if($m[$p]==0){
+$d=1;
+while($d>0){
+$pc++;
+if($s[$pc]=='['){
+$d++;
+}elseif($s[$pc]==']'){
+$d--;
+}
+}
+}
+}elseif($z==']'){
+if($m[$p]!=0){
+$d=1;
+while($d>0){
+$pc--;
+if($s[$pc]==']'){
+$d++;
+}elseif($s[$pc]=='['){
+$d--;
+}
+}
+}
+}
+$pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="270">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="662">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="662"> +Fatal error: Uncaught Error: Call to undefined function echochr() in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="662"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="663">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="663"> +Fatal error: Uncaught Error: Call to undefined function echochr() in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="663"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="664">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="664"> +Fatal error: Uncaught Error: Call to undefined function echochr() in php.wasm code:21 +Stack trace: +#0 {main} + thrown in php.wasm code on line 21 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="664"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/6/index.html b/archive/q/brainf-ck/a/6/index.html new file mode 100644 index 0000000..d987184 --- /dev/null +++ b/archive/q/brainf-ck/a/6/index.html @@ -0,0 +1,97 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #6 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #6</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#6</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #6</h2> + <p> + nsfisis が 2024-03-07 15:37:59 に投稿 + </p> + <h2>コード</h2> + <p> + 355 byte + </p> + <pre><code class="hljs language-php">$S=stream_get_contents(STDIN);$s=$m=0;while($s<strlen($S))switch($S[$s++]){case'>':$m++;break;case'<':$m--;break;case'+':$M[$m]++;break;
+case'-':$M[$m]--;break;case'.':echo chr($M[$m]);break;case'[':if(!($M[$m]??0)){$d=1;while($d)$d+=$S[++$s]=='['?1:$S[$s]==']'?-1:0;}break;case']':if($M[$m]??0){$d=1;while($d)$d+=$S[--$s]==']'?1:$S[$s]=='['?-1:0;}break;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="34">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="77">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="77"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="77"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="78">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="78"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="78"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="79">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="79"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="79"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/60/index.html b/archive/q/brainf-ck/a/60/index.html new file mode 100644 index 0000000..a0a4d7b --- /dev/null +++ b/archive/q/brainf-ck/a/60/index.html @@ -0,0 +1,127 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #60 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #60</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#60</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #60</h2> + <p> + hanhan1978 が 2024-03-08 16:34:46 に投稿 + </p> + <h2>コード</h2> + <p> + 504 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);
+$pc=0;$m = [];$p = 0;
+while($pc < strlen($s)){
+if(!isset($m[$p])) $m[$p] = 0;
+$z=$s[$pc];
+if($z=='>'){
+$p++;
+}elseif($z=='<'){
+$p--;
+}elseif($z=='+'){
+$m[$p]++;
+}elseif($z=='-'){
+$m[$p]--;
+}elseif($z=='.'){
+echo chr($m[$p]);
+}elseif($z=='['){
+if ($m[$p]==0) {
+$d=1;
+while($d>0) {
+$pc++;
+if($s[$pc]=='['){
+$d++;
+}elseif($s[$pc]==']'){
+$d--;
+}}}
+}elseif($z ==']'){
+if($m[$p]!=0) {
+$d=1;
+while($d>0) {
+$pc--;
+if($s[$pc]==']'){
+$d++;
+}elseif($s[$pc]=='[') {
+$d--;
+}}}}
+$pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="271">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="665">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="665">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="665"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="666">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="666">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="666"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="667">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="667">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="667"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/61/index.html b/archive/q/brainf-ck/a/61/index.html new file mode 100644 index 0000000..fd31177 --- /dev/null +++ b/archive/q/brainf-ck/a/61/index.html @@ -0,0 +1,94 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #61 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #61</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#61</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #61</h2> + <p> + hanhan1978 が 2024-03-08 16:37:25 に投稿 + </p> + <h2>コード</h2> + <p> + 457 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);
+$pc=0;$m=[];$p=0;while($pc<strlen($s)){if(!isset($m[$p])) $m[$p]=0;$z=$s[$pc];if($z=='>'){$p++;}elseif($z=='<'){$p--;
+}elseif($z=='+'){$m[$p]++;}elseif($z=='-'){$m[$p]--;}elseif($z=='.'){echo chr($m[$p]);}elseif($z=='['){
+if($m[$p]==0){$d=1;while($d>0){$pc++;if($s[$pc]=='['){$d++;}elseif($s[$pc]==']'){$d--;}}}}elseif($z ==']'){if($m[$p]!=0){$d=1;while($d>0){$pc--;if($s[$pc]==']'){$d++;}elseif($s[$pc]=='['){$d--;}}}}$pc++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="272">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="668">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="668">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="668"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="669">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="669">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="669"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="670">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="670">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="670"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/62/index.html b/archive/q/brainf-ck/a/62/index.html new file mode 100644 index 0000000..40553c3 --- /dev/null +++ b/archive/q/brainf-ck/a/62/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #62 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #62</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#62</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #62</h2> + <p> + okashoi が 2024-03-08 16:45:23 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="274">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="672">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="672">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="672"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="673">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="673">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="673"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="674">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="674">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="674"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/63/index.html b/archive/q/brainf-ck/a/63/index.html new file mode 100644 index 0000000..3872f51 --- /dev/null +++ b/archive/q/brainf-ck/a/63/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #63 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #63</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#63</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #63</h2> + <p> + m3m0r7 が 2024-03-08 17:53:38 に投稿 + </p> + <h2>コード</h2> + <p> + 338 byte + </p> + <pre><code class="hljs language-php">for($s=stream_get_contents(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+','-'=>$m[$p]=($m[$p]??0)+($c=='+'?1:-1),default=>''},$d=1,$b=isset($m[$p])&&$m[$p]!==0;($a=$c=='[')||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="290">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="693">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="693">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="693"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="694">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="694">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="694"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="695">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="695">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="695"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/64/index.html b/archive/q/brainf-ck/a/64/index.html new file mode 100644 index 0000000..27e060b --- /dev/null +++ b/archive/q/brainf-ck/a/64/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #64 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #64</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#64</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #64</h2> + <p> + takaram が 2024-03-08 18:19:07 に投稿 + </p> + <h2>コード</h2> + <p> + 301 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;$m=[];function l($s,&$p,$r,$d=1){while($d+=match($s[$p+=$r]){'['=>$r,']'=>-$r,default=>0}){}}for($t=0;$s[++$p]??0;){$m[$t]??=0;$d=&$m[$t];match($s[$p]){'>'=>$t++,'<'=>$t--,'+'=>$d++,'-'=>$d--,'.'=>print chr($d),'['=>$d||l($s,$p,1),']'=>$d&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="312">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="717">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="717">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="717"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="718">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="718">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="718"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="719">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="719">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="719"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/65/index.html b/archive/q/brainf-ck/a/65/index.html new file mode 100644 index 0000000..ecd9f0e --- /dev/null +++ b/archive/q/brainf-ck/a/65/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #65 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #65</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#65</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #65</h2> + <p> + takaram が 2024-03-08 19:31:13 に投稿 + </p> + <h2>コード</h2> + <p> + 278 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=['['=>$r,']'=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;$d=&$m[$t],$d??=0)match($s[$p]){'>'=>$t++,'<'=>$t--,'+'=>$d++,'-'=>$d--,'.'=>print chr($d),'['=>$d||l($s,$p,1),']'=>$d&&l($s,$p,-1),default=>0};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="327">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="734">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="734"> +Warning: Undefined variable $d in php.wasm code on line 6 +?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="734"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="735">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="735"> +Warning: Undefined variable $d in php.wasm code on line 6 +OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="735"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="736">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="736"> +Warning: Undefined variable $d in php.wasm code on line 6 +�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="736"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/66/index.html b/archive/q/brainf-ck/a/66/index.html new file mode 100644 index 0000000..5a32490 --- /dev/null +++ b/archive/q/brainf-ck/a/66/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #66 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #66</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#66</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #66</h2> + <p> + takaram が 2024-03-08 19:39:42 に投稿 + </p> + <h2>コード</h2> + <p> + 278 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;$d=&$m[$t],$d??=0)match($s[$p]){">"=>$t++,"<"=>$t--,"+"=>$d++,"-"=>$d--,"."=>print chr($d),"["=>$d||l($s,$p,1),"]"=>$d&&l($s,$p,-1),default=>0};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="329">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="738">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="738"> +Warning: Undefined variable $d in php.wasm code on line 6 +?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="738"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="739">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="739"> +Warning: Undefined variable $d in php.wasm code on line 6 +OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="739"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="740">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="740"> +Warning: Undefined variable $d in php.wasm code on line 6 +�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="740"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/67/index.html b/archive/q/brainf-ck/a/67/index.html new file mode 100644 index 0000000..d4e84b1 --- /dev/null +++ b/archive/q/brainf-ck/a/67/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #67 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #67</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#67</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #67</h2> + <p> + takaram が 2024-03-08 21:02:57 に投稿 + </p> + <h2>コード</h2> + <p> + 293 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){$d=1;while($d+=match($s[$p+=$r]){'['=>$r,']'=>-$r,default=>0}){}}for($m=[$t=0];$s[++$p]??0;$d=&$m[$t],$d??=0)match($s[$p]){">"=>$t++,"<"=>$t--,"+"=>$d++,"-"=>$d--,"."=>print chr($d),"["=>$d||l($s,$p,1),"]"=>$d&&l($s,$p,-1),default=>0};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="338">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="749">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="749"> +Warning: Undefined variable $d in php.wasm code on line 6 +?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="749"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="750">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="750"> +Warning: Undefined variable $d in php.wasm code on line 6 +OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="750"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="751">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="751"> +Warning: Undefined variable $d in php.wasm code on line 6 +�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="751"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/68/index.html b/archive/q/brainf-ck/a/68/index.html new file mode 100644 index 0000000..78351b2 --- /dev/null +++ b/archive/q/brainf-ck/a/68/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #68 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #68</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#68</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #68</h2> + <p> + takaram が 2024-03-08 21:04:04 に投稿 + </p> + <h2>コード</h2> + <p> + 300 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;$m=[];function l($s,&$p,$r,$d=1){while($d+=match($s[$p+=$r]){'['=>$r,']'=>-$r,default=>0});}for($t=0;$s[++$p]??0;){$m[$t]??=0;$d=&$m[$t];match($s[$p]){'>'=>$t++,'<'=>$t--,'+'=>$d++,'-'=>$d--,'.'=>print chr($d),'['=>$d||l($s,$p,1),']'=>$d&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="339">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="752">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="752">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="752"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="753">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="753">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="753"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="754">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="754">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="754"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/69/index.html b/archive/q/brainf-ck/a/69/index.html new file mode 100644 index 0000000..17f9403 --- /dev/null +++ b/archive/q/brainf-ck/a/69/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #69 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #69</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#69</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #69</h2> + <p> + takaram が 2024-03-08 21:05:55 に投稿 + </p> + <h2>コード</h2> + <p> + 281 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;){$d=&$m[$t];$d??=0;match($s[$p]){">"=>$t++,"<"=>$t--,"+"=>$d++,"-"=>$d--,"."=>print chr($d),"["=>$d||l($s,$p,1),"]"=>$d&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="341">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="756">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="756">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="756"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="757">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="757">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="757"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="758">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="758">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="758"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/7/index.html b/archive/q/brainf-ck/a/7/index.html new file mode 100644 index 0000000..3d5660b --- /dev/null +++ b/archive/q/brainf-ck/a/7/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #7 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #7</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#7</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #7</h2> + <p> + nsfisis が 2024-03-07 16:02:44 に投稿 + </p> + <h2>コード</h2> + <p> + 341 byte + </p> + <pre><code class="hljs language-php">$S=stream_get_contents(STDIN);$s=$m=0;$M=[];while($s<strlen($S)){$c=$S[$s];$d=1;if($c=='>')$m++;if($c=='<')$m--;if($c=='+')@$M[$m]++;if($c=='-')@$M[$m]--;if($c=='.')echo chr($M[$m]);if($c=='[')if(!@$M[$m])while($d){$s++;$S[$s]=='['?$d++:($S[$s]==']'?$d--:0);}if($c==']')if(@$M[$m])while($d){$s--;$S[$s]==']'?$d++:($S[$s]=='['?$d--:0);}$s++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="35">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="80">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="80">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="80"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="81">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="81">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="81"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="82">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="82">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="82"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/70/index.html b/archive/q/brainf-ck/a/70/index.html new file mode 100644 index 0000000..d25006c --- /dev/null +++ b/archive/q/brainf-ck/a/70/index.html @@ -0,0 +1,90 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #70 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #70</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#70</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #70</h2> + <p> + takaram が 2024-03-08 21:06:49 に投稿 + </p> + <h2>コード</h2> + <p> + 280 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;$d=&$m[$t]){$d??=0;match($s[$p]){">"=>$t++,"<"=>$t--,"+"=>$d++,"-"=>$d--,"."=>print chr($d),"["=>$d||l($s,$p,1),"]"=>$d&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="342">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="759">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="759">?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="759"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="760">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="760">OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="760"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="761">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="761">�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="761"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/71/index.html b/archive/q/brainf-ck/a/71/index.html new file mode 100644 index 0000000..3494420 --- /dev/null +++ b/archive/q/brainf-ck/a/71/index.html @@ -0,0 +1,109 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #71 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #71</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#71</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #71</h2> + <p> + takaram が 2024-03-09 00:30:21 に投稿 + </p> + <h2>コード</h2> + <p> + 401 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$p = -1;
+
+function l($s, &$p, $r) {
+ for ($d = 1; $d += ["[" => $r, "]" => -$r][$s[$p += $r]] ?? 0;);
+}
+
+for ($m = [$t = 0]; $s[++$p] ?? 0; $d =& $m[$t]) {
+ $d ??= 0;
+ match ($s[$p]) {
+ ">" => $t++,
+ "<" => $t--,
+ "+" => $d++,
+ "-" => $d--,
+ "." => print chr($d),
+ "[" => $d || l($s, $p, 1),
+ "]" => $d && l($s, $p, -1),
+ default => 0
+ };
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="348">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="773">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="773">?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="773"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="774">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="774">OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="774"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="775">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="775">�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="775"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/72/index.html b/archive/q/brainf-ck/a/72/index.html new file mode 100644 index 0000000..c3c3f74 --- /dev/null +++ b/archive/q/brainf-ck/a/72/index.html @@ -0,0 +1,111 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #72 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #72</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#72</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #72</h2> + <p> + takaram が 2024-03-09 00:30:50 に投稿 + </p> + <h2>コード</h2> + <p> + 404 byte + </p> + <pre><code class="hljs language-php">$s = stream_get_contents(STDIN);
+$p = -1;
+
+function l($s, &$p, $r) {
+ for ($d = 1; $d += ["[" => $r, "]" => -$r][$s[$p += $r]] ?? 0;);
+}
+
+for ($m = [$t = 0]; $s[++$p] ?? 0;) {
+ $d =& $m[$t];
+ $d ??= 0;
+ match ($s[$p]) {
+ ">" => $t++,
+ "<" => $t--,
+ "+" => $d++,
+ "-" => $d--,
+ "." => print chr($d),
+ "[" => $d || l($s, $p, 1),
+ "]" => $d && l($s, $p, -1),
+ default => 0
+ };
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="349">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="776">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="776">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="776"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="777">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="777">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="777"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="778">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="778">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="778"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/73/index.html b/archive/q/brainf-ck/a/73/index.html new file mode 100644 index 0000000..161e910 --- /dev/null +++ b/archive/q/brainf-ck/a/73/index.html @@ -0,0 +1,94 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #73 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #73</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#73</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #73</h2> + <p> + hanhan1978 が 2024-03-09 01:41:06 に投稿 + </p> + <h2>コード</h2> + <p> + 447 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);
+$y=0;$m=[];$p=0;while($y<strlen($s)){if(!isset($m[$p])) $m[$p]=0;$z=$s[$y];if($z=='>'){$p++;}elseif($z=='<'){$p--;
+}elseif($z=='+'){$m[$p]++;}elseif($z=='-'){$m[$p]--;}elseif($z=='.'){echo chr($m[$p]);}elseif($z=='['){
+if($m[$p]==0){$d=1;while($d>0){$y++;if($s[$y]=='['){$d++;}elseif($s[$y]==']'){$d--;}}}}elseif($z ==']'){if($m[$p]!=0){$d=1;while($d>0){$y--;if($s[$y]==']'){$d++;}elseif($s[$y]=='['){$d--;}}}}$y++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="378">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="852">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="852">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="852"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="853">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="853">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="853"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="854">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="854">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="854"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/74/index.html b/archive/q/brainf-ck/a/74/index.html new file mode 100644 index 0000000..c2684d3 --- /dev/null +++ b/archive/q/brainf-ck/a/74/index.html @@ -0,0 +1,108 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #74 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #74</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#74</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #74</h2> + <p> + tadsan が 2024-03-09 04:37:26 に投稿 + </p> + <h2>コード</h2> + <p> + 342 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,INF);for($c=$p=0;$c<strlen($s);$c++){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)$s[++$c]=='['?$d++:$s[$c]==']'&&$d--;break;case']':if($m[$p])for($d=1;$d>0;)$s[--$c]==']'?$d++:$s[$c]=='['&&$d--;}}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="418">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="975">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="975"> +Fatal error: Uncaught TypeError: fread(): Argument #2 ($length) must be of type int, float given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): fread(Resource id #2, INF) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="975"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="976">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="976"> +Fatal error: Uncaught TypeError: fread(): Argument #2 ($length) must be of type int, float given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): fread(Resource id #2, INF) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="976"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="977">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="977"> +Fatal error: Uncaught TypeError: fread(): Argument #2 ($length) must be of type int, float given in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): fread(Resource id #2, INF) +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="977"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/75/index.html b/archive/q/brainf-ck/a/75/index.html new file mode 100644 index 0000000..9bfac7c --- /dev/null +++ b/archive/q/brainf-ck/a/75/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #75 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #75</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#75</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #75</h2> + <p> + tadsan が 2024-03-09 04:37:49 に投稿 + </p> + <h2>コード</h2> + <p> + 342 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,999);for($c=$p=0;$c<strlen($s);$c++){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)$s[++$c]=='['?$d++:$s[$c]==']'&&$d--;break;case']':if($m[$p])for($d=1;$d>0;)$s[--$c]==']'?$d++:$s[$c]=='['&&$d--;}}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="419">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="978">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="978">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="978"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="979">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="979">PHPerKaig +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="979"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="980">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="980">グレゴール +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="980"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/76/index.html b/archive/q/brainf-ck/a/76/index.html new file mode 100644 index 0000000..4e7e908 --- /dev/null +++ b/archive/q/brainf-ck/a/76/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #76 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #76</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#76</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #76</h2> + <p> + tadsan が 2024-03-09 04:38:01 に投稿 + </p> + <h2>コード</h2> + <p> + 343 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);for($c=$p=0;$c<strlen($s);$c++){$m[$p]??=0;switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;$d>0;)$s[++$c]=='['?$d++:$s[$c]==']'&&$d--;break;case']':if($m[$p])for($d=1;$d>0;)$s[--$c]==']'?$d++:$s[$c]=='['&&$d--;}}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="420">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="981">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="981">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="981"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="982">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="982">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="982"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="983">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="983">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="983"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/77/index.html b/archive/q/brainf-ck/a/77/index.html new file mode 100644 index 0000000..4ebc9f1 --- /dev/null +++ b/archive/q/brainf-ck/a/77/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #77 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #77</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#77</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #77</h2> + <p> + masnmt が 2024-03-09 04:52:52 に投稿 + </p> + <h2>コード</h2> + <p> + 1043 byte + </p> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="425">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="997">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="997">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="997"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="998">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="998">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="998"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="999">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="999">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="999"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/78/index.html b/archive/q/brainf-ck/a/78/index.html new file mode 100644 index 0000000..73e6a49 --- /dev/null +++ b/archive/q/brainf-ck/a/78/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #78 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #78</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#78</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #78</h2> + <p> + m3m0r7 が 2024-03-09 10:31:16 に投稿 + </p> + <h2>コード</h2> + <p> + 311 byte + </p> + <pre><code class="hljs language-php">for($s=stream_get_contents(STDIN),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=@$m[$p]!==0,$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="440">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1017">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1017">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1017"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1018">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1018">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1018"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1019">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1019">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1019"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/79/index.html b/archive/q/brainf-ck/a/79/index.html new file mode 100644 index 0000000..ce6f73f --- /dev/null +++ b/archive/q/brainf-ck/a/79/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #79 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #79</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#79</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #79</h2> + <p> + m3m0r7 が 2024-03-09 10:32:47 に投稿 + </p> + <h2>コード</h2> + <p> + 301 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=@$m[$p]!==0,$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="441">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1020">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1020">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1020"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1021">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1021">PHPerKaig +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1021"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1022">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1022">グレゴール +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1022"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/8/index.html b/archive/q/brainf-ck/a/8/index.html new file mode 100644 index 0000000..872223c --- /dev/null +++ b/archive/q/brainf-ck/a/8/index.html @@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #8 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #8</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#8</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #8</h2> + <p> + tadsan が 2024-03-07 16:12:42 に投稿 + </p> + <h2>コード</h2> + <p> + 373 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,999);$c=$p=0;while($c<strlen($s)){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]??=0;$m[$p]++;break;case'-':$m[$p]??=0;$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!($m[$p]??0)){$d=1;while($d>0){match($s[++$c]){'['=>$d++,']'=>$d--};}}break;case']':if($m[$p]??0){$d=1;while($d>0){match($s[--$c]){']'=>$d++,'['=>$d--};}}}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="38">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="91">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="91"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '-' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="91"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="92">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="92">PHPerKaig +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="92"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="93">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="93"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case ' ' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="93"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/80/index.html b/archive/q/brainf-ck/a/80/index.html new file mode 100644 index 0000000..af7215b --- /dev/null +++ b/archive/q/brainf-ck/a/80/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #80 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #80</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#80</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #80</h2> + <p> + m3m0r7 が 2024-03-09 10:33:00 に投稿 + </p> + <h2>コード</h2> + <p> + 302 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=@$m[$p]!==0,$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="442">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1023">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1023">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1023"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1024">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1024">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1024"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1025">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1025">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1025"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/81/index.html b/archive/q/brainf-ck/a/81/index.html new file mode 100644 index 0000000..216c1c2 --- /dev/null +++ b/archive/q/brainf-ck/a/81/index.html @@ -0,0 +1,105 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #81 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #81</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#81</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #81</h2> + <p> + m3m0r7 が 2024-03-09 10:35:31 に投稿 + </p> + <h2>コード</h2> + <p> + 300 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],'[',']'=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="443">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1026">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1026"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '\n' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1026"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1027">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1027">P +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '\n' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1027"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1028">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1028"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case ' ' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1028"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/82/index.html b/archive/q/brainf-ck/a/82/index.html new file mode 100644 index 0000000..0d69bb7 --- /dev/null +++ b/archive/q/brainf-ck/a/82/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #82 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #82</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#82</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #82</h2> + <p> + m3m0r7 が 2024-03-09 10:36:58 に投稿 + </p> + <h2>コード</h2> + <p> + 300 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$a?1:-1,$d+=($o=$s[$q])=='['?$a?1:-1:($o==']'?$a?-1:1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="444">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1029">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1029">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1029"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1030">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1030">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1030"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1031">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1031">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1031"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/83/index.html b/archive/q/brainf-ck/a/83/index.html new file mode 100644 index 0000000..3294a3a --- /dev/null +++ b/archive/q/brainf-ck/a/83/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #83 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #83</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#83</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #83</h2> + <p> + m3m0r7 が 2024-03-09 10:41:11 に投稿 + </p> + <h2>コード</h2> + <p> + 296 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and$c==']'&&$d>0;$q+=$r=$a?1:-1,$d+=($o=$s[$q])=='['?$r:($o==']'?~$r+1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="447">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1040">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1040">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1040"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1041">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1041">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1041"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1042">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1042">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1042"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/84/index.html b/archive/q/brainf-ck/a/84/index.html new file mode 100644 index 0000000..a6988cc --- /dev/null +++ b/archive/q/brainf-ck/a/84/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #84 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #84</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#84</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #84</h2> + <p> + m3m0r7 が 2024-03-09 10:47:09 に投稿 + </p> + <h2>コード</h2> + <p> + 292 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$q+=$r=$a?1:-1,$d+=($o=$s[$q])=='['?$r:($o==']'?~$r+1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="448">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1043">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1043">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1043"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1044">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1044">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1044"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1045">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1045">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1045"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/85/index.html b/archive/q/brainf-ck/a/85/index.html new file mode 100644 index 0000000..10730db --- /dev/null +++ b/archive/q/brainf-ck/a/85/index.html @@ -0,0 +1,95 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #85 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #85</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#85</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #85</h2> + <p> + m3m0r7 が 2024-03-09 10:54:04 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[];$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>@++$p,'<'=>@--$p,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;--$q,$d+=($o=$s[$q])=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="452">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1049">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1049"> + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1049"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1050">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1050"> +Warning: Undefined variable $p in php.wasm code on line 6 +PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1050"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1051">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1051">
+
+</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1051"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/86/index.html b/archive/q/brainf-ck/a/86/index.html new file mode 100644 index 0000000..3292230 --- /dev/null +++ b/archive/q/brainf-ck/a/86/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #86 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #86</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#86</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #86</h2> + <p> + m3m0r7 が 2024-03-09 10:54:25 に投稿 + </p> + <h2>コード</h2> + <p> + 278 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;--$q,$d+=($o=$s[$q])=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="453">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1052">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1052">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1052"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1053">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1053">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1053"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1054">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1054">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1054"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/87/index.html b/archive/q/brainf-ck/a/87/index.html new file mode 100644 index 0000000..f1df48e --- /dev/null +++ b/archive/q/brainf-ck/a/87/index.html @@ -0,0 +1,86 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #87 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #87</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#87</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #87</h2> + <p> + m3m0r7 が 2024-03-09 11:00:59 に投稿 + </p> + <h2>コード</h2> + <p> + 275 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<x'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;--$q,$d+=($o=$s[$q])=='['?-1:(!$o?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="454">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1055">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1055"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1055">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1056">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1056">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1056"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1057">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1057"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1057">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/88/index.html b/archive/q/brainf-ck/a/88/index.html new file mode 100644 index 0000000..cc9dd9e --- /dev/null +++ b/archive/q/brainf-ck/a/88/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #88 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #88</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#88</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #88</h2> + <p> + m3m0r7 が 2024-03-09 11:02:01 に投稿 + </p> + <h2>コード</h2> + <p> + 277 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;--$q,$d+=$s[$q]=='['?-1:($s[$q]==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="455">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1058">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1058">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1058"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1059">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1059">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1059"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1060">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1060">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1060"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/89/index.html b/archive/q/brainf-ck/a/89/index.html new file mode 100644 index 0000000..4b5e62c --- /dev/null +++ b/archive/q/brainf-ck/a/89/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #89 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #89</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#89</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #89</h2> + <p> + m3m0r7 が 2024-03-09 11:04:47 に投稿 + </p> + <h2>コード</h2> + <p> + 276 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>@++$m[$p],'-'=>@--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="457">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1065">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1065">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1065"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1066">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1066">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1066"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1067">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1067">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1067"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/9/index.html b/archive/q/brainf-ck/a/9/index.html new file mode 100644 index 0000000..c368199 --- /dev/null +++ b/archive/q/brainf-ck/a/9/index.html @@ -0,0 +1,100 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #9 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #9</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#9</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #9</h2> + <p> + tadsan が 2024-03-07 16:13:06 に投稿 + </p> + <h2>コード</h2> + <p> + 374 byte + </p> + <pre><code class="hljs language-php">$s=fread(STDIN,9999);$c=$p=0;while($c<strlen($s)){switch($s[$c]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]??=0;$m[$p]++;break;case'-':$m[$p]??=0;$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!($m[$p]??0)){$d=1;while($d>0){match($s[++$c]){'['=>$d++,']'=>$d--};}}break;case']':if($m[$p]??0){$d=1;while($d>0){match($s[--$c]){']'=>$d++,'['=>$d--};}}}$c++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="39">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="94">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="94"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case '-' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="94"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="95">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="95">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="95"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="96">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="96"> +Fatal error: Uncaught UnhandledMatchError: Unhandled match case ' ' in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="96"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/90/index.html b/archive/q/brainf-ck/a/90/index.html new file mode 100644 index 0000000..3be2eb8 --- /dev/null +++ b/archive/q/brainf-ck/a/90/index.html @@ -0,0 +1,102 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #90 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #90</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#90</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #90</h2> + <p> + tsbkw が 2024-03-09 11:43:58 に投稿 + </p> + <h2>コード</h2> + <p> + 325 byte + </p> + <pre><code class="hljs language-php">for($i=$b=0;$c=$argv[1][$i++];)switch($c){case'+':$m[$b]=($m[$b]+1)%256;break;case'-':$m[$b]=($m[$b]+255)%256;break;case'>':$b++;break;case'<':$b--;break;case'[':if(!$m[$b])for(;$n=1;$c=$argv[1][$i++])$n+=$c=='['?-1:($c==']');break;case']':for(;$n=1;$c=$argv[1][--$i])$n+=$c==']'?-1:($c=='[');break;case'.':echo chr($m[$b]);}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="480">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1108">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1108"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1108"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1109">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1109"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1109"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1110">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1110"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1110"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/91/index.html b/archive/q/brainf-ck/a/91/index.html new file mode 100644 index 0000000..3ad2a90 --- /dev/null +++ b/archive/q/brainf-ck/a/91/index.html @@ -0,0 +1,108 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #91 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #91</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#91</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #91</h2> + <p> + tsbkw が 2024-03-09 11:45:32 に投稿 + </p> + <h2>コード</h2> + <p> + 379 byte + </p> + <pre><code class="hljs language-php">for($i=$b=0;$c=stream_get_contents(STDIN)[$i++];)switch($c){case'+':$m[$b]=($m[$b]+1)%256;break;case'-':$m[$b]=($m[$b]+255)%256;break;case'>':$b++;break;case'<':$b--;break;case'[':if(!$m[$b])for(;$n=1;$c=stream_get_contents(STDIN)[$i++])$n+=$c=='['?-1:($c==']');break;case']':for(;$n=1;$c=stream_get_contents(STDIN)[--$i])$n+=$c==']'?-1:($c=='[');break;case'.':echo chr($m[$b]);}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="483">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1113">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1113"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Uninitialized string offset 1 in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1113"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1114">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1114"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Uninitialized string offset 1 in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1114"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1115">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1115"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Trying to access array offset on value of type null in php.wasm code on line 6 + +Warning: Uninitialized string offset 1 in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1115"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/92/index.html b/archive/q/brainf-ck/a/92/index.html new file mode 100644 index 0000000..6335499 --- /dev/null +++ b/archive/q/brainf-ck/a/92/index.html @@ -0,0 +1,257 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #92 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #92</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#92</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #92</h2> + <p> + tsbkw が 2024-03-09 11:46:49 に投稿 + </p> + <h2>コード</h2> + <p> + 322 byte + </p> + <pre><code class="hljs language-php">for($s=stream_get_contents(STDIN);$p<strlen($s);)switch($s[$p++]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;++$p;$d+=$s[$p]=='['?-1:($s[$p]==']'));break;case']':if($m[$p])for($d=-1;--$p;$d+=$s[$p]==']'?-1:($s[$p]=='['));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="484">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1116">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1116"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1116">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1117">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1117"> +Warning: Undefined variable $p in php.wasm code on line 6 + +Warning: Undefined variable $p in php.wasm code on line 6 + +Warning: String offset cast occurred in php.wasm code on line 6 + +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Warning: Undefined array key 8 in php.wasm code on line 6 + +Warning: Undefined array key 9 in php.wasm code on line 6 + +Warning: Undefined array key 10 in php.wasm code on line 6 + +Warning: Undefined array key 11 in php.wasm code on line 6 + +Warning: Undefined array key 12 in php.wasm code on line 6 + +Warning: Undefined array key 13 in php.wasm code on line 6 + +Warning: Undefined array key 14 in php.wasm code on line 6 + +Warning: Undefined array key 15 in php.wasm code on line 6 + +Warning: Undefined array key 16 in php.wasm code on line 6 + +Warning: Undefined array key 17 in php.wasm code on line 6 + +Warning: Undefined array key 18 in php.wasm code on line 6 + +Warning: Undefined array key 19 in php.wasm code on line 6 + +Warning: Undefined array key 20 in php.wasm code on line 6 + +Warning: Undefined array key 21 in php.wasm code on line 6 + +Warning: Undefined array key 22 in php.wasm code on line 6 + +Warning: Undefined array key 23 in php.wasm code on line 6 + +Warning: Undefined array key 24 in php.wasm code on line 6 + +Warning: Undefined array key 25 in php.wasm code on line 6 + +Warning: Undefined array key 26 in php.wasm code on line 6 + +Warning: Undefined array key 27 in php.wasm code on line 6 + +Warning: Undefined array key 28 in php.wasm code on line 6 + +Warning: Undefined array key 29 in php.wasm code on line 6 + +Warning: Undefined array key 30 in php.wasm code on line 6 + +Warning: Undefined array key 31 in php.wasm code on line 6 + +Warning: Undefined array key 32 in php.wasm code on line 6 + +Warning: Undefined array key 33 in php.wasm code on line 6 + +Warning: Undefined array key 34 in php.wasm code on line 6 + +Warning: Undefined array key 35 in php.wasm code on line 6 + +Warning: Undefined array key 36 in php.wasm code on line 6 + +Warning: Undefined array key 37 in php.wasm code on line 6 + +Warning: Undefined array key 38 in php.wasm code on line 6 + +Warning: Undefined array key 39 in php.wasm code on line 6 + +Warning: Undefined array key 40 in php.wasm code on line 6 + +Warning: Undefined array key 41 in php.wasm code on line 6 + +Warning: Undefined array key 42 in php.wasm code on line 6 + +Warning: Undefined array key 43 in php.wasm code on line 6 + +Warning: Undefined array key 44 in php.wasm code on line 6 + +Warning: Undefined array key 45 in php.wasm code on line 6 + +Warning: Undefined array key 46 in php.wasm code on line 6 + +Warning: Undefined array key 47 in php.wasm code on line 6 + +Warning: Undefined array key 48 in php.wasm code on line 6 + +Warning: Undefined array key 49 in php.wasm code on line 6 + +Warning: Undefined array key 50 in php.wasm code on line 6 + +Warning: Undefined array key 51 in php.wasm code on line 6 + +Warning: Undefined array key 52 in php.wasm code on line 6 + +Warning: Undefined array key 53 in php.wasm code on line 6 + +Warning: Undefined array key 54 in php.wasm code on line 6 + +Warning: Undefined array key 55 in php.wasm code on line 6 + +Warning: Undefined array key 56 in php.wasm code on line 6 + +Warning: Undefined array key 57 in php.wasm code on line 6 + +Warning: Undefined array key 58 in php.wasm code on line 6 + +Warning: Undefined array key 59 in php.wasm code on line 6 + +Warning: Undefined array key 60 in php.wasm code on line 6 + +Warning: Undefined array key 61 in php.wasm code on line 6 + +Warning: Undefined array key 62 in php.wasm code on line 6 + +Warning: Undefined array key 63 in php.wasm code on line 6 + +Warning: Undefined array key 64 in php.wasm code on line 6 + +Warning: Undefined array key 65 in php.wasm code on line 6 + +Warning: Undefined array key 66 in php.wasm code on line 6 + +Warning: Undefined array key 67 in php.wasm code on line 6 + +Warning: Undefined array key 68 in php.wasm code on line 6 + +Warning: Undefined array key 69 in php.wasm code on line 6 + +Warning: Undefined array key 70 in php.wasm code on line 6 + +Warning: Undefined array key 71 in php.wasm code on line 6 + +Warning: Undefined array key 72 in php.wasm code on line 6 + +Warning: Undefined array key 73 in php.wasm code on line 6 + +Warning: Undefined array key 74 in php.wasm code on line 6 + +Warning: Undefined array key 75 in php.wasm code on line 6 + +Warning: Undefined array key 76 in php.wasm code on line 6 + +Warning: Undefined array key 77 in php.wasm code on line 6 + +Warning: Undefined array key 78 in php.wasm code on line 6 + +Warning: Undefined array key 79 in php.wasm code on line 6 + +Warning: Undefined array key 80 in php.wasm code on line 6 + +Warning: Undefined array key 81 in php.wasm code on line 6 + +Deprecated: chr(): Passing null to parameter #1 ($codepoint) of type int is deprecated in php.wasm code on line 6 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1117"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1118">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1118"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1118">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/93/index.html b/archive/q/brainf-ck/a/93/index.html new file mode 100644 index 0000000..0c53025 --- /dev/null +++ b/archive/q/brainf-ck/a/93/index.html @@ -0,0 +1,251 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #93 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #93</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#93</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #93</h2> + <p> + tsbkw が 2024-03-09 11:48:35 に投稿 + </p> + <h2>コード</h2> + <p> + 327 byte + </p> + <pre><code class="hljs language-php">$p=0;for($s=stream_get_contents(STDIN);$p<strlen($s);)switch($s[$p++]){case'>':$p++;break;case'<':$p--;break;case'+':$m[$p]++;break;case'-':$m[$p]--;break;case'.':echo chr($m[$p]);break;case'[':if(!$m[$p])for($d=1;++$p;$d+=$s[$p]=='['?-1:($s[$p]==']'));break;case']':if($m[$p])for($d=-1;--$p;$d+=$s[$p]==']'?-1:($s[$p]=='['));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="487">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1121">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1121"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1121">Time Limit Exceeded: 10000 msec</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1122">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1122"> +Warning: Undefined variable $m in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Warning: Undefined array key 8 in php.wasm code on line 6 + +Warning: Undefined array key 9 in php.wasm code on line 6 + +Warning: Undefined array key 10 in php.wasm code on line 6 + +Warning: Undefined array key 11 in php.wasm code on line 6 + +Warning: Undefined array key 12 in php.wasm code on line 6 + +Warning: Undefined array key 13 in php.wasm code on line 6 + +Warning: Undefined array key 14 in php.wasm code on line 6 + +Warning: Undefined array key 15 in php.wasm code on line 6 + +Warning: Undefined array key 16 in php.wasm code on line 6 + +Warning: Undefined array key 17 in php.wasm code on line 6 + +Warning: Undefined array key 18 in php.wasm code on line 6 + +Warning: Undefined array key 19 in php.wasm code on line 6 + +Warning: Undefined array key 20 in php.wasm code on line 6 + +Warning: Undefined array key 21 in php.wasm code on line 6 + +Warning: Undefined array key 22 in php.wasm code on line 6 + +Warning: Undefined array key 23 in php.wasm code on line 6 + +Warning: Undefined array key 24 in php.wasm code on line 6 + +Warning: Undefined array key 25 in php.wasm code on line 6 + +Warning: Undefined array key 26 in php.wasm code on line 6 + +Warning: Undefined array key 27 in php.wasm code on line 6 + +Warning: Undefined array key 28 in php.wasm code on line 6 + +Warning: Undefined array key 29 in php.wasm code on line 6 + +Warning: Undefined array key 30 in php.wasm code on line 6 + +Warning: Undefined array key 31 in php.wasm code on line 6 + +Warning: Undefined array key 32 in php.wasm code on line 6 + +Warning: Undefined array key 33 in php.wasm code on line 6 + +Warning: Undefined array key 34 in php.wasm code on line 6 + +Warning: Undefined array key 35 in php.wasm code on line 6 + +Warning: Undefined array key 36 in php.wasm code on line 6 + +Warning: Undefined array key 37 in php.wasm code on line 6 + +Warning: Undefined array key 38 in php.wasm code on line 6 + +Warning: Undefined array key 39 in php.wasm code on line 6 + +Warning: Undefined array key 40 in php.wasm code on line 6 + +Warning: Undefined array key 41 in php.wasm code on line 6 + +Warning: Undefined array key 42 in php.wasm code on line 6 + +Warning: Undefined array key 43 in php.wasm code on line 6 + +Warning: Undefined array key 44 in php.wasm code on line 6 + +Warning: Undefined array key 45 in php.wasm code on line 6 + +Warning: Undefined array key 46 in php.wasm code on line 6 + +Warning: Undefined array key 47 in php.wasm code on line 6 + +Warning: Undefined array key 48 in php.wasm code on line 6 + +Warning: Undefined array key 49 in php.wasm code on line 6 + +Warning: Undefined array key 50 in php.wasm code on line 6 + +Warning: Undefined array key 51 in php.wasm code on line 6 + +Warning: Undefined array key 52 in php.wasm code on line 6 + +Warning: Undefined array key 53 in php.wasm code on line 6 + +Warning: Undefined array key 54 in php.wasm code on line 6 + +Warning: Undefined array key 55 in php.wasm code on line 6 + +Warning: Undefined array key 56 in php.wasm code on line 6 + +Warning: Undefined array key 57 in php.wasm code on line 6 + +Warning: Undefined array key 58 in php.wasm code on line 6 + +Warning: Undefined array key 59 in php.wasm code on line 6 + +Warning: Undefined array key 60 in php.wasm code on line 6 + +Warning: Undefined array key 61 in php.wasm code on line 6 + +Warning: Undefined array key 62 in php.wasm code on line 6 + +Warning: Undefined array key 63 in php.wasm code on line 6 + +Warning: Undefined array key 64 in php.wasm code on line 6 + +Warning: Undefined array key 65 in php.wasm code on line 6 + +Warning: Undefined array key 66 in php.wasm code on line 6 + +Warning: Undefined array key 67 in php.wasm code on line 6 + +Warning: Undefined array key 68 in php.wasm code on line 6 + +Warning: Undefined array key 69 in php.wasm code on line 6 + +Warning: Undefined array key 70 in php.wasm code on line 6 + +Warning: Undefined array key 71 in php.wasm code on line 6 + +Warning: Undefined array key 72 in php.wasm code on line 6 + +Warning: Undefined array key 73 in php.wasm code on line 6 + +Warning: Undefined array key 74 in php.wasm code on line 6 + +Warning: Undefined array key 75 in php.wasm code on line 6 + +Warning: Undefined array key 76 in php.wasm code on line 6 + +Warning: Undefined array key 77 in php.wasm code on line 6 + +Warning: Undefined array key 78 in php.wasm code on line 6 + +Warning: Undefined array key 79 in php.wasm code on line 6 + +Warning: Undefined array key 80 in php.wasm code on line 6 + +Warning: Undefined array key 81 in php.wasm code on line 6 + +Deprecated: chr(): Passing null to parameter #1 ($codepoint) of type int is deprecated in php.wasm code on line 6 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1122"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1123">時間制限超過</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1123"></code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1123">Time Limit Exceeded: 10000 msec</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/94/index.html b/archive/q/brainf-ck/a/94/index.html new file mode 100644 index 0000000..cd26412 --- /dev/null +++ b/archive/q/brainf-ck/a/94/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #94 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #94</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#94</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #94</h2> + <p> + tsbkw が 2024-03-09 11:52:47 に投稿 + </p> + <h2>コード</h2> + <p> + 361 byte + </p> + <pre><code class="hljs language-php">($t=fgets(STDIN))&&$m=[]&&$p=0&&array_map(fn($c)=>$c==='>'?$p++:$c==='<'?$p--:$c==='+'?($m[$p]??0)++:$c==='-'?($m[$p]??0)--:$c==='.'?print chr($m[$p]):$c==='['&&(!$m[$p]&&$d=1)&&array_map(fn($c)=>$d+=($c==']')-($c=='['),str_split($t))||$c===']'&&$m[$p]&&($d=1)&&array_map(fn($c)=>$d-=($c==']')-($c=='['),array_reverse(str_split(substr($t,0,strpos($t,']')+1))));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="491">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1127">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1127"> +Parse error: syntax error, unexpected token "++" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1127"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1128">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1128"> +Parse error: syntax error, unexpected token "++" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1128"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1129">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1129"> +Parse error: syntax error, unexpected token "++" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1129"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/95/index.html b/archive/q/brainf-ck/a/95/index.html new file mode 100644 index 0000000..f9f47a5 --- /dev/null +++ b/archive/q/brainf-ck/a/95/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #95 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #95</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#95</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #95</h2> + <p> + tsbkw が 2024-03-09 11:54:17 に投稿 + </p> + <h2>コード</h2> + <p> + 380 byte + </p> + <pre><code class="hljs language-php"><?=($s=fgets(STDIN))&&$m=[]&&$p=0&&array_map(fn($c)=>$c==='>'?$p++:$c==='<'?$p--:$c==='+'?($m[$p]??0)++:$c==='-'?($m[$p]??0)--:$c==='.'?print chr($m[$p]):$c==='['&&(!$m[$p]&&$d=1)&&array_map(fn($c)=>$d+=($c==']')-($c=='['),str_split($s))||$c===']'&&$m[$p]&&($d=1)&&array_map(fn($c)=>$d-=($c==']')-($c=='['),array_slice(array_reverse(str_split(substr($s,0,strpos($s,']')+1))),1));```</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="492">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1130">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1130"> +Parse error: syntax error, unexpected token "=", expecting end of file in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1130"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1131">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1131"> +Parse error: syntax error, unexpected token "=", expecting end of file in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1131"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1132">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1132"> +Parse error: syntax error, unexpected token "=", expecting end of file in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1132"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/96/index.html b/archive/q/brainf-ck/a/96/index.html new file mode 100644 index 0000000..ba27ba3 --- /dev/null +++ b/archive/q/brainf-ck/a/96/index.html @@ -0,0 +1,96 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #96 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #96</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#96</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #96</h2> + <p> + takaram が 2024-03-09 11:58:47 に投稿 + </p> + <h2>コード</h2> + <p> + 271 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=['['=>$r,']'=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;$d=&$m[$t])match($s[$p]){'>'=>$t++,'<'=>$t--,'+'=>$d++,'-'=>$d--,'.'=>print chr($d),'['=>$d||l($s,$p,1),']'=>$d&&l($s,$p,-1),default=>0};</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="493">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1133">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1133"> +Warning: Undefined variable $d in php.wasm code on line 6 +?X__bLbe_W +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1133"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1134">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1134"> +Warning: Undefined variable $d in php.wasm code on line 6 +OHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1134"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1135">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1135"> +Warning: Undefined variable $d in php.wasm code on line 6 +�u��v��u��v��v��v�Ν��u� +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1135"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/97/index.html b/archive/q/brainf-ck/a/97/index.html new file mode 100644 index 0000000..03cf349 --- /dev/null +++ b/archive/q/brainf-ck/a/97/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #97 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #97</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#97</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #97</h2> + <p> + takaram が 2024-03-09 12:16:50 に投稿 + </p> + <h2>コード</h2> + <p> + 274 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;){$a=&$m[$t];match($s[$p]){">"=>$t++,"<"=>$t--,"+"=>$a++,"-"=>$a--,"."=>print chr($a),"["=>$a||l($s,$p,1),"]"=>$a&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="497">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1139">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1139">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1139"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1140">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1140">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1140"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1141">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1141">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1141"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/98/index.html b/archive/q/brainf-ck/a/98/index.html new file mode 100644 index 0000000..67649c2 --- /dev/null +++ b/archive/q/brainf-ck/a/98/index.html @@ -0,0 +1,91 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #98 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #98</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#98</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #98</h2> + <p> + takaram が 2024-03-09 12:47:10 に投稿 + </p> + <h2>コード</h2> + <p> + 272 byte + </p> + <pre><code class="hljs language-php">$s=stream_get_contents(STDIN);$p=-1;function l($s,&$p,$r){for($d=1;$d+=["["=>$r,"]"=>-$r][$s[$p+=$r]]??0;);}for($m=[$t=0];$s[++$p]??0;){$a=&$m[$t];match(ord($s[$p])){62=>$t++,60=>$t--,43=>$a++,45=>$a--,46=>print chr($a),91=>$a||l($s,$p,1),93=>$a&&l($s,$p,-1),default=>0};}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="501">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1145">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1145">Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1145"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1146">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1146">PHPerKaigi 2024 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1146"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1147">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1147">グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1147"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/99/index.html b/archive/q/brainf-ck/a/99/index.html new file mode 100644 index 0000000..7f3e05c --- /dev/null +++ b/archive/q/brainf-ck/a/99/index.html @@ -0,0 +1,147 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答 #99 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答 #99</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#99</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答 #99</h2> + <p> + m3m0r7 が 2024-03-09 13:37:08 に投稿 + </p> + <h2>コード</h2> + <p> + 274 byte + </p> + <pre><code class="hljs language-php">for($s=fread(STDIN,9999),$q=0,$m=[],$p=0;$q<strlen($s);$q++)for(match($c=$s[$q]){'>'=>$p++,'<'=>$p--,'.'=>print chr($m[$p]),'+'=>++$m[$p],'-'=>--$m[$p],default=>0},$d=1,$b=!!@$m[$p],$a=$c=='[';$a||$c==']'and!$b&&$a||$b and!$a&&$d>0;$o=$s[--$q],$d+=$o=='['?-1:($o==']'?1:0));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="506">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1152">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1152"> +Warning: Undefined array key 0 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +Warning: Undefined array key 6 in php.wasm code on line 6 +Hello World! + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1152"> +</code></pre> + <h3>テストケース 2</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1153">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1153"> +Warning: Undefined array key 0 in php.wasm code on line 6 +P +Warning: Undefined array key 1 in php.wasm code on line 6 +H +Warning: Undefined array key 2 in php.wasm code on line 6 +P +Warning: Undefined array key 3 in php.wasm code on line 6 +e +Warning: Undefined array key 4 in php.wasm code on line 6 +r +Warning: Undefined array key 5 in php.wasm code on line 6 +K +Warning: Undefined array key 6 in php.wasm code on line 6 +a +Warning: Undefined array key 7 in php.wasm code on line 6 +i +Warning: Undefined array key 8 in php.wasm code on line 6 +g +Warning: Undefined array key 9 in php.wasm code on line 6 +i +Warning: Undefined array key 10 in php.wasm code on line 6 + +Warning: Undefined array key 11 in php.wasm code on line 6 +2 +Warning: Undefined array key 12 in php.wasm code on line 6 +0 +Warning: Undefined array key 13 in php.wasm code on line 6 +2 +Warning: Undefined array key 14 in php.wasm code on line 6 +4 +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1153"> +</code></pre> + <h3>テストケース 3</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1154">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1154"> +Warning: Undefined array key 0 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 + +Warning: Undefined array key 5 in php.wasm code on line 6 +グレゴール・寒サ +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1154"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/a/index.html b/archive/q/brainf-ck/a/index.html new file mode 100644 index 0000000..04605a6 --- /dev/null +++ b/archive/q/brainf-ck/a/index.html @@ -0,0 +1,1364 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 - 回答一覧 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../assets/favicon.svg"> + <script type="module" src="../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3 - 回答一覧</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../index.html">Brainf*ck</a></li> + <li class="breadcrumb-item active">回答一覧</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h2>回答一覧</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + <th>ステータス</th> + </tr> + </thead> + <tbody> + <tr> + <td> + 1 + </td> + <td> + <a href="101/index.html">#101</a> + </td> + <td>takaram</td> + <td>263 byte</td> + <td>2024-03-09 14:33:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 2 + </td> + <td> + <a href="98/index.html">#98</a> + </td> + <td>takaram</td> + <td>272 byte</td> + <td>2024-03-09 12:47:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 3 + </td> + <td> + <a href="107/index.html">#107</a> + </td> + <td>m3m0r7</td> + <td>273 byte</td> + <td>2024-03-09 14:50:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 4 + </td> + <td> + <a href="97/index.html">#97</a> + </td> + <td>takaram</td> + <td>274 byte</td> + <td>2024-03-09 12:16:50</td> + <td>OK</td> + </tr> + <tr> + <td> + 5 + </td> + <td> + <a href="106/index.html">#106</a> + </td> + <td>m3m0r7</td> + <td>275 byte</td> + <td>2024-03-09 14:49:33</td> + <td>OK</td> + </tr> + <tr> + <td> + 6 + </td> + <td> + <a href="89/index.html">#89</a> + </td> + <td>m3m0r7</td> + <td>276 byte</td> + <td>2024-03-09 11:04:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 7 + </td> + <td> + <a href="88/index.html">#88</a> + </td> + <td>m3m0r7</td> + <td>277 byte</td> + <td>2024-03-09 11:02:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 8 + </td> + <td> + <a href="86/index.html">#86</a> + </td> + <td>m3m0r7</td> + <td>278 byte</td> + <td>2024-03-09 10:54:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 9 + </td> + <td> + <a href="69/index.html">#69</a> + </td> + <td>takaram</td> + <td>281 byte</td> + <td>2024-03-08 21:05:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 10 + </td> + <td> + <a href="84/index.html">#84</a> + </td> + <td>m3m0r7</td> + <td>292 byte</td> + <td>2024-03-09 10:47:09</td> + <td>OK</td> + </tr> + <tr> + <td> + 11 + </td> + <td> + <a href="83/index.html">#83</a> + </td> + <td>m3m0r7</td> + <td>296 byte</td> + <td>2024-03-09 10:41:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 12 + </td> + <td> + <a href="68/index.html">#68</a> + </td> + <td>takaram</td> + <td>300 byte</td> + <td>2024-03-08 21:04:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 13 + </td> + <td> + <a href="82/index.html">#82</a> + </td> + <td>m3m0r7</td> + <td>300 byte</td> + <td>2024-03-09 10:36:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 14 + </td> + <td> + <a href="64/index.html">#64</a> + </td> + <td>takaram</td> + <td>301 byte</td> + <td>2024-03-08 18:19:07</td> + <td>OK</td> + </tr> + <tr> + <td> + 15 + </td> + <td> + <a href="80/index.html">#80</a> + </td> + <td>m3m0r7</td> + <td>302 byte</td> + <td>2024-03-09 10:33:00</td> + <td>OK</td> + </tr> + <tr> + <td> + 16 + </td> + <td> + <a href="78/index.html">#78</a> + </td> + <td>m3m0r7</td> + <td>311 byte</td> + <td>2024-03-09 10:31:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 17 + </td> + <td> + <a href="63/index.html">#63</a> + </td> + <td>m3m0r7</td> + <td>338 byte</td> + <td>2024-03-08 17:53:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 18 + </td> + <td> + <a href="7/index.html">#7</a> + </td> + <td>nsfisis (staff)</td> + <td>341 byte</td> + <td>2024-03-07 16:02:44</td> + <td>OK</td> + </tr> + <tr> + <td> + 19 + </td> + <td> + <a href="57/index.html">#57</a> + </td> + <td>m3m0r7</td> + <td>341 byte</td> + <td>2024-03-08 16:24:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 20 + </td> + <td> + <a href="58/index.html">#58</a> + </td> + <td>m3m0r7</td> + <td>341 byte</td> + <td>2024-03-08 16:25:44</td> + <td>OK</td> + </tr> + <tr> + <td> + 21 + </td> + <td> + <a href="38/index.html">#38</a> + </td> + <td>tadsan (staff)</td> + <td>343 byte</td> + <td>2024-03-08 05:43:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 22 + </td> + <td> + <a href="76/index.html">#76</a> + </td> + <td>tadsan (staff)</td> + <td>343 byte</td> + <td>2024-03-09 04:38:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 23 + </td> + <td> + <a href="37/index.html">#37</a> + </td> + <td>tadsan (staff)</td> + <td>344 byte</td> + <td>2024-03-08 05:41:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 24 + </td> + <td> + <a href="53/index.html">#53</a> + </td> + <td>m3m0r7</td> + <td>350 byte</td> + <td>2024-03-08 16:17:56</td> + <td>OK</td> + </tr> + <tr> + <td> + 25 + </td> + <td> + <a href="36/index.html">#36</a> + </td> + <td>tadsan (staff)</td> + <td>352 byte</td> + <td>2024-03-08 05:40:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 26 + </td> + <td> + <a href="47/index.html">#47</a> + </td> + <td>m3m0r7</td> + <td>357 byte</td> + <td>2024-03-08 15:48:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 27 + </td> + <td> + <a href="45/index.html">#45</a> + </td> + <td>m3m0r7</td> + <td>360 byte</td> + <td>2024-03-08 15:44:20</td> + <td>OK</td> + </tr> + <tr> + <td> + 28 + </td> + <td> + <a href="34/index.html">#34</a> + </td> + <td>tadsan (staff)</td> + <td>362 byte</td> + <td>2024-03-08 05:33:54</td> + <td>OK</td> + </tr> + <tr> + <td> + 29 + </td> + <td> + <a href="32/index.html">#32</a> + </td> + <td>tadsan (staff)</td> + <td>363 byte</td> + <td>2024-03-08 05:31:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 30 + </td> + <td> + <a href="31/index.html">#31</a> + </td> + <td>tadsan (staff)</td> + <td>373 byte</td> + <td>2024-03-08 05:28:26</td> + <td>OK</td> + </tr> + <tr> + <td> + 31 + </td> + <td> + <a href="30/index.html">#30</a> + </td> + <td>tadsan (staff)</td> + <td>383 byte</td> + <td>2024-03-08 05:26:59</td> + <td>OK</td> + </tr> + <tr> + <td> + 32 + </td> + <td> + <a href="26/index.html">#26</a> + </td> + <td>tadsan (staff)</td> + <td>385 byte</td> + <td>2024-03-08 04:27:26</td> + <td>OK</td> + </tr> + <tr> + <td> + 33 + </td> + <td> + <a href="29/index.html">#29</a> + </td> + <td>tadsan (staff)</td> + <td>385 byte</td> + <td>2024-03-08 04:45:20</td> + <td>OK</td> + </tr> + <tr> + <td> + 34 + </td> + <td> + <a href="109/index.html">#109</a> + </td> + <td>hanhan1978</td> + <td>392 byte</td> + <td>2024-03-09 15:33:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 35 + </td> + <td> + <a href="108/index.html">#108</a> + </td> + <td>hanhan1978</td> + <td>397 byte</td> + <td>2024-03-09 15:22:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 36 + </td> + <td> + <a href="72/index.html">#72</a> + </td> + <td>takaram</td> + <td>404 byte</td> + <td>2024-03-09 00:30:50</td> + <td>OK</td> + </tr> + <tr> + <td> + 37 + </td> + <td> + <a href="5/index.html">#5</a> + </td> + <td>tadsan (staff)</td> + <td>405 byte</td> + <td>2024-03-06 21:10:44</td> + <td>OK</td> + </tr> + <tr> + <td> + 38 + </td> + <td> + <a href="17/index.html">#17</a> + </td> + <td>yamamoto-hiroya</td> + <td>415 byte</td> + <td>2024-03-08 02:05:50</td> + <td>OK</td> + </tr> + <tr> + <td> + 39 + </td> + <td> + <a href="73/index.html">#73</a> + </td> + <td>hanhan1978</td> + <td>447 byte</td> + <td>2024-03-09 01:41:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 40 + </td> + <td> + <a href="61/index.html">#61</a> + </td> + <td>hanhan1978</td> + <td>457 byte</td> + <td>2024-03-08 16:37:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 41 + </td> + <td> + <a href="42/index.html">#42</a> + </td> + <td>rinchoku</td> + <td>481 byte</td> + <td>2024-03-08 07:55:27</td> + <td>OK</td> + </tr> + <tr> + <td> + 42 + </td> + <td> + <a href="23/index.html">#23</a> + </td> + <td>kunikiya</td> + <td>495 byte</td> + <td>2024-03-08 02:48:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 43 + </td> + <td> + <a href="12/index.html">#12</a> + </td> + <td>yamamoto-hiroya</td> + <td>499 byte</td> + <td>2024-03-08 01:18:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 44 + </td> + <td> + <a href="22/index.html">#22</a> + </td> + <td>kunikiya</td> + <td>499 byte</td> + <td>2024-03-08 02:45:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 45 + </td> + <td> + <a href="60/index.html">#60</a> + </td> + <td>hanhan1978</td> + <td>504 byte</td> + <td>2024-03-08 16:34:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 46 + </td> + <td> + <a href="21/index.html">#21</a> + </td> + <td>kunikiya</td> + <td>509 byte</td> + <td>2024-03-08 02:44:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 47 + </td> + <td> + <a href="40/index.html">#40</a> + </td> + <td>rinchoku</td> + <td>544 byte</td> + <td>2024-03-08 07:43:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 48 + </td> + <td> + <a href="16/index.html">#16</a> + </td> + <td>yamamoto-hiroya</td> + <td>545 byte</td> + <td>2024-03-08 02:02:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 49 + </td> + <td> + <a href="41/index.html">#41</a> + </td> + <td>rinchoku</td> + <td>555 byte</td> + <td>2024-03-08 07:48:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 50 + </td> + <td> + <a href="39/index.html">#39</a> + </td> + <td>rinchoku</td> + <td>558 byte</td> + <td>2024-03-08 07:38:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 51 + </td> + <td> + <a href="20/index.html">#20</a> + </td> + <td>kunikiya</td> + <td>569 byte</td> + <td>2024-03-08 02:43:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 52 + </td> + <td> + <a href="15/index.html">#15</a> + </td> + <td>yamamoto-hiroya</td> + <td>585 byte</td> + <td>2024-03-08 02:00:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 53 + </td> + <td> + <a href="14/index.html">#14</a> + </td> + <td>yamamoto-hiroya</td> + <td>603 byte</td> + <td>2024-03-08 01:56:49</td> + <td>OK</td> + </tr> + <tr> + <td> + 54 + </td> + <td> + <a href="44/index.html">#44</a> + </td> + <td>m3m0r7</td> + <td>665 byte</td> + <td>2024-03-08 15:43:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 55 + </td> + <td> + <a href="19/index.html">#19</a> + </td> + <td>kunikiya</td> + <td>696 byte</td> + <td>2024-03-08 02:40:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 56 + </td> + <td> + <a href="13/index.html">#13</a> + </td> + <td>yamamoto-hiroya</td> + <td>712 byte</td> + <td>2024-03-08 01:43:52</td> + <td>OK</td> + </tr> + <tr> + <td> + 57 + </td> + <td> + <a href="56/index.html">#56</a> + </td> + <td>hanhan1978</td> + <td>785 byte</td> + <td>2024-03-08 16:22:56</td> + <td>OK</td> + </tr> + <tr> + <td> + 58 + </td> + <td> + <a href="54/index.html">#54</a> + </td> + <td>hanhan1978</td> + <td>791 byte</td> + <td>2024-03-08 16:17:57</td> + <td>OK</td> + </tr> + <tr> + <td> + 59 + </td> + <td> + <a href="50/index.html">#50</a> + </td> + <td>hanhan1978</td> + <td>888 byte</td> + <td>2024-03-08 16:05:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 60 + </td> + <td> + <a href="52/index.html">#52</a> + </td> + <td>hanhan1978</td> + <td>926 byte</td> + <td>2024-03-08 16:16:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 61 + </td> + <td> + <a href="1/index.html">#1</a> + </td> + <td>nsfisis (staff)</td> + <td>1043 byte</td> + <td>2024-03-06 03:57:49</td> + <td>OK</td> + </tr> + <tr> + <td> + 62 + </td> + <td> + <a href="2/index.html">#2</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>1043 byte</td> + <td>2024-03-06 08:26:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 63 + </td> + <td> + <a href="3/index.html">#3</a> + </td> + <td>muno92 (staff)</td> + <td>1043 byte</td> + <td>2024-03-06 08:42:52</td> + <td>OK</td> + </tr> + <tr> + <td> + 64 + </td> + <td> + <a href="11/index.html">#11</a> + </td> + <td>yamamoto-hiroya</td> + <td>1043 byte</td> + <td>2024-03-08 00:28:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 65 + </td> + <td> + <a href="18/index.html">#18</a> + </td> + <td>kunikiya</td> + <td>1043 byte</td> + <td>2024-03-08 02:38:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 66 + </td> + <td> + <a href="62/index.html">#62</a> + </td> + <td>okashoi</td> + <td>1043 byte</td> + <td>2024-03-08 16:45:23</td> + <td>OK</td> + </tr> + <tr> + <td> + 67 + </td> + <td> + <a href="77/index.html">#77</a> + </td> + <td>masnmt</td> + <td>1043 byte</td> + <td>2024-03-09 04:52:52</td> + <td>OK</td> + </tr> + <tr> + <td> + 68 + </td> + <td> + <a href="24/index.html">#24</a> + </td> + <td>tadsan (staff)</td> + <td>72 byte</td> + <td>2024-03-08 03:19:00</td> + <td>失敗</td> + </tr> + <tr> + <td> + 69 + </td> + <td> + <a href="100/index.html">#100</a> + </td> + <td>takaram</td> + <td>262 byte</td> + <td>2024-03-09 14:33:18</td> + <td>失敗</td> + </tr> + <tr> + <td> + 70 + </td> + <td> + <a href="96/index.html">#96</a> + </td> + <td>takaram</td> + <td>271 byte</td> + <td>2024-03-09 11:58:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 71 + </td> + <td> + <a href="102/index.html">#102</a> + </td> + <td>m3m0r7</td> + <td>271 byte</td> + <td>2024-03-09 14:42:46</td> + <td>失敗</td> + </tr> + <tr> + <td> + 72 + </td> + <td> + <a href="104/index.html">#104</a> + </td> + <td>m3m0r7</td> + <td>271 byte</td> + <td>2024-03-09 14:43:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 73 + </td> + <td> + <a href="103/index.html">#103</a> + </td> + <td>m3m0r7</td> + <td>273 byte</td> + <td>2024-03-09 14:43:05</td> + <td>失敗</td> + </tr> + <tr> + <td> + 74 + </td> + <td> + <a href="105/index.html">#105</a> + </td> + <td>m3m0r7</td> + <td>273 byte</td> + <td>2024-03-09 14:44:45</td> + <td>失敗</td> + </tr> + <tr> + <td> + 75 + </td> + <td> + <a href="99/index.html">#99</a> + </td> + <td>m3m0r7</td> + <td>274 byte</td> + <td>2024-03-09 13:37:08</td> + <td>失敗</td> + </tr> + <tr> + <td> + 76 + </td> + <td> + <a href="85/index.html">#85</a> + </td> + <td>m3m0r7</td> + <td>275 byte</td> + <td>2024-03-09 10:54:04</td> + <td>失敗</td> + </tr> + <tr> + <td> + 77 + </td> + <td> + <a href="87/index.html">#87</a> + </td> + <td>m3m0r7</td> + <td>275 byte</td> + <td>2024-03-09 11:00:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 78 + </td> + <td> + <a href="65/index.html">#65</a> + </td> + <td>takaram</td> + <td>278 byte</td> + <td>2024-03-08 19:31:13</td> + <td>失敗</td> + </tr> + <tr> + <td> + 79 + </td> + <td> + <a href="66/index.html">#66</a> + </td> + <td>takaram</td> + <td>278 byte</td> + <td>2024-03-08 19:39:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 80 + </td> + <td> + <a href="70/index.html">#70</a> + </td> + <td>takaram</td> + <td>280 byte</td> + <td>2024-03-08 21:06:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 81 + </td> + <td> + <a href="67/index.html">#67</a> + </td> + <td>takaram</td> + <td>293 byte</td> + <td>2024-03-08 21:02:57</td> + <td>失敗</td> + </tr> + <tr> + <td> + 82 + </td> + <td> + <a href="81/index.html">#81</a> + </td> + <td>m3m0r7</td> + <td>300 byte</td> + <td>2024-03-09 10:35:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 83 + </td> + <td> + <a href="79/index.html">#79</a> + </td> + <td>m3m0r7</td> + <td>301 byte</td> + <td>2024-03-09 10:32:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 84 + </td> + <td> + <a href="92/index.html">#92</a> + </td> + <td>tsbkw</td> + <td>322 byte</td> + <td>2024-03-09 11:46:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 85 + </td> + <td> + <a href="90/index.html">#90</a> + </td> + <td>tsbkw</td> + <td>325 byte</td> + <td>2024-03-09 11:43:58</td> + <td>失敗</td> + </tr> + <tr> + <td> + 86 + </td> + <td> + <a href="93/index.html">#93</a> + </td> + <td>tsbkw</td> + <td>327 byte</td> + <td>2024-03-09 11:48:35</td> + <td>失敗</td> + </tr> + <tr> + <td> + 87 + </td> + <td> + <a href="74/index.html">#74</a> + </td> + <td>tadsan (staff)</td> + <td>342 byte</td> + <td>2024-03-09 04:37:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 88 + </td> + <td> + <a href="75/index.html">#75</a> + </td> + <td>tadsan (staff)</td> + <td>342 byte</td> + <td>2024-03-09 04:37:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 89 + </td> + <td> + <a href="35/index.html">#35</a> + </td> + <td>tadsan (staff)</td> + <td>350 byte</td> + <td>2024-03-08 05:38:33</td> + <td>失敗</td> + </tr> + <tr> + <td> + 90 + </td> + <td> + <a href="6/index.html">#6</a> + </td> + <td>nsfisis (staff)</td> + <td>355 byte</td> + <td>2024-03-07 15:37:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 91 + </td> + <td> + <a href="10/index.html">#10</a> + </td> + <td>tadsan (staff)</td> + <td>360 byte</td> + <td>2024-03-07 16:19:25</td> + <td>失敗</td> + </tr> + <tr> + <td> + 92 + </td> + <td> + <a href="33/index.html">#33</a> + </td> + <td>tadsan (staff)</td> + <td>361 byte</td> + <td>2024-03-08 05:33:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 93 + </td> + <td> + <a href="94/index.html">#94</a> + </td> + <td>tsbkw</td> + <td>361 byte</td> + <td>2024-03-09 11:52:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 94 + </td> + <td> + <a href="8/index.html">#8</a> + </td> + <td>tadsan (staff)</td> + <td>373 byte</td> + <td>2024-03-07 16:12:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 95 + </td> + <td> + <a href="4/index.html">#4</a> + </td> + <td>tadsan (staff)</td> + <td>374 byte</td> + <td>2024-03-06 21:07:43</td> + <td>失敗</td> + </tr> + <tr> + <td> + 96 + </td> + <td> + <a href="9/index.html">#9</a> + </td> + <td>tadsan (staff)</td> + <td>374 byte</td> + <td>2024-03-07 16:13:06</td> + <td>失敗</td> + </tr> + <tr> + <td> + 97 + </td> + <td> + <a href="46/index.html">#46</a> + </td> + <td>oogFranz</td> + <td>375 byte</td> + <td>2024-03-08 15:46:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 98 + </td> + <td> + <a href="91/index.html">#91</a> + </td> + <td>tsbkw</td> + <td>379 byte</td> + <td>2024-03-09 11:45:32</td> + <td>失敗</td> + </tr> + <tr> + <td> + 99 + </td> + <td> + <a href="27/index.html">#27</a> + </td> + <td>tadsan (staff)</td> + <td>380 byte</td> + <td>2024-03-08 04:37:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 100 + </td> + <td> + <a href="95/index.html">#95</a> + </td> + <td>tsbkw</td> + <td>380 byte</td> + <td>2024-03-09 11:54:17</td> + <td>失敗</td> + </tr> + <tr> + <td> + 101 + </td> + <td> + <a href="25/index.html">#25</a> + </td> + <td>tadsan (staff)</td> + <td>385 byte</td> + <td>2024-03-08 04:22:52</td> + <td>失敗</td> + </tr> + <tr> + <td> + 102 + </td> + <td> + <a href="28/index.html">#28</a> + </td> + <td>tadsan (staff)</td> + <td>386 byte</td> + <td>2024-03-08 04:42:48</td> + <td>失敗</td> + </tr> + <tr> + <td> + 103 + </td> + <td> + <a href="71/index.html">#71</a> + </td> + <td>takaram</td> + <td>401 byte</td> + <td>2024-03-09 00:30:21</td> + <td>失敗</td> + </tr> + <tr> + <td> + 104 + </td> + <td> + <a href="59/index.html">#59</a> + </td> + <td>hanhan1978</td> + <td>493 byte</td> + <td>2024-03-08 16:29:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 105 + </td> + <td> + <a href="43/index.html">#43</a> + </td> + <td>ticknical</td> + <td>580 byte</td> + <td>2024-03-08 10:23:21</td> + <td>失敗</td> + </tr> + <tr> + <td> + 106 + </td> + <td> + <a href="55/index.html">#55</a> + </td> + <td>hanhan1978</td> + <td>713 byte</td> + <td>2024-03-08 16:20:21</td> + <td>失敗</td> + </tr> + <tr> + <td> + 107 + </td> + <td> + <a href="51/index.html">#51</a> + </td> + <td>hanhan1978</td> + <td>867 byte</td> + <td>2024-03-08 16:14:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 108 + </td> + <td> + <a href="48/index.html">#48</a> + </td> + <td>hanhan1978</td> + <td>883 byte</td> + <td>2024-03-08 16:04:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 109 + </td> + <td> + <a href="49/index.html">#49</a> + </td> + <td>hanhan1978</td> + <td>883 byte</td> + <td>2024-03-08 16:04:53</td> + <td>失敗</td> + </tr> + </tbody> + </table> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/brainf-ck/index.html b/archive/q/brainf-ck/index.html new file mode 100644 index 0000000..622f1b2 --- /dev/null +++ b/archive/q/brainf-ck/index.html @@ -0,0 +1,227 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #3 | Albatross.PHP</title> + <link rel="stylesheet" href="../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg"> + <script type="module" src="../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #3</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../index.html">問題一覧</a></li> + <li class="breadcrumb-item active">Brainf*ck</li> + </ol> + </nav> + + <h2>Brainf*ck</h2> + <p> + Brainf*ck を実装してください。標準入力から Brainf*ck のソースコードが渡されます。Brainf*ck の仕様のうち、入力命令である「,」は未実装で構いません。
+
+一部明確に挙動が定められていない部分については、以下の仕様とします。
+メモリの各セルは 8 bit の符号なし整数です。今回の入力でオーバーフローは発生しません。
+メモリのアドレスは非負整数です。今回の入力で負のアドレスへポインタを動かすことはありません。
+Brainf*ck に存在する命令以外の文字を受け取った場合は無視してください。
+今回の入力に不正なプログラムは含まれません。すなわち、「[」と「]」は必ず釣り合っています。 + </p> + <h3>実装例</h3> + <pre><code class="hljs language-php">$source = stream_get_contents(STDIN);
+$pc = 0;
+$memory = [];
+$ptr = 0;
+
+while ($pc < strlen($source)) {
+ switch ($source[$pc]) {
+ case '>':
+ $ptr++;
+ break;
+ case '<':
+ $ptr--;
+ break;
+ case '+':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]++;
+ break;
+ case '-':
+ if (!isset($memory[$ptr])) {
+ $memory[$ptr] = 0;
+ }
+ $memory[$ptr]--;
+ break;
+ case '.':
+ echo chr($memory[$ptr]);
+ break;
+ case '[':
+ if (!isset($memory[$ptr]) || $memory[$ptr] === 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc++;
+ if ($source[$pc] === '[') {
+ $depth++;
+ } elseif ($source[$pc] === ']') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ case ']':
+ if (isset($memory[$ptr]) && $memory[$ptr] !== 0) {
+ $depth = 1;
+ while ($depth > 0) {
+ $pc--;
+ if ($source[$pc] === ']') {
+ $depth++;
+ } elseif ($source[$pc] === '[') {
+ $depth--;
+ }
+ }
+ }
+ break;
+ }
+ $pc++;
+}</code></pre> + <h2>ランキング</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td> + <a href="a/101/index.html">#101</a> + </td> + <td>takaram</td> + <td>263 byte</td> + <td>2024-03-09 14:33:37</td> + </tr> + <tr> + <td>2</td> + <td> + <a href="a/107/index.html">#107</a> + </td> + <td>m3m0r7</td> + <td>273 byte</td> + <td>2024-03-09 14:50:06</td> + </tr> + <tr> + <td>3</td> + <td> + <a href="a/7/index.html">#7</a> + </td> + <td>nsfisis (staff)</td> + <td>341 byte</td> + <td>2024-03-07 16:02:44</td> + </tr> + <tr> + <td>4</td> + <td> + <a href="a/38/index.html">#38</a> + </td> + <td>tadsan (staff)</td> + <td>343 byte</td> + <td>2024-03-08 05:43:06</td> + </tr> + <tr> + <td>5</td> + <td> + <a href="a/109/index.html">#109</a> + </td> + <td>hanhan1978</td> + <td>392 byte</td> + <td>2024-03-09 15:33:46</td> + </tr> + <tr> + <td>6</td> + <td> + <a href="a/17/index.html">#17</a> + </td> + <td>yamamoto-hiroya</td> + <td>415 byte</td> + <td>2024-03-08 02:05:50</td> + </tr> + <tr> + <td>7</td> + <td> + <a href="a/42/index.html">#42</a> + </td> + <td>rinchoku</td> + <td>481 byte</td> + <td>2024-03-08 07:55:27</td> + </tr> + <tr> + <td>8</td> + <td> + <a href="a/23/index.html">#23</a> + </td> + <td>kunikiya</td> + <td>495 byte</td> + <td>2024-03-08 02:48:15</td> + </tr> + <tr> + <td>9</td> + <td> + <a href="a/2/index.html">#2</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>1043 byte</td> + <td>2024-03-06 08:26:28</td> + </tr> + <tr> + <td>10</td> + <td> + <a href="a/3/index.html">#3</a> + </td> + <td>muno92 (staff)</td> + <td>1043 byte</td> + <td>2024-03-06 08:42:52</td> + </tr> + <tr> + <td>11</td> + <td> + <a href="a/62/index.html">#62</a> + </td> + <td>okashoi</td> + <td>1043 byte</td> + <td>2024-03-08 16:45:23</td> + </tr> + <tr> + <td>12</td> + <td> + <a href="a/77/index.html">#77</a> + </td> + <td>masnmt</td> + <td>1043 byte</td> + <td>2024-03-09 04:52:52</td> + </tr> + </tbody> + </table> + <div> + <canvas id="chart" data-quiz-id="3"></canvas> + <script type="module" src="../../assets/chart.js"></script> + </div> + <p> + <a href="a/index.html">すべての回答を見る</a> + </p> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/10/index.html b/archive/q/fizzbuzz/a/10/index.html new file mode 100644 index 0000000..bd053de --- /dev/null +++ b/archive/q/fizzbuzz/a/10/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #10 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #10</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#10</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #10</h2> + <p> + tadsan が 2024-03-06 20:21:59 に投稿 + </p> + <h2>コード</h2> + <p> + 89 byte + </p> + <pre><code class="hljs language-php">echo implode("\n",array_map(fn($i)=>($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="16">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="28">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="28">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="28"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/100/index.html b/archive/q/fizzbuzz/a/100/index.html new file mode 100644 index 0000000..65dbf9c --- /dev/null +++ b/archive/q/fizzbuzz/a/100/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #100 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #100</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#100</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #100</h2> + <p> + chatii が 2024-03-08 11:24:10 に投稿 + </p> + <h2>コード</h2> + <p> + 93 byte + </p> + <pre><code class="hljs language-php"><?=implode("\n",array_map(fn($i)=>(($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i),range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="211">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="501">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="501"> +Parse error: syntax error, unexpected token "=", expecting end of file in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="501"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/101/index.html b/archive/q/fizzbuzz/a/101/index.html new file mode 100644 index 0000000..a7a05f4 --- /dev/null +++ b/archive/q/fizzbuzz/a/101/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #101 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #101</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#101</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #101</h2> + <p> + chatii が 2024-03-08 11:27:37 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php"><?php echo implode("\n",array_map(fn($i)=>(($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i),range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="212">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="502">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="502">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="502"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/102/index.html b/archive/q/fizzbuzz/a/102/index.html new file mode 100644 index 0000000..1403f5d --- /dev/null +++ b/archive/q/fizzbuzz/a/102/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #102 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #102</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#102</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #102</h2> + <p> + chatii が 2024-03-08 11:31:13 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php"><?php echo join("\n",array_map(fn($i)=>(($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i),range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="213">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="503">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="503">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="503"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/103/index.html b/archive/q/fizzbuzz/a/103/index.html new file mode 100644 index 0000000..3a5161a --- /dev/null +++ b/archive/q/fizzbuzz/a/103/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #103 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #103</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#103</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #103</h2> + <p> + shunsock が 2024-03-08 11:38:56 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$a=0;while($a<100){echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";$a++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="214">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="504">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="504">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="504"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/104/index.html b/archive/q/fizzbuzz/a/104/index.html new file mode 100644 index 0000000..6e134d4 --- /dev/null +++ b/archive/q/fizzbuzz/a/104/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #104 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #104</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#104</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #104</h2> + <p> + shunsock が 2024-03-08 11:39:38 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$a=1;while($a<100){echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";$a++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="215">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="505">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="505">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="505"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/105/index.html b/archive/q/fizzbuzz/a/105/index.html new file mode 100644 index 0000000..3ef024c --- /dev/null +++ b/archive/q/fizzbuzz/a/105/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #105 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #105</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#105</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #105</h2> + <p> + shunsock が 2024-03-08 11:40:28 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$a=1;while($a<101){echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";$a++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="216">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="506">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="506">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="506"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/106/index.html b/archive/q/fizzbuzz/a/106/index.html new file mode 100644 index 0000000..0be0313 --- /dev/null +++ b/archive/q/fizzbuzz/a/106/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #106 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #106</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#106</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #106</h2> + <p> + chatii が 2024-03-08 11:43:29 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<101;$i++){echo($s=($i%3<1?'Fizz':'').($i%5<1?'Buzz':''))?$s:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="217">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="507">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="507">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="507"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/107/index.html b/archive/q/fizzbuzz/a/107/index.html new file mode 100644 index 0000000..e5f47c6 --- /dev/null +++ b/archive/q/fizzbuzz/a/107/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #107 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #107</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#107</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #107</h2> + <p> + chatii が 2024-03-08 11:56:18 に投稿 + </p> + <h2>コード</h2> + <p> + 99 byte + </p> + <pre><code class="hljs language-php"><?php echo file_get_contents("https://raw.githubusercontent.com/shlomif/fizz-buzz/master/fizz-buzz.txt");</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="218">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="508">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="508"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="508"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/108/index.html b/archive/q/fizzbuzz/a/108/index.html new file mode 100644 index 0000000..b318e07 --- /dev/null +++ b/archive/q/fizzbuzz/a/108/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #108 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #108</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#108</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #108</h2> + <p> + chatii が 2024-03-08 11:57:46 に投稿 + </p> + <h2>コード</h2> + <p> + 45 byte + </p> + <pre><code class="hljs language-php"><?php echo file_get_contents("https://t.ly/X8VLK");</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="219">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="509">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="509"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="509"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/109/index.html b/archive/q/fizzbuzz/a/109/index.html new file mode 100644 index 0000000..f95bc10 --- /dev/null +++ b/archive/q/fizzbuzz/a/109/index.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #109 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #109</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#109</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #109</h2> + <p> + chatii が 2024-03-08 11:59:28 に投稿 + </p> + <h2>コード</h2> + <p> + 50 byte + </p> + <pre><code class="hljs language-php"><?php echo file_get_contents("https://t.ly/X8VLK"),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="220">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="510">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="510"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="510"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/11/index.html b/archive/q/fizzbuzz/a/11/index.html new file mode 100644 index 0000000..f0cdc63 --- /dev/null +++ b/archive/q/fizzbuzz/a/11/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #11 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #11</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#11</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #11</h2> + <p> + tadsan が 2024-03-06 21:34:25 に投稿 + </p> + <h2>コード</h2> + <p> + 86 byte + </p> + <pre><code class="hljs language-php">echo join("\n",array_map(fn($i)=>($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="22">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="44">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="44">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="44"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/110/index.html b/archive/q/fizzbuzz/a/110/index.html new file mode 100644 index 0000000..e31e593 --- /dev/null +++ b/archive/q/fizzbuzz/a/110/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #110 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #110</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#110</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #110</h2> + <p> + shunsock が 2024-03-08 12:06:29 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">for($a=1;$a<101;$a++)echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="221">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="511">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="511">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="511"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/111/index.html b/archive/q/fizzbuzz/a/111/index.html new file mode 100644 index 0000000..be9287b --- /dev/null +++ b/archive/q/fizzbuzz/a/111/index.html @@ -0,0 +1,169 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #111 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #111</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#111</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #111</h2> + <p> + matsuoatsushi が 2024-03-08 13:29:08 に投稿 + </p> + <h2>コード</h2> + <p> + 139 byte + </p> + <pre><code class="hljs language-php">$i = 1;
+while ($i <= 100) {
+echo ( $i % 3 === 0 ? ( $i % 5 === 0 ? "FizzBuzz" : "Fizz") : ( $i % 5 === 0 ? "Buzz" : $i )) . "\n";
+ $i++;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="235">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="564">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="564">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="564"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/112/index.html b/archive/q/fizzbuzz/a/112/index.html new file mode 100644 index 0000000..6b603da --- /dev/null +++ b/archive/q/fizzbuzz/a/112/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #112 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #112</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#112</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #112</h2> + <p> + hirosuke-pi が 2024-03-08 13:37:40 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="236">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="565">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="565">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="565"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/113/index.html b/archive/q/fizzbuzz/a/113/index.html new file mode 100644 index 0000000..3ad4067 --- /dev/null +++ b/archive/q/fizzbuzz/a/113/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #113 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #113</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#113</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #113</h2> + <p> + hibiki-cube が 2024-03-08 13:39:42 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3&&$i%5?$i:($i%3?:"Fizz").($i%5?:"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="238">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="570">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="570">1 +2 +Fizz3 +4 +2Buzz +Fizz1 +7 +8 +Fizz4 +1Buzz +11 +Fizz2 +13 +14 +FizzBuzz +16 +17 +Fizz3 +19 +2Buzz +Fizz1 +22 +23 +Fizz4 +1Buzz +26 +Fizz2 +28 +29 +FizzBuzz +31 +32 +Fizz3 +34 +2Buzz +Fizz1 +37 +38 +Fizz4 +1Buzz +41 +Fizz2 +43 +44 +FizzBuzz +46 +47 +Fizz3 +49 +2Buzz +Fizz1 +52 +53 +Fizz4 +1Buzz +56 +Fizz2 +58 +59 +FizzBuzz +61 +62 +Fizz3 +64 +2Buzz +Fizz1 +67 +68 +Fizz4 +1Buzz +71 +Fizz2 +73 +74 +FizzBuzz +76 +77 +Fizz3 +79 +2Buzz +Fizz1 +82 +83 +Fizz4 +1Buzz +86 +Fizz2 +88 +89 +FizzBuzz +91 +92 +Fizz3 +94 +2Buzz +Fizz1 +97 +98 +Fizz4 +1Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="570"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/114/index.html b/archive/q/fizzbuzz/a/114/index.html new file mode 100644 index 0000000..b98182e --- /dev/null +++ b/archive/q/fizzbuzz/a/114/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #114 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #114</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#114</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #114</h2> + <p> + hibiki-cube が 2024-03-08 13:41:49 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%15?$i:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="239">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="571">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="571">1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 +12 +13 +14 +FizzBuzz +16 +17 +18 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +FizzBuzz +31 +32 +33 +34 +35 +36 +37 +38 +39 +40 +41 +42 +43 +44 +FizzBuzz +46 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +FizzBuzz +61 +62 +63 +64 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +FizzBuzz +76 +77 +78 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +FizzBuzz +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="571"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/115/index.html b/archive/q/fizzbuzz/a/115/index.html new file mode 100644 index 0000000..8f1cf59 --- /dev/null +++ b/archive/q/fizzbuzz/a/115/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #115 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #115</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#115</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #115</h2> + <p> + hirosuke-pi が 2024-03-08 13:58:26 に投稿 + </p> + <h2>コード</h2> + <p> + 98 byte + </p> + <pre><code class="hljs language-php">for ($i=1;$i<=100;$i++){if($i%3==0)echo'Fizz';elseif($i%5==0)echo'Buzz';else echo$i;echo PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="240">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="572">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="572">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +Fizz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +Fizz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +Fizz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +Fizz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +Fizz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +Fizz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="572"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/116/index.html b/archive/q/fizzbuzz/a/116/index.html new file mode 100644 index 0000000..8d7706c --- /dev/null +++ b/archive/q/fizzbuzz/a/116/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #116 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #116</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#116</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #116</h2> + <p> + matsuoatsushi が 2024-03-08 14:02:24 に投稿 + </p> + <h2>コード</h2> + <p> + 91 byte + </p> + <pre><code class="hljs language-php">$i=1;while($i<101){echo($i%3==0?"Fizz".($i%5==0?"Buzz":""):($i%5==0?"Buzz":$i))."\n";$i++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="241">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="573">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="573">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="573"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/117/index.html b/archive/q/fizzbuzz/a/117/index.html new file mode 100644 index 0000000..b1ad05d --- /dev/null +++ b/archive/q/fizzbuzz/a/117/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #117 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #117</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#117</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #117</h2> + <p> + hirosuke-pi が 2024-03-08 14:13:55 に投稿 + </p> + <h2>コード</h2> + <p> + 115 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++){if($i%3==0||$i%5==0){if($i%3==0)echo'Fizz';if($i%5==0)echo'Buzz';}else echo$i;echo PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="242">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="574">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="574">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="574"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/118/index.html b/archive/q/fizzbuzz/a/118/index.html new file mode 100644 index 0000000..6cfdf9c --- /dev/null +++ b/archive/q/fizzbuzz/a/118/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #118 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #118</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#118</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #118</h2> + <p> + okashoi が 2024-03-08 14:58:35 に投稿 + </p> + <h2>コード</h2> + <p> + 95 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo(!($i % 15)?'FizzBuzz':(!($i%5)?'Buzz':(!($i%3)?'Fizz':$i)))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="247">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="591">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="591">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="591"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/119/index.html b/archive/q/fizzbuzz/a/119/index.html new file mode 100644 index 0000000..2bb8eb0 --- /dev/null +++ b/archive/q/fizzbuzz/a/119/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #119 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #119</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#119</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #119</h2> + <p> + hanhan1978 が 2024-03-08 15:10:37 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:"":'Fizz',$i%5?"":'Buzz',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="248">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="592">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="592">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="592"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/12/index.html b/archive/q/fizzbuzz/a/12/index.html new file mode 100644 index 0000000..8582198 --- /dev/null +++ b/archive/q/fizzbuzz/a/12/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #12 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #12</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#12</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #12</h2> + <p> + nsfisis が 2024-03-07 15:01:42 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">for(;++$i<101;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="27">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="67">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="67"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="67"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/120/index.html b/archive/q/fizzbuzz/a/120/index.html new file mode 100644 index 0000000..df54200 --- /dev/null +++ b/archive/q/fizzbuzz/a/120/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #120 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #120</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#120</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #120</h2> + <p> + keitamax が 2024-03-08 16:42:15 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++){echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz",PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="273">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="671">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="671">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="671"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/121/index.html b/archive/q/fizzbuzz/a/121/index.html new file mode 100644 index 0000000..22fccdf --- /dev/null +++ b/archive/q/fizzbuzz/a/121/index.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #121 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #121</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#121</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #121</h2> + <p> + you110 が 2024-03-08 16:48:39 に投稿 + </p> + <h2>コード</h2> + <p> + 146 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100 ; $i++) {
+ $msg = $i % 3 == 0 ? $i % 5 == 0 ? "FizzBuzz" : "Fizz" : $i % 5 == 0 ? "Buzz" : $i;
+ echo $msg . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="275">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="675">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="675"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="675"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/122/index.html b/archive/q/fizzbuzz/a/122/index.html new file mode 100644 index 0000000..725b50f --- /dev/null +++ b/archive/q/fizzbuzz/a/122/index.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #122 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #122</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#122</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #122</h2> + <p> + you110 が 2024-03-08 16:50:44 に投稿 + </p> + <h2>コード</h2> + <p> + 145 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100 ; $i++) {
+ $msg = $i % 3 == 0 ? $i % 5 == 0 ? "FizzBuzz" : "Fizz" : $i % 5 == 0 ? "Buzz" : $i;
+ echo $msg . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="276">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="676">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="676"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="676"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/123/index.html b/archive/q/fizzbuzz/a/123/index.html new file mode 100644 index 0000000..8d5b539 --- /dev/null +++ b/archive/q/fizzbuzz/a/123/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #123 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #123</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#123</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #123</h2> + <p> + keitamax が 2024-03-08 16:50:51 に投稿 + </p> + <h2>コード</h2> + <p> + 79 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++){echo($i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz")."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="277">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="677">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="677">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="677"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/124/index.html b/archive/q/fizzbuzz/a/124/index.html new file mode 100644 index 0000000..bf23e84 --- /dev/null +++ b/archive/q/fizzbuzz/a/124/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #124 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #124</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#124</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #124</h2> + <p> + you110 が 2024-03-08 16:58:34 に投稿 + </p> + <h2>コード</h2> + <p> + 163 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100 ; $i++) {
+ $msg = $i % 3 == 0 && $i % 5 == 0 ? "FizzBuzz" : ($i % 3 == 0 ? "Fizz" : ($i % 5 == 0 ? "Buzz" : $i));
+ echo $msg . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="278">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="678">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="678">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="678"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/125/index.html b/archive/q/fizzbuzz/a/125/index.html new file mode 100644 index 0000000..b31b7a2 --- /dev/null +++ b/archive/q/fizzbuzz/a/125/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #125 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #125</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#125</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #125</h2> + <p> + happylifetaka が 2024-03-08 17:19:13 に投稿 + </p> + <h2>コード</h2> + <p> + 79 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<=100;$i++)echo($i%15?$i%3?$i%5?$i:'Buzz':'Fizz':'FizzBuzz')."\n";?></code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="279">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="679">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="679">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="679"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/126/index.html b/archive/q/fizzbuzz/a/126/index.html new file mode 100644 index 0000000..b4ad0c9 --- /dev/null +++ b/archive/q/fizzbuzz/a/126/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #126 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #126</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#126</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #126</h2> + <p> + notchman が 2024-03-08 17:20:58 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="280">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="680">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="680">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="680"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/127/index.html b/archive/q/fizzbuzz/a/127/index.html new file mode 100644 index 0000000..2f6baa9 --- /dev/null +++ b/archive/q/fizzbuzz/a/127/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #127 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #127</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#127</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #127</h2> + <p> + notchman が 2024-03-08 17:25:49 に投稿 + </p> + <h2>コード</h2> + <p> + 153 byte + </p> + <pre><code class="hljs language-php">function fizzbuzz($n) {for ($i = 1; $i <= $n; $i++) {echo ($i % 3 ? "Fizz" : "") . ($i % 5 ? "Buzz" : "") . ($i % 3 && $i % 5 ? $i : "");}}fizzbuzz(100);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="281">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="681">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="681">FizzBuzz1FizzBuzz2BuzzFizzBuzz4FizzBuzzFizzBuzz7FizzBuzz8BuzzFizzFizzBuzz11BuzzFizzBuzz13FizzBuzz14FizzBuzz16FizzBuzz17BuzzFizzBuzz19FizzBuzzFizzBuzz22FizzBuzz23BuzzFizzFizzBuzz26BuzzFizzBuzz28FizzBuzz29FizzBuzz31FizzBuzz32BuzzFizzBuzz34FizzBuzzFizzBuzz37FizzBuzz38BuzzFizzFizzBuzz41BuzzFizzBuzz43FizzBuzz44FizzBuzz46FizzBuzz47BuzzFizzBuzz49FizzBuzzFizzBuzz52FizzBuzz53BuzzFizzFizzBuzz56BuzzFizzBuzz58FizzBuzz59FizzBuzz61FizzBuzz62BuzzFizzBuzz64FizzBuzzFizzBuzz67FizzBuzz68BuzzFizzFizzBuzz71BuzzFizzBuzz73FizzBuzz74FizzBuzz76FizzBuzz77BuzzFizzBuzz79FizzBuzzFizzBuzz82FizzBuzz83BuzzFizzFizzBuzz86BuzzFizzBuzz88FizzBuzz89FizzBuzz91FizzBuzz92BuzzFizzBuzz94FizzBuzzFizzBuzz97FizzBuzz98BuzzFizz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="681"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/128/index.html b/archive/q/fizzbuzz/a/128/index.html new file mode 100644 index 0000000..9ad3d1b --- /dev/null +++ b/archive/q/fizzbuzz/a/128/index.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #128 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #128</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#128</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #128</h2> + <p> + notchman が 2024-03-08 17:27:23 に投稿 + </p> + <h2>コード</h2> + <p> + 196 byte + </p> + <pre><code class="hljs language-php">function fizzbuzz($n) {
+ for ($i = 1; $i <= $n; $i++) {
+ echo ($i % 3 == 0 ? "Fizz" : "") . ($i % 5 == 0 ? "Buzz" : "") . ($i % 3 != 0 && $i % 5 != 0 ? $i : "") . PHP_EOL;
+ }
+}
+fizzbuzz(100);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="282">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="682">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="682">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="682"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/129/index.html b/archive/q/fizzbuzz/a/129/index.html new file mode 100644 index 0000000..5af0ca8 --- /dev/null +++ b/archive/q/fizzbuzz/a/129/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #129 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #129</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#129</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #129</h2> + <p> + notchman が 2024-03-08 17:30:25 に投稿 + </p> + <h2>コード</h2> + <p> + 84 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;++$i)echo($i%3?"Fizz":"").($i%5?"Buzz":"").($i%3&&$i%5?$i:"")."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="283">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="683">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="683">FizzBuzz1 +FizzBuzz2 +Buzz +FizzBuzz4 +Fizz +Buzz +FizzBuzz7 +FizzBuzz8 +Buzz +Fizz +FizzBuzz11 +Buzz +FizzBuzz13 +FizzBuzz14 + +FizzBuzz16 +FizzBuzz17 +Buzz +FizzBuzz19 +Fizz +Buzz +FizzBuzz22 +FizzBuzz23 +Buzz +Fizz +FizzBuzz26 +Buzz +FizzBuzz28 +FizzBuzz29 + +FizzBuzz31 +FizzBuzz32 +Buzz +FizzBuzz34 +Fizz +Buzz +FizzBuzz37 +FizzBuzz38 +Buzz +Fizz +FizzBuzz41 +Buzz +FizzBuzz43 +FizzBuzz44 + +FizzBuzz46 +FizzBuzz47 +Buzz +FizzBuzz49 +Fizz +Buzz +FizzBuzz52 +FizzBuzz53 +Buzz +Fizz +FizzBuzz56 +Buzz +FizzBuzz58 +FizzBuzz59 + +FizzBuzz61 +FizzBuzz62 +Buzz +FizzBuzz64 +Fizz +Buzz +FizzBuzz67 +FizzBuzz68 +Buzz +Fizz +FizzBuzz71 +Buzz +FizzBuzz73 +FizzBuzz74 + +FizzBuzz76 +FizzBuzz77 +Buzz +FizzBuzz79 +Fizz +Buzz +FizzBuzz82 +FizzBuzz83 +Buzz +Fizz +FizzBuzz86 +Buzz +FizzBuzz88 +FizzBuzz89 + +FizzBuzz91 +FizzBuzz92 +Buzz +FizzBuzz94 +Fizz +Buzz +FizzBuzz97 +FizzBuzz98 +Buzz +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="683"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/13/index.html b/archive/q/fizzbuzz/a/13/index.html new file mode 100644 index 0000000..1eace7b --- /dev/null +++ b/archive/q/fizzbuzz/a/13/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #13 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #13</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#13</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #13</h2> + <p> + nsfisis が 2024-03-07 15:02:40 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for(;@++$i<101;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="28">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="68">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="68">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="68"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/130/index.html b/archive/q/fizzbuzz/a/130/index.html new file mode 100644 index 0000000..8479997 --- /dev/null +++ b/archive/q/fizzbuzz/a/130/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #130 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #130</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#130</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #130</h2> + <p> + notchman が 2024-03-08 17:37:23 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo($i%3?($i%5?$i:'Buzz'):($i%5?'Fizz':'FizzBuzz'))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="285">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="688">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="688">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="688"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/131/index.html b/archive/q/fizzbuzz/a/131/index.html new file mode 100644 index 0000000..f789f65 --- /dev/null +++ b/archive/q/fizzbuzz/a/131/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #131 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #131</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#131</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #131</h2> + <p> + notchman が 2024-03-08 17:38:08 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo$i%3?($i%5?$i:'Buzz'):($i%5?'Fizz':'FizzBuzz'),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="286">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="689">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="689">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="689"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/132/index.html b/archive/q/fizzbuzz/a/132/index.html new file mode 100644 index 0000000..4fc7e68 --- /dev/null +++ b/archive/q/fizzbuzz/a/132/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #132 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #132</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#132</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #132</h2> + <p> + notchman が 2024-03-08 17:39:15 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%3?!($i%5)?$i:'Buzz':($i%5?'Fizz':'FizzBuzz'),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="287">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="690">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="690">Buzz +Buzz +Fizz +Buzz +5 +Fizz +Buzz +Buzz +Fizz +10 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +20 +Fizz +Buzz +Buzz +Fizz +25 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +35 +Fizz +Buzz +Buzz +Fizz +40 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +50 +Fizz +Buzz +Buzz +Fizz +55 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +65 +Fizz +Buzz +Buzz +Fizz +70 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +80 +Fizz +Buzz +Buzz +Fizz +85 +Buzz +Fizz +Buzz +Buzz +FizzBuzz +Buzz +Buzz +Fizz +Buzz +95 +Fizz +Buzz +Buzz +Fizz +100 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="690"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/133/index.html b/archive/q/fizzbuzz/a/133/index.html new file mode 100644 index 0000000..3c94492 --- /dev/null +++ b/archive/q/fizzbuzz/a/133/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #133 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #133</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#133</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #133</h2> + <p> + notchman が 2024-03-08 17:39:56 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo($i%3?($i%5?$i:'Buzz'):($i%5?'Fizz':'FizzBuzz'))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="288">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="691">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="691">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="691"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/134/index.html b/archive/q/fizzbuzz/a/134/index.html new file mode 100644 index 0000000..d31434c --- /dev/null +++ b/archive/q/fizzbuzz/a/134/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #134 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #134</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#134</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #134</h2> + <p> + notchman が 2024-03-08 17:51:11 に投稿 + </p> + <h2>コード</h2> + <p> + 87 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo[$i,'Fizz','Buzz','FizzBuzz'][($i%3==0)+2*($i%5==0)]."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="289">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="692">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="692">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="692"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/135/index.html b/archive/q/fizzbuzz/a/135/index.html new file mode 100644 index 0000000..532aba3 --- /dev/null +++ b/archive/q/fizzbuzz/a/135/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #135 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #135</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#135</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #135</h2> + <p> + m3m0r7 が 2024-03-08 17:56:30 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php">for(;@++$i<=100;)echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="291">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="696">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="696">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="696"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/136/index.html b/archive/q/fizzbuzz/a/136/index.html new file mode 100644 index 0000000..8976072 --- /dev/null +++ b/archive/q/fizzbuzz/a/136/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #136 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #136</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#136</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #136</h2> + <p> + m3m0r7 が 2024-03-08 18:00:34 に投稿 + </p> + <h2>コード</h2> + <p> + 45 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('https://t.ly/ckP2G');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="292">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="697">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="697"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="697"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/137/index.html b/archive/q/fizzbuzz/a/137/index.html new file mode 100644 index 0000000..9349717 --- /dev/null +++ b/archive/q/fizzbuzz/a/137/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #137 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #137</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#137</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #137</h2> + <p> + m3m0r7 が 2024-03-08 18:03:55 に投稿 + </p> + <h2>コード</h2> + <p> + 49 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('https://bit.ly/3Ir2UJE');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="293">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="698">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="698"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="698"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/138/index.html b/archive/q/fizzbuzz/a/138/index.html new file mode 100644 index 0000000..a14f882 --- /dev/null +++ b/archive/q/fizzbuzz/a/138/index.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #138 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #138</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#138</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #138</h2> + <p> + m3m0r7 が 2024-03-08 18:04:26 に投稿 + </p> + <h2>コード</h2> + <p> + 53 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('https://bit.ly/3Ir2UJE')."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="294">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="699">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="699"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="699"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/139/index.html b/archive/q/fizzbuzz/a/139/index.html new file mode 100644 index 0000000..36b9c59 --- /dev/null +++ b/archive/q/fizzbuzz/a/139/index.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #139 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #139</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#139</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #139</h2> + <p> + notchman が 2024-03-08 18:04:52 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$n)echo$f=($n%3?``:'Fizz').($n%5?``:'Buzz')?$f:$n,PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="295">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="700">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="700"> +Fatal error: Uncaught ValueError: shell_exec(): Argument #1 ($command) cannot be empty in php.wasm code:6 +Stack trace: +#0 php.wasm code(6): shell_exec('') +#1 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="700"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/14/index.html b/archive/q/fizzbuzz/a/14/index.html new file mode 100644 index 0000000..077ee3d --- /dev/null +++ b/archive/q/fizzbuzz/a/14/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #14 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #14</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#14</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #14</h2> + <p> + Natsuki が 2024-03-07 15:06:36 に投稿 + </p> + <h2>コード</h2> + <p> + 143 byte + </p> + <pre><code class="hljs language-php"><?php $n=0;do{$i=fn($b)=>$n%$b==0;$n++;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<101);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="29">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="69">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="69">FizzBuzz +2 +3 +Fizz +5 +Buzz +Fizz +8 +9 +Fizz +Buzz +12 +Fizz +14 +15 +FizzBuzz +17 +18 +Fizz +20 +Buzz +Fizz +23 +24 +Fizz +Buzz +27 +Fizz +29 +30 +FizzBuzz +32 +33 +Fizz +35 +Buzz +Fizz +38 +39 +Fizz +Buzz +42 +Fizz +44 +45 +FizzBuzz +47 +48 +Fizz +50 +Buzz +Fizz +53 +54 +Fizz +Buzz +57 +Fizz +59 +60 +FizzBuzz +62 +63 +Fizz +65 +Buzz +Fizz +68 +69 +Fizz +Buzz +72 +Fizz +74 +75 +FizzBuzz +77 +78 +Fizz +80 +Buzz +Fizz +83 +84 +Fizz +Buzz +87 +Fizz +89 +90 +FizzBuzz +92 +93 +Fizz +95 +Buzz +Fizz +98 +99 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="69"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/140/index.html b/archive/q/fizzbuzz/a/140/index.html new file mode 100644 index 0000000..906138b --- /dev/null +++ b/archive/q/fizzbuzz/a/140/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #140 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #140</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#140</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #140</h2> + <p> + notchman が 2024-03-08 18:07:40 に投稿 + </p> + <h2>コード</h2> + <p> + 70 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="296">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="701">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="701"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="701"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/141/index.html b/archive/q/fizzbuzz/a/141/index.html new file mode 100644 index 0000000..3b65f59 --- /dev/null +++ b/archive/q/fizzbuzz/a/141/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #141 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #141</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#141</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #141</h2> + <p> + m3m0r7 が 2024-03-08 18:09:30 に投稿 + </p> + <h2>コード</h2> + <p> + 159 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('https://gist.githubusercontent.com/m3m0r7/5dd689963362ad0b6369a4f5d18b6929/raw/c90394160c0462e2d773b74a8ce859817d368224/FizzBuzz.txt');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="297">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="702">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="702"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="702"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/142/index.html b/archive/q/fizzbuzz/a/142/index.html new file mode 100644 index 0000000..9bfd759 --- /dev/null +++ b/archive/q/fizzbuzz/a/142/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #142 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #142</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#142</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #142</h2> + <p> + tsuchikazu が 2024-03-08 18:10:22 に投稿 + </p> + <h2>コード</h2> + <p> + 75 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%3?($i%5?$i:'Buzz'):($i%5?'Fizz':'FizzBuzz'),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="298">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="703">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="703">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="703"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/143/index.html b/archive/q/fizzbuzz/a/143/index.html new file mode 100644 index 0000000..113106f --- /dev/null +++ b/archive/q/fizzbuzz/a/143/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #143 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #143</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#143</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #143</h2> + <p> + notchman が 2024-03-08 18:10:33 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="299">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="704">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="704"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="704"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/144/index.html b/archive/q/fizzbuzz/a/144/index.html new file mode 100644 index 0000000..2dd8110 --- /dev/null +++ b/archive/q/fizzbuzz/a/144/index.html @@ -0,0 +1,169 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #144 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #144</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#144</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #144</h2> + <p> + notchman が 2024-03-08 18:11:07 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php"><?php
+for(;$i++<100;)echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="300">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="705">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="705"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="705"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/145/index.html b/archive/q/fizzbuzz/a/145/index.html new file mode 100644 index 0000000..4c48d83 --- /dev/null +++ b/archive/q/fizzbuzz/a/145/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #145 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #145</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#145</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #145</h2> + <p> + okashoi が 2024-03-08 18:11:35 に投稿 + </p> + <h2>コード</h2> + <p> + 95 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo(!($i % 15)?'FizzBuzz':(!($i%5)?'Buzz':(!($i%3)?'Fizz':$i)))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="301">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="706">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="706">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="706"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/146/index.html b/archive/q/fizzbuzz/a/146/index.html new file mode 100644 index 0000000..c65b4fe --- /dev/null +++ b/archive/q/fizzbuzz/a/146/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #146 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #146</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#146</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #146</h2> + <p> + notchman が 2024-03-08 18:12:01 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="302">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="707">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="707"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="707"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/147/index.html b/archive/q/fizzbuzz/a/147/index.html new file mode 100644 index 0000000..e6169cd --- /dev/null +++ b/archive/q/fizzbuzz/a/147/index.html @@ -0,0 +1,74 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #147 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #147</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#147</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #147</h2> + <p> + tsuchikazu が 2024-03-08 18:12:28 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">while(++$i<101)echo$i%3?($i%5?$i:Buzz):($i%5?Fizz:FizzBuzz),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="303">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="708">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="708"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="708"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/148/index.html b/archive/q/fizzbuzz/a/148/index.html new file mode 100644 index 0000000..e9602bb --- /dev/null +++ b/archive/q/fizzbuzz/a/148/index.html @@ -0,0 +1,73 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #148 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #148</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#148</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #148</h2> + <p> + shogogg が 2024-03-08 18:12:51 に投稿 + </p> + <h2>コード</h2> + <p> + 67 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo($i%3?Fizz:'').($i%5?Buzz:'').($i%15?'':$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="304">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="709">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="709"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="709"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/149/index.html b/archive/q/fizzbuzz/a/149/index.html new file mode 100644 index 0000000..100b932 --- /dev/null +++ b/archive/q/fizzbuzz/a/149/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #149 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #149</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#149</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #149</h2> + <p> + notchman が 2024-03-08 18:12:54 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="305">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="710">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="710"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="710"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/15/index.html b/archive/q/fizzbuzz/a/15/index.html new file mode 100644 index 0000000..15b95ca --- /dev/null +++ b/archive/q/fizzbuzz/a/15/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #15 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #15</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#15</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #15</h2> + <p> + Natsuki が 2024-03-07 15:10:51 に投稿 + </p> + <h2>コード</h2> + <p> + 143 byte + </p> + <pre><code class="hljs language-php"><?php $n=0;do{$n++;$i=fn($b)=>$n%$b==0;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<101);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="30">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="70">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="70">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +101 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="70"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/150/index.html b/archive/q/fizzbuzz/a/150/index.html new file mode 100644 index 0000000..7b9a750 --- /dev/null +++ b/archive/q/fizzbuzz/a/150/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #150 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #150</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#150</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #150</h2> + <p> + notchman が 2024-03-08 18:13:56 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="306">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="711">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="711"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="711"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/151/index.html b/archive/q/fizzbuzz/a/151/index.html new file mode 100644 index 0000000..8e55eef --- /dev/null +++ b/archive/q/fizzbuzz/a/151/index.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #151 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #151</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#151</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #151</h2> + <p> + tsuchikazu が 2024-03-08 18:14:47 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo $i%15?$i%5?$i%3?$i:Fizz:Buzz:FizzBuzz,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="307">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="712">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="712"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="712"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/152/index.html b/archive/q/fizzbuzz/a/152/index.html new file mode 100644 index 0000000..4325579 --- /dev/null +++ b/archive/q/fizzbuzz/a/152/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #152 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #152</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#152</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #152</h2> + <p> + o2zdip が 2024-03-08 18:15:24 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo $i . ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') . ' ';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="308">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="713">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="713">1 2 3Fizz 4 5Buzz 6Fizz 7 8 9Fizz 10Buzz 11 12Fizz 13 14 15FizzBuzz 16 17 18Fizz 19 20Buzz 21Fizz 22 23 24Fizz 25Buzz 26 27Fizz 28 29 30FizzBuzz 31 32 33Fizz 34 35Buzz 36Fizz 37 38 39Fizz 40Buzz 41 42Fizz 43 44 45FizzBuzz 46 47 48Fizz 49 50Buzz 51Fizz 52 53 54Fizz 55Buzz 56 57Fizz 58 59 60FizzBuzz 61 62 63Fizz 64 65Buzz 66Fizz 67 68 69Fizz 70Buzz 71 72Fizz 73 74 75FizzBuzz 76 77 78Fizz 79 80Buzz 81Fizz 82 83 84Fizz 85Buzz 86 87Fizz 88 89 90FizzBuzz 91 92 93Fizz 94 95Buzz 96Fizz 97 98 99Fizz 100Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="713"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/153/index.html b/archive/q/fizzbuzz/a/153/index.html new file mode 100644 index 0000000..ed96184 --- /dev/null +++ b/archive/q/fizzbuzz/a/153/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #153 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #153</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#153</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #153</h2> + <p> + o2zdip が 2024-03-08 18:16:59 に投稿 + </p> + <h2>コード</h2> + <p> + 88 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo $i . ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="309">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="714">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="714">123Fizz45Buzz6Fizz789Fizz10Buzz1112Fizz131415FizzBuzz161718Fizz1920Buzz21Fizz222324Fizz25Buzz2627Fizz282930FizzBuzz313233Fizz3435Buzz36Fizz373839Fizz40Buzz4142Fizz434445FizzBuzz464748Fizz4950Buzz51Fizz525354Fizz55Buzz5657Fizz585960FizzBuzz616263Fizz6465Buzz66Fizz676869Fizz70Buzz7172Fizz737475FizzBuzz767778Fizz7980Buzz81Fizz828384Fizz85Buzz8687Fizz888990FizzBuzz919293Fizz9495Buzz96Fizz979899Fizz100Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="714"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/154/index.html b/archive/q/fizzbuzz/a/154/index.html new file mode 100644 index 0000000..c21455e --- /dev/null +++ b/archive/q/fizzbuzz/a/154/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #154 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #154</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#154</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #154</h2> + <p> + o2zdip が 2024-03-08 18:17:25 に投稿 + </p> + <h2>コード</h2> + <p> + 83 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="310">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="715">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="715">FizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzzFizzFizzBuzzFizzBuzzFizzFizzBuzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="715"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/155/index.html b/archive/q/fizzbuzz/a/155/index.html new file mode 100644 index 0000000..73382e7 --- /dev/null +++ b/archive/q/fizzbuzz/a/155/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #155 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #155</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#155</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #155</h2> + <p> + o2zdip が 2024-03-08 18:18:15 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo $i . ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') ?: $i;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="311">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="716">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="716">123Fizz45Buzz6Fizz789Fizz10Buzz1112Fizz131415FizzBuzz161718Fizz1920Buzz21Fizz222324Fizz25Buzz2627Fizz282930FizzBuzz313233Fizz3435Buzz36Fizz373839Fizz40Buzz4142Fizz434445FizzBuzz464748Fizz4950Buzz51Fizz525354Fizz55Buzz5657Fizz585960FizzBuzz616263Fizz6465Buzz66Fizz676869Fizz70Buzz7172Fizz737475FizzBuzz767778Fizz7980Buzz81Fizz828384Fizz85Buzz8687Fizz888990FizzBuzz919293Fizz9495Buzz96Fizz979899Fizz100Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="716"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/156/index.html b/archive/q/fizzbuzz/a/156/index.html new file mode 100644 index 0000000..6c3c41b --- /dev/null +++ b/archive/q/fizzbuzz/a/156/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #156 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #156</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#156</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #156</h2> + <p> + o2zdip が 2024-03-08 18:20:07 に投稿 + </p> + <h2>コード</h2> + <p> + 104 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo $i . ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') ?: $i . PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="313">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="720">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="720">123Fizz45Buzz6Fizz789Fizz10Buzz1112Fizz131415FizzBuzz161718Fizz1920Buzz21Fizz222324Fizz25Buzz2627Fizz282930FizzBuzz313233Fizz3435Buzz36Fizz373839Fizz40Buzz4142Fizz434445FizzBuzz464748Fizz4950Buzz51Fizz525354Fizz55Buzz5657Fizz585960FizzBuzz616263Fizz6465Buzz66Fizz676869Fizz70Buzz7172Fizz737475FizzBuzz767778Fizz7980Buzz81Fizz828384Fizz85Buzz8687Fizz888990FizzBuzz919293Fizz9495Buzz96Fizz979899Fizz100Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="720"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/157/index.html b/archive/q/fizzbuzz/a/157/index.html new file mode 100644 index 0000000..c602a87 --- /dev/null +++ b/archive/q/fizzbuzz/a/157/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #157 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #157</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#157</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #157</h2> + <p> + o2zdip が 2024-03-08 18:20:31 に投稿 + </p> + <h2>コード</h2> + <p> + 114 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo $i . ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') . PHP_EOL ?: $i . PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="314">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="721">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="721">1 +2 +3Fizz +4 +5Buzz +6Fizz +7 +8 +9Fizz +10Buzz +11 +12Fizz +13 +14 +15FizzBuzz +16 +17 +18Fizz +19 +20Buzz +21Fizz +22 +23 +24Fizz +25Buzz +26 +27Fizz +28 +29 +30FizzBuzz +31 +32 +33Fizz +34 +35Buzz +36Fizz +37 +38 +39Fizz +40Buzz +41 +42Fizz +43 +44 +45FizzBuzz +46 +47 +48Fizz +49 +50Buzz +51Fizz +52 +53 +54Fizz +55Buzz +56 +57Fizz +58 +59 +60FizzBuzz +61 +62 +63Fizz +64 +65Buzz +66Fizz +67 +68 +69Fizz +70Buzz +71 +72Fizz +73 +74 +75FizzBuzz +76 +77 +78Fizz +79 +80Buzz +81Fizz +82 +83 +84Fizz +85Buzz +86 +87Fizz +88 +89 +90FizzBuzz +91 +92 +93Fizz +94 +95Buzz +96Fizz +97 +98 +99Fizz +100Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="721"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/158/index.html b/archive/q/fizzbuzz/a/158/index.html new file mode 100644 index 0000000..e70dfee --- /dev/null +++ b/archive/q/fizzbuzz/a/158/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #158 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #158</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#158</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #158</h2> + <p> + o2zdip が 2024-03-08 18:21:05 に投稿 + </p> + <h2>コード</h2> + <p> + 109 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) echo ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') . PHP_EOL ?: $i . PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="315">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="722">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="722"> + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="722"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/159/index.html b/archive/q/fizzbuzz/a/159/index.html new file mode 100644 index 0000000..d96905d --- /dev/null +++ b/archive/q/fizzbuzz/a/159/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #159 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #159</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#159</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #159</h2> + <p> + o2zdip が 2024-03-08 18:24:25 に投稿 + </p> + <h2>コード</h2> + <p> + 107 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) { echo ($i % 3 ? '' : 'Fizz') . ($i % 5 ? '' : 'Buzz') ?: $i; echo PHP_EOL; }</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="316">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="723">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="723">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="723"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/16/index.html b/archive/q/fizzbuzz/a/16/index.html new file mode 100644 index 0000000..935ccc4 --- /dev/null +++ b/archive/q/fizzbuzz/a/16/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #16 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #16</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#16</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #16</h2> + <p> + Natsuki が 2024-03-07 15:11:53 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php"><?php $n=-1;do{$n++;$i=fn($b)=>$n%$b==0;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<101);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="31">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="71">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="71">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +101 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="71"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/160/index.html b/archive/q/fizzbuzz/a/160/index.html new file mode 100644 index 0000000..fbb6cc9 --- /dev/null +++ b/archive/q/fizzbuzz/a/160/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #160 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #160</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#160</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #160</h2> + <p> + arinc0 が 2024-03-08 18:24:38 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo($_=($i%3==0?'Fizz':'').($i%5==0?'Bazz':''))!=''?$_:$i,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="317">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="724">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="724">1 +2 +Fizz +4 +Bazz +Fizz +7 +8 +Fizz +Bazz +11 +Fizz +13 +14 +FizzBazz +16 +17 +Fizz +19 +Bazz +Fizz +22 +23 +Fizz +Bazz +26 +Fizz +28 +29 +FizzBazz +31 +32 +Fizz +34 +Bazz +Fizz +37 +38 +Fizz +Bazz +41 +Fizz +43 +44 +FizzBazz +46 +47 +Fizz +49 +Bazz +Fizz +52 +53 +Fizz +Bazz +56 +Fizz +58 +59 +FizzBazz +61 +62 +Fizz +64 +Bazz +Fizz +67 +68 +Fizz +Bazz +71 +Fizz +73 +74 +FizzBazz +76 +77 +Fizz +79 +Bazz +Fizz +82 +83 +Fizz +Bazz +86 +Fizz +88 +89 +FizzBazz +91 +92 +Fizz +94 +Bazz +Fizz +97 +98 +Fizz +Bazz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="724"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/161/index.html b/archive/q/fizzbuzz/a/161/index.html new file mode 100644 index 0000000..ea1a8a4 --- /dev/null +++ b/archive/q/fizzbuzz/a/161/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #161 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #161</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#161</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #161</h2> + <p> + arinc0 が 2024-03-08 18:25:12 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo($_=($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))!=''?$_:$i,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="318">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="725">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="725">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="725"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/162/index.html b/archive/q/fizzbuzz/a/162/index.html new file mode 100644 index 0000000..f55342e --- /dev/null +++ b/archive/q/fizzbuzz/a/162/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #162 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #162</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#162</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #162</h2> + <p> + hirahira が 2024-03-08 18:25:48 に投稿 + </p> + <h2>コード</h2> + <p> + 67 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo(($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i),'
+';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="319">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="726">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="726">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="726"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/163/index.html b/archive/q/fizzbuzz/a/163/index.html new file mode 100644 index 0000000..f088cd6 --- /dev/null +++ b/archive/q/fizzbuzz/a/163/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #163 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #163</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#163</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #163</h2> + <p> + notchman が 2024-03-08 18:27:55 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;$i++)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="320">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="727">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="727">1 +Fizz +Buzz +7 +Fizz +11 +13 +FizzBuzz +17 +19 +Fizz +23 +Buzz +Fizz +29 +31 +Fizz +Buzz +37 +Fizz +41 +43 +FizzBuzz +47 +49 +Fizz +53 +Buzz +Fizz +59 +61 +Fizz +Buzz +67 +Fizz +71 +73 +FizzBuzz +77 +79 +Fizz +83 +Buzz +Fizz +89 +91 +Fizz +Buzz +97 +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="727"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/164/index.html b/archive/q/fizzbuzz/a/164/index.html new file mode 100644 index 0000000..cb8b662 --- /dev/null +++ b/archive/q/fizzbuzz/a/164/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #164 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #164</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#164</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #164</h2> + <p> + notchman が 2024-03-08 18:29:07 に投稿 + </p> + <h2>コード</h2> + <p> + 70 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo(($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i)."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="321">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="728">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="728"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="728"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/165/index.html b/archive/q/fizzbuzz/a/165/index.html new file mode 100644 index 0000000..ea94b38 --- /dev/null +++ b/archive/q/fizzbuzz/a/165/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #165 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #165</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#165</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #165</h2> + <p> + arinc0 が 2024-03-08 18:29:31 に投稿 + </p> + <h2>コード</h2> + <p> + 85 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="322">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="729">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="729">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="729"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/166/index.html b/archive/q/fizzbuzz/a/166/index.html new file mode 100644 index 0000000..43f2031 --- /dev/null +++ b/archive/q/fizzbuzz/a/166/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #166 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #166</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#166</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #166</h2> + <p> + arinc0 が 2024-03-08 18:30:51 に投稿 + </p> + <h2>コード</h2> + <p> + 82 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="323">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="730">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="730">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="730"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/167/index.html b/archive/q/fizzbuzz/a/167/index.html new file mode 100644 index 0000000..79aceb5 --- /dev/null +++ b/archive/q/fizzbuzz/a/167/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #167 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #167</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#167</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #167</h2> + <p> + arinc0 が 2024-03-08 18:53:16 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;print((($i%3==0?'Fizz':'').($i%5==0?'Bazz':''))?:$i)."\n",$i++);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="324">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="731">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="731">1 +2 +Fizz +4 +Bazz +Fizz +7 +8 +Fizz +Bazz +11 +Fizz +13 +14 +FizzBazz +16 +17 +Fizz +19 +Bazz +Fizz +22 +23 +Fizz +Bazz +26 +Fizz +28 +29 +FizzBazz +31 +32 +Fizz +34 +Bazz +Fizz +37 +38 +Fizz +Bazz +41 +Fizz +43 +44 +FizzBazz +46 +47 +Fizz +49 +Bazz +Fizz +52 +53 +Fizz +Bazz +56 +Fizz +58 +59 +FizzBazz +61 +62 +Fizz +64 +Bazz +Fizz +67 +68 +Fizz +Bazz +71 +Fizz +73 +74 +FizzBazz +76 +77 +Fizz +79 +Bazz +Fizz +82 +83 +Fizz +Bazz +86 +Fizz +88 +89 +FizzBazz +91 +92 +Fizz +94 +Bazz +Fizz +97 +98 +Fizz +Bazz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="731"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/168/index.html b/archive/q/fizzbuzz/a/168/index.html new file mode 100644 index 0000000..a6eb95c --- /dev/null +++ b/archive/q/fizzbuzz/a/168/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #168 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #168</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#168</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #168</h2> + <p> + arinc0 が 2024-03-08 18:53:55 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;print((($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?:$i)."\n",$i++);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="325">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="732">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="732">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="732"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/169/index.html b/archive/q/fizzbuzz/a/169/index.html new file mode 100644 index 0000000..4b70c77 --- /dev/null +++ b/archive/q/fizzbuzz/a/169/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #169 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #169</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#169</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #169</h2> + <p> + hirahira が 2024-03-08 18:59:05 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,'
+';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="326">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="733">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="733">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="733"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/17/index.html b/archive/q/fizzbuzz/a/17/index.html new file mode 100644 index 0000000..9d3be06 --- /dev/null +++ b/archive/q/fizzbuzz/a/17/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #17 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #17</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#17</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #17</h2> + <p> + Natsuki が 2024-03-07 15:12:58 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php"><?php $n=-1;do{$n++;$i=fn($b)=>$n%$b==0;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<100);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="32">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="72">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="72">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="72"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/170/index.html b/archive/q/fizzbuzz/a/170/index.html new file mode 100644 index 0000000..c4b7d55 --- /dev/null +++ b/archive/q/fizzbuzz/a/170/index.html @@ -0,0 +1,459 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #170 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #170</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#170</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #170</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:39:32 に投稿 + </p> + <h2>コード</h2> + <p> + 82 byte + </p> + <pre><code class="hljs language-php">$f=["Fizz"];$b=["Buzz"];foreach(range(1,100)as $i)echo $f[$i%3].$b[$i%5]?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="328">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="737">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="737"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="737"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/171/index.html b/archive/q/fizzbuzz/a/171/index.html new file mode 100644 index 0000000..8e79459 --- /dev/null +++ b/archive/q/fizzbuzz/a/171/index.html @@ -0,0 +1,459 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #171 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #171</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#171</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #171</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:43:22 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo["Fizz"][$i%3].["Buzz"][$i%5]?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="330">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="741">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="741"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="741"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/172/index.html b/archive/q/fizzbuzz/a/172/index.html new file mode 100644 index 0000000..849b5f5 --- /dev/null +++ b/archive/q/fizzbuzz/a/172/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #172 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #172</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#172</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #172</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:44:16 に投稿 + </p> + <h2>コード</h2> + <p> + 86 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo["Fizz","",""][$i%3].["Buzz","","","",""][$i%5]?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="331">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="742">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="742">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="742"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/173/index.html b/archive/q/fizzbuzz/a/173/index.html new file mode 100644 index 0000000..b5f5c2b --- /dev/null +++ b/archive/q/fizzbuzz/a/173/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #173 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #173</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#173</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #173</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:49:45 に投稿 + </p> + <h2>コード</h2> + <p> + 85 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo["Fizz","",""][$i%3].["Buzz","","","",""][$i%5]?:$i,'
+';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="332">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="743">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="743">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="743"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/174/index.html b/archive/q/fizzbuzz/a/174/index.html new file mode 100644 index 0000000..dc4558f --- /dev/null +++ b/archive/q/fizzbuzz/a/174/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #174 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #174</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#174</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #174</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:51:41 に投稿 + </p> + <h2>コード</h2> + <p> + 79 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo["Fizz",""][$i%3&&1].["Buzz",""][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="333">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="744">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="744">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="744"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/175/index.html b/archive/q/fizzbuzz/a/175/index.html new file mode 100644 index 0000000..111c571 --- /dev/null +++ b/archive/q/fizzbuzz/a/175/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #175 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #175</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#175</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #175</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 19:57:41 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php">for(;++$i<101;)echo["Fizz",""][$i%3&&1].["Buzz",""][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="334">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="745">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="745"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="745"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/176/index.html b/archive/q/fizzbuzz/a/176/index.html new file mode 100644 index 0000000..daf0027 --- /dev/null +++ b/archive/q/fizzbuzz/a/176/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #176 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #176</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#176</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #176</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-08 20:03:09 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo["Fizz",""][$i%3&&1].["Buzz",""][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="335">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="746">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="746">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="746"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/177/index.html b/archive/q/fizzbuzz/a/177/index.html new file mode 100644 index 0000000..393c2be --- /dev/null +++ b/archive/q/fizzbuzz/a/177/index.html @@ -0,0 +1,73 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #177 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #177</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#177</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #177</h2> + <p> + shogogg が 2024-03-08 20:20:12 に投稿 + </p> + <h2>コード</h2> + <p> + 67 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo($i%3?Fizz:'').($i%5?Buzz:'').($i%15?'':$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="336">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="747">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="747"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="747"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/178/index.html b/archive/q/fizzbuzz/a/178/index.html new file mode 100644 index 0000000..9384c4e --- /dev/null +++ b/archive/q/fizzbuzz/a/178/index.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #178 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #178</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#178</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #178</h2> + <p> + shogogg が 2024-03-08 20:21:06 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo($i%3?Fizz:'').($i%5?Buzz:'').($i%15?'':$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="337">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="748">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="748"> +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="748"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/179/index.html b/archive/q/fizzbuzz/a/179/index.html new file mode 100644 index 0000000..38841a2 --- /dev/null +++ b/archive/q/fizzbuzz/a/179/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #179 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #179</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#179</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #179</h2> + <p> + xpadev が 2024-03-08 21:04:33 に投稿 + </p> + <h2>コード</h2> + <p> + 96 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){$n=(($i%3==0?"Fizz":"").($i%5==0?"Buzz":""));echo (empty($n)?$i:$n)."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="340">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="755">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="755">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="755"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/18/index.html b/archive/q/fizzbuzz/a/18/index.html new file mode 100644 index 0000000..bdce1e8 --- /dev/null +++ b/archive/q/fizzbuzz/a/18/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #18 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #18</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#18</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #18</h2> + <p> + Natsuki が 2024-03-07 16:18:35 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php"><?php $n=-1;do{$n++;$i=fn($b)=>$n%$b==0;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<100);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="40">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="97">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="97">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="97"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/180/index.html b/archive/q/fizzbuzz/a/180/index.html new file mode 100644 index 0000000..052b054 --- /dev/null +++ b/archive/q/fizzbuzz/a/180/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #180 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #180</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#180</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #180</h2> + <p> + hibiki-cube が 2024-03-08 22:35:56 に投稿 + </p> + <h2>コード</h2> + <p> + 77 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3*$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="345">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="770">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="770">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="770"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/181/index.html b/archive/q/fizzbuzz/a/181/index.html new file mode 100644 index 0000000..bcd2183 --- /dev/null +++ b/archive/q/fizzbuzz/a/181/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #181 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #181</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#181</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #181</h2> + <p> + hibiki-cube が 2024-03-08 23:18:26 に投稿 + </p> + <h2>コード</h2> + <p> + 78 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3*$i%5*$i?:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="346">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="771">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="771">1 +8 +Fizz +16 +Buzz +Fizz +14 +8 +Fizz +Buzz +22 +Fizz +39 +42 +FizzBuzz +16 +68 +Fizz +76 +Buzz +Fizz +44 +23 +Fizz +Buzz +52 +Fizz +84 +87 +FizzBuzz +31 +128 +Fizz +136 +Buzz +Fizz +74 +38 +Fizz +Buzz +82 +Fizz +129 +132 +FizzBuzz +46 +188 +Fizz +196 +Buzz +Fizz +104 +53 +Fizz +Buzz +112 +Fizz +174 +177 +FizzBuzz +61 +248 +Fizz +256 +Buzz +Fizz +134 +68 +Fizz +Buzz +142 +Fizz +219 +222 +FizzBuzz +76 +308 +Fizz +316 +Buzz +Fizz +164 +83 +Fizz +Buzz +172 +Fizz +264 +267 +FizzBuzz +91 +368 +Fizz +376 +Buzz +Fizz +194 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="771"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/182/index.html b/archive/q/fizzbuzz/a/182/index.html new file mode 100644 index 0000000..0cf239c --- /dev/null +++ b/archive/q/fizzbuzz/a/182/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #182 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #182</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#182</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #182</h2> + <p> + akinoriakatsuka が 2024-03-09 00:30:21 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="347">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="772">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="772">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="772"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/183/index.html b/archive/q/fizzbuzz/a/183/index.html new file mode 100644 index 0000000..ce55b46 --- /dev/null +++ b/archive/q/fizzbuzz/a/183/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #183 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #183</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#183</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #183</h2> + <p> + akinoriakatsuka が 2024-03-09 00:36:21 に投稿 + </p> + <h2>コード</h2> + <p> + 145 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++){echo match([$i%3==0,$i%5==0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="350">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="779">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="779">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="779"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/184/index.html b/archive/q/fizzbuzz/a/184/index.html new file mode 100644 index 0000000..30e63e8 --- /dev/null +++ b/archive/q/fizzbuzz/a/184/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #184 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #184</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#184</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #184</h2> + <p> + akinoriakatsuka が 2024-03-09 00:39:53 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){echo match([$i%3==0,$i%5==0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="351">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="780">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="780">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="780"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/185/index.html b/archive/q/fizzbuzz/a/185/index.html new file mode 100644 index 0000000..2936fed --- /dev/null +++ b/archive/q/fizzbuzz/a/185/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #185 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #185</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#185</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #185</h2> + <p> + keitamax が 2024-03-09 00:54:46 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo($i%15?$i%5?$i%3?$i:'Fizz':'Buzz':'FizzBuzz')."\n"</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="355">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="793">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="793"> +Parse error: syntax error, unexpected end of file, expecting "," or ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="793"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/186/index.html b/archive/q/fizzbuzz/a/186/index.html new file mode 100644 index 0000000..273ffea --- /dev/null +++ b/archive/q/fizzbuzz/a/186/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #186 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #186</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#186</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #186</h2> + <p> + keitamax が 2024-03-09 00:55:05 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo($i%15?$i%5?$i%3?$i:'Fizz':'Buzz':'FizzBuzz')."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="356">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="794">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="794">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="794"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/187/index.html b/archive/q/fizzbuzz/a/187/index.html new file mode 100644 index 0000000..06f85ea --- /dev/null +++ b/archive/q/fizzbuzz/a/187/index.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #187 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #187</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#187</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #187</h2> + <p> + keitamax が 2024-03-09 01:04:16 に投稿 + </p> + <h2>コード</h2> + <p> + 71 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%15?$i%5?$i%3?$i:'Fizz':'Buzz':'FizzBuzz',~ß;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="357">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="795">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="795">1 +Fatal error: Uncaught Error: Undefined constant "ß" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="795"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/188/index.html b/archive/q/fizzbuzz/a/188/index.html new file mode 100644 index 0000000..0b2d0ac --- /dev/null +++ b/archive/q/fizzbuzz/a/188/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #188 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #188</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#188</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #188</h2> + <p> + keitamax が 2024-03-09 01:05:19 に投稿 + </p> + <h2>コード</h2> + <p> + 71 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%15?$i%5?$i%3?$i:'Fizz':'Buzz':'FizzBuzz',' ';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="358">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="796">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="796">1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="796"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/189/index.html b/archive/q/fizzbuzz/a/189/index.html new file mode 100644 index 0000000..1ed769e --- /dev/null +++ b/archive/q/fizzbuzz/a/189/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #189 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #189</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#189</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #189</h2> + <p> + akinoriakatsuka が 2024-03-09 01:10:28 に投稿 + </p> + <h2>コード</h2> + <p> + 113 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i < 101; $i++) {
+ echo $i % 15 ? ($i % 5 ? ($i % 3 ? $i : "Fizz") : "Bazz") : "FizzBazz" , "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="361">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="805">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="805">1 +2 +Fizz +4 +Bazz +Fizz +7 +8 +Fizz +Bazz +11 +Fizz +13 +14 +FizzBazz +16 +17 +Fizz +19 +Bazz +Fizz +22 +23 +Fizz +Bazz +26 +Fizz +28 +29 +FizzBazz +31 +32 +Fizz +34 +Bazz +Fizz +37 +38 +Fizz +Bazz +41 +Fizz +43 +44 +FizzBazz +46 +47 +Fizz +49 +Bazz +Fizz +52 +53 +Fizz +Bazz +56 +Fizz +58 +59 +FizzBazz +61 +62 +Fizz +64 +Bazz +Fizz +67 +68 +Fizz +Bazz +71 +Fizz +73 +74 +FizzBazz +76 +77 +Fizz +79 +Bazz +Fizz +82 +83 +Fizz +Bazz +86 +Fizz +88 +89 +FizzBazz +91 +92 +Fizz +94 +Bazz +Fizz +97 +98 +Fizz +Bazz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="805"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/19/index.html b/archive/q/fizzbuzz/a/19/index.html new file mode 100644 index 0000000..9ae33d0 --- /dev/null +++ b/archive/q/fizzbuzz/a/19/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #19 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #19</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#19</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #19</h2> + <p> + Natsuki が 2024-03-07 16:39:28 に投稿 + </p> + <h2>コード</h2> + <p> + 143 byte + </p> + <pre><code class="hljs language-php"><?php $n=0;do{$n++;$i=fn($b)=>$n%$b==0;echo match("{$i(3)}-{$i(5)}"){"1-1"=>"FizzBuzz","1-"=>"Fizz","-1"=>"Buzz",default=>$n}.PHP_EOL;}while($n<100);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="42">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="101">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="101">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="101"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/190/index.html b/archive/q/fizzbuzz/a/190/index.html new file mode 100644 index 0000000..91ba385 --- /dev/null +++ b/archive/q/fizzbuzz/a/190/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #190 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #190</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#190</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #190</h2> + <p> + akinoriakatsuka が 2024-03-09 01:12:04 に投稿 + </p> + <h2>コード</h2> + <p> + 113 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i < 101; $i++) {
+ echo $i % 15 ? ($i % 5 ? ($i % 3 ? $i : "Fizz") : "Buzz") : "FizzBuzz" , "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="362">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="806">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="806">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="806"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/191/index.html b/archive/q/fizzbuzz/a/191/index.html new file mode 100644 index 0000000..9a57a8f --- /dev/null +++ b/archive/q/fizzbuzz/a/191/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #191 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #191</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#191</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #191</h2> + <p> + akinoriakatsuka が 2024-03-09 01:18:28 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){echo $i%15?($i%5?($i%3?$i:"Fizz"):"Buzz"):"FizzBuzz","\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="364">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="811">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="811">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="811"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/192/index.html b/archive/q/fizzbuzz/a/192/index.html new file mode 100644 index 0000000..ddaa6dd --- /dev/null +++ b/archive/q/fizzbuzz/a/192/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #192 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #192</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#192</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #192</h2> + <p> + hamaco が 2024-03-09 01:30:07 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('http://memories.millimas.info/a.txt');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="370">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="832">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="832"> +Warning: PHP Request Startup: Failed to open stream: Host is unreachable in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="832"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/193/index.html b/archive/q/fizzbuzz/a/193/index.html new file mode 100644 index 0000000..dd37035 --- /dev/null +++ b/archive/q/fizzbuzz/a/193/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #193 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #193</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#193</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #193</h2> + <p> + hamaco が 2024-03-09 01:31:55 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('http://memories.millimas.info/a.txt');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="373">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="841">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="841"> +Warning: PHP Request Startup: Failed to open stream: Host is unreachable in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="841"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/194/index.html b/archive/q/fizzbuzz/a/194/index.html new file mode 100644 index 0000000..af6019f --- /dev/null +++ b/archive/q/fizzbuzz/a/194/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #194 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #194</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#194</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #194</h2> + <p> + hamaco が 2024-03-09 01:32:19 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="374">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="842">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="842">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="842"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/195/index.html b/archive/q/fizzbuzz/a/195/index.html new file mode 100644 index 0000000..f9df2ae --- /dev/null +++ b/archive/q/fizzbuzz/a/195/index.html @@ -0,0 +1,70 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #195 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #195</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#195</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #195</h2> + <p> + keitamax が 2024-03-09 01:35:23 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=2;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?"":"Buzz",~õ;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="376">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="847">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="847">Fizz +Fatal error: Uncaught Error: Undefined constant "õ" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="847"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/196/index.html b/archive/q/fizzbuzz/a/196/index.html new file mode 100644 index 0000000..15e9d75 --- /dev/null +++ b/archive/q/fizzbuzz/a/196/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #196 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #196</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#196</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #196</h2> + <p> + keitamax が 2024-03-09 01:41:21 に投稿 + </p> + <h2>コード</h2> + <p> + 67 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'a':"Fizz",$i%5?"":"Buzz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="380">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="859">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="859">1 +2 +Fizz +4 +aBuzz +Fizz +7 +8 +Fizz +aBuzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +aBuzz +Fizz +22 +23 +Fizz +aBuzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +aBuzz +Fizz +37 +38 +Fizz +aBuzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +aBuzz +Fizz +52 +53 +Fizz +aBuzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +aBuzz +Fizz +67 +68 +Fizz +aBuzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +aBuzz +Fizz +82 +83 +Fizz +aBuzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +aBuzz +Fizz +97 +98 +Fizz +aBuzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="859"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/197/index.html b/archive/q/fizzbuzz/a/197/index.html new file mode 100644 index 0000000..d2847b6 --- /dev/null +++ b/archive/q/fizzbuzz/a/197/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #197 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #197</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#197</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #197</h2> + <p> + keitamax が 2024-03-09 01:42:38 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'':"Buzz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="381">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="860">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="860">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="860"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/198/index.html b/archive/q/fizzbuzz/a/198/index.html new file mode 100644 index 0000000..146f007 --- /dev/null +++ b/archive/q/fizzbuzz/a/198/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #198 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #198</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#198</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #198</h2> + <p> + akinoriakatsuka が 2024-03-09 01:48:43 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="382">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="861">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="861">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="861"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/199/index.html b/archive/q/fizzbuzz/a/199/index.html new file mode 100644 index 0000000..9079d20 --- /dev/null +++ b/archive/q/fizzbuzz/a/199/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #199 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #199</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#199</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #199</h2> + <p> + keitamax が 2024-03-09 01:49:52 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'':"Buzz"," ";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="384">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="866">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="866">1 2 Fizz 4 Buzz Fizz 7 8 Fizz Buzz 11 Fizz 13 14 FizzBuzz 16 17 Fizz 19 Buzz Fizz 22 23 Fizz Buzz 26 Fizz 28 29 FizzBuzz 31 32 Fizz 34 Buzz Fizz 37 38 Fizz Buzz 41 Fizz 43 44 FizzBuzz 46 47 Fizz 49 Buzz Fizz 52 53 Fizz Buzz 56 Fizz 58 59 FizzBuzz 61 62 Fizz 64 Buzz Fizz 67 68 Fizz Buzz 71 Fizz 73 74 FizzBuzz 76 77 Fizz 79 Buzz Fizz 82 83 Fizz Buzz 86 Fizz 88 89 FizzBuzz 91 92 Fizz 94 Buzz Fizz 97 98 Fizz Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="866"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/2/index.html b/archive/q/fizzbuzz/a/2/index.html new file mode 100644 index 0000000..1b54a1b --- /dev/null +++ b/archive/q/fizzbuzz/a/2/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #2 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #2</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#2</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #2</h2> + <p> + nsfisis が 2024-03-06 03:55:38 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="2">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="2">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="2">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="2"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/20/index.html b/archive/q/fizzbuzz/a/20/index.html new file mode 100644 index 0000000..0825aae --- /dev/null +++ b/archive/q/fizzbuzz/a/20/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #20 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #20</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#20</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #20</h2> + <p> + tadsan が 2024-03-07 16:46:21 に投稿 + </p> + <h2>コード</h2> + <p> + 82 byte + </p> + <pre><code class="hljs language-php">array_map(fn($i)=>print(($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i)."\n",range(1,100));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="43">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="102">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="102">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="102"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/200/index.html b/archive/q/fizzbuzz/a/200/index.html new file mode 100644 index 0000000..fc81c7f --- /dev/null +++ b/archive/q/fizzbuzz/a/200/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #200 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #200</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#200</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #200</h2> + <p> + akinoriakatsuka が 2024-03-09 01:55:20 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i<101){echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";$i++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="387">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="875">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="875">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="875"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/201/index.html b/archive/q/fizzbuzz/a/201/index.html new file mode 100644 index 0000000..f9996b0 --- /dev/null +++ b/archive/q/fizzbuzz/a/201/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #201 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #201</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#201</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #201</h2> + <p> + akinoriakatsuka が 2024-03-09 01:56:02 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">$i=1;while($i<101){echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";$i++;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="388">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="876">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="876">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="876"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/202/index.html b/archive/q/fizzbuzz/a/202/index.html new file mode 100644 index 0000000..dd03a89 --- /dev/null +++ b/archive/q/fizzbuzz/a/202/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #202 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #202</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#202</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #202</h2> + <p> + keitamax が 2024-03-09 01:56:36 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'':"Buzz","\n"</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="389">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="877">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="877"> +Parse error: syntax error, unexpected end of file, expecting "," or ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="877"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/203/index.html b/archive/q/fizzbuzz/a/203/index.html new file mode 100644 index 0000000..830a75e --- /dev/null +++ b/archive/q/fizzbuzz/a/203/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #203 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #203</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#203</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #203</h2> + <p> + keitamax が 2024-03-09 02:05:16 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'':"Buzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="391">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="882">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="882">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="882"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/204/index.html b/archive/q/fizzbuzz/a/204/index.html new file mode 100644 index 0000000..b2b63d6 --- /dev/null +++ b/archive/q/fizzbuzz/a/204/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #204 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #204</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#204</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #204</h2> + <p> + keitamax が 2024-03-09 02:08:43 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'
+':"Buzz
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="392">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="883">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="883">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="883"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/205/index.html b/archive/q/fizzbuzz/a/205/index.html new file mode 100644 index 0000000..26b7769 --- /dev/null +++ b/archive/q/fizzbuzz/a/205/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #205 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #205</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#205</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #205</h2> + <p> + azuki-penguin が 2024-03-09 02:09:31 に投稿 + </p> + <h2>コード</h2> + <p> + 116 byte + </p> + <pre><code class="hljs language-php">echo join(PHP_EOL,array_map(fn($x)=>!($x%15)?'FizzBuzz':(!($x%3)?'Fizz':(!($x%5)?'Buzz':$x)),range(1,100))).PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="393">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="884">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="884">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="884"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/206/index.html b/archive/q/fizzbuzz/a/206/index.html new file mode 100644 index 0000000..a67f95f --- /dev/null +++ b/archive/q/fizzbuzz/a/206/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #206 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #206</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#206</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #206</h2> + <p> + azuki-penguin が 2024-03-09 02:11:56 に投稿 + </p> + <h2>コード</h2> + <p> + 110 byte + </p> + <pre><code class="hljs language-php">echo join("\n",array_map(fn($x)=>!($x%15)?'FizzBuzz':(!($x%3)?'Fizz':(!($x%5)?'Buzz':$x)),range(1,100)))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="395">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="889">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="889">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="889"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/207/index.html b/archive/q/fizzbuzz/a/207/index.html new file mode 100644 index 0000000..c53d9a6 --- /dev/null +++ b/archive/q/fizzbuzz/a/207/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #207 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #207</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#207</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #207</h2> + <p> + keitamax が 2024-03-09 02:20:56 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++>99;)echo$i%3?$i%5?$i:'':"Fizz",$i%5?'
+':"Buzz
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="397">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="894">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="894"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="894"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/208/index.html b/archive/q/fizzbuzz/a/208/index.html new file mode 100644 index 0000000..123530b --- /dev/null +++ b/archive/q/fizzbuzz/a/208/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #208 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #208</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#208</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #208</h2> + <p> + masnmt が 2024-03-09 04:50:58 に投稿 + </p> + <h2>コード</h2> + <p> + 78 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;){echo $i%3?$i%5?$i:'Buzz':'Fi'.($i%5?'':'zzBu')."zz","\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="423">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="992">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="992">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="992"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/209/index.html b/archive/q/fizzbuzz/a/209/index.html new file mode 100644 index 0000000..87cbdc8 --- /dev/null +++ b/archive/q/fizzbuzz/a/209/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #209 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #209</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#209</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #209</h2> + <p> + k-kuwata が 2024-03-09 08:29:07 に投稿 + </p> + <h2>コード</h2> + <p> + 111 byte + </p> + <pre><code class="hljs language-php"><?while($i++<100)echo$i%3?!$$i=$i:Fizz,$i%5?$$i:Buzz,~ ;
+<?for(;$i++<100;)echo$i%3?!$$i=$i:Fizz,$i%5?$$i:Buzz,~ ;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="426">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1000">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1000"> +Parse error: syntax error, unexpected token ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1000"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/21/index.html b/archive/q/fizzbuzz/a/21/index.html new file mode 100644 index 0000000..0e93452 --- /dev/null +++ b/archive/q/fizzbuzz/a/21/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #21 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #21</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#21</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #21</h2> + <p> + tadsan が 2024-03-07 16:46:43 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=1;++$i<101;)echo[[$i,'Buzz'],['Fuzz','FizzBuzz']][!($i%3)][!($i%5)],"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="44">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="103">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="103">2 +Fuzz +4 +Buzz +Fuzz +7 +8 +Fuzz +Buzz +11 +Fuzz +13 +14 +FizzBuzz +16 +17 +Fuzz +19 +Buzz +Fuzz +22 +23 +Fuzz +Buzz +26 +Fuzz +28 +29 +FizzBuzz +31 +32 +Fuzz +34 +Buzz +Fuzz +37 +38 +Fuzz +Buzz +41 +Fuzz +43 +44 +FizzBuzz +46 +47 +Fuzz +49 +Buzz +Fuzz +52 +53 +Fuzz +Buzz +56 +Fuzz +58 +59 +FizzBuzz +61 +62 +Fuzz +64 +Buzz +Fuzz +67 +68 +Fuzz +Buzz +71 +Fuzz +73 +74 +FizzBuzz +76 +77 +Fuzz +79 +Buzz +Fuzz +82 +83 +Fuzz +Buzz +86 +Fuzz +88 +89 +FizzBuzz +91 +92 +Fuzz +94 +Buzz +Fuzz +97 +98 +Fuzz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="103"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/210/index.html b/archive/q/fizzbuzz/a/210/index.html new file mode 100644 index 0000000..2dea46a --- /dev/null +++ b/archive/q/fizzbuzz/a/210/index.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #210 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #210</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#210</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #210</h2> + <p> + k-kuwata が 2024-03-09 08:30:11 に投稿 + </p> + <h2>コード</h2> + <p> + 57 byte + </p> + <pre><code class="hljs language-php"><?while($i++<100)echo$i%3?'':Fizz,$i%5?$i%3?$i:'':Buzz,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="427">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1001">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1001"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1001"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/211/index.html b/archive/q/fizzbuzz/a/211/index.html new file mode 100644 index 0000000..7db4caf --- /dev/null +++ b/archive/q/fizzbuzz/a/211/index.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #211 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #211</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#211</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #211</h2> + <p> + k-kuwata が 2024-03-09 08:32:47 に投稿 + </p> + <h2>コード</h2> + <p> + 58 byte + </p> + <pre><code class="hljs language-php"><?while($i++<100)echo$i%3?'':Fizz,$i%5?$i%3?$i:'':Buzz,"";?></code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="428">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1002">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1002"> +Warning: Undefined variable $i in php.wasm code on line 6 +12 +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1002"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/212/index.html b/archive/q/fizzbuzz/a/212/index.html new file mode 100644 index 0000000..74edf70 --- /dev/null +++ b/archive/q/fizzbuzz/a/212/index.html @@ -0,0 +1,75 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #212 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #212</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#212</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #212</h2> + <p> + k-kuwata が 2024-03-09 08:33:06 に投稿 + </p> + <h2>コード</h2> + <p> + 59 byte + </p> + <pre><code class="hljs language-php"><?while($i++<100)echo$i%3?'':Fizz,$i%5?$i%3?$i:'':Buzz,"
+";?></code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="429">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1003">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1003"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1003"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/213/index.html b/archive/q/fizzbuzz/a/213/index.html new file mode 100644 index 0000000..9f00684 --- /dev/null +++ b/archive/q/fizzbuzz/a/213/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #213 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #213</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#213</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #213</h2> + <p> + ishikawam が 2024-03-09 08:34:46 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="430">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1004">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1004">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1004"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/214/index.html b/archive/q/fizzbuzz/a/214/index.html new file mode 100644 index 0000000..0138f58 --- /dev/null +++ b/archive/q/fizzbuzz/a/214/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #214 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #214</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#214</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #214</h2> + <p> + ishikawam が 2024-03-09 08:47:21 に投稿 + </p> + <h2>コード</h2> + <p> + 137 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){if(!($i%15)):echo'FizzBuzz';elseif(!($i%3)):echo'Fizz';elseif(!($i%5)):echo'Buzz';else:echo $i;endif;echo"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="432">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1009">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1009">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1009"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/215/index.html b/archive/q/fizzbuzz/a/215/index.html new file mode 100644 index 0000000..a0beda0 --- /dev/null +++ b/archive/q/fizzbuzz/a/215/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #215 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #215</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#215</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #215</h2> + <p> + ishikawam が 2024-03-09 08:55:45 に投稿 + </p> + <h2>コード</h2> + <p> + 102 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){if(!($i%3))echo'Fizz';if(!($i%5))echo'Buzz';if($i%3&&$i%5)echo $i;echo"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="433">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1010">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1010">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1010"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/216/index.html b/archive/q/fizzbuzz/a/216/index.html new file mode 100644 index 0000000..990821b --- /dev/null +++ b/archive/q/fizzbuzz/a/216/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #216 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #216</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#216</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #216</h2> + <p> + chatii が 2024-03-09 08:57:22 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<101;$i++){echo($i%3<1?'Fizz':'').($i%5<1?'Buzz':'')?:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="434">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1011">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1011">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1011"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/217/index.html b/archive/q/fizzbuzz/a/217/index.html new file mode 100644 index 0000000..6c99f5d --- /dev/null +++ b/archive/q/fizzbuzz/a/217/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #217 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #217</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#217</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #217</h2> + <p> + chatii が 2024-03-09 09:00:25 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php"><?php for(;@$i++<100;){echo($i%3<1?'Fizz':'').($i%5<1?'Buzz':'')?:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="435">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1012">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1012">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1012"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/218/index.html b/archive/q/fizzbuzz/a/218/index.html new file mode 100644 index 0000000..1ef1225 --- /dev/null +++ b/archive/q/fizzbuzz/a/218/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #218 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #218</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#218</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #218</h2> + <p> + ishikawam が 2024-03-09 09:10:01 に投稿 + </p> + <h2>コード</h2> + <p> + 96 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo$i%3?'':'Fizz';echo$i%5?'':'Buzz';echo $i%3&&$i%5?$i:'';echo"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="436">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1013">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1013">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1013"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/219/index.html b/archive/q/fizzbuzz/a/219/index.html new file mode 100644 index 0000000..fc51720 --- /dev/null +++ b/archive/q/fizzbuzz/a/219/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #219 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #219</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#219</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #219</h2> + <p> + chatii が 2024-03-09 09:10:17 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php"><?php for(;@$i++<100;){echo($i%3<1?'Fizz':'').($i%5<1?'Buzz':'')?:$i,'
+';}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="437">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1014">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1014">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1014"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/22/index.html b/archive/q/fizzbuzz/a/22/index.html new file mode 100644 index 0000000..209e31a --- /dev/null +++ b/archive/q/fizzbuzz/a/22/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #22 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #22</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#22</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #22</h2> + <p> + tadsan が 2024-03-07 16:48:13 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo[[$i,'Buzz'],['Fuzz','FizzBuzz']][!($i%3)][!($i%5)],"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="45">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="104">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="104">1 +2 +Fuzz +4 +Buzz +Fuzz +7 +8 +Fuzz +Buzz +11 +Fuzz +13 +14 +FizzBuzz +16 +17 +Fuzz +19 +Buzz +Fuzz +22 +23 +Fuzz +Buzz +26 +Fuzz +28 +29 +FizzBuzz +31 +32 +Fuzz +34 +Buzz +Fuzz +37 +38 +Fuzz +Buzz +41 +Fuzz +43 +44 +FizzBuzz +46 +47 +Fuzz +49 +Buzz +Fuzz +52 +53 +Fuzz +Buzz +56 +Fuzz +58 +59 +FizzBuzz +61 +62 +Fuzz +64 +Buzz +Fuzz +67 +68 +Fuzz +Buzz +71 +Fuzz +73 +74 +FizzBuzz +76 +77 +Fuzz +79 +Buzz +Fuzz +82 +83 +Fuzz +Buzz +86 +Fuzz +88 +89 +FizzBuzz +91 +92 +Fuzz +94 +Buzz +Fuzz +97 +98 +Fuzz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="104"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/220/index.html b/archive/q/fizzbuzz/a/220/index.html new file mode 100644 index 0000000..2b14c5a --- /dev/null +++ b/archive/q/fizzbuzz/a/220/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #220 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #220</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#220</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #220</h2> + <p> + ishikawam が 2024-03-09 09:14:45 に投稿 + </p> + <h2>コード</h2> + <p> + 83 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo$i%3?'':'Fizz',$i%5?'':'Buzz',$i%3&&$i%5?$i:'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="438">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1015">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1015">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1015"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/221/index.html b/archive/q/fizzbuzz/a/221/index.html new file mode 100644 index 0000000..a3ce82e --- /dev/null +++ b/archive/q/fizzbuzz/a/221/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #221 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #221</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#221</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #221</h2> + <p> + masnmt が 2024-03-09 10:06:02 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo $i%3?$i%5?$i:'Buzz':'Fi'.($i%5?'':'zzBu')."zz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="439">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1016">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1016">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1016"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/222/index.html b/archive/q/fizzbuzz/a/222/index.html new file mode 100644 index 0000000..3b90c13 --- /dev/null +++ b/archive/q/fizzbuzz/a/222/index.html @@ -0,0 +1,169 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #222 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #222</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#222</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #222</h2> + <p> + tsbkw が 2024-03-09 10:47:35 に投稿 + </p> + <h2>コード</h2> + <p> + 155 byte + </p> + <pre><code class="hljs language-php">$f="Fizz";
+$b="Buzz";
+$t=true;
+$u=!$t;
+foreach(range(1,100)as $i)echo match([$i%3==0,$i%5==0]){[$t,$t]=>$f.$b,[$t,$u]=>$f,[$u,$t]=>$b,[$u,$u]=>$i},PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="449">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1046">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1046">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1046"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/223/index.html b/archive/q/fizzbuzz/a/223/index.html new file mode 100644 index 0000000..018315b --- /dev/null +++ b/archive/q/fizzbuzz/a/223/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #223 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #223</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#223</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #223</h2> + <p> + tsbkw が 2024-03-09 10:51:30 に投稿 + </p> + <h2>コード</h2> + <p> + 150 byte + </p> + <pre><code class="hljs language-php">$f="Fizz";$b="Buzz";$t=true;$u=!$t;foreach(range(1,100)as$i)echo match([$i%3==0,$i%5==0]){[$t,$t]=>$f.$b,[$t,$u]=>$f,[$u,$t]=>$b,[$u,$u]=>$i},PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="450">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1047">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1047">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1047"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/224/index.html b/archive/q/fizzbuzz/a/224/index.html new file mode 100644 index 0000000..327d793 --- /dev/null +++ b/archive/q/fizzbuzz/a/224/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #224 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #224</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#224</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #224</h2> + <p> + tsbkw が 2024-03-09 10:53:53 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:"Buzz":($i%5?"Fizz":"FizzBuzz"),PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="451">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1048">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1048">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1048"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/225/index.html b/archive/q/fizzbuzz/a/225/index.html new file mode 100644 index 0000000..33297fc --- /dev/null +++ b/archive/q/fizzbuzz/a/225/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #225 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #225</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#225</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #225</h2> + <p> + masnmt が 2024-03-09 11:11:12 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<=99;)echo($s=($i%3?'':'Fizz').($i%5?'':'Buzz'))?$s:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="458">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1068">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1068">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1068"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/226/index.html b/archive/q/fizzbuzz/a/226/index.html new file mode 100644 index 0000000..8eb2589 --- /dev/null +++ b/archive/q/fizzbuzz/a/226/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #226 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #226</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#226</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #226</h2> + <p> + ishikawam が 2024-03-09 11:11:52 に投稿 + </p> + <h2>コード</h2> + <p> + 41 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('http://osae.me');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="459">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1069">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1069"> +Warning: PHP Request Startup: Failed to open stream: Host is unreachable in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1069"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/227/index.html b/archive/q/fizzbuzz/a/227/index.html new file mode 100644 index 0000000..8871529 --- /dev/null +++ b/archive/q/fizzbuzz/a/227/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #227 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #227</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#227</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #227</h2> + <p> + ishikawam が 2024-03-09 11:13:40 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;){echo$i%3?'':'Fizz',$i%5?'':'Buzz',$i%3&&$i%5?$i:'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="460">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1070">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1070"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1070"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/228/index.html b/archive/q/fizzbuzz/a/228/index.html new file mode 100644 index 0000000..037e304 --- /dev/null +++ b/archive/q/fizzbuzz/a/228/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #228 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #228</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#228</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #228</h2> + <p> + ishikawam が 2024-03-09 11:15:10 に投稿 + </p> + <h2>コード</h2> + <p> + 77 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;){echo$i%3?'':'Fizz',$i%5?'':'Buzz',$i%3&&$i%5?$i:'',"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="461">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1071">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1071">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1071"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/229/index.html b/archive/q/fizzbuzz/a/229/index.html new file mode 100644 index 0000000..128eaf7 --- /dev/null +++ b/archive/q/fizzbuzz/a/229/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #229 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #229</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#229</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #229</h2> + <p> + masnmt が 2024-03-09 11:15:18 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php">while($i++<=99)echo($s=($i%3?'':'Fizz').($i%5?'':'Buzz'))?$s:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="462">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1072">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1072"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1072"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/23/index.html b/archive/q/fizzbuzz/a/23/index.html new file mode 100644 index 0000000..5d0741d --- /dev/null +++ b/archive/q/fizzbuzz/a/23/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #23 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #23</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#23</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #23</h2> + <p> + tadsan が 2024-03-07 16:49:21 に投稿 + </p> + <h2>コード</h2> + <p> + 80 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo[[$i,'Buzz'],['Fizz','FizzBuzz']][!($i%3)][!($i%5)],"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="46">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="105">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="105">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="105"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/230/index.html b/archive/q/fizzbuzz/a/230/index.html new file mode 100644 index 0000000..988e9c8 --- /dev/null +++ b/archive/q/fizzbuzz/a/230/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #230 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #230</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#230</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #230</h2> + <p> + ishikawam が 2024-03-09 11:18:31 に投稿 + </p> + <h2>コード</h2> + <p> + 42 byte + </p> + <pre><code class="hljs language-php">echo file_get_contents('https://osae.me');</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="463">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1073">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1073"> +Warning: PHP Request Startup: Unable to find the wrapper "https" - did you forget to enable it when you configured PHP? in php.wasm code on line 6 + +Warning: PHP Request Startup: Failed to open stream: No such file or directory in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1073"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/231/index.html b/archive/q/fizzbuzz/a/231/index.html new file mode 100644 index 0000000..dc30020 --- /dev/null +++ b/archive/q/fizzbuzz/a/231/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #231 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #231</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#231</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #231</h2> + <p> + masnmt が 2024-03-09 11:30:40 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<=99;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="466">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1082">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1082">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1082"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/232/index.html b/archive/q/fizzbuzz/a/232/index.html new file mode 100644 index 0000000..2df7327 --- /dev/null +++ b/archive/q/fizzbuzz/a/232/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #232 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #232</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#232</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #232</h2> + <p> + notchman が 2024-03-09 11:35:00 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="468">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1087">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1087"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1087"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/233/index.html b/archive/q/fizzbuzz/a/233/index.html new file mode 100644 index 0000000..8a3e8a6 --- /dev/null +++ b/archive/q/fizzbuzz/a/233/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #233 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #233</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#233</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #233</h2> + <p> + notchman が 2024-03-09 11:36:27 に投稿 + </p> + <h2>コード</h2> + <p> + 95 byte + </p> + <pre><code class="hljs language-php">for (; $i++ < 100;) echo ($i % 3 == 0 ? "Fizz" : "") . ($i % 5 == 0 ? "Buzz" : "") ?: $i, "\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="469">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1088">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1088"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1088"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/234/index.html b/archive/q/fizzbuzz/a/234/index.html new file mode 100644 index 0000000..fcda6e8 --- /dev/null +++ b/archive/q/fizzbuzz/a/234/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #234 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #234</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#234</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #234</h2> + <p> + notchman が 2024-03-09 11:36:56 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;++$i)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="471">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1093">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1093">1 +Fizz +Buzz +7 +Fizz +11 +13 +FizzBuzz +17 +19 +Fizz +23 +Buzz +Fizz +29 +31 +Fizz +Buzz +37 +Fizz +41 +43 +FizzBuzz +47 +49 +Fizz +53 +Buzz +Fizz +59 +61 +Fizz +Buzz +67 +Fizz +71 +73 +FizzBuzz +77 +79 +Fizz +83 +Buzz +Fizz +89 +91 +Fizz +Buzz +97 +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1093"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/235/index.html b/archive/q/fizzbuzz/a/235/index.html new file mode 100644 index 0000000..f32c377 --- /dev/null +++ b/archive/q/fizzbuzz/a/235/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #235 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #235</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#235</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #235</h2> + <p> + notchman が 2024-03-09 11:39:09 に投稿 + </p> + <h2>コード</h2> + <p> + 71 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="472">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1094">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1094"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1094"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/236/index.html b/archive/q/fizzbuzz/a/236/index.html new file mode 100644 index 0000000..5d9cea6 --- /dev/null +++ b/archive/q/fizzbuzz/a/236/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #236 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #236</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#236</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #236</h2> + <p> + notchman が 2024-03-09 11:39:49 に投稿 + </p> + <h2>コード</h2> + <p> + 70 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3===0?"Fizz":"").($i%5===0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="473">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1095">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1095"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1095"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/237/index.html b/archive/q/fizzbuzz/a/237/index.html new file mode 100644 index 0000000..64467db --- /dev/null +++ b/archive/q/fizzbuzz/a/237/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #237 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #237</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#237</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #237</h2> + <p> + notchman が 2024-03-09 11:40:31 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="475">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1100">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1100">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1100"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/238/index.html b/archive/q/fizzbuzz/a/238/index.html new file mode 100644 index 0000000..accee4c --- /dev/null +++ b/archive/q/fizzbuzz/a/238/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #238 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #238</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#238</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #238</h2> + <p> + notchman が 2024-03-09 11:41:06 に投稿 + </p> + <h2>コード</h2> + <p> + 71 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="476">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1101">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1101">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1101"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/239/index.html b/archive/q/fizzbuzz/a/239/index.html new file mode 100644 index 0000000..ce5e390 --- /dev/null +++ b/archive/q/fizzbuzz/a/239/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #239 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #239</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#239</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #239</h2> + <p> + notchman が 2024-03-09 11:41:38 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3==0?"Fizz":"").($i%5==0?"Buzz":"")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="478">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1106">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1106">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1106"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/24/index.html b/archive/q/fizzbuzz/a/24/index.html new file mode 100644 index 0000000..b6b2182 --- /dev/null +++ b/archive/q/fizzbuzz/a/24/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #24 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #24</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#24</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #24</h2> + <p> + moeyashi が 2024-03-07 17:47:48 に投稿 + </p> + <h2>コード</h2> + <p> + 121 byte + </p> + <pre><code class="hljs language-php">array_map(fn ($i) => print ($i % 15 ? ($i % 3 ? ($i % 5 ? $i : "Buzz") : "Fizz") : "FizzBuzz") . PHP_EOL, range(1, 100));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="50">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="118">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="118">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="118"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/240/index.html b/archive/q/fizzbuzz/a/240/index.html new file mode 100644 index 0000000..1d1c55c --- /dev/null +++ b/archive/q/fizzbuzz/a/240/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #240 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #240</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#240</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #240</h2> + <p> + notchman が 2024-03-09 11:42:37 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo $i%3==0?"Fizz":"".$i%5==0?"Buzz":""?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="479">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1107">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1107"> +Fatal error: Unparenthesized `a ? b : c ?: d` is not supported. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1107"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/241/index.html b/archive/q/fizzbuzz/a/241/index.html new file mode 100644 index 0000000..ed2d0a5 --- /dev/null +++ b/archive/q/fizzbuzz/a/241/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #241 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #241</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#241</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #241</h2> + <p> + notchman が 2024-03-09 11:44:17 に投稿 + </p> + <h2>コード</h2> + <p> + 71 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo(!($i%3)?"Fizz":"").(!($i%5)?"Buzz":"")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="481">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1111">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1111">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1111"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/242/index.html b/archive/q/fizzbuzz/a/242/index.html new file mode 100644 index 0000000..905faff --- /dev/null +++ b/archive/q/fizzbuzz/a/242/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #242 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #242</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#242</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #242</h2> + <p> + masnmt が 2024-03-09 11:44:35 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<=99;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="482">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1112">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1112">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1112"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/243/index.html b/archive/q/fizzbuzz/a/243/index.html new file mode 100644 index 0000000..10b3d7b --- /dev/null +++ b/archive/q/fizzbuzz/a/243/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #243 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #243</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#243</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #243</h2> + <p> + notchman が 2024-03-09 11:47:24 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo ($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="485">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1119">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1119">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1119"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/244/index.html b/archive/q/fizzbuzz/a/244/index.html new file mode 100644 index 0000000..94030f2 --- /dev/null +++ b/archive/q/fizzbuzz/a/244/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #244 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #244</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#244</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #244</h2> + <p> + notchman が 2024-03-09 11:47:44 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="486">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1120">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1120">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1120"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/245/index.html b/archive/q/fizzbuzz/a/245/index.html new file mode 100644 index 0000000..9924266 --- /dev/null +++ b/archive/q/fizzbuzz/a/245/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #245 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #245</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#245</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #245</h2> + <p> + notchman が 2024-03-09 11:48:40 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for($i;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="488">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1124">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1124"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1124"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/246/index.html b/archive/q/fizzbuzz/a/246/index.html new file mode 100644 index 0000000..0b9732a --- /dev/null +++ b/archive/q/fizzbuzz/a/246/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #246 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #246</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#246</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #246</h2> + <p> + notchman が 2024-03-09 11:49:13 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="489">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1125">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1125">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1125"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/247/index.html b/archive/q/fizzbuzz/a/247/index.html new file mode 100644 index 0000000..67974c9 --- /dev/null +++ b/archive/q/fizzbuzz/a/247/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #247 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #247</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#247</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #247</h2> + <p> + notchman が 2024-03-09 11:52:03 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo $i%3?"":"Fizz".$i%5?"":"Buzz"?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="490">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1126">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1126"> +Fatal error: Unparenthesized `a ? b : c ?: d` is not supported. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1126"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/248/index.html b/archive/q/fizzbuzz/a/248/index.html new file mode 100644 index 0000000..83aa092 --- /dev/null +++ b/archive/q/fizzbuzz/a/248/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #248 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #248</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#248</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #248</h2> + <p> + notchman が 2024-03-09 11:59:16 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="494">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1136">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1136"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1136"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/249/index.html b/archive/q/fizzbuzz/a/249/index.html new file mode 100644 index 0000000..582661c --- /dev/null +++ b/archive/q/fizzbuzz/a/249/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #249 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #249</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#249</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #249</h2> + <p> + notchman が 2024-03-09 12:00:41 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="495">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1137">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1137">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1137"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/25/index.html b/archive/q/fizzbuzz/a/25/index.html new file mode 100644 index 0000000..e39b01c --- /dev/null +++ b/archive/q/fizzbuzz/a/25/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #25 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #25</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#25</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #25</h2> + <p> + moeyashi が 2024-03-07 18:02:22 に投稿 + </p> + <h2>コード</h2> + <p> + 91 byte + </p> + <pre><code class="hljs language-php">array_map(fn($i)=>print($i%15?($i%3?($i%5?$i:"Buzz"):"Fizz"):"FizzBuzz")."
+",range(1,100));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="51">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="119">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="119">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="119"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/250/index.html b/archive/q/fizzbuzz/a/250/index.html new file mode 100644 index 0000000..42a5de0 --- /dev/null +++ b/archive/q/fizzbuzz/a/250/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #250 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #250</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#250</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #250</h2> + <p> + notchman が 2024-03-09 12:00:59 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="496">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1138">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1138"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1138"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/251/index.html b/archive/q/fizzbuzz/a/251/index.html new file mode 100644 index 0000000..6d2ae94 --- /dev/null +++ b/archive/q/fizzbuzz/a/251/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #251 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #251</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#251</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #251</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-09 12:24:00 に投稿 + </p> + <h2>コード</h2> + <p> + 64 byte + </p> + <pre><code class="hljs language-php">for(@++$i<101;)@echo["Fizz"][$i%3&&1].["Buzz"][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="498">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1142">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1142"> +Parse error: syntax error, unexpected token ")", expecting ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1142"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/252/index.html b/archive/q/fizzbuzz/a/252/index.html new file mode 100644 index 0000000..627b233 --- /dev/null +++ b/archive/q/fizzbuzz/a/252/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #252 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #252</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#252</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #252</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-09 12:25:56 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for(@++$i<101;)echo@["Fizz"][$i%3&&1].@["Buzz"][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="499">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1143">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1143"> +Parse error: syntax error, unexpected token ")", expecting ";" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1143"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/253/index.html b/archive/q/fizzbuzz/a/253/index.html new file mode 100644 index 0000000..bb967b9 --- /dev/null +++ b/archive/q/fizzbuzz/a/253/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #253 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #253</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#253</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #253</h2> + <p> + yoshitaka-u1f44d-gz が 2024-03-09 12:28:09 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for(;@++$i<101;)echo@["Fizz"][$i%3&&1].@["Buzz"][$i%5&&1]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="500">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1144">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1144">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1144"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/254/index.html b/archive/q/fizzbuzz/a/254/index.html new file mode 100644 index 0000000..fdb7212 --- /dev/null +++ b/archive/q/fizzbuzz/a/254/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #254 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #254</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#254</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #254</h2> + <p> + notchman が 2024-03-09 13:18:26 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="502">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1148">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1148">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1148"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/255/index.html b/archive/q/fizzbuzz/a/255/index.html new file mode 100644 index 0000000..5ae0fce --- /dev/null +++ b/archive/q/fizzbuzz/a/255/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #255 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #255</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#255</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #255</h2> + <p> + notchman が 2024-03-09 13:21:54 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?"":"Fizz".($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="503">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1149">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1149"> +Fatal error: Unparenthesized `a ? b : c ?: d` is not supported. Use either `(a ? b : c) ?: d` or `a ? b : (c ?: d)` in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1149"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/256/index.html b/archive/q/fizzbuzz/a/256/index.html new file mode 100644 index 0000000..8f90dbb --- /dev/null +++ b/archive/q/fizzbuzz/a/256/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #256 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #256</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#256</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #256</h2> + <p> + notchman が 2024-03-09 13:22:33 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="504">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1150">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1150">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1150"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/257/index.html b/archive/q/fizzbuzz/a/257/index.html new file mode 100644 index 0000000..297bd95 --- /dev/null +++ b/archive/q/fizzbuzz/a/257/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #257 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #257</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#257</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #257</h2> + <p> + notchman が 2024-03-09 13:25:49 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="505">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1151">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1151">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1151"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/258/index.html b/archive/q/fizzbuzz/a/258/index.html new file mode 100644 index 0000000..e118112 --- /dev/null +++ b/archive/q/fizzbuzz/a/258/index.html @@ -0,0 +1,462 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #258 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #258</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#258</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #258</h2> + <p> + notchman が 2024-03-09 13:45:30 に投稿 + </p> + <h2>コード</h2> + <p> + 57 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo["Fizz"][$i%3].["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="507">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1155">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1155"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1155"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/259/index.html b/archive/q/fizzbuzz/a/259/index.html new file mode 100644 index 0000000..f26ac35 --- /dev/null +++ b/archive/q/fizzbuzz/a/259/index.html @@ -0,0 +1,460 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #259 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #259</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#259</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #259</h2> + <p> + notchman が 2024-03-09 13:49:33 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo["Fizz"][$i%3].["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="508">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1156">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1156"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1156"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/26/index.html b/archive/q/fizzbuzz/a/26/index.html new file mode 100644 index 0000000..e69152c --- /dev/null +++ b/archive/q/fizzbuzz/a/26/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #26 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #26</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#26</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #26</h2> + <p> + yamamoto-hiroya が 2024-03-07 19:29:41 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="52">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="120">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="120">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="120"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/260/index.html b/archive/q/fizzbuzz/a/260/index.html new file mode 100644 index 0000000..0d5de89 --- /dev/null +++ b/archive/q/fizzbuzz/a/260/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #260 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #260</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#260</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #260</h2> + <p> + uzulla が 2024-03-09 13:56:35 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php"><?php
+for($i=0;++$i<101;)echo$i%3?($i%5?$i:'Buzz'):'Fizz'.($i%5?'':'Buzz'),"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="509">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1157">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1157">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1157"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/261/index.html b/archive/q/fizzbuzz/a/261/index.html new file mode 100644 index 0000000..a8152e2 --- /dev/null +++ b/archive/q/fizzbuzz/a/261/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #261 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #261</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#261</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #261</h2> + <p> + uzulla が 2024-03-09 13:57:44 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php"><?php while(++$i<101)echo$i%3?($i%5?$i:'Buzz'):'Fizz'.($i%5?'':'Buzz'),"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="510">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1158">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1158"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1158"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/262/index.html b/archive/q/fizzbuzz/a/262/index.html new file mode 100644 index 0000000..bf5d777 --- /dev/null +++ b/archive/q/fizzbuzz/a/262/index.html @@ -0,0 +1,244 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #262 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #262</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#262</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #262</h2> + <p> + uzulla が 2024-03-09 14:02:54 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php"><?php for($i=0;++$i<101;)echo['FizzBuzz','',$i,'','Buzz'][$i%3*2+$i%5],"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="511">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1159">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1159"> + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +10 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +12 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +25 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +27 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +40 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +42 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +55 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +57 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +70 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +72 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +85 + +Warning: Undefined array key 5 in php.wasm code on line 6 + +87 + +Warning: Undefined array key 5 in php.wasm code on line 6 + + +Warning: Undefined array key 8 in php.wasm code on line 6 + +FizzBuzz + + +Warning: Undefined array key 6 in php.wasm code on line 6 + + + +Warning: Undefined array key 6 in php.wasm code on line 6 + +Buzz + +Buzz + +Warning: Undefined array key 7 in php.wasm code on line 6 + +Buzz +100 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1159"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/263/index.html b/archive/q/fizzbuzz/a/263/index.html new file mode 100644 index 0000000..30ed4b6 --- /dev/null +++ b/archive/q/fizzbuzz/a/263/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #263 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #263</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#263</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #263</h2> + <p> + uzulla が 2024-03-09 14:06:00 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php"><?php for($i=0;$i++<100;)echo$i%15?($i%3?$i%5?$i:'Buzz':'Fizz'):'FizzBuzz',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="512">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1160">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1160">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1160"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/264/index.html b/archive/q/fizzbuzz/a/264/index.html new file mode 100644 index 0000000..b0c463d --- /dev/null +++ b/archive/q/fizzbuzz/a/264/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #264 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #264</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#264</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #264</h2> + <p> + notchman が 2024-03-09 14:06:53 に投稿 + </p> + <h2>コード</h2> + <p> + 75 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo["Fizz",""][$i%3?1:0].["Buzz",""][$i%5?1:0]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="513">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1161">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1161">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1161"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/265/index.html b/archive/q/fizzbuzz/a/265/index.html new file mode 100644 index 0000000..9625fc9 --- /dev/null +++ b/archive/q/fizzbuzz/a/265/index.html @@ -0,0 +1,460 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #265 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #265</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#265</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #265</h2> + <p> + notchman が 2024-03-09 14:09:29 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo["Fizz"][$i%3].["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="514">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1162">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1162"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1162"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/266/index.html b/archive/q/fizzbuzz/a/266/index.html new file mode 100644 index 0000000..20cb5fc --- /dev/null +++ b/archive/q/fizzbuzz/a/266/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #266 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #266</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#266</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #266</h2> + <p> + don が 2024-03-09 14:10:28 に投稿 + </p> + <h2>コード</h2> + <p> + 110 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<=100){$a.=((++$i)%15==0?"FizzBuzz":($i%3==0?"Fizz":($i%5==0?"Buzz":$i))).PHP_EOL;}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="515">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1163">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1163">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +101 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1163"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/267/index.html b/archive/q/fizzbuzz/a/267/index.html new file mode 100644 index 0000000..f8117a9 --- /dev/null +++ b/archive/q/fizzbuzz/a/267/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #267 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #267</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#267</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #267</h2> + <p> + don が 2024-03-09 14:11:20 に投稿 + </p> + <h2>コード</h2> + <p> + 101 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$a.=((++$i)%15==0?"FizzBuzz":($i%3==0?"Fizz":($i%5==0?"Buzz":$i))).PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="516">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1164">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1164"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1164"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/268/index.html b/archive/q/fizzbuzz/a/268/index.html new file mode 100644 index 0000000..e0b5c52 --- /dev/null +++ b/archive/q/fizzbuzz/a/268/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #268 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #268</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#268</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #268</h2> + <p> + don が 2024-03-09 14:12:10 に投稿 + </p> + <h2>コード</h2> + <p> + 109 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$a.=((++$i)%15==0?"FizzBuzz":($i%3==0?"Fizz":($i%5==0?"Buzz":$i))).PHP_EOL;}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="517">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1165">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1165">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1165"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/269/index.html b/archive/q/fizzbuzz/a/269/index.html new file mode 100644 index 0000000..5572770 --- /dev/null +++ b/archive/q/fizzbuzz/a/269/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #269 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #269</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#269</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #269</h2> + <p> + don が 2024-03-09 14:19:58 に投稿 + </p> + <h2>コード</h2> + <p> + 102 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$b=((++$i)%3==0?"Fizz":"").($i%5==0?"Buzz":"");$a.=($b?:$i).PHP_EOL;}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="518">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1166">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1166">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1166"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/27/index.html b/archive/q/fizzbuzz/a/27/index.html new file mode 100644 index 0000000..4acf48d --- /dev/null +++ b/archive/q/fizzbuzz/a/27/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #27 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #27</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#27</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #27</h2> + <p> + gennei が 2024-03-07 22:18:32 に投稿 + </p> + <h2>コード</h2> + <p> + 529 byte + </p> + <pre><code class="hljs language-php">echo implode("\n", [1,2,"Fizz",4,"Buzz","Fizz",7,8,"Fizz","Buzz",11,"Fizz",13,14,"FizzBuzz",16,17,"Fizz",19,"Buzz","Fizz",22,23,"Fizz","Buzz",26,"Fizz",28,29,"FizzBuzz",31,32,"Fizz",34,"Buzz","Fizz",37,38,"Fizz","Buzz",41,"Fizz",43,44,"FizzBuzz",46,47,"Fizz",49,"Buzz","Fizz",52,53,"Fizz","Buzz",56,"Fizz",58,59,"FizzBuzz",61,62,"Fizz",64,"Buzz","Fizz",67,68,"Fizz","Buzz",71,"Fizz",73,74,"FizzBuzz",76,77,"Fizz",79,"Buzz","Fizz",82,83,"Fizz","Buzz",86,"Fizz",88,89,"FizzBuzz",91,92,"Fizz",94,"Buzz","Fizz",97,98,"Fizz","Buzz"]);</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="53">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="121">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="121">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="121"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/270/index.html b/archive/q/fizzbuzz/a/270/index.html new file mode 100644 index 0000000..79dcd31 --- /dev/null +++ b/archive/q/fizzbuzz/a/270/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #270 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #270</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#270</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #270</h2> + <p> + yukinissie が 2024-03-09 14:21:16 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="519">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1167">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1167">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1167"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/271/index.html b/archive/q/fizzbuzz/a/271/index.html new file mode 100644 index 0000000..6463027 --- /dev/null +++ b/archive/q/fizzbuzz/a/271/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #271 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #271</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#271</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #271</h2> + <p> + notchman が 2024-03-09 14:25:43 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">for(;++$i<101;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="520">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1168">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1168"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1168"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/272/index.html b/archive/q/fizzbuzz/a/272/index.html new file mode 100644 index 0000000..fd43fb4 --- /dev/null +++ b/archive/q/fizzbuzz/a/272/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #272 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #272</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#272</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #272</h2> + <p> + masnmt が 2024-03-09 14:30:58 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for(;@$i++<=99;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="521">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1169">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1169">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1169"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/273/index.html b/archive/q/fizzbuzz/a/273/index.html new file mode 100644 index 0000000..3b03eb8 --- /dev/null +++ b/archive/q/fizzbuzz/a/273/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #273 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #273</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#273</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #273</h2> + <p> + uzulla が 2024-03-09 14:33:05 に投稿 + </p> + <h2>コード</h2> + <p> + 77 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<=100;$i++)echo$i%15?($i%3?$i%5?$i:'Buzz':'Fizz'):'FizzBuzz',"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="522">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1170">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1170">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1170"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/274/index.html b/archive/q/fizzbuzz/a/274/index.html new file mode 100644 index 0000000..e53c501 --- /dev/null +++ b/archive/q/fizzbuzz/a/274/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #274 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #274</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#274</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #274</h2> + <p> + notchman が 2024-03-09 14:33:47 に投稿 + </p> + <h2>コード</h2> + <p> + 64 byte + </p> + <pre><code class="hljs language-php">$i;for(;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="525">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1177">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1177"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1177"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/275/index.html b/archive/q/fizzbuzz/a/275/index.html new file mode 100644 index 0000000..2fd2025 --- /dev/null +++ b/archive/q/fizzbuzz/a/275/index.html @@ -0,0 +1,460 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #275 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #275</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#275</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #275</h2> + <p> + notchman が 2024-03-09 14:35:20 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo["Fizz"][$i%3].["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="526">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1178">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1178"> +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +1 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +2 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +4 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +7 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +8 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +11 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +13 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +14 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +16 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +17 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +19 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +22 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +23 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +26 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +28 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +29 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +31 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +32 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +34 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +37 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +38 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +41 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +43 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +44 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +46 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +47 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +49 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +52 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +53 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +56 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +58 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +59 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +61 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +62 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +64 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +67 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +68 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +71 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +73 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +74 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +76 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +77 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +79 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +82 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +83 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +86 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +88 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +89 +FizzBuzz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 1 in php.wasm code on line 6 +91 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +92 + +Warning: Undefined array key 3 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 4 in php.wasm code on line 6 +94 + +Warning: Undefined array key 2 in php.wasm code on line 6 +Buzz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 + +Warning: Undefined array key 2 in php.wasm code on line 6 +97 + +Warning: Undefined array key 2 in php.wasm code on line 6 + +Warning: Undefined array key 3 in php.wasm code on line 6 +98 + +Warning: Undefined array key 4 in php.wasm code on line 6 +Fizz + +Warning: Undefined array key 1 in php.wasm code on line 6 +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1178"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/276/index.html b/archive/q/fizzbuzz/a/276/index.html new file mode 100644 index 0000000..d6489c3 --- /dev/null +++ b/archive/q/fizzbuzz/a/276/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #276 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #276</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#276</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #276</h2> + <p> + don が 2024-03-09 14:36:07 に投稿 + </p> + <h2>コード</h2> + <p> + 90 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i<100){$b=((++$i)%3?"":"Fizz").($i%5?"":"Buzz");$a.=($b?:$i).PHP_EOL;}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="527">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1179">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1179"> +Warning: Undefined variable $a in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1179"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/277/index.html b/archive/q/fizzbuzz/a/277/index.html new file mode 100644 index 0000000..7b46f16 --- /dev/null +++ b/archive/q/fizzbuzz/a/277/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #277 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #277</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#277</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #277</h2> + <p> + notchman が 2024-03-09 14:36:37 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?"":"Fizz").($i%5?"":"Buzz")?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="528">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1180">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1180">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1180"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/278/index.html b/archive/q/fizzbuzz/a/278/index.html new file mode 100644 index 0000000..c6c4c6d --- /dev/null +++ b/archive/q/fizzbuzz/a/278/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #278 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #278</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#278</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #278</h2> + <p> + don が 2024-03-09 14:37:03 に投稿 + </p> + <h2>コード</h2> + <p> + 96 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$b=((++$i)%3?"":"Fizz").($i%5?"":"Buzz");$a.=($b?:$i).PHP_EOL;}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="529">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1181">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1181">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1181"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/279/index.html b/archive/q/fizzbuzz/a/279/index.html new file mode 100644 index 0000000..549f947 --- /dev/null +++ b/archive/q/fizzbuzz/a/279/index.html @@ -0,0 +1,65 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #279 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #279</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#279</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #279</h2> + <p> + don が 2024-03-09 14:38:13 に投稿 + </p> + <h2>コード</h2> + <p> + 85 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$b=((++$i)%3?"":"Fizz").($i%5?"":"Buzz");$a.=($b?:$i)."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="530">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1182">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1182"> +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1182"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/28/index.html b/archive/q/fizzbuzz/a/28/index.html new file mode 100644 index 0000000..08db87b --- /dev/null +++ b/archive/q/fizzbuzz/a/28/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #28 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #28</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#28</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #28</h2> + <p> + gennei が 2024-03-07 22:20:50 に投稿 + </p> + <h2>コード</h2> + <p> + 207 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100) as $i) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="54">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="122">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="122">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="122"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/280/index.html b/archive/q/fizzbuzz/a/280/index.html new file mode 100644 index 0000000..8e2b6d7 --- /dev/null +++ b/archive/q/fizzbuzz/a/280/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #280 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #280</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#280</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #280</h2> + <p> + don が 2024-03-09 14:38:43 に投稿 + </p> + <h2>コード</h2> + <p> + 93 byte + </p> + <pre><code class="hljs language-php">$a="";$i=0;while($i<100){$b=((++$i)%3?"":"Fizz").($i%5?"":"Buzz");$a.=($b?:$i)."\n";}echo $a;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="532">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1187">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1187">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1187"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/281/index.html b/archive/q/fizzbuzz/a/281/index.html new file mode 100644 index 0000000..fecb14d --- /dev/null +++ b/archive/q/fizzbuzz/a/281/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #281 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #281</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#281</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #281</h2> + <p> + notchman が 2024-03-09 14:42:16 に投稿 + </p> + <h2>コード</h2> + <p> + 73 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%3?!($i%5)?$i:'Fizz':$i%5?'Buzz':'FizzBuzz',"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="534">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1192">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1192"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1192"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/282/index.html b/archive/q/fizzbuzz/a/282/index.html new file mode 100644 index 0000000..7922b50 --- /dev/null +++ b/archive/q/fizzbuzz/a/282/index.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #282 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #282</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#282</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #282</h2> + <p> + ticknical が 2024-03-09 14:45:20 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo$i%3?$i%5?$i:VB:F,$i%3&&$i%5?"\n":"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="539">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1205">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1205">1 +2 + +Fatal error: Uncaught Error: Undefined constant "F" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1205"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/283/index.html b/archive/q/fizzbuzz/a/283/index.html new file mode 100644 index 0000000..0b0c9d6 --- /dev/null +++ b/archive/q/fizzbuzz/a/283/index.html @@ -0,0 +1,71 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #283 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #283</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#283</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #283</h2> + <p> + shogogg が 2024-03-09 14:50:58 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php"><?$i=0;while($i++<100)echo(($i%3?Fizz:'').($i%5?Buzz:'').($i%15?'':$i)."
+");</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="542">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1212">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1212"> +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1212"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/284/index.html b/archive/q/fizzbuzz/a/284/index.html new file mode 100644 index 0000000..cb6ce24 --- /dev/null +++ b/archive/q/fizzbuzz/a/284/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #284 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #284</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#284</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #284</h2> + <p> + shogogg が 2024-03-09 14:52:12 に投稿 + </p> + <h2>コード</h2> + <p> + 70 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo((($i%3?'Fizz':'').($i%5?'Buzz':''))?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="543">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1213">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1213">FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +15 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +30 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +45 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +60 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +75 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz +FizzBuzz +Buzz +FizzBuzz +FizzBuzz +90 +FizzBuzz +FizzBuzz +Buzz +FizzBuzz +Fizz +Buzz +FizzBuzz +FizzBuzz +Buzz +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1213"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/285/index.html b/archive/q/fizzbuzz/a/285/index.html new file mode 100644 index 0000000..689efdd --- /dev/null +++ b/archive/q/fizzbuzz/a/285/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #285 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #285</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#285</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #285</h2> + <p> + shogogg が 2024-03-09 14:54:19 に投稿 + </p> + <h2>コード</h2> + <p> + 70 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo((($i%3?'':'Fizz').($i%5?'':'Buzz'))?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="544">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1214">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1214">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1214"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/286/index.html b/archive/q/fizzbuzz/a/286/index.html new file mode 100644 index 0000000..0050332 --- /dev/null +++ b/archive/q/fizzbuzz/a/286/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #286 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #286</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#286</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #286</h2> + <p> + pyama86 が 2024-03-09 14:54:33 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php">$b="Buzz";$f="Fizz";foreach(range(1,100)as$i){$a=$i%3?($i%5?$i:$b):($f.($i%5?"":$b));echo"$a\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="545">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1215">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1215">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1215"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/287/index.html b/archive/q/fizzbuzz/a/287/index.html new file mode 100644 index 0000000..fe5c506 --- /dev/null +++ b/archive/q/fizzbuzz/a/287/index.html @@ -0,0 +1,73 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #287 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #287</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#287</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #287</h2> + <p> + shogogg が 2024-03-09 14:55:33 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo((($i%3?'':Fizz).($i%5?'':Buzz))?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="546">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1216">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1216">1 +2 + +Fatal error: Uncaught Error: Undefined constant "Fizz" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1216"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/288/index.html b/archive/q/fizzbuzz/a/288/index.html new file mode 100644 index 0000000..c175d22 --- /dev/null +++ b/archive/q/fizzbuzz/a/288/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #288 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #288</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#288</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #288</h2> + <p> + shogogg が 2024-03-09 14:56:37 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo(($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="547">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1217">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1217">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1217"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/289/index.html b/archive/q/fizzbuzz/a/289/index.html new file mode 100644 index 0000000..6419cae --- /dev/null +++ b/archive/q/fizzbuzz/a/289/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #289 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #289</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#289</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #289</h2> + <p> + notchman が 2024-03-09 14:57:27 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3??"Fizz").($i%5??"Buzz")?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="548">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1218">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1218">11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 +21 +02 +13 +24 +00 +11 +22 +03 +14 +20 +01 +12 +23 +04 +10 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1218"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/29/index.html b/archive/q/fizzbuzz/a/29/index.html new file mode 100644 index 0000000..9825a21 --- /dev/null +++ b/archive/q/fizzbuzz/a/29/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #29 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #29</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#29</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #29</h2> + <p> + gennei が 2024-03-07 22:21:40 に投稿 + </p> + <h2>コード</h2> + <p> + 204 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100) as $i) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="55">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="123">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="123">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="123"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/290/index.html b/archive/q/fizzbuzz/a/290/index.html new file mode 100644 index 0000000..64fbd80 --- /dev/null +++ b/archive/q/fizzbuzz/a/290/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #290 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #290</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#290</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #290</h2> + <p> + notchman が 2024-03-09 14:58:12 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo(@["Fizz"][$i%3].@["Buzz"][$i%5])?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="549">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1219">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1219">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1219"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/291/index.html b/archive/q/fizzbuzz/a/291/index.html new file mode 100644 index 0000000..87fbee3 --- /dev/null +++ b/archive/q/fizzbuzz/a/291/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #291 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #291</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#291</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #291</h2> + <p> + shogogg が 2024-03-09 14:58:17 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="550">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1220">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1220">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1220"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/292/index.html b/archive/q/fizzbuzz/a/292/index.html new file mode 100644 index 0000000..ccd914e --- /dev/null +++ b/archive/q/fizzbuzz/a/292/index.html @@ -0,0 +1,68 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #292 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #292</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#292</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #292</h2> + <p> + shogogg が 2024-03-09 14:58:31 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">$i=0;while($i++<100)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+"</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="551">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1221">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1221"> +Parse error: syntax error, unexpected end of file, expecting "," or ";" in php.wasm code on line 7 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1221"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/293/index.html b/archive/q/fizzbuzz/a/293/index.html new file mode 100644 index 0000000..5f41c5e --- /dev/null +++ b/archive/q/fizzbuzz/a/293/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #293 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #293</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#293</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #293</h2> + <p> + notchman が 2024-03-09 14:58:51 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo@["Fizz"][$i%3].@["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="552">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1222">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1222">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1222"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/294/index.html b/archive/q/fizzbuzz/a/294/index.html new file mode 100644 index 0000000..6a1c3a3 --- /dev/null +++ b/archive/q/fizzbuzz/a/294/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #294 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #294</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#294</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #294</h2> + <p> + shogogg が 2024-03-09 14:58:54 に投稿 + </p> + <h2>コード</h2> + <p> + 61 byte + </p> + <pre><code class="hljs language-php">while($i++<100)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="553">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1223">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1223"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1223"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/295/index.html b/archive/q/fizzbuzz/a/295/index.html new file mode 100644 index 0000000..0fe6a61 --- /dev/null +++ b/archive/q/fizzbuzz/a/295/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #295 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #295</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#295</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #295</h2> + <p> + pyama86 が 2024-03-09 15:00:53 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php">$b="Buzz";$f="Fizz";foreach(range(1,100)as$i){echo($i%3?($i%5?$i:$b):($f.($i%5?"":$b))).PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="554">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1224">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1224">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1224"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/296/index.html b/archive/q/fizzbuzz/a/296/index.html new file mode 100644 index 0000000..292e7df --- /dev/null +++ b/archive/q/fizzbuzz/a/296/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #296 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #296</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#296</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #296</h2> + <p> + pyama86 が 2024-03-09 15:03:08 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php">$b="Buzz";$f="Fizz";foreach(range(1,100)as$i){echo($i%3?($i%5?$i:$b):($f.($i%5?"":$b)))."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="555">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1225">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1225">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1225"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/297/index.html b/archive/q/fizzbuzz/a/297/index.html new file mode 100644 index 0000000..32b694f --- /dev/null +++ b/archive/q/fizzbuzz/a/297/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #297 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #297</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#297</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #297</h2> + <p> + pyama86 が 2024-03-09 15:05:57 に投稿 + </p> + <h2>コード</h2> + <p> + 84 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo($i%3?($i%5?$i:'Buzz'):('Fizz'.($i%5?'':'Buzz')))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="556">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1226">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1226">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1226"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/298/index.html b/archive/q/fizzbuzz/a/298/index.html new file mode 100644 index 0000000..089a051 --- /dev/null +++ b/archive/q/fizzbuzz/a/298/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #298 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #298</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#298</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #298</h2> + <p> + notchman が 2024-03-09 15:10:47 に投稿 + </p> + <h2>コード</h2> + <p> + 60 byte + </p> + <pre><code class="hljs language-php">for(;@$i++<100;)echo@["Fizz"][$i%3].@["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="557">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1227">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1227">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1227"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/299/index.html b/archive/q/fizzbuzz/a/299/index.html new file mode 100644 index 0000000..54ccd23 --- /dev/null +++ b/archive/q/fizzbuzz/a/299/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #299 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #299</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#299</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #299</h2> + <p> + keitamax が 2024-03-09 15:11:09 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:0:"Fizz",$i%5?'
+':"Buzz
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="558">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1228">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1228">1 +2 +Fizz +4 +0Buzz +Fizz +7 +8 +Fizz +0Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +0Buzz +Fizz +22 +23 +Fizz +0Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +0Buzz +Fizz +37 +38 +Fizz +0Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +0Buzz +Fizz +52 +53 +Fizz +0Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +0Buzz +Fizz +67 +68 +Fizz +0Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +0Buzz +Fizz +82 +83 +Fizz +0Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +0Buzz +Fizz +97 +98 +Fizz +0Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1228"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/3/index.html b/archive/q/fizzbuzz/a/3/index.html new file mode 100644 index 0000000..6477fd2 --- /dev/null +++ b/archive/q/fizzbuzz/a/3/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #3 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #3</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#3</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #3</h2> + <p> + blue-goheimochi が 2024-03-06 08:15:27 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="5">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="9">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="9">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="9"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/30/index.html b/archive/q/fizzbuzz/a/30/index.html new file mode 100644 index 0000000..84f6676 --- /dev/null +++ b/archive/q/fizzbuzz/a/30/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #30 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #30</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#30</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #30</h2> + <p> + gennei が 2024-03-07 22:25:31 に投稿 + </p> + <h2>コード</h2> + <p> + 149 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echomatch([$i%3===0,$i%5===0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="56">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="124">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="124"> +Parse error: syntax error, unexpected token "=>" in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="124"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/300/index.html b/archive/q/fizzbuzz/a/300/index.html new file mode 100644 index 0000000..750a1c1 --- /dev/null +++ b/archive/q/fizzbuzz/a/300/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #300 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #300</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#300</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #300</h2> + <p> + keitamax が 2024-03-09 15:16:04 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?($i%5?$i:''):'Fizz',$i%5?'
+':"Buzz
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="560">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1233">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1233">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1233"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/301/index.html b/archive/q/fizzbuzz/a/301/index.html new file mode 100644 index 0000000..4624fe3 --- /dev/null +++ b/archive/q/fizzbuzz/a/301/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #301 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #301</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#301</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #301</h2> + <p> + keitamax が 2024-03-09 15:18:03 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':'Fizz',$i%5?'
+':"Buzz
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="562">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1238">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1238">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1238"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/302/index.html b/archive/q/fizzbuzz/a/302/index.html new file mode 100644 index 0000000..313747f --- /dev/null +++ b/archive/q/fizzbuzz/a/302/index.html @@ -0,0 +1,69 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #302 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #302</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#302</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #302</h2> + <p> + keitamax が 2024-03-09 15:18:27 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:'':'Fizz',$i%5?'
+':"Buzz
+"</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="563">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1239">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1239"> +Parse error: syntax error, unexpected end of file, expecting "," or ";" in php.wasm code on line 8 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1239"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/303/index.html b/archive/q/fizzbuzz/a/303/index.html new file mode 100644 index 0000000..590a49b --- /dev/null +++ b/archive/q/fizzbuzz/a/303/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #303 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #303</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#303</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #303</h2> + <p> + Nagase が 2024-03-09 15:29:28 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="566">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1247">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1247">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1247"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/304/index.html b/archive/q/fizzbuzz/a/304/index.html new file mode 100644 index 0000000..eb85a9c --- /dev/null +++ b/archive/q/fizzbuzz/a/304/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #304 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #304</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#304</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #304</h2> + <p> + notchman が 2024-03-09 15:47:35 に投稿 + </p> + <h2>コード</h2> + <p> + 60 byte + </p> + <pre><code class="hljs language-php">for(;@$i++<100;)echo@["Fizz"][$i%3].@["Buzz"][$i%5]?:$i,"
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="568">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1251">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1251">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1251"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/305/index.html b/archive/q/fizzbuzz/a/305/index.html new file mode 100644 index 0000000..00548e3 --- /dev/null +++ b/archive/q/fizzbuzz/a/305/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #305 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #305</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#305</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #305</h2> + <p> + shunsock が 2024-03-09 16:12:55 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for($a=0;++$a<101;)echo$a%3?($a%5?$a:'Buzz'):'Fizz'.($a%5?'':'Buzz'),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="572">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1264">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1264">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1264"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/306/index.html b/archive/q/fizzbuzz/a/306/index.html new file mode 100644 index 0000000..ffe4363 --- /dev/null +++ b/archive/q/fizzbuzz/a/306/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #306 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #306</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#306</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #306</h2> + <p> + shunsock が 2024-03-09 16:13:41 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($a=1;++$a<101;)echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="573">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1265">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1265">2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1265"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/307/index.html b/archive/q/fizzbuzz/a/307/index.html new file mode 100644 index 0000000..20322ec --- /dev/null +++ b/archive/q/fizzbuzz/a/307/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #307 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #307</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#307</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #307</h2> + <p> + shunsock が 2024-03-09 16:14:45 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($a=0;++$a<101;)echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="574">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1266">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1266">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1266"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/308/index.html b/archive/q/fizzbuzz/a/308/index.html new file mode 100644 index 0000000..ba73437 --- /dev/null +++ b/archive/q/fizzbuzz/a/308/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #308 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #308</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#308</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #308</h2> + <p> + shunsock が 2024-03-09 16:19:25 に投稿 + </p> + <h2>コード</h2> + <p> + 64 byte + </p> + <pre><code class="hljs language-php">for($a;++$a<101;)echo($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="575">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1267">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1267"> +Warning: Undefined variable $a in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1267"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/309/index.html b/archive/q/fizzbuzz/a/309/index.html new file mode 100644 index 0000000..5f5e099 --- /dev/null +++ b/archive/q/fizzbuzz/a/309/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #309 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #309</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#309</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #309</h2> + <p> + kunikiya が 2024-03-09 16:26:19 に投稿 + </p> + <h2>コード</h2> + <p> + 120 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){ob_start();echo[0=>'Fizz'][$i%3]??'',[0=>'Buzz'][$i%5]??'';if(''==ob_get_flush())echo$i;echo"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="576">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1268">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1268">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1268"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/31/index.html b/archive/q/fizzbuzz/a/31/index.html new file mode 100644 index 0000000..7bd1ab7 --- /dev/null +++ b/archive/q/fizzbuzz/a/31/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #31 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #31</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#31</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #31</h2> + <p> + gennei が 2024-03-07 22:26:15 に投稿 + </p> + <h2>コード</h2> + <p> + 150 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo match([$i%3===0,$i%5===0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="57">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="125">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="125">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="125"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/310/index.html b/archive/q/fizzbuzz/a/310/index.html new file mode 100644 index 0000000..7acb211 --- /dev/null +++ b/archive/q/fizzbuzz/a/310/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #310 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #310</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#310</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #310</h2> + <p> + kunikiya が 2024-03-09 16:29:24 に投稿 + </p> + <h2>コード</h2> + <p> + 116 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){ob_start();if(0==$i%3)echo'Fizz';if(0==$i%5)echo'Buzz';if(''==ob_get_flush())echo$i;echo"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="577">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1269">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1269">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1269"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/311/index.html b/archive/q/fizzbuzz/a/311/index.html new file mode 100644 index 0000000..4f64fd1 --- /dev/null +++ b/archive/q/fizzbuzz/a/311/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #311 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #311</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#311</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #311</h2> + <p> + kunikiya が 2024-03-09 16:42:11 に投稿 + </p> + <h2>コード</h2> + <p> + 87 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo$i%15==0?'FizzBuzz':($i%3==0?'Fizz':($i%5==0?'Buzz':$i)),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="578">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1270">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1270">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1270"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/312/index.html b/archive/q/fizzbuzz/a/312/index.html new file mode 100644 index 0000000..8b08f92 --- /dev/null +++ b/archive/q/fizzbuzz/a/312/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #312 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #312</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#312</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #312</h2> + <p> + kunikiya が 2024-03-09 16:43:31 に投稿 + </p> + <h2>コード</h2> + <p> + 83 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo$i%15==0?'FizzBuzz':$i%3==0?'Fizz':$i%5==0?'Buzz':$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="579">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1271">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1271"> +Fatal error: Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e` or `a ? b : (c ? d : e)` in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1271"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/313/index.html b/archive/q/fizzbuzz/a/313/index.html new file mode 100644 index 0000000..920e609 --- /dev/null +++ b/archive/q/fizzbuzz/a/313/index.html @@ -0,0 +1,196 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #313 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #313</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#313</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #313</h2> + <p> + zonepotage が 2024-03-09 16:48:49 に投稿 + </p> + <h2>コード</h2> + <p> + 587 byte + </p> + <pre><code class="hljs language-php"><?php
+ $f = [0, 0, 'Fizz'];
+ $b = [0, 0, 0, 0, 'Buzz'];
+
+ $i = 100;
+ $j = $i - 1;
+ c();
+
+
+ function c() {
+ global $i, $j, $k, $f, $b;
+ p();
+ print "\n";
+ array_push($f, $f[0]);
+ array_push($b, $b[0]);
+ array_shift($f);
+ array_shift($b);
+ --$j && c();
+ p();
+ print "\n";
+ exit;
+ }
+
+ function p() {
+ global $i, $j, $k, $f, $b;
+ $k = $i - $j;
+ $f[0] || $b[0] || print $k;
+ $f[0] || $b[0] ;
+ $f[0] && print $f[0];
+ $b[0] && print $b[0];
+ return;
+ }</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="580">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1272">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1272">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1272"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/314/index.html b/archive/q/fizzbuzz/a/314/index.html new file mode 100644 index 0000000..c1baff8 --- /dev/null +++ b/archive/q/fizzbuzz/a/314/index.html @@ -0,0 +1,192 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #314 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #314</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#314</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #314</h2> + <p> + zonepotage が 2024-03-09 16:50:17 に投稿 + </p> + <h2>コード</h2> + <p> + 584 byte + </p> + <pre><code class="hljs language-php">$f = [0, 0, 'Fizz'];
+ $b = [0, 0, 0, 0, 'Buzz'];
+
+ $i = 100;
+ $j = $i - 1;
+ c();
+ function c() {
+ global $i, $j, $k, $f, $b;
+ p();
+ print "\n";
+ array_push($f, $f[0]);
+ array_push($b, $b[0]);
+ array_shift($f);
+ array_shift($b);
+ --$j && c();
+ p();
+ print "\n";
+ exit;
+ }
+ function p() {
+ global $i, $j, $k, $f, $b;
+ $k = $i - $j;
+ $f[0] || $b[0] || print $k;
+ $f[0] || $b[0] ;
+ $f[0] && print $f[0];
+ $b[0] && print $b[0];
+ return;
+ }</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="581">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="1273">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="1273">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="1273"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/32/index.html b/archive/q/fizzbuzz/a/32/index.html new file mode 100644 index 0000000..f2b0b1a --- /dev/null +++ b/archive/q/fizzbuzz/a/32/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #32 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #32</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#32</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #32</h2> + <p> + gennei が 2024-03-07 22:32:01 に投稿 + </p> + <h2>コード</h2> + <p> + 145 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){echo match([$i%3===0,$i%5===0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="58">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="126">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="126">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="126"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/33/index.html b/archive/q/fizzbuzz/a/33/index.html new file mode 100644 index 0000000..c0d1f6d --- /dev/null +++ b/archive/q/fizzbuzz/a/33/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #33 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #33</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#33</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #33</h2> + <p> + gennei が 2024-03-07 22:33:59 に投稿 + </p> + <h2>コード</h2> + <p> + 118 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++) {$i%15===0?print "FizzBuzz\n":($i%3===0?print "Fizz\n":($i%5===0?print "Buzz\n":print "$i\n"));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="59">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="127">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="127">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="127"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/34/index.html b/archive/q/fizzbuzz/a/34/index.html new file mode 100644 index 0000000..1f86b19 --- /dev/null +++ b/archive/q/fizzbuzz/a/34/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #34 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #34</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#34</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #34</h2> + <p> + gennei が 2024-03-07 22:34:58 に投稿 + </p> + <h2>コード</h2> + <p> + 113 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){$i%15===0?print"FizzBuzz\n":($i%3===0?print"Fizz\n":($i%5===0?print"Buzz\n":print"$i\n"));}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="60">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="128">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="128">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="128"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/35/index.html b/archive/q/fizzbuzz/a/35/index.html new file mode 100644 index 0000000..324db93 --- /dev/null +++ b/archive/q/fizzbuzz/a/35/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #35 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #35</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#35</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #35</h2> + <p> + yamamoto-hiroya が 2024-03-07 22:35:19 に投稿 + </p> + <h2>コード</h2> + <p> + 148 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<=100;$i++){echo match([$i%3==0,$i%5==0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="61">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="129">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="129">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="129"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/36/index.html b/archive/q/fizzbuzz/a/36/index.html new file mode 100644 index 0000000..7074630 --- /dev/null +++ b/archive/q/fizzbuzz/a/36/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #36 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #36</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#36</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #36</h2> + <p> + rinchoku が 2024-03-07 22:46:41 に投稿 + </p> + <h2>コード</h2> + <p> + 112 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo ($i % 3 === 0 ? "Fizz" : "") . ($i % 5 === 0 ? "Buzz" : "") . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="62">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="130">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="130"> + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +Fizz + + +FizzBuzz + + +Fizz + +Buzz +Fizz + + +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="130"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/37/index.html b/archive/q/fizzbuzz/a/37/index.html new file mode 100644 index 0000000..4fa5b0c --- /dev/null +++ b/archive/q/fizzbuzz/a/37/index.html @@ -0,0 +1,115 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #37 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #37</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#37</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #37</h2> + <p> + rinchoku が 2024-03-07 22:51:09 に投稿 + </p> + <h2>コード</h2> + <p> + 143 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ $j = ($i % 3 === 0 ? "Fizz" : null) . ($i % 5 === 0 ? "Buzz" : null);
+ echo empty($j) ? $i : $j . PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="63">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="131">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="131">12Fizz +4Buzz +Fizz +78Fizz +Buzz +11Fizz +1314FizzBuzz +1617Fizz +19Buzz +Fizz +2223Fizz +Buzz +26Fizz +2829FizzBuzz +3132Fizz +34Buzz +Fizz +3738Fizz +Buzz +41Fizz +4344FizzBuzz +4647Fizz +49Buzz +Fizz +5253Fizz +Buzz +56Fizz +5859FizzBuzz +6162Fizz +64Buzz +Fizz +6768Fizz +Buzz +71Fizz +7374FizzBuzz +7677Fizz +79Buzz +Fizz +8283Fizz +Buzz +86Fizz +8889FizzBuzz +9192Fizz +94Buzz +Fizz +9798Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="131"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/38/index.html b/archive/q/fizzbuzz/a/38/index.html new file mode 100644 index 0000000..9be19f1 --- /dev/null +++ b/archive/q/fizzbuzz/a/38/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #38 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #38</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#38</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #38</h2> + <p> + rinchoku が 2024-03-07 22:52:51 に投稿 + </p> + <h2>コード</h2> + <p> + 142 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ $j = ($i % 3 === 0 ? "Fizz" : null) . ($i % 5 === 0 ? "Buzz" : null);
+ echo empty($j) ? $i : $j, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="64">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="132">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="132">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="132"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/39/index.html b/archive/q/fizzbuzz/a/39/index.html new file mode 100644 index 0000000..81e0339 --- /dev/null +++ b/archive/q/fizzbuzz/a/39/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #39 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #39</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#39</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #39</h2> + <p> + rinchoku が 2024-03-07 22:54:25 に投稿 + </p> + <h2>コード</h2> + <p> + 102 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++){$j=($i%3===0?"Fizz":null).($i%5===0?"Buzz":null);echo empty($j)?$i:$j,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="65">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="133">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="133">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="133"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/4/index.html b/archive/q/fizzbuzz/a/4/index.html new file mode 100644 index 0000000..b51cfd2 --- /dev/null +++ b/archive/q/fizzbuzz/a/4/index.html @@ -0,0 +1,264 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #4 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #4</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#4</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #4</h2> + <p> + blue-goheimochi が 2024-03-06 08:22:51 に投稿 + </p> + <h2>コード</h2> + <p> + 2106 byte + </p> + <pre><code class="hljs language-php">echo 1 . PHP_EOL;
+echo 2 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 4 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 7 . PHP_EOL;
+echo 8 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 11 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 13 . PHP_EOL;
+echo 14 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 16 . PHP_EOL;
+echo 17 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 19 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 22 . PHP_EOL;
+echo 23 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 26 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 28 . PHP_EOL;
+echo 29 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 31 . PHP_EOL;
+echo 32 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 34 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 37 . PHP_EOL;
+echo 38 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 41 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 43 . PHP_EOL;
+echo 44 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 46 . PHP_EOL;
+echo 47 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 49 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 52 . PHP_EOL;
+echo 53 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 56 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 58 . PHP_EOL;
+echo 59 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 61 . PHP_EOL;
+echo 62 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 64 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 67 . PHP_EOL;
+echo 68 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 71 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 73 . PHP_EOL;
+echo 74 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 76 . PHP_EOL;
+echo 77 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 79 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 82 . PHP_EOL;
+echo 83 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 86 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 88 . PHP_EOL;
+echo 89 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 91 . PHP_EOL;
+echo 92 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 94 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 97 . PHP_EOL;
+echo 98 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="6">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="10">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="10">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="10"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/40/index.html b/archive/q/fizzbuzz/a/40/index.html new file mode 100644 index 0000000..1e666e8 --- /dev/null +++ b/archive/q/fizzbuzz/a/40/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #40 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #40</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#40</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #40</h2> + <p> + yamamoto-hiroya が 2024-03-07 22:54:26 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo$i%3?$i%5?$i:"":"Fizz",$i%5?"":"Buzz","\n" ;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="66">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="134">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="134"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="134"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/41/index.html b/archive/q/fizzbuzz/a/41/index.html new file mode 100644 index 0000000..f41bd14 --- /dev/null +++ b/archive/q/fizzbuzz/a/41/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #41 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #41</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#41</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #41</h2> + <p> + rinchoku が 2024-03-07 22:56:13 に投稿 + </p> + <h2>コード</h2> + <p> + 96 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){$j=($i%3==0?"Fizz":null).($i%5==0?"Buzz":null);echo $j==""?$i:$j,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="67">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="135">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="135">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="135"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/42/index.html b/archive/q/fizzbuzz/a/42/index.html new file mode 100644 index 0000000..dc3ff6d --- /dev/null +++ b/archive/q/fizzbuzz/a/42/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #42 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #42</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#42</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #42</h2> + <p> + yamamoto-hiroya が 2024-03-07 22:58:12 に投稿 + </p> + <h2>コード</h2> + <p> + 67 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:"":"Fizz",$i%5?"":"Buzz","\n" ;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="68">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="136">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="136">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="136"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/43/index.html b/archive/q/fizzbuzz/a/43/index.html new file mode 100644 index 0000000..de0a0ec --- /dev/null +++ b/archive/q/fizzbuzz/a/43/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #43 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #43</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#43</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #43</h2> + <p> + rinchoku が 2024-03-07 22:59:16 に投稿 + </p> + <h2>コード</h2> + <p> + 98 byte + </p> + <pre><code class="hljs language-php">$i=1;while($i<100){$i++;$j=($i%3==0?"Fizz":null).($i%5==0?"Buzz":null);echo $j==""?$i:$j,PHP_EOL;}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="69">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="137">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="137">2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="137"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/44/index.html b/archive/q/fizzbuzz/a/44/index.html new file mode 100644 index 0000000..5eb0a80 --- /dev/null +++ b/archive/q/fizzbuzz/a/44/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #44 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #44</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#44</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #44</h2> + <p> + yamamoto-hiroya が 2024-03-07 23:00:07 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo$i%3?$i%5?$i:"":"Fizz",$i%5?"":"Buzz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="70">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="138">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="138">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="138"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/45/index.html b/archive/q/fizzbuzz/a/45/index.html new file mode 100644 index 0000000..c91a296 --- /dev/null +++ b/archive/q/fizzbuzz/a/45/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #45 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #45</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#45</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #45</h2> + <p> + rinchoku が 2024-03-07 23:01:39 に投稿 + </p> + <h2>コード</h2> + <p> + 93 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){$j=($i%3==0?"Fizz":null).($i%5==0?"Buzz":null);echo $j==""?$i:$j,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="71">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="139">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="139">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="139"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/46/index.html b/archive/q/fizzbuzz/a/46/index.html new file mode 100644 index 0000000..c812b1b --- /dev/null +++ b/archive/q/fizzbuzz/a/46/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #46 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #46</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#46</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #46</h2> + <p> + takaram が 2024-03-08 00:01:48 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++){echo $i%15?($i%3?($i%5?$i:"Buzz"):"Fizz"):"FizzBuzz","\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="98">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="244">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="244">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="244"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/47/index.html b/archive/q/fizzbuzz/a/47/index.html new file mode 100644 index 0000000..51e3c67 --- /dev/null +++ b/archive/q/fizzbuzz/a/47/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #47 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #47</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#47</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #47</h2> + <p> + takaram が 2024-03-08 00:06:04 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo$i%15?$i%3?$i%5?$i:"Buzz":"Fizz":"FizzBuzz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="103">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="261">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="261">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="261"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/48/index.html b/archive/q/fizzbuzz/a/48/index.html new file mode 100644 index 0000000..a865089 --- /dev/null +++ b/archive/q/fizzbuzz/a/48/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #48 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #48</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#48</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #48</h2> + <p> + takaram が 2024-03-08 00:08:54 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo$i%15?$i%3?$i%5?$i:"Buzz":"Fizz":"FizzBuzz","\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="104">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="262">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="262">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="262"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/49/index.html b/archive/q/fizzbuzz/a/49/index.html new file mode 100644 index 0000000..197a200 --- /dev/null +++ b/archive/q/fizzbuzz/a/49/index.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #49 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #49</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#49</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #49</h2> + <p> + kunikiya が 2024-03-08 01:21:01 に投稿 + </p> + <h2>コード</h2> + <p> + 161 byte + </p> + <pre><code class="hljs language-php">foreach (range(1, 100) as $i){
+ if(0 === $i % 3) echo "Fizz";
+ if(0 === $i % 5) echo "Buzz";
+ if(0 !== ($i % 3) * ($i % 5)) echo $i;
+ echo PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="113">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="293">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="293">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="293"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/5/index.html b/archive/q/fizzbuzz/a/5/index.html new file mode 100644 index 0000000..6f02a34 --- /dev/null +++ b/archive/q/fizzbuzz/a/5/index.html @@ -0,0 +1,263 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #5 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #5</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#5</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #5</h2> + <p> + blue-goheimochi が 2024-03-06 08:27:46 に投稿 + </p> + <h2>コード</h2> + <p> + 2108 byte + </p> + <pre><code class="hljs language-php">echo 1 . PHP_EOL;
+echo 2 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 4 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 7 . PHP_EOL;
+echo 8 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 11 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 13 . PHP_EOL;
+echo 14 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 16 . PHP_EOL;
+echo 17 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 19 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 22 . PHP_EOL;
+echo 23 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 26 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 28 . PHP_EOL;
+echo 29 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 31 . PHP_EOL;
+echo 32 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 34 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 37 . PHP_EOL;
+echo 38 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 41 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 43 . PHP_EOL;
+echo 44 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 46 . PHP_EOL;
+echo 47 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 49 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 52 . PHP_EOL;
+echo 53 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 56 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 58 . PHP_EOL;
+echo 59 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 61 . PHP_EOL;
+echo 62 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 64 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 67 . PHP_EOL;
+echo 68 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 71 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 73 . PHP_EOL;
+echo 74 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 76 . PHP_EOL;
+echo 77 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 79 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 82 . PHP_EOL;
+echo 83 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 86 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 88 . PHP_EOL;
+echo 89 . PHP_EOL;
+echo 'FizzBuzz' . PHP_EOL;
+echo 91 . PHP_EOL;
+echo 92 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 94 . PHP_EOL;
+echo 'Buzz' . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+echo 97 . PHP_EOL;
+echo 98 . PHP_EOL;
+echo 'Fizz' . PHP_EOL;
+# echo 'Buzz' . PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="9">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="17">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="17">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="17"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/50/index.html b/archive/q/fizzbuzz/a/50/index.html new file mode 100644 index 0000000..4dc5271 --- /dev/null +++ b/archive/q/fizzbuzz/a/50/index.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #50 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #50</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#50</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #50</h2> + <p> + kunikiya が 2024-03-08 01:24:41 に投稿 + </p> + <h2>コード</h2> + <p> + 154 byte + </p> + <pre><code class="hljs language-php">foreach (range(1, 100) as $i){
+ if(0 == $i % 3) echo "Fizz";
+ if(0 == $i % 5) echo "Buzz";
+ if(0 != $i % 3 * $i % 5) echo $i;
+ echo PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="114">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="294">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="294">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="294"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/51/index.html b/archive/q/fizzbuzz/a/51/index.html new file mode 100644 index 0000000..c2bea8e --- /dev/null +++ b/archive/q/fizzbuzz/a/51/index.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #51 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #51</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#51</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #51</h2> + <p> + kunikiya が 2024-03-08 01:27:19 に投稿 + </p> + <h2>コード</h2> + <p> + 112 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){
+if(0==$i%3)echo"Fizz";
+if(0==$i%5)echo"Buzz";
+if(0!=$i%3*$i%5)echo$i;
+echo PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="115">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="295">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="295">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="295"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/52/index.html b/archive/q/fizzbuzz/a/52/index.html new file mode 100644 index 0000000..b06039b --- /dev/null +++ b/archive/q/fizzbuzz/a/52/index.html @@ -0,0 +1,170 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #52 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #52</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#52</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #52</h2> + <p> + kunikiya が 2024-03-08 01:29:15 に投稿 + </p> + <h2>コード</h2> + <p> + 114 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){
+if(0==$x=$i%3)echo"Fizz";
+if(0==$y=$i%5)echo"Buzz";
+if(0!=$x*$y)echo$i;
+echo PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="116">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="296">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="296">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="296"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/53/index.html b/archive/q/fizzbuzz/a/53/index.html new file mode 100644 index 0000000..0937315 --- /dev/null +++ b/archive/q/fizzbuzz/a/53/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #53 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #53</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#53</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #53</h2> + <p> + kunikiya が 2024-03-08 01:31:24 に投稿 + </p> + <h2>コード</h2> + <p> + 110 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){if(0==$x=$i%3)echo"Fizz";if(0==$y=$i%5)echo"Buzz";if(0!=$i%3*$i%5)echo$i;echo "\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="117">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="297">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="297">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="297"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/54/index.html b/archive/q/fizzbuzz/a/54/index.html new file mode 100644 index 0000000..e86251e --- /dev/null +++ b/archive/q/fizzbuzz/a/54/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #54 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #54</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#54</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #54</h2> + <p> + hibiki-cube が 2024-03-08 01:38:28 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="118">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="298">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="298"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="298"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/55/index.html b/archive/q/fizzbuzz/a/55/index.html new file mode 100644 index 0000000..1fd61ca --- /dev/null +++ b/archive/q/fizzbuzz/a/55/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #55 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #55</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#55</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #55</h2> + <p> + kunikiya が 2024-03-08 01:39:05 に投稿 + </p> + <h2>コード</h2> + <p> + 140 byte + </p> + <pre><code class="hljs language-php">$f='Fizz';$b='Buzz';$a=[0=>$f.$b,3=>$f,5=>$b,6=>$f,9=>$f,10=>$b,12=>$f];foreach(range(1,100)as$i){echo(isset($a[$i%15])?$a[$i%15]:$i)."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="119">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="299">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="299">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="299"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/56/index.html b/archive/q/fizzbuzz/a/56/index.html new file mode 100644 index 0000000..64ab74c --- /dev/null +++ b/archive/q/fizzbuzz/a/56/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #56 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #56</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#56</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #56</h2> + <p> + hibiki-cube が 2024-03-08 01:39:16 に投稿 + </p> + <h2>コード</h2> + <p> + 77 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz")).PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="120">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="300">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="300"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="300"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/57/index.html b/archive/q/fizzbuzz/a/57/index.html new file mode 100644 index 0000000..0435f9f --- /dev/null +++ b/archive/q/fizzbuzz/a/57/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #57 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #57</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#57</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #57</h2> + <p> + hibiki-cube が 2024-03-08 01:39:41 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for($i;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="121">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="301">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="301"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="301"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/58/index.html b/archive/q/fizzbuzz/a/58/index.html new file mode 100644 index 0000000..1fe9e14 --- /dev/null +++ b/archive/q/fizzbuzz/a/58/index.html @@ -0,0 +1,72 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #58 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #58</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#58</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #58</h2> + <p> + hibiki-cube が 2024-03-08 01:40:05 に投稿 + </p> + <h2>コード</h2> + <p> + 76 byte + </p> + <pre><code class="hljs language-php">for(;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz")).PH_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="122">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="302">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="302"> +Warning: Undefined variable $i in php.wasm code on line 6 + +Fatal error: Uncaught Error: Undefined constant "PH_EOL" in php.wasm code:6 +Stack trace: +#0 {main} + thrown in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="302"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/59/index.html b/archive/q/fizzbuzz/a/59/index.html new file mode 100644 index 0000000..ed92ed5 --- /dev/null +++ b/archive/q/fizzbuzz/a/59/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #59 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #59</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#59</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #59</h2> + <p> + hibiki-cube が 2024-03-08 01:40:37 に投稿 + </p> + <h2>コード</h2> + <p> + 81 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz")).PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="123">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="303">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="303">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="303"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/6/index.html b/archive/q/fizzbuzz/a/6/index.html new file mode 100644 index 0000000..bcf6a86 --- /dev/null +++ b/archive/q/fizzbuzz/a/6/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #6 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #6</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#6</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #6</h2> + <p> + muno92 が 2024-03-06 08:42:11 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="10">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="18">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="18">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="18"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/60/index.html b/archive/q/fizzbuzz/a/60/index.html new file mode 100644 index 0000000..e788315 --- /dev/null +++ b/archive/q/fizzbuzz/a/60/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #60 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #60</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#60</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #60</h2> + <p> + hibiki-cube が 2024-03-08 01:41:00 に投稿 + </p> + <h2>コード</h2> + <p> + 78 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3&&$i%5?$i:($i%3?'':"Fizz").($i%5?'':"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="124">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="304">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="304">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="304"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/61/index.html b/archive/q/fizzbuzz/a/61/index.html new file mode 100644 index 0000000..61b4c16 --- /dev/null +++ b/archive/q/fizzbuzz/a/61/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #61 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #61</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#61</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #61</h2> + <p> + kunikiya が 2024-03-08 01:41:19 に投稿 + </p> + <h2>コード</h2> + <p> + 124 byte + </p> + <pre><code class="hljs language-php">$f='Fizz';$b='Buzz';$a=[0=>$f.$b,3=>$f,5=>$b,6=>$f,9=>$f,10=>$b,12=>$f];foreach(range(1,100)as$i){echo($a[$i%15]??$i)."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="125">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="305">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="305">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="305"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/62/index.html b/archive/q/fizzbuzz/a/62/index.html new file mode 100644 index 0000000..854f914 --- /dev/null +++ b/archive/q/fizzbuzz/a/62/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #62 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #62</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#62</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #62</h2> + <p> + kunikiya が 2024-03-08 01:43:34 に投稿 + </p> + <h2>コード</h2> + <p> + 118 byte + </p> + <pre><code class="hljs language-php">$f='Fizz';$b='Buzz';foreach(range(1,100)as$i){echo([0=>$f.$b,3=>$f,5=>$b,6=>$f,9=>$f,10=>$b,12=>$f][$i%15]??$i)."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="126">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="306">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="306">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="306"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/63/index.html b/archive/q/fizzbuzz/a/63/index.html new file mode 100644 index 0000000..78ad649 --- /dev/null +++ b/archive/q/fizzbuzz/a/63/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #63 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #63</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#63</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #63</h2> + <p> + kunikiya が 2024-03-08 01:49:47 に投稿 + </p> + <h2>コード</h2> + <p> + 147 byte + </p> + <pre><code class="hljs language-php">$f='Fizz';$b='Buzz';foreach(range(1,100)as$i){
+ if(0==$i%15)echo'FizzBuzz'."\n";
+ else echo([0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i)."\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="128">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="310">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="310">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="310"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/64/index.html b/archive/q/fizzbuzz/a/64/index.html new file mode 100644 index 0000000..26c6520 --- /dev/null +++ b/archive/q/fizzbuzz/a/64/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #64 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #64</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#64</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #64</h2> + <p> + kunikiya が 2024-03-08 01:52:34 に投稿 + </p> + <h2>コード</h2> + <p> + 105 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i){echo([0=>'FizzBuzz'][$i%15]??([0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i))."\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="129">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="311">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="311">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="311"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/65/index.html b/archive/q/fizzbuzz/a/65/index.html new file mode 100644 index 0000000..0bfecbd --- /dev/null +++ b/archive/q/fizzbuzz/a/65/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #65 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #65</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#65</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #65</h2> + <p> + kunikiya が 2024-03-08 01:54:18 に投稿 + </p> + <h2>コード</h2> + <p> + 100 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo([0=>'FizzBuzz'][$i%15]??([0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="130">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="312">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="312">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="312"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/66/index.html b/archive/q/fizzbuzz/a/66/index.html new file mode 100644 index 0000000..1ce3628 --- /dev/null +++ b/archive/q/fizzbuzz/a/66/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #66 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #66</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#66</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #66</h2> + <p> + kunikiya が 2024-03-08 01:55:43 に投稿 + </p> + <h2>コード</h2> + <p> + 99 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo([0=>'FizzBuzz'][$i%15]??([0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="131">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="313">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="313">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="313"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/67/index.html b/archive/q/fizzbuzz/a/67/index.html new file mode 100644 index 0000000..d51e52a --- /dev/null +++ b/archive/q/fizzbuzz/a/67/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #67 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #67</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#67</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #67</h2> + <p> + kunikiya が 2024-03-08 02:04:10 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo([0=>'FizzBuzz'][$i%15]??[0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i)."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="135">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="323">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="323">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="323"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/68/index.html b/archive/q/fizzbuzz/a/68/index.html new file mode 100644 index 0000000..e4216ed --- /dev/null +++ b/archive/q/fizzbuzz/a/68/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #68 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #68</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#68</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #68</h2> + <p> + kunikiya が 2024-03-08 02:13:26 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo([0=>'FizzBuzz'][$i%15]??[0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i)."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="137">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="327">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="327">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="327"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/69/index.html b/archive/q/fizzbuzz/a/69/index.html new file mode 100644 index 0000000..1025261 --- /dev/null +++ b/archive/q/fizzbuzz/a/69/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #69 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #69</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#69</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #69</h2> + <p> + kunikiya が 2024-03-08 02:17:46 に投稿 + </p> + <h2>コード</h2> + <p> + 97 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo[0=>'FizzBuzz'][$i%15]??([0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i),"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="138">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="328">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="328">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="328"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/7/index.html b/archive/q/fizzbuzz/a/7/index.html new file mode 100644 index 0000000..1d72767 --- /dev/null +++ b/archive/q/fizzbuzz/a/7/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #7 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #7</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#7</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #7</h2> + <p> + muno92 が 2024-03-06 08:44:28 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="13">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="25">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="25">1 +2 +Fizz +4 +buzz +Fizz +7 +8 +Fizz +buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +buzz +Fizz +22 +23 +Fizz +buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +buzz +Fizz +37 +38 +Fizz +buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +buzz +Fizz +52 +53 +Fizz +buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +buzz +Fizz +67 +68 +Fizz +buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +buzz +Fizz +82 +83 +Fizz +buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +buzz +Fizz +97 +98 +Fizz +buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="25"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/70/index.html b/archive/q/fizzbuzz/a/70/index.html new file mode 100644 index 0000000..7cf6ff9 --- /dev/null +++ b/archive/q/fizzbuzz/a/70/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #70 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #70</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#70</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #70</h2> + <p> + kunikiya が 2024-03-08 02:18:40 に投稿 + </p> + <h2>コード</h2> + <p> + 95 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<101;$i++)echo[0=>'FizzBuzz'][$i%15]??[0=>'Fizz'][$i%3]??[0=>'Buzz'][$i%5]??$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="139">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="329">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="329">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="329"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/71/index.html b/archive/q/fizzbuzz/a/71/index.html new file mode 100644 index 0000000..b20f88d --- /dev/null +++ b/archive/q/fizzbuzz/a/71/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #71 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #71</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#71</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #71</h2> + <p> + basi が 2024-03-08 02:28:38 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="142">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="338">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="338">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="338"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/72/index.html b/archive/q/fizzbuzz/a/72/index.html new file mode 100644 index 0000000..c33847a --- /dev/null +++ b/archive/q/fizzbuzz/a/72/index.html @@ -0,0 +1,169 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #72 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #72</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#72</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #72</h2> + <p> + hibiki-cube が 2024-03-08 02:37:47 に投稿 + </p> + <h2>コード</h2> + <p> + 75 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;$o=($i%3?'':"Fizz").($i%5?'':"Buzz"))echo($o?$i:$o)."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="146">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="351">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="351"> +Warning: Undefined variable $o in php.wasm code on line 6 + +Warning: Undefined variable $o in php.wasm code on line 6 + + + +4 + +6 +7 + + +10 +11 + +13 + + +16 + + +19 + +21 +22 + + +25 +26 + +28 + + +31 + + +34 + +36 +37 + + +40 +41 + +43 + + +46 + + +49 + +51 +52 + + +55 +56 + +58 + + +61 + + +64 + +66 +67 + + +70 +71 + +73 + + +76 + + +79 + +81 +82 + + +85 +86 + +88 + + +91 + + +94 + +96 +97 + + +100 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="351"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/73/index.html b/archive/q/fizzbuzz/a/73/index.html new file mode 100644 index 0000000..89a650c --- /dev/null +++ b/archive/q/fizzbuzz/a/73/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #73 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #73</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#73</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #73</h2> + <p> + basi が 2024-03-08 02:48:07 に投稿 + </p> + <h2>コード</h2> + <p> + 65 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,'
+';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="152">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="367">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="367">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="367"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/74/index.html b/archive/q/fizzbuzz/a/74/index.html new file mode 100644 index 0000000..161e2ed --- /dev/null +++ b/archive/q/fizzbuzz/a/74/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #74 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #74</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#74</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #74</h2> + <p> + basi が 2024-03-08 02:49:49 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for(;@$i++<100;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,'
+';</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="154">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="371">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="371">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="371"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/75/index.html b/archive/q/fizzbuzz/a/75/index.html new file mode 100644 index 0000000..0c3062c --- /dev/null +++ b/archive/q/fizzbuzz/a/75/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #75 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #75</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#75</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #75</h2> + <p> + tadsan が 2024-03-08 03:21:52 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">foreach(range(1,100)as$i)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="156">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="375">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="375">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="375"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/76/index.html b/archive/q/fizzbuzz/a/76/index.html new file mode 100644 index 0000000..715b74f --- /dev/null +++ b/archive/q/fizzbuzz/a/76/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #76 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #76</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#76</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #76</h2> + <p> + tadsan が 2024-03-08 03:26:35 に投稿 + </p> + <h2>コード</h2> + <p> + 69 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="157">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="376">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="376">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="376"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/77/index.html b/archive/q/fizzbuzz/a/77/index.html new file mode 100644 index 0000000..34abe01 --- /dev/null +++ b/archive/q/fizzbuzz/a/77/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #77 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #77</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#77</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #77</h2> + <p> + tadsan が 2024-03-08 03:29:13 に投稿 + </p> + <h2>コード</h2> + <p> + 66 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<101;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="158">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="377">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="377">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="377"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/78/index.html b/archive/q/fizzbuzz/a/78/index.html new file mode 100644 index 0000000..f635eaa --- /dev/null +++ b/archive/q/fizzbuzz/a/78/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #78 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #78</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#78</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #78</h2> + <p> + tadsan が 2024-03-08 03:32:00 に投稿 + </p> + <h2>コード</h2> + <p> + 62 byte + </p> + <pre><code class="hljs language-php">for(;++$i<101;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="159">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="378">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="378"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="378"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/79/index.html b/archive/q/fizzbuzz/a/79/index.html new file mode 100644 index 0000000..d3820d4 --- /dev/null +++ b/archive/q/fizzbuzz/a/79/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #79 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #79</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#79</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #79</h2> + <p> + tadsan が 2024-03-08 03:32:29 に投稿 + </p> + <h2>コード</h2> + <p> + 63 byte + </p> + <pre><code class="hljs language-php">for(;@++$i<101;)echo($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i,"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="160">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="379">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="379">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="379"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/8/index.html b/archive/q/fizzbuzz/a/8/index.html new file mode 100644 index 0000000..bc0438e --- /dev/null +++ b/archive/q/fizzbuzz/a/8/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #8 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #8</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#8</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #8</h2> + <p> + muno92 が 2024-03-06 12:31:34 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "test",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="14">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="26">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="26">1 +2 +Fizz +4 +test +Fizz +7 +8 +Fizz +test +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +test +Fizz +22 +23 +Fizz +test +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +test +Fizz +37 +38 +Fizz +test +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +test +Fizz +52 +53 +Fizz +test +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +test +Fizz +67 +68 +Fizz +test +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +test +Fizz +82 +83 +Fizz +test +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +test +Fizz +97 +98 +Fizz +test + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="26"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/80/index.html b/archive/q/fizzbuzz/a/80/index.html new file mode 100644 index 0000000..ba7ab74 --- /dev/null +++ b/archive/q/fizzbuzz/a/80/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #80 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #80</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#80</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #80</h2> + <p> + hibiki-cube が 2024-03-08 08:36:35 に投稿 + </p> + <h2>コード</h2> + <p> + 74 byte + </p> + <pre><code class="hljs language-php">for($i=0;$i++<100;)echo($i%3&&$i%5?$i:($i%3?:"Fizz").($i%5?:"Buzz"))."\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="186">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="462">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="462">1 +2 +Fizz3 +4 +2Buzz +Fizz1 +7 +8 +Fizz4 +1Buzz +11 +Fizz2 +13 +14 +FizzBuzz +16 +17 +Fizz3 +19 +2Buzz +Fizz1 +22 +23 +Fizz4 +1Buzz +26 +Fizz2 +28 +29 +FizzBuzz +31 +32 +Fizz3 +34 +2Buzz +Fizz1 +37 +38 +Fizz4 +1Buzz +41 +Fizz2 +43 +44 +FizzBuzz +46 +47 +Fizz3 +49 +2Buzz +Fizz1 +52 +53 +Fizz4 +1Buzz +56 +Fizz2 +58 +59 +FizzBuzz +61 +62 +Fizz3 +64 +2Buzz +Fizz1 +67 +68 +Fizz4 +1Buzz +71 +Fizz2 +73 +74 +FizzBuzz +76 +77 +Fizz3 +79 +2Buzz +Fizz1 +82 +83 +Fizz4 +1Buzz +86 +Fizz2 +88 +89 +FizzBuzz +91 +92 +Fizz3 +94 +2Buzz +Fizz1 +97 +98 +Fizz4 +1Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="462"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/81/index.html b/archive/q/fizzbuzz/a/81/index.html new file mode 100644 index 0000000..e70f5ea --- /dev/null +++ b/archive/q/fizzbuzz/a/81/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #81 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #81</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#81</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #81</h2> + <p> + chatii が 2024-03-08 09:11:07 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php"><?php for($i=0;$i<101;$i++){echo match([$i%3==0,$i%5==0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="187">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="463">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="463">FizzBuzz +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="463"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/82/index.html b/archive/q/fizzbuzz/a/82/index.html new file mode 100644 index 0000000..b570e1f --- /dev/null +++ b/archive/q/fizzbuzz/a/82/index.html @@ -0,0 +1,172 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #82 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #82</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#82</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #82</h2> + <p> + chatii が 2024-03-08 09:12:07 に投稿 + </p> + <h2>コード</h2> + <p> + 209 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="188">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="464">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="464">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="464"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/83/index.html b/archive/q/fizzbuzz/a/83/index.html new file mode 100644 index 0000000..d67336f --- /dev/null +++ b/archive/q/fizzbuzz/a/83/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #83 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #83</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#83</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #83</h2> + <p> + chatii が 2024-03-08 09:13:22 に投稿 + </p> + <h2>コード</h2> + <p> + 144 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<101;$i++){echo match([$i%3==0,$i%5==0]){[true,true]=>"FizzBuzz",[true,false]=>"Fizz",[false,true]=>"Buzz",[false,false]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="189">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="465">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="465">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="465"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/84/index.html b/archive/q/fizzbuzz/a/84/index.html new file mode 100644 index 0000000..d43c1ec --- /dev/null +++ b/archive/q/fizzbuzz/a/84/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #84 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #84</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#84</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #84</h2> + <p> + chatii が 2024-03-08 09:15:00 に投稿 + </p> + <h2>コード</h2> + <p> + 137 byte + </p> + <pre><code class="hljs language-php"><?php const t=true,f=false;for($i=1;$i<101;$i++){echo match([$i%3==0,$i%5==0]){[t,t]=>"FizzBuzz",[t,f]=>"Fizz",[f,t]=>"Buzz",[f,f]=>$i,},"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="190">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="466">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="466">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="466"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/85/index.html b/archive/q/fizzbuzz/a/85/index.html new file mode 100644 index 0000000..ff8029b --- /dev/null +++ b/archive/q/fizzbuzz/a/85/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #85 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #85</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#85</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #85</h2> + <p> + chatii が 2024-03-08 09:27:00 に投稿 + </p> + <h2>コード</h2> + <p> + 84 byte + </p> + <pre><code class="hljs language-php"><?php for($i=1;$i<101;$i++){echo ($s=($i%3==0?'Fizz':'').($i%5==0?'Buzz':''))?$s:$i,"\n";}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="191">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="467">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="467">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="467"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/86/index.html b/archive/q/fizzbuzz/a/86/index.html new file mode 100644 index 0000000..2b17718 --- /dev/null +++ b/archive/q/fizzbuzz/a/86/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #86 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #86</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#86</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #86</h2> + <p> + ticknical が 2024-03-08 09:36:02 に投稿 + </p> + <h2>コード</h2> + <p> + 103 byte + </p> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo ($i % 3 ? "" : "Fizz") . ($i % 5 ? "" : "Buzz") ?: $i, "\n";
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="192">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="468">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="468">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="468"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/87/index.html b/archive/q/fizzbuzz/a/87/index.html new file mode 100644 index 0000000..291b632 --- /dev/null +++ b/archive/q/fizzbuzz/a/87/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #87 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #87</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#87</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #87</h2> + <p> + ticknical が 2024-03-08 09:37:22 に投稿 + </p> + <h2>コード</h2> + <p> + 75 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i<=100;$i++)echo$i%15?$i%3?$i%5?$i:'Buzz':'Fizz':'FizzBuzz',"\n";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="193">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="469">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="469">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="469"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/88/index.html b/archive/q/fizzbuzz/a/88/index.html new file mode 100644 index 0000000..ff3f17a --- /dev/null +++ b/archive/q/fizzbuzz/a/88/index.html @@ -0,0 +1,67 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #88 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #88</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#88</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #88</h2> + <p> + chatii が 2024-03-08 10:24:12 に投稿 + </p> + <h2>コード</h2> + <p> + 91 byte + </p> + <pre><code class="hljs language-php"><?=implode("\n",array_map(fn($i)=>($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i,range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="198">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="485">実行時エラー</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="485"> +Parse error: syntax error, unexpected token "=", expecting end of file in php.wasm code on line 6 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="485"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/89/index.html b/archive/q/fizzbuzz/a/89/index.html new file mode 100644 index 0000000..a7e1419 --- /dev/null +++ b/archive/q/fizzbuzz/a/89/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #89 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #89</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#89</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #89</h2> + <p> + chatii が 2024-03-08 10:25:46 に投稿 + </p> + <h2>コード</h2> + <p> + 95 byte + </p> + <pre><code class="hljs language-php"><?php echo implode("\n",array_map(fn($i)=>($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i,range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="199">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="486">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="486">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="486"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/9/index.html b/archive/q/fizzbuzz/a/9/index.html new file mode 100644 index 0000000..3ce4362 --- /dev/null +++ b/archive/q/fizzbuzz/a/9/index.html @@ -0,0 +1,164 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #9 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #9</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#9</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #9</h2> + <p> + tadsan が 2024-03-06 20:21:12 に投稿 + </p> + <h2>コード</h2> + <p> + 89 byte + </p> + <pre><code class="hljs language-php">echo implode("\n",array_map(fn($i)=>($i%3?'':'fizz').($i%5?'':'buzz')?:$i,range(1,100)));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="15">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="27">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="27">1 +2 +fizz +4 +buzz +fizz +7 +8 +fizz +buzz +11 +fizz +13 +14 +fizzbuzz +16 +17 +fizz +19 +buzz +fizz +22 +23 +fizz +buzz +26 +fizz +28 +29 +fizzbuzz +31 +32 +fizz +34 +buzz +fizz +37 +38 +fizz +buzz +41 +fizz +43 +44 +fizzbuzz +46 +47 +fizz +49 +buzz +fizz +52 +53 +fizz +buzz +56 +fizz +58 +59 +fizzbuzz +61 +62 +fizz +64 +buzz +fizz +67 +68 +fizz +buzz +71 +fizz +73 +74 +fizzbuzz +76 +77 +fizz +79 +buzz +fizz +82 +83 +fizz +buzz +86 +fizz +88 +89 +fizzbuzz +91 +92 +fizz +94 +buzz +fizz +97 +98 +fizz +buzz +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="27"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/90/index.html b/archive/q/fizzbuzz/a/90/index.html new file mode 100644 index 0000000..331942b --- /dev/null +++ b/archive/q/fizzbuzz/a/90/index.html @@ -0,0 +1,174 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #90 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #90</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#90</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #90</h2> + <p> + shunsock が 2024-03-08 10:52:04 に投稿 + </p> + <h2>コード</h2> + <p> + 188 byte + </p> + <pre><code class="hljs language-php">define('t',true);
+define('f',false);
+foreach(range(1,100)as$a){
+ echo match ([$a%3==0,$a%5==0]){
+ [t,t]=>"FizzBuzz",
+ [t,f]=>"Fizz",
+ [f,t]=>"Buzz",
+ [f,f]=>$a,
+ },PHP_EOL;
+}</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="200">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="487">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="487">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="487"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/91/index.html b/archive/q/fizzbuzz/a/91/index.html new file mode 100644 index 0000000..2bd09be --- /dev/null +++ b/archive/q/fizzbuzz/a/91/index.html @@ -0,0 +1,167 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #91 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #91</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#91</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #91</h2> + <p> + shunsock が 2024-03-08 10:58:14 に投稿 + </p> + <h2>コード</h2> + <p> + 159 byte + </p> + <pre><code class="hljs language-php">define('t',true);
+define('f',false);
+foreach(range(1,100)as$a)echo match ([$a%3==0,$a%5==0]){[t,t]=>"FizzBuzz",[t,f]=>"Fizz",[f,t]=>"Buzz",[f,f]=>$a,},PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="201">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="488">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="488">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="488"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/92/index.html b/archive/q/fizzbuzz/a/92/index.html new file mode 100644 index 0000000..d7205d9 --- /dev/null +++ b/archive/q/fizzbuzz/a/92/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #92 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #92</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#92</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #92</h2> + <p> + oogFranz が 2024-03-08 11:00:22 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php"><?for($i=0;++$i<=100;)echo(($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="202">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="489">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="489">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="489"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/93/index.html b/archive/q/fizzbuzz/a/93/index.html new file mode 100644 index 0000000..2d3c09c --- /dev/null +++ b/archive/q/fizzbuzz/a/93/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #93 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #93</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#93</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #93</h2> + <p> + oogFranz が 2024-03-08 11:01:55 に投稿 + </p> + <h2>コード</h2> + <p> + 64 byte + </p> + <pre><code class="hljs language-php"><?for(;++$i<=100;)echo(($i%3?'':'Fizz').($i%5?'':'Buzz')?:$i)."
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="203">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="490">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="490"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="490"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/94/index.html b/archive/q/fizzbuzz/a/94/index.html new file mode 100644 index 0000000..7d88e8c --- /dev/null +++ b/archive/q/fizzbuzz/a/94/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #94 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #94</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#94</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #94</h2> + <p> + shunsock が 2024-03-08 11:02:03 に投稿 + </p> + <h2>コード</h2> + <p> + 78 byte + </p> + <pre><code class="hljs language-php">foreach (range(1,100)as$a) echo ($a%3?'':'Fizz').($a%5?'':'Buzz')?:$a,PHP_EOL;</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="204">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="491">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="491">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="491"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/95/index.html b/archive/q/fizzbuzz/a/95/index.html new file mode 100644 index 0000000..2c983ec --- /dev/null +++ b/archive/q/fizzbuzz/a/95/index.html @@ -0,0 +1,165 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #95 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #95</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#95</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #95</h2> + <p> + chatii が 2024-03-08 11:17:32 に投稿 + </p> + <h2>コード</h2> + <p> + 94 byte + </p> + <pre><code class="hljs language-php"><? array_map(function($i){echo(($i%3==0?'Fizz':'').($i%5==0?'Buzz':'')?:$i)."\n";},range(1,100));</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="206">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="496">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="496">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="496"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/96/index.html b/archive/q/fizzbuzz/a/96/index.html new file mode 100644 index 0000000..421419b --- /dev/null +++ b/archive/q/fizzbuzz/a/96/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #96 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #96</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#96</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #96</h2> + <p> + m3m0r7 が 2024-03-08 11:18:03 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php">while(++$i<=100)echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="207">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="497">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="497"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="497"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/97/index.html b/archive/q/fizzbuzz/a/97/index.html new file mode 100644 index 0000000..476ce1b --- /dev/null +++ b/archive/q/fizzbuzz/a/97/index.html @@ -0,0 +1,168 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #97 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #97</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#97</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #97</h2> + <p> + m3m0r7 が 2024-03-08 11:18:43 に投稿 + </p> + <h2>コード</h2> + <p> + 68 byte + </p> + <pre><code class="hljs language-php"><?while(++$i<=100)echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="208">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="498">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="498"> +Warning: Undefined variable $i in php.wasm code on line 6 +1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="498"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/98/index.html b/archive/q/fizzbuzz/a/98/index.html new file mode 100644 index 0000000..d8b5e07 --- /dev/null +++ b/archive/q/fizzbuzz/a/98/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #98 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #98</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#98</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #98</h2> + <p> + m3m0r7 が 2024-03-08 11:19:15 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">for($i=1;$i++<=100;)echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="209">失敗</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="499">不正解</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="499">2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz +101 + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="499"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/99/index.html b/archive/q/fizzbuzz/a/99/index.html new file mode 100644 index 0000000..5536946 --- /dev/null +++ b/archive/q/fizzbuzz/a/99/index.html @@ -0,0 +1,166 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答 #99 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../../assets/favicon.svg"> + <script type="module" src="../../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答 #99</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item"><a href="../index.html">回答一覧</a></li> + <li class="breadcrumb-item active">#99</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答 #99</h2> + <p> + m3m0r7 が 2024-03-08 11:19:57 に投稿 + </p> + <h2>コード</h2> + <p> + 72 byte + </p> + <pre><code class="hljs language-php">for($i=0;++$i<=100;)echo$i%15?$i%5?$i%3?$i:"Fizz":"Buzz":"FizzBuzz","
+";</code></pre> + <h2>実行結果</h2> + <div class="js-phper-token"> + </div> + <div class="mt-3"> + ステータス: <span class="js-aggregated-execution-status" data-answer-id="210">OK</span> + </div> + <div class="mt-3"> + <h3>テストケース 1</h3> + <div> + ステータス: <span class="js-testcase-execution-status" data-testcase-execution-id="500">OK</span> + </div> + <h4>標準出力</h4> + <pre><code class="js-testcase-execution-stdout hljs language-plaintext" data-testcase-execution-id="500">1 +2 +Fizz +4 +Buzz +Fizz +7 +8 +Fizz +Buzz +11 +Fizz +13 +14 +FizzBuzz +16 +17 +Fizz +19 +Buzz +Fizz +22 +23 +Fizz +Buzz +26 +Fizz +28 +29 +FizzBuzz +31 +32 +Fizz +34 +Buzz +Fizz +37 +38 +Fizz +Buzz +41 +Fizz +43 +44 +FizzBuzz +46 +47 +Fizz +49 +Buzz +Fizz +52 +53 +Fizz +Buzz +56 +Fizz +58 +59 +FizzBuzz +61 +62 +Fizz +64 +Buzz +Fizz +67 +68 +Fizz +Buzz +71 +Fizz +73 +74 +FizzBuzz +76 +77 +Fizz +79 +Buzz +Fizz +82 +83 +Fizz +Buzz +86 +Fizz +88 +89 +FizzBuzz +91 +92 +Fizz +94 +Buzz +Fizz +97 +98 +Fizz +Buzz + +</code></pre> + <h4>標準エラー出力</h4> + <pre><code class="js-testcase-execution-stderr hljs language-plaintext" data-testcase-execution-id="500"> +</code></pre> + </div> + <script type="module" src="../../../../assets/loading.js"></script> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/a/index.html b/archive/q/fizzbuzz/a/index.html new file mode 100644 index 0000000..f316d4b --- /dev/null +++ b/archive/q/fizzbuzz/a/index.html @@ -0,0 +1,3807 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 - 回答一覧 | Albatross.PHP</title> + <link rel="stylesheet" href="../../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../../assets/favicon.svg"> + <script type="module" src="../../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1 - 回答一覧</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../../index.html">問題一覧</a></li> + <li class="breadcrumb-item"><a href="../index.html">FizzBuzz</a></li> + <li class="breadcrumb-item active">回答一覧</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h2>回答一覧</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + <th>ステータス</th> + </tr> + </thead> + <tbody> + <tr> + <td> + 1 + </td> + <td> + <a href="298/index.html">#298</a> + </td> + <td>notchman</td> + <td>60 byte</td> + <td>2024-03-09 15:10:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 2 + </td> + <td> + <a href="304/index.html">#304</a> + </td> + <td>notchman</td> + <td>60 byte</td> + <td>2024-03-09 15:47:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 3 + </td> + <td> + <a href="13/index.html">#13</a> + </td> + <td>nsfisis (staff)</td> + <td>62 byte</td> + <td>2024-03-07 15:02:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 4 + </td> + <td> + <a href="74/index.html">#74</a> + </td> + <td>basi</td> + <td>62 byte</td> + <td>2024-03-08 02:49:49</td> + <td>OK</td> + </tr> + <tr> + <td> + 5 + </td> + <td> + <a href="272/index.html">#272</a> + </td> + <td>masnmt</td> + <td>62 byte</td> + <td>2024-03-09 14:30:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 6 + </td> + <td> + <a href="79/index.html">#79</a> + </td> + <td>tadsan (staff)</td> + <td>63 byte</td> + <td>2024-03-08 03:32:29</td> + <td>OK</td> + </tr> + <tr> + <td> + 7 + </td> + <td> + <a href="204/index.html">#204</a> + </td> + <td>keitamax</td> + <td>63 byte</td> + <td>2024-03-09 02:08:43</td> + <td>OK</td> + </tr> + <tr> + <td> + 8 + </td> + <td> + <a href="293/index.html">#293</a> + </td> + <td>notchman</td> + <td>63 byte</td> + <td>2024-03-09 14:58:51</td> + <td>OK</td> + </tr> + <tr> + <td> + 9 + </td> + <td> + <a href="301/index.html">#301</a> + </td> + <td>keitamax</td> + <td>63 byte</td> + <td>2024-03-09 15:18:03</td> + <td>OK</td> + </tr> + <tr> + <td> + 10 + </td> + <td> + <a href="73/index.html">#73</a> + </td> + <td>basi</td> + <td>65 byte</td> + <td>2024-03-08 02:48:07</td> + <td>OK</td> + </tr> + <tr> + <td> + 11 + </td> + <td> + <a href="119/index.html">#119</a> + </td> + <td>hanhan1978</td> + <td>65 byte</td> + <td>2024-03-08 15:10:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 12 + </td> + <td> + <a href="169/index.html">#169</a> + </td> + <td>hirahira</td> + <td>65 byte</td> + <td>2024-03-08 18:59:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 13 + </td> + <td> + <a href="203/index.html">#203</a> + </td> + <td>keitamax</td> + <td>65 byte</td> + <td>2024-03-09 02:05:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 14 + </td> + <td> + <a href="242/index.html">#242</a> + </td> + <td>masnmt</td> + <td>65 byte</td> + <td>2024-03-09 11:44:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 15 + </td> + <td> + <a href="244/index.html">#244</a> + </td> + <td>notchman</td> + <td>65 byte</td> + <td>2024-03-09 11:47:44</td> + <td>OK</td> + </tr> + <tr> + <td> + 16 + </td> + <td> + <a href="246/index.html">#246</a> + </td> + <td>notchman</td> + <td>65 byte</td> + <td>2024-03-09 11:49:13</td> + <td>OK</td> + </tr> + <tr> + <td> + 17 + </td> + <td> + <a href="256/index.html">#256</a> + </td> + <td>notchman</td> + <td>65 byte</td> + <td>2024-03-09 13:22:33</td> + <td>OK</td> + </tr> + <tr> + <td> + 18 + </td> + <td> + <a href="257/index.html">#257</a> + </td> + <td>notchman</td> + <td>65 byte</td> + <td>2024-03-09 13:25:49</td> + <td>OK</td> + </tr> + <tr> + <td> + 19 + </td> + <td> + <a href="290/index.html">#290</a> + </td> + <td>notchman</td> + <td>65 byte</td> + <td>2024-03-09 14:58:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 20 + </td> + <td> + <a href="300/index.html">#300</a> + </td> + <td>keitamax</td> + <td>65 byte</td> + <td>2024-03-09 15:16:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 21 + </td> + <td> + <a href="44/index.html">#44</a> + </td> + <td>yamamoto-hiroya</td> + <td>66 byte</td> + <td>2024-03-07 23:00:07</td> + <td>OK</td> + </tr> + <tr> + <td> + 22 + </td> + <td> + <a href="71/index.html">#71</a> + </td> + <td>basi</td> + <td>66 byte</td> + <td>2024-03-08 02:28:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 23 + </td> + <td> + <a href="77/index.html">#77</a> + </td> + <td>tadsan (staff)</td> + <td>66 byte</td> + <td>2024-03-08 03:29:13</td> + <td>OK</td> + </tr> + <tr> + <td> + 24 + </td> + <td> + <a href="197/index.html">#197</a> + </td> + <td>keitamax</td> + <td>66 byte</td> + <td>2024-03-09 01:42:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 25 + </td> + <td> + <a href="231/index.html">#231</a> + </td> + <td>masnmt</td> + <td>66 byte</td> + <td>2024-03-09 11:30:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 26 + </td> + <td> + <a href="243/index.html">#243</a> + </td> + <td>notchman</td> + <td>66 byte</td> + <td>2024-03-09 11:47:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 27 + </td> + <td> + <a href="249/index.html">#249</a> + </td> + <td>notchman</td> + <td>66 byte</td> + <td>2024-03-09 12:00:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 28 + </td> + <td> + <a href="253/index.html">#253</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>66 byte</td> + <td>2024-03-09 12:28:09</td> + <td>OK</td> + </tr> + <tr> + <td> + 29 + </td> + <td> + <a href="254/index.html">#254</a> + </td> + <td>notchman</td> + <td>66 byte</td> + <td>2024-03-09 13:18:26</td> + <td>OK</td> + </tr> + <tr> + <td> + 30 + </td> + <td> + <a href="277/index.html">#277</a> + </td> + <td>notchman</td> + <td>66 byte</td> + <td>2024-03-09 14:36:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 31 + </td> + <td> + <a href="291/index.html">#291</a> + </td> + <td>shogogg</td> + <td>66 byte</td> + <td>2024-03-09 14:58:17</td> + <td>OK</td> + </tr> + <tr> + <td> + 32 + </td> + <td> + <a href="307/index.html">#307</a> + </td> + <td>shunsock</td> + <td>66 byte</td> + <td>2024-03-09 16:14:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 33 + </td> + <td> + <a href="42/index.html">#42</a> + </td> + <td>yamamoto-hiroya</td> + <td>67 byte</td> + <td>2024-03-07 22:58:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 34 + </td> + <td> + <a href="162/index.html">#162</a> + </td> + <td>hirahira</td> + <td>67 byte</td> + <td>2024-03-08 18:25:48</td> + <td>OK</td> + </tr> + <tr> + <td> + 35 + </td> + <td> + <a href="92/index.html">#92</a> + </td> + <td>oogFranz</td> + <td>68 byte</td> + <td>2024-03-08 11:00:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 36 + </td> + <td> + <a href="110/index.html">#110</a> + </td> + <td>shunsock</td> + <td>68 byte</td> + <td>2024-03-08 12:06:29</td> + <td>OK</td> + </tr> + <tr> + <td> + 37 + </td> + <td> + <a href="219/index.html">#219</a> + </td> + <td>chatii</td> + <td>68 byte</td> + <td>2024-03-09 09:10:17</td> + <td>OK</td> + </tr> + <tr> + <td> + 38 + </td> + <td> + <a href="288/index.html">#288</a> + </td> + <td>shogogg</td> + <td>68 byte</td> + <td>2024-03-09 14:56:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 39 + </td> + <td> + <a href="76/index.html">#76</a> + </td> + <td>tadsan (staff)</td> + <td>69 byte</td> + <td>2024-03-08 03:26:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 40 + </td> + <td> + <a href="135/index.html">#135</a> + </td> + <td>m3m0r7</td> + <td>69 byte</td> + <td>2024-03-08 17:56:30</td> + <td>OK</td> + </tr> + <tr> + <td> + 41 + </td> + <td> + <a href="217/index.html">#217</a> + </td> + <td>chatii</td> + <td>69 byte</td> + <td>2024-03-09 09:00:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 42 + </td> + <td> + <a href="285/index.html">#285</a> + </td> + <td>shogogg</td> + <td>70 byte</td> + <td>2024-03-09 14:54:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 43 + </td> + <td> + <a href="238/index.html">#238</a> + </td> + <td>notchman</td> + <td>71 byte</td> + <td>2024-03-09 11:41:06</td> + <td>OK</td> + </tr> + <tr> + <td> + 44 + </td> + <td> + <a href="241/index.html">#241</a> + </td> + <td>notchman</td> + <td>71 byte</td> + <td>2024-03-09 11:44:17</td> + <td>OK</td> + </tr> + <tr> + <td> + 45 + </td> + <td> + <a href="48/index.html">#48</a> + </td> + <td>takaram</td> + <td>72 byte</td> + <td>2024-03-08 00:08:54</td> + <td>OK</td> + </tr> + <tr> + <td> + 46 + </td> + <td> + <a href="75/index.html">#75</a> + </td> + <td>tadsan (staff)</td> + <td>72 byte</td> + <td>2024-03-08 03:21:52</td> + <td>OK</td> + </tr> + <tr> + <td> + 47 + </td> + <td> + <a href="99/index.html">#99</a> + </td> + <td>m3m0r7</td> + <td>72 byte</td> + <td>2024-03-08 11:19:57</td> + <td>OK</td> + </tr> + <tr> + <td> + 48 + </td> + <td> + <a href="105/index.html">#105</a> + </td> + <td>shunsock</td> + <td>72 byte</td> + <td>2024-03-08 11:40:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 49 + </td> + <td> + <a href="201/index.html">#201</a> + </td> + <td>akinoriakatsuka</td> + <td>72 byte</td> + <td>2024-03-09 01:56:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 50 + </td> + <td> + <a href="237/index.html">#237</a> + </td> + <td>notchman</td> + <td>72 byte</td> + <td>2024-03-09 11:40:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 51 + </td> + <td> + <a href="239/index.html">#239</a> + </td> + <td>notchman</td> + <td>72 byte</td> + <td>2024-03-09 11:41:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 52 + </td> + <td> + <a href="176/index.html">#176</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>73 byte</td> + <td>2024-03-08 20:03:09</td> + <td>OK</td> + </tr> + <tr> + <td> + 53 + </td> + <td> + <a href="225/index.html">#225</a> + </td> + <td>masnmt</td> + <td>73 byte</td> + <td>2024-03-09 11:11:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 54 + </td> + <td> + <a href="260/index.html">#260</a> + </td> + <td>uzulla</td> + <td>73 byte</td> + <td>2024-03-09 13:56:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 55 + </td> + <td> + <a href="263/index.html">#263</a> + </td> + <td>uzulla</td> + <td>73 byte</td> + <td>2024-03-09 14:06:00</td> + <td>OK</td> + </tr> + <tr> + <td> + 56 + </td> + <td> + <a href="47/index.html">#47</a> + </td> + <td>takaram</td> + <td>74 byte</td> + <td>2024-03-08 00:06:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 57 + </td> + <td> + <a href="186/index.html">#186</a> + </td> + <td>keitamax</td> + <td>74 byte</td> + <td>2024-03-09 00:55:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 58 + </td> + <td> + <a href="198/index.html">#198</a> + </td> + <td>akinoriakatsuka</td> + <td>74 byte</td> + <td>2024-03-09 01:48:43</td> + <td>OK</td> + </tr> + <tr> + <td> + 59 + </td> + <td> + <a href="216/index.html">#216</a> + </td> + <td>chatii</td> + <td>74 byte</td> + <td>2024-03-09 08:57:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 60 + </td> + <td> + <a href="305/index.html">#305</a> + </td> + <td>shunsock</td> + <td>74 byte</td> + <td>2024-03-09 16:12:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 61 + </td> + <td> + <a href="87/index.html">#87</a> + </td> + <td>ticknical</td> + <td>75 byte</td> + <td>2024-03-08 09:37:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 62 + </td> + <td> + <a href="142/index.html">#142</a> + </td> + <td>tsuchikazu</td> + <td>75 byte</td> + <td>2024-03-08 18:10:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 63 + </td> + <td> + <a href="264/index.html">#264</a> + </td> + <td>notchman</td> + <td>75 byte</td> + <td>2024-03-09 14:06:53</td> + <td>OK</td> + </tr> + <tr> + <td> + 64 + </td> + <td> + <a href="221/index.html">#221</a> + </td> + <td>masnmt</td> + <td>76 byte</td> + <td>2024-03-09 10:06:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 65 + </td> + <td> + <a href="224/index.html">#224</a> + </td> + <td>tsbkw</td> + <td>76 byte</td> + <td>2024-03-09 10:53:53</td> + <td>OK</td> + </tr> + <tr> + <td> + 66 + </td> + <td> + <a href="180/index.html">#180</a> + </td> + <td>hibiki-cube</td> + <td>77 byte</td> + <td>2024-03-08 22:35:56</td> + <td>OK</td> + </tr> + <tr> + <td> + 67 + </td> + <td> + <a href="228/index.html">#228</a> + </td> + <td>ishikawam</td> + <td>77 byte</td> + <td>2024-03-09 11:15:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 68 + </td> + <td> + <a href="273/index.html">#273</a> + </td> + <td>uzulla</td> + <td>77 byte</td> + <td>2024-03-09 14:33:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 69 + </td> + <td> + <a href="60/index.html">#60</a> + </td> + <td>hibiki-cube</td> + <td>78 byte</td> + <td>2024-03-08 01:41:00</td> + <td>OK</td> + </tr> + <tr> + <td> + 70 + </td> + <td> + <a href="94/index.html">#94</a> + </td> + <td>shunsock</td> + <td>78 byte</td> + <td>2024-03-08 11:02:03</td> + <td>OK</td> + </tr> + <tr> + <td> + 71 + </td> + <td> + <a href="208/index.html">#208</a> + </td> + <td>masnmt</td> + <td>78 byte</td> + <td>2024-03-09 04:50:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 72 + </td> + <td> + <a href="123/index.html">#123</a> + </td> + <td>keitamax</td> + <td>79 byte</td> + <td>2024-03-08 16:50:51</td> + <td>OK</td> + </tr> + <tr> + <td> + 73 + </td> + <td> + <a href="125/index.html">#125</a> + </td> + <td>happylifetaka</td> + <td>79 byte</td> + <td>2024-03-08 17:19:13</td> + <td>OK</td> + </tr> + <tr> + <td> + 74 + </td> + <td> + <a href="174/index.html">#174</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>79 byte</td> + <td>2024-03-08 19:51:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 75 + </td> + <td> + <a href="23/index.html">#23</a> + </td> + <td>tadsan (staff)</td> + <td>80 byte</td> + <td>2024-03-07 16:49:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 76 + </td> + <td> + <a href="120/index.html">#120</a> + </td> + <td>keitamax</td> + <td>80 byte</td> + <td>2024-03-08 16:42:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 77 + </td> + <td> + <a href="130/index.html">#130</a> + </td> + <td>notchman</td> + <td>80 byte</td> + <td>2024-03-08 17:37:23</td> + <td>OK</td> + </tr> + <tr> + <td> + 78 + </td> + <td> + <a href="133/index.html">#133</a> + </td> + <td>notchman</td> + <td>80 byte</td> + <td>2024-03-08 17:39:56</td> + <td>OK</td> + </tr> + <tr> + <td> + 79 + </td> + <td> + <a href="46/index.html">#46</a> + </td> + <td>takaram</td> + <td>81 byte</td> + <td>2024-03-08 00:01:48</td> + <td>OK</td> + </tr> + <tr> + <td> + 80 + </td> + <td> + <a href="59/index.html">#59</a> + </td> + <td>hibiki-cube</td> + <td>81 byte</td> + <td>2024-03-08 01:40:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 81 + </td> + <td> + <a href="106/index.html">#106</a> + </td> + <td>chatii</td> + <td>81 byte</td> + <td>2024-03-08 11:43:29</td> + <td>OK</td> + </tr> + <tr> + <td> + 82 + </td> + <td> + <a href="131/index.html">#131</a> + </td> + <td>notchman</td> + <td>81 byte</td> + <td>2024-03-08 17:38:08</td> + <td>OK</td> + </tr> + <tr> + <td> + 83 + </td> + <td> + <a href="168/index.html">#168</a> + </td> + <td>arinc0</td> + <td>81 byte</td> + <td>2024-03-08 18:53:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 84 + </td> + <td> + <a href="191/index.html">#191</a> + </td> + <td>akinoriakatsuka</td> + <td>81 byte</td> + <td>2024-03-09 01:18:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 85 + </td> + <td> + <a href="20/index.html">#20</a> + </td> + <td>tadsan (staff)</td> + <td>82 byte</td> + <td>2024-03-07 16:46:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 86 + </td> + <td> + <a href="166/index.html">#166</a> + </td> + <td>arinc0</td> + <td>82 byte</td> + <td>2024-03-08 18:30:51</td> + <td>OK</td> + </tr> + <tr> + <td> + 87 + </td> + <td> + <a href="220/index.html">#220</a> + </td> + <td>ishikawam</td> + <td>83 byte</td> + <td>2024-03-09 09:14:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 88 + </td> + <td> + <a href="85/index.html">#85</a> + </td> + <td>chatii</td> + <td>84 byte</td> + <td>2024-03-08 09:27:00</td> + <td>OK</td> + </tr> + <tr> + <td> + 89 + </td> + <td> + <a href="297/index.html">#297</a> + </td> + <td>pyama86</td> + <td>84 byte</td> + <td>2024-03-09 15:05:57</td> + <td>OK</td> + </tr> + <tr> + <td> + 90 + </td> + <td> + <a href="165/index.html">#165</a> + </td> + <td>arinc0</td> + <td>85 byte</td> + <td>2024-03-08 18:29:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 91 + </td> + <td> + <a href="173/index.html">#173</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>85 byte</td> + <td>2024-03-08 19:49:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 92 + </td> + <td> + <a href="11/index.html">#11</a> + </td> + <td>tadsan (staff)</td> + <td>86 byte</td> + <td>2024-03-06 21:34:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 93 + </td> + <td> + <a href="172/index.html">#172</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>86 byte</td> + <td>2024-03-08 19:44:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 94 + </td> + <td> + <a href="134/index.html">#134</a> + </td> + <td>notchman</td> + <td>87 byte</td> + <td>2024-03-08 17:51:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 95 + </td> + <td> + <a href="311/index.html">#311</a> + </td> + <td>kunikiya</td> + <td>87 byte</td> + <td>2024-03-09 16:42:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 96 + </td> + <td> + <a href="10/index.html">#10</a> + </td> + <td>tadsan (staff)</td> + <td>89 byte</td> + <td>2024-03-06 20:21:59</td> + <td>OK</td> + </tr> + <tr> + <td> + 97 + </td> + <td> + <a href="25/index.html">#25</a> + </td> + <td>moeyashi</td> + <td>91 byte</td> + <td>2024-03-07 18:02:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 98 + </td> + <td> + <a href="116/index.html">#116</a> + </td> + <td>matsuoatsushi</td> + <td>91 byte</td> + <td>2024-03-08 14:02:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 99 + </td> + <td> + <a href="45/index.html">#45</a> + </td> + <td>rinchoku</td> + <td>93 byte</td> + <td>2024-03-07 23:01:39</td> + <td>OK</td> + </tr> + <tr> + <td> + 100 + </td> + <td> + <a href="280/index.html">#280</a> + </td> + <td>don</td> + <td>93 byte</td> + <td>2024-03-09 14:38:43</td> + <td>OK</td> + </tr> + <tr> + <td> + 101 + </td> + <td> + <a href="95/index.html">#95</a> + </td> + <td>chatii</td> + <td>94 byte</td> + <td>2024-03-08 11:17:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 102 + </td> + <td> + <a href="102/index.html">#102</a> + </td> + <td>chatii</td> + <td>94 byte</td> + <td>2024-03-08 11:31:13</td> + <td>OK</td> + </tr> + <tr> + <td> + 103 + </td> + <td> + <a href="161/index.html">#161</a> + </td> + <td>arinc0</td> + <td>94 byte</td> + <td>2024-03-08 18:25:12</td> + <td>OK</td> + </tr> + <tr> + <td> + 104 + </td> + <td> + <a href="296/index.html">#296</a> + </td> + <td>pyama86</td> + <td>94 byte</td> + <td>2024-03-09 15:03:08</td> + <td>OK</td> + </tr> + <tr> + <td> + 105 + </td> + <td> + <a href="70/index.html">#70</a> + </td> + <td>kunikiya</td> + <td>95 byte</td> + <td>2024-03-08 02:18:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 106 + </td> + <td> + <a href="89/index.html">#89</a> + </td> + <td>chatii</td> + <td>95 byte</td> + <td>2024-03-08 10:25:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 107 + </td> + <td> + <a href="118/index.html">#118</a> + </td> + <td>okashoi</td> + <td>95 byte</td> + <td>2024-03-08 14:58:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 108 + </td> + <td> + <a href="145/index.html">#145</a> + </td> + <td>okashoi</td> + <td>95 byte</td> + <td>2024-03-08 18:11:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 109 + </td> + <td> + <a href="41/index.html">#41</a> + </td> + <td>rinchoku</td> + <td>96 byte</td> + <td>2024-03-07 22:56:13</td> + <td>OK</td> + </tr> + <tr> + <td> + 110 + </td> + <td> + <a href="179/index.html">#179</a> + </td> + <td>xpadev</td> + <td>96 byte</td> + <td>2024-03-08 21:04:33</td> + <td>OK</td> + </tr> + <tr> + <td> + 111 + </td> + <td> + <a href="218/index.html">#218</a> + </td> + <td>ishikawam</td> + <td>96 byte</td> + <td>2024-03-09 09:10:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 112 + </td> + <td> + <a href="278/index.html">#278</a> + </td> + <td>don</td> + <td>96 byte</td> + <td>2024-03-09 14:37:03</td> + <td>OK</td> + </tr> + <tr> + <td> + 113 + </td> + <td> + <a href="67/index.html">#67</a> + </td> + <td>kunikiya</td> + <td>97 byte</td> + <td>2024-03-08 02:04:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 114 + </td> + <td> + <a href="68/index.html">#68</a> + </td> + <td>kunikiya</td> + <td>97 byte</td> + <td>2024-03-08 02:13:26</td> + <td>OK</td> + </tr> + <tr> + <td> + 115 + </td> + <td> + <a href="69/index.html">#69</a> + </td> + <td>kunikiya</td> + <td>97 byte</td> + <td>2024-03-08 02:17:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 116 + </td> + <td> + <a href="101/index.html">#101</a> + </td> + <td>chatii</td> + <td>97 byte</td> + <td>2024-03-08 11:27:37</td> + <td>OK</td> + </tr> + <tr> + <td> + 117 + </td> + <td> + <a href="286/index.html">#286</a> + </td> + <td>pyama86</td> + <td>97 byte</td> + <td>2024-03-09 14:54:33</td> + <td>OK</td> + </tr> + <tr> + <td> + 118 + </td> + <td> + <a href="295/index.html">#295</a> + </td> + <td>pyama86</td> + <td>97 byte</td> + <td>2024-03-09 15:00:53</td> + <td>OK</td> + </tr> + <tr> + <td> + 119 + </td> + <td> + <a href="66/index.html">#66</a> + </td> + <td>kunikiya</td> + <td>99 byte</td> + <td>2024-03-08 01:55:43</td> + <td>OK</td> + </tr> + <tr> + <td> + 120 + </td> + <td> + <a href="65/index.html">#65</a> + </td> + <td>kunikiya</td> + <td>100 byte</td> + <td>2024-03-08 01:54:18</td> + <td>OK</td> + </tr> + <tr> + <td> + 121 + </td> + <td> + <a href="39/index.html">#39</a> + </td> + <td>rinchoku</td> + <td>102 byte</td> + <td>2024-03-07 22:54:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 122 + </td> + <td> + <a href="215/index.html">#215</a> + </td> + <td>ishikawam</td> + <td>102 byte</td> + <td>2024-03-09 08:55:45</td> + <td>OK</td> + </tr> + <tr> + <td> + 123 + </td> + <td> + <a href="269/index.html">#269</a> + </td> + <td>don</td> + <td>102 byte</td> + <td>2024-03-09 14:19:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 124 + </td> + <td> + <a href="86/index.html">#86</a> + </td> + <td>ticknical</td> + <td>103 byte</td> + <td>2024-03-08 09:36:02</td> + <td>OK</td> + </tr> + <tr> + <td> + 125 + </td> + <td> + <a href="64/index.html">#64</a> + </td> + <td>kunikiya</td> + <td>105 byte</td> + <td>2024-03-08 01:52:34</td> + <td>OK</td> + </tr> + <tr> + <td> + 126 + </td> + <td> + <a href="159/index.html">#159</a> + </td> + <td>o2zdip</td> + <td>107 byte</td> + <td>2024-03-08 18:24:25</td> + <td>OK</td> + </tr> + <tr> + <td> + 127 + </td> + <td> + <a href="268/index.html">#268</a> + </td> + <td>don</td> + <td>109 byte</td> + <td>2024-03-09 14:12:10</td> + <td>OK</td> + </tr> + <tr> + <td> + 128 + </td> + <td> + <a href="53/index.html">#53</a> + </td> + <td>kunikiya</td> + <td>110 byte</td> + <td>2024-03-08 01:31:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 129 + </td> + <td> + <a href="206/index.html">#206</a> + </td> + <td>azuki-penguin</td> + <td>110 byte</td> + <td>2024-03-09 02:11:56</td> + <td>OK</td> + </tr> + <tr> + <td> + 130 + </td> + <td> + <a href="51/index.html">#51</a> + </td> + <td>kunikiya</td> + <td>112 byte</td> + <td>2024-03-08 01:27:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 131 + </td> + <td> + <a href="34/index.html">#34</a> + </td> + <td>gennei</td> + <td>113 byte</td> + <td>2024-03-07 22:34:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 132 + </td> + <td> + <a href="190/index.html">#190</a> + </td> + <td>akinoriakatsuka</td> + <td>113 byte</td> + <td>2024-03-09 01:12:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 133 + </td> + <td> + <a href="52/index.html">#52</a> + </td> + <td>kunikiya</td> + <td>114 byte</td> + <td>2024-03-08 01:29:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 134 + </td> + <td> + <a href="117/index.html">#117</a> + </td> + <td>hirosuke-pi</td> + <td>115 byte</td> + <td>2024-03-08 14:13:55</td> + <td>OK</td> + </tr> + <tr> + <td> + 135 + </td> + <td> + <a href="205/index.html">#205</a> + </td> + <td>azuki-penguin</td> + <td>116 byte</td> + <td>2024-03-09 02:09:31</td> + <td>OK</td> + </tr> + <tr> + <td> + 136 + </td> + <td> + <a href="310/index.html">#310</a> + </td> + <td>kunikiya</td> + <td>116 byte</td> + <td>2024-03-09 16:29:24</td> + <td>OK</td> + </tr> + <tr> + <td> + 137 + </td> + <td> + <a href="33/index.html">#33</a> + </td> + <td>gennei</td> + <td>118 byte</td> + <td>2024-03-07 22:33:59</td> + <td>OK</td> + </tr> + <tr> + <td> + 138 + </td> + <td> + <a href="62/index.html">#62</a> + </td> + <td>kunikiya</td> + <td>118 byte</td> + <td>2024-03-08 01:43:34</td> + <td>OK</td> + </tr> + <tr> + <td> + 139 + </td> + <td> + <a href="309/index.html">#309</a> + </td> + <td>kunikiya</td> + <td>120 byte</td> + <td>2024-03-09 16:26:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 140 + </td> + <td> + <a href="24/index.html">#24</a> + </td> + <td>moeyashi</td> + <td>121 byte</td> + <td>2024-03-07 17:47:48</td> + <td>OK</td> + </tr> + <tr> + <td> + 141 + </td> + <td> + <a href="61/index.html">#61</a> + </td> + <td>kunikiya</td> + <td>124 byte</td> + <td>2024-03-08 01:41:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 142 + </td> + <td> + <a href="84/index.html">#84</a> + </td> + <td>chatii</td> + <td>137 byte</td> + <td>2024-03-08 09:15:00</td> + <td>OK</td> + </tr> + <tr> + <td> + 143 + </td> + <td> + <a href="214/index.html">#214</a> + </td> + <td>ishikawam</td> + <td>137 byte</td> + <td>2024-03-09 08:47:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 144 + </td> + <td> + <a href="111/index.html">#111</a> + </td> + <td>matsuoatsushi</td> + <td>139 byte</td> + <td>2024-03-08 13:29:08</td> + <td>OK</td> + </tr> + <tr> + <td> + 145 + </td> + <td> + <a href="55/index.html">#55</a> + </td> + <td>kunikiya</td> + <td>140 byte</td> + <td>2024-03-08 01:39:05</td> + <td>OK</td> + </tr> + <tr> + <td> + 146 + </td> + <td> + <a href="38/index.html">#38</a> + </td> + <td>rinchoku</td> + <td>142 byte</td> + <td>2024-03-07 22:52:51</td> + <td>OK</td> + </tr> + <tr> + <td> + 147 + </td> + <td> + <a href="19/index.html">#19</a> + </td> + <td>Natsuki</td> + <td>143 byte</td> + <td>2024-03-07 16:39:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 148 + </td> + <td> + <a href="83/index.html">#83</a> + </td> + <td>chatii</td> + <td>144 byte</td> + <td>2024-03-08 09:13:22</td> + <td>OK</td> + </tr> + <tr> + <td> + 149 + </td> + <td> + <a href="184/index.html">#184</a> + </td> + <td>akinoriakatsuka</td> + <td>144 byte</td> + <td>2024-03-09 00:39:53</td> + <td>OK</td> + </tr> + <tr> + <td> + 150 + </td> + <td> + <a href="32/index.html">#32</a> + </td> + <td>gennei</td> + <td>145 byte</td> + <td>2024-03-07 22:32:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 151 + </td> + <td> + <a href="183/index.html">#183</a> + </td> + <td>akinoriakatsuka</td> + <td>145 byte</td> + <td>2024-03-09 00:36:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 152 + </td> + <td> + <a href="63/index.html">#63</a> + </td> + <td>kunikiya</td> + <td>147 byte</td> + <td>2024-03-08 01:49:47</td> + <td>OK</td> + </tr> + <tr> + <td> + 153 + </td> + <td> + <a href="35/index.html">#35</a> + </td> + <td>yamamoto-hiroya</td> + <td>148 byte</td> + <td>2024-03-07 22:35:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 154 + </td> + <td> + <a href="31/index.html">#31</a> + </td> + <td>gennei</td> + <td>150 byte</td> + <td>2024-03-07 22:26:15</td> + <td>OK</td> + </tr> + <tr> + <td> + 155 + </td> + <td> + <a href="223/index.html">#223</a> + </td> + <td>tsbkw</td> + <td>150 byte</td> + <td>2024-03-09 10:51:30</td> + <td>OK</td> + </tr> + <tr> + <td> + 156 + </td> + <td> + <a href="50/index.html">#50</a> + </td> + <td>kunikiya</td> + <td>154 byte</td> + <td>2024-03-08 01:24:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 157 + </td> + <td> + <a href="222/index.html">#222</a> + </td> + <td>tsbkw</td> + <td>155 byte</td> + <td>2024-03-09 10:47:35</td> + <td>OK</td> + </tr> + <tr> + <td> + 158 + </td> + <td> + <a href="91/index.html">#91</a> + </td> + <td>shunsock</td> + <td>159 byte</td> + <td>2024-03-08 10:58:14</td> + <td>OK</td> + </tr> + <tr> + <td> + 159 + </td> + <td> + <a href="49/index.html">#49</a> + </td> + <td>kunikiya</td> + <td>161 byte</td> + <td>2024-03-08 01:21:01</td> + <td>OK</td> + </tr> + <tr> + <td> + 160 + </td> + <td> + <a href="124/index.html">#124</a> + </td> + <td>you110</td> + <td>163 byte</td> + <td>2024-03-08 16:58:34</td> + <td>OK</td> + </tr> + <tr> + <td> + 161 + </td> + <td> + <a href="90/index.html">#90</a> + </td> + <td>shunsock</td> + <td>188 byte</td> + <td>2024-03-08 10:52:04</td> + <td>OK</td> + </tr> + <tr> + <td> + 162 + </td> + <td> + <a href="128/index.html">#128</a> + </td> + <td>notchman</td> + <td>196 byte</td> + <td>2024-03-08 17:27:23</td> + <td>OK</td> + </tr> + <tr> + <td> + 163 + </td> + <td> + <a href="29/index.html">#29</a> + </td> + <td>gennei</td> + <td>204 byte</td> + <td>2024-03-07 22:21:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 164 + </td> + <td> + <a href="28/index.html">#28</a> + </td> + <td>gennei</td> + <td>207 byte</td> + <td>2024-03-07 22:20:50</td> + <td>OK</td> + </tr> + <tr> + <td> + 165 + </td> + <td> + <a href="2/index.html">#2</a> + </td> + <td>nsfisis (staff)</td> + <td>209 byte</td> + <td>2024-03-06 03:55:38</td> + <td>OK</td> + </tr> + <tr> + <td> + 166 + </td> + <td> + <a href="3/index.html">#3</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>209 byte</td> + <td>2024-03-06 08:15:27</td> + <td>OK</td> + </tr> + <tr> + <td> + 167 + </td> + <td> + <a href="6/index.html">#6</a> + </td> + <td>muno92 (staff)</td> + <td>209 byte</td> + <td>2024-03-06 08:42:11</td> + <td>OK</td> + </tr> + <tr> + <td> + 168 + </td> + <td> + <a href="26/index.html">#26</a> + </td> + <td>yamamoto-hiroya</td> + <td>209 byte</td> + <td>2024-03-07 19:29:41</td> + <td>OK</td> + </tr> + <tr> + <td> + 169 + </td> + <td> + <a href="82/index.html">#82</a> + </td> + <td>chatii</td> + <td>209 byte</td> + <td>2024-03-08 09:12:07</td> + <td>OK</td> + </tr> + <tr> + <td> + 170 + </td> + <td> + <a href="112/index.html">#112</a> + </td> + <td>hirosuke-pi</td> + <td>209 byte</td> + <td>2024-03-08 13:37:40</td> + <td>OK</td> + </tr> + <tr> + <td> + 171 + </td> + <td> + <a href="126/index.html">#126</a> + </td> + <td>notchman</td> + <td>209 byte</td> + <td>2024-03-08 17:20:58</td> + <td>OK</td> + </tr> + <tr> + <td> + 172 + </td> + <td> + <a href="182/index.html">#182</a> + </td> + <td>akinoriakatsuka</td> + <td>209 byte</td> + <td>2024-03-09 00:30:21</td> + <td>OK</td> + </tr> + <tr> + <td> + 173 + </td> + <td> + <a href="194/index.html">#194</a> + </td> + <td>hamaco</td> + <td>209 byte</td> + <td>2024-03-09 01:32:19</td> + <td>OK</td> + </tr> + <tr> + <td> + 174 + </td> + <td> + <a href="213/index.html">#213</a> + </td> + <td>ishikawam</td> + <td>209 byte</td> + <td>2024-03-09 08:34:46</td> + <td>OK</td> + </tr> + <tr> + <td> + 175 + </td> + <td> + <a href="270/index.html">#270</a> + </td> + <td>yukinissie</td> + <td>209 byte</td> + <td>2024-03-09 14:21:16</td> + <td>OK</td> + </tr> + <tr> + <td> + 176 + </td> + <td> + <a href="303/index.html">#303</a> + </td> + <td>Nagase</td> + <td>209 byte</td> + <td>2024-03-09 15:29:28</td> + <td>OK</td> + </tr> + <tr> + <td> + 177 + </td> + <td> + <a href="27/index.html">#27</a> + </td> + <td>gennei</td> + <td>529 byte</td> + <td>2024-03-07 22:18:32</td> + <td>OK</td> + </tr> + <tr> + <td> + 178 + </td> + <td> + <a href="4/index.html">#4</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>2106 byte</td> + <td>2024-03-06 08:22:51</td> + <td>OK</td> + </tr> + <tr> + <td> + 179 + </td> + <td> + <a href="226/index.html">#226</a> + </td> + <td>ishikawam</td> + <td>41 byte</td> + <td>2024-03-09 11:11:52</td> + <td>失敗</td> + </tr> + <tr> + <td> + 180 + </td> + <td> + <a href="230/index.html">#230</a> + </td> + <td>ishikawam</td> + <td>42 byte</td> + <td>2024-03-09 11:18:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 181 + </td> + <td> + <a href="108/index.html">#108</a> + </td> + <td>chatii</td> + <td>45 byte</td> + <td>2024-03-08 11:57:46</td> + <td>失敗</td> + </tr> + <tr> + <td> + 182 + </td> + <td> + <a href="136/index.html">#136</a> + </td> + <td>m3m0r7</td> + <td>45 byte</td> + <td>2024-03-08 18:00:34</td> + <td>失敗</td> + </tr> + <tr> + <td> + 183 + </td> + <td> + <a href="137/index.html">#137</a> + </td> + <td>m3m0r7</td> + <td>49 byte</td> + <td>2024-03-08 18:03:55</td> + <td>失敗</td> + </tr> + <tr> + <td> + 184 + </td> + <td> + <a href="109/index.html">#109</a> + </td> + <td>chatii</td> + <td>50 byte</td> + <td>2024-03-08 11:59:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 185 + </td> + <td> + <a href="138/index.html">#138</a> + </td> + <td>m3m0r7</td> + <td>53 byte</td> + <td>2024-03-08 18:04:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 186 + </td> + <td> + <a href="210/index.html">#210</a> + </td> + <td>k-kuwata</td> + <td>57 byte</td> + <td>2024-03-09 08:30:11</td> + <td>失敗</td> + </tr> + <tr> + <td> + 187 + </td> + <td> + <a href="258/index.html">#258</a> + </td> + <td>notchman</td> + <td>57 byte</td> + <td>2024-03-09 13:45:30</td> + <td>失敗</td> + </tr> + <tr> + <td> + 188 + </td> + <td> + <a href="211/index.html">#211</a> + </td> + <td>k-kuwata</td> + <td>58 byte</td> + <td>2024-03-09 08:32:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 189 + </td> + <td> + <a href="212/index.html">#212</a> + </td> + <td>k-kuwata</td> + <td>59 byte</td> + <td>2024-03-09 08:33:06</td> + <td>失敗</td> + </tr> + <tr> + <td> + 190 + </td> + <td> + <a href="12/index.html">#12</a> + </td> + <td>nsfisis (staff)</td> + <td>61 byte</td> + <td>2024-03-07 15:01:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 191 + </td> + <td> + <a href="248/index.html">#248</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 11:59:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 192 + </td> + <td> + <a href="250/index.html">#250</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 12:00:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 193 + </td> + <td> + <a href="265/index.html">#265</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 14:09:29</td> + <td>失敗</td> + </tr> + <tr> + <td> + 194 + </td> + <td> + <a href="271/index.html">#271</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 14:25:43</td> + <td>失敗</td> + </tr> + <tr> + <td> + 195 + </td> + <td> + <a href="275/index.html">#275</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 14:35:20</td> + <td>失敗</td> + </tr> + <tr> + <td> + 196 + </td> + <td> + <a href="289/index.html">#289</a> + </td> + <td>notchman</td> + <td>61 byte</td> + <td>2024-03-09 14:57:27</td> + <td>失敗</td> + </tr> + <tr> + <td> + 197 + </td> + <td> + <a href="294/index.html">#294</a> + </td> + <td>shogogg</td> + <td>61 byte</td> + <td>2024-03-09 14:58:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 198 + </td> + <td> + <a href="78/index.html">#78</a> + </td> + <td>tadsan (staff)</td> + <td>62 byte</td> + <td>2024-03-08 03:32:00</td> + <td>失敗</td> + </tr> + <tr> + <td> + 199 + </td> + <td> + <a href="151/index.html">#151</a> + </td> + <td>tsuchikazu</td> + <td>62 byte</td> + <td>2024-03-08 18:14:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 200 + </td> + <td> + <a href="192/index.html">#192</a> + </td> + <td>hamaco</td> + <td>62 byte</td> + <td>2024-03-09 01:30:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 201 + </td> + <td> + <a href="193/index.html">#193</a> + </td> + <td>hamaco</td> + <td>62 byte</td> + <td>2024-03-09 01:31:55</td> + <td>失敗</td> + </tr> + <tr> + <td> + 202 + </td> + <td> + <a href="207/index.html">#207</a> + </td> + <td>keitamax</td> + <td>62 byte</td> + <td>2024-03-09 02:20:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 203 + </td> + <td> + <a href="247/index.html">#247</a> + </td> + <td>notchman</td> + <td>62 byte</td> + <td>2024-03-09 11:52:03</td> + <td>失敗</td> + </tr> + <tr> + <td> + 204 + </td> + <td> + <a href="259/index.html">#259</a> + </td> + <td>notchman</td> + <td>62 byte</td> + <td>2024-03-09 13:49:33</td> + <td>失敗</td> + </tr> + <tr> + <td> + 205 + </td> + <td> + <a href="299/index.html">#299</a> + </td> + <td>keitamax</td> + <td>62 byte</td> + <td>2024-03-09 15:11:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 206 + </td> + <td> + <a href="302/index.html">#302</a> + </td> + <td>keitamax</td> + <td>62 byte</td> + <td>2024-03-09 15:18:27</td> + <td>失敗</td> + </tr> + <tr> + <td> + 207 + </td> + <td> + <a href="40/index.html">#40</a> + </td> + <td>yamamoto-hiroya</td> + <td>63 byte</td> + <td>2024-03-07 22:54:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 208 + </td> + <td> + <a href="245/index.html">#245</a> + </td> + <td>notchman</td> + <td>63 byte</td> + <td>2024-03-09 11:48:40</td> + <td>失敗</td> + </tr> + <tr> + <td> + 209 + </td> + <td> + <a href="255/index.html">#255</a> + </td> + <td>notchman</td> + <td>63 byte</td> + <td>2024-03-09 13:21:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 210 + </td> + <td> + <a href="93/index.html">#93</a> + </td> + <td>oogFranz</td> + <td>64 byte</td> + <td>2024-03-08 11:01:55</td> + <td>失敗</td> + </tr> + <tr> + <td> + 211 + </td> + <td> + <a href="251/index.html">#251</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>64 byte</td> + <td>2024-03-09 12:24:00</td> + <td>失敗</td> + </tr> + <tr> + <td> + 212 + </td> + <td> + <a href="274/index.html">#274</a> + </td> + <td>notchman</td> + <td>64 byte</td> + <td>2024-03-09 14:33:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 213 + </td> + <td> + <a href="308/index.html">#308</a> + </td> + <td>shunsock</td> + <td>64 byte</td> + <td>2024-03-09 16:19:25</td> + <td>失敗</td> + </tr> + <tr> + <td> + 214 + </td> + <td> + <a href="147/index.html">#147</a> + </td> + <td>tsuchikazu</td> + <td>65 byte</td> + <td>2024-03-08 18:12:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 215 + </td> + <td> + <a href="195/index.html">#195</a> + </td> + <td>keitamax</td> + <td>65 byte</td> + <td>2024-03-09 01:35:23</td> + <td>失敗</td> + </tr> + <tr> + <td> + 216 + </td> + <td> + <a href="199/index.html">#199</a> + </td> + <td>keitamax</td> + <td>65 byte</td> + <td>2024-03-09 01:49:52</td> + <td>失敗</td> + </tr> + <tr> + <td> + 217 + </td> + <td> + <a href="202/index.html">#202</a> + </td> + <td>keitamax</td> + <td>65 byte</td> + <td>2024-03-09 01:56:36</td> + <td>失敗</td> + </tr> + <tr> + <td> + 218 + </td> + <td> + <a href="252/index.html">#252</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>65 byte</td> + <td>2024-03-09 12:25:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 219 + </td> + <td> + <a href="282/index.html">#282</a> + </td> + <td>ticknical</td> + <td>65 byte</td> + <td>2024-03-09 14:45:20</td> + <td>失敗</td> + </tr> + <tr> + <td> + 220 + </td> + <td> + <a href="292/index.html">#292</a> + </td> + <td>shogogg</td> + <td>65 byte</td> + <td>2024-03-09 14:58:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 221 + </td> + <td> + <a href="287/index.html">#287</a> + </td> + <td>shogogg</td> + <td>66 byte</td> + <td>2024-03-09 14:55:33</td> + <td>失敗</td> + </tr> + <tr> + <td> + 222 + </td> + <td> + <a href="306/index.html">#306</a> + </td> + <td>shunsock</td> + <td>66 byte</td> + <td>2024-03-09 16:13:41</td> + <td>失敗</td> + </tr> + <tr> + <td> + 223 + </td> + <td> + <a href="148/index.html">#148</a> + </td> + <td>shogogg</td> + <td>67 byte</td> + <td>2024-03-08 18:12:51</td> + <td>失敗</td> + </tr> + <tr> + <td> + 224 + </td> + <td> + <a href="177/index.html">#177</a> + </td> + <td>shogogg</td> + <td>67 byte</td> + <td>2024-03-08 20:20:12</td> + <td>失敗</td> + </tr> + <tr> + <td> + 225 + </td> + <td> + <a href="196/index.html">#196</a> + </td> + <td>keitamax</td> + <td>67 byte</td> + <td>2024-03-09 01:41:21</td> + <td>失敗</td> + </tr> + <tr> + <td> + 226 + </td> + <td> + <a href="96/index.html">#96</a> + </td> + <td>m3m0r7</td> + <td>68 byte</td> + <td>2024-03-08 11:18:03</td> + <td>失敗</td> + </tr> + <tr> + <td> + 227 + </td> + <td> + <a href="97/index.html">#97</a> + </td> + <td>m3m0r7</td> + <td>68 byte</td> + <td>2024-03-08 11:18:43</td> + <td>失敗</td> + </tr> + <tr> + <td> + 228 + </td> + <td> + <a href="149/index.html">#149</a> + </td> + <td>notchman</td> + <td>68 byte</td> + <td>2024-03-08 18:12:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 229 + </td> + <td> + <a href="150/index.html">#150</a> + </td> + <td>notchman</td> + <td>68 byte</td> + <td>2024-03-08 18:13:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 230 + </td> + <td> + <a href="171/index.html">#171</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>68 byte</td> + <td>2024-03-08 19:43:22</td> + <td>失敗</td> + </tr> + <tr> + <td> + 231 + </td> + <td> + <a href="232/index.html">#232</a> + </td> + <td>notchman</td> + <td>68 byte</td> + <td>2024-03-09 11:35:00</td> + <td>失敗</td> + </tr> + <tr> + <td> + 232 + </td> + <td> + <a href="240/index.html">#240</a> + </td> + <td>notchman</td> + <td>68 byte</td> + <td>2024-03-09 11:42:37</td> + <td>失敗</td> + </tr> + <tr> + <td> + 233 + </td> + <td> + <a href="143/index.html">#143</a> + </td> + <td>notchman</td> + <td>69 byte</td> + <td>2024-03-08 18:10:33</td> + <td>失敗</td> + </tr> + <tr> + <td> + 234 + </td> + <td> + <a href="144/index.html">#144</a> + </td> + <td>notchman</td> + <td>69 byte</td> + <td>2024-03-08 18:11:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 235 + </td> + <td> + <a href="175/index.html">#175</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>69 byte</td> + <td>2024-03-08 19:57:41</td> + <td>失敗</td> + </tr> + <tr> + <td> + 236 + </td> + <td> + <a href="229/index.html">#229</a> + </td> + <td>masnmt</td> + <td>69 byte</td> + <td>2024-03-09 11:15:18</td> + <td>失敗</td> + </tr> + <tr> + <td> + 237 + </td> + <td> + <a href="261/index.html">#261</a> + </td> + <td>uzulla</td> + <td>69 byte</td> + <td>2024-03-09 13:57:44</td> + <td>失敗</td> + </tr> + <tr> + <td> + 238 + </td> + <td> + <a href="262/index.html">#262</a> + </td> + <td>uzulla</td> + <td>69 byte</td> + <td>2024-03-09 14:02:54</td> + <td>失敗</td> + </tr> + <tr> + <td> + 239 + </td> + <td> + <a href="140/index.html">#140</a> + </td> + <td>notchman</td> + <td>70 byte</td> + <td>2024-03-08 18:07:40</td> + <td>失敗</td> + </tr> + <tr> + <td> + 240 + </td> + <td> + <a href="164/index.html">#164</a> + </td> + <td>notchman</td> + <td>70 byte</td> + <td>2024-03-08 18:29:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 241 + </td> + <td> + <a href="236/index.html">#236</a> + </td> + <td>notchman</td> + <td>70 byte</td> + <td>2024-03-09 11:39:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 242 + </td> + <td> + <a href="284/index.html">#284</a> + </td> + <td>shogogg</td> + <td>70 byte</td> + <td>2024-03-09 14:52:12</td> + <td>失敗</td> + </tr> + <tr> + <td> + 243 + </td> + <td> + <a href="187/index.html">#187</a> + </td> + <td>keitamax</td> + <td>71 byte</td> + <td>2024-03-09 01:04:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 244 + </td> + <td> + <a href="188/index.html">#188</a> + </td> + <td>keitamax</td> + <td>71 byte</td> + <td>2024-03-09 01:05:19</td> + <td>失敗</td> + </tr> + <tr> + <td> + 245 + </td> + <td> + <a href="235/index.html">#235</a> + </td> + <td>notchman</td> + <td>71 byte</td> + <td>2024-03-09 11:39:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 246 + </td> + <td> + <a href="98/index.html">#98</a> + </td> + <td>m3m0r7</td> + <td>72 byte</td> + <td>2024-03-08 11:19:15</td> + <td>失敗</td> + </tr> + <tr> + <td> + 247 + </td> + <td> + <a href="103/index.html">#103</a> + </td> + <td>shunsock</td> + <td>72 byte</td> + <td>2024-03-08 11:38:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 248 + </td> + <td> + <a href="104/index.html">#104</a> + </td> + <td>shunsock</td> + <td>72 byte</td> + <td>2024-03-08 11:39:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 249 + </td> + <td> + <a href="178/index.html">#178</a> + </td> + <td>shogogg</td> + <td>72 byte</td> + <td>2024-03-08 20:21:06</td> + <td>失敗</td> + </tr> + <tr> + <td> + 250 + </td> + <td> + <a href="200/index.html">#200</a> + </td> + <td>akinoriakatsuka</td> + <td>72 byte</td> + <td>2024-03-09 01:55:20</td> + <td>失敗</td> + </tr> + <tr> + <td> + 251 + </td> + <td> + <a href="114/index.html">#114</a> + </td> + <td>hibiki-cube</td> + <td>73 byte</td> + <td>2024-03-08 13:41:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 252 + </td> + <td> + <a href="146/index.html">#146</a> + </td> + <td>notchman</td> + <td>73 byte</td> + <td>2024-03-08 18:12:01</td> + <td>失敗</td> + </tr> + <tr> + <td> + 253 + </td> + <td> + <a href="185/index.html">#185</a> + </td> + <td>keitamax</td> + <td>73 byte</td> + <td>2024-03-09 00:54:46</td> + <td>失敗</td> + </tr> + <tr> + <td> + 254 + </td> + <td> + <a href="227/index.html">#227</a> + </td> + <td>ishikawam</td> + <td>73 byte</td> + <td>2024-03-09 11:13:40</td> + <td>失敗</td> + </tr> + <tr> + <td> + 255 + </td> + <td> + <a href="281/index.html">#281</a> + </td> + <td>notchman</td> + <td>73 byte</td> + <td>2024-03-09 14:42:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 256 + </td> + <td> + <a href="54/index.html">#54</a> + </td> + <td>hibiki-cube</td> + <td>74 byte</td> + <td>2024-03-08 01:38:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 257 + </td> + <td> + <a href="80/index.html">#80</a> + </td> + <td>hibiki-cube</td> + <td>74 byte</td> + <td>2024-03-08 08:36:35</td> + <td>失敗</td> + </tr> + <tr> + <td> + 258 + </td> + <td> + <a href="113/index.html">#113</a> + </td> + <td>hibiki-cube</td> + <td>74 byte</td> + <td>2024-03-08 13:39:42</td> + <td>失敗</td> + </tr> + <tr> + <td> + 259 + </td> + <td> + <a href="283/index.html">#283</a> + </td> + <td>shogogg</td> + <td>74 byte</td> + <td>2024-03-09 14:50:58</td> + <td>失敗</td> + </tr> + <tr> + <td> + 260 + </td> + <td> + <a href="72/index.html">#72</a> + </td> + <td>hibiki-cube</td> + <td>75 byte</td> + <td>2024-03-08 02:37:47</td> + <td>失敗</td> + </tr> + <tr> + <td> + 261 + </td> + <td> + <a href="57/index.html">#57</a> + </td> + <td>hibiki-cube</td> + <td>76 byte</td> + <td>2024-03-08 01:39:41</td> + <td>失敗</td> + </tr> + <tr> + <td> + 262 + </td> + <td> + <a href="58/index.html">#58</a> + </td> + <td>hibiki-cube</td> + <td>76 byte</td> + <td>2024-03-08 01:40:05</td> + <td>失敗</td> + </tr> + <tr> + <td> + 263 + </td> + <td> + <a href="132/index.html">#132</a> + </td> + <td>notchman</td> + <td>76 byte</td> + <td>2024-03-08 17:39:15</td> + <td>失敗</td> + </tr> + <tr> + <td> + 264 + </td> + <td> + <a href="163/index.html">#163</a> + </td> + <td>notchman</td> + <td>76 byte</td> + <td>2024-03-08 18:27:55</td> + <td>失敗</td> + </tr> + <tr> + <td> + 265 + </td> + <td> + <a href="234/index.html">#234</a> + </td> + <td>notchman</td> + <td>76 byte</td> + <td>2024-03-09 11:36:56</td> + <td>失敗</td> + </tr> + <tr> + <td> + 266 + </td> + <td> + <a href="56/index.html">#56</a> + </td> + <td>hibiki-cube</td> + <td>77 byte</td> + <td>2024-03-08 01:39:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 267 + </td> + <td> + <a href="181/index.html">#181</a> + </td> + <td>hibiki-cube</td> + <td>78 byte</td> + <td>2024-03-08 23:18:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 268 + </td> + <td> + <a href="21/index.html">#21</a> + </td> + <td>tadsan (staff)</td> + <td>80 byte</td> + <td>2024-03-07 16:46:43</td> + <td>失敗</td> + </tr> + <tr> + <td> + 269 + </td> + <td> + <a href="22/index.html">#22</a> + </td> + <td>tadsan (staff)</td> + <td>80 byte</td> + <td>2024-03-07 16:48:13</td> + <td>失敗</td> + </tr> + <tr> + <td> + 270 + </td> + <td> + <a href="139/index.html">#139</a> + </td> + <td>notchman</td> + <td>80 byte</td> + <td>2024-03-08 18:04:52</td> + <td>失敗</td> + </tr> + <tr> + <td> + 271 + </td> + <td> + <a href="167/index.html">#167</a> + </td> + <td>arinc0</td> + <td>81 byte</td> + <td>2024-03-08 18:53:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 272 + </td> + <td> + <a href="170/index.html">#170</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>82 byte</td> + <td>2024-03-08 19:39:32</td> + <td>失敗</td> + </tr> + <tr> + <td> + 273 + </td> + <td> + <a href="154/index.html">#154</a> + </td> + <td>o2zdip</td> + <td>83 byte</td> + <td>2024-03-08 18:17:25</td> + <td>失敗</td> + </tr> + <tr> + <td> + 274 + </td> + <td> + <a href="312/index.html">#312</a> + </td> + <td>kunikiya</td> + <td>83 byte</td> + <td>2024-03-09 16:43:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 275 + </td> + <td> + <a href="129/index.html">#129</a> + </td> + <td>notchman</td> + <td>84 byte</td> + <td>2024-03-08 17:30:25</td> + <td>失敗</td> + </tr> + <tr> + <td> + 276 + </td> + <td> + <a href="279/index.html">#279</a> + </td> + <td>don</td> + <td>85 byte</td> + <td>2024-03-09 14:38:13</td> + <td>失敗</td> + </tr> + <tr> + <td> + 277 + </td> + <td> + <a href="153/index.html">#153</a> + </td> + <td>o2zdip</td> + <td>88 byte</td> + <td>2024-03-08 18:16:59</td> + <td>失敗</td> + </tr> + <tr> + <td> + 278 + </td> + <td> + <a href="9/index.html">#9</a> + </td> + <td>tadsan (staff)</td> + <td>89 byte</td> + <td>2024-03-06 20:21:12</td> + <td>失敗</td> + </tr> + <tr> + <td> + 279 + </td> + <td> + <a href="276/index.html">#276</a> + </td> + <td>don</td> + <td>90 byte</td> + <td>2024-03-09 14:36:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 280 + </td> + <td> + <a href="88/index.html">#88</a> + </td> + <td>chatii</td> + <td>91 byte</td> + <td>2024-03-08 10:24:12</td> + <td>失敗</td> + </tr> + <tr> + <td> + 281 + </td> + <td> + <a href="100/index.html">#100</a> + </td> + <td>chatii</td> + <td>93 byte</td> + <td>2024-03-08 11:24:10</td> + <td>失敗</td> + </tr> + <tr> + <td> + 282 + </td> + <td> + <a href="152/index.html">#152</a> + </td> + <td>o2zdip</td> + <td>94 byte</td> + <td>2024-03-08 18:15:24</td> + <td>失敗</td> + </tr> + <tr> + <td> + 283 + </td> + <td> + <a href="155/index.html">#155</a> + </td> + <td>o2zdip</td> + <td>94 byte</td> + <td>2024-03-08 18:18:15</td> + <td>失敗</td> + </tr> + <tr> + <td> + 284 + </td> + <td> + <a href="160/index.html">#160</a> + </td> + <td>arinc0</td> + <td>94 byte</td> + <td>2024-03-08 18:24:38</td> + <td>失敗</td> + </tr> + <tr> + <td> + 285 + </td> + <td> + <a href="233/index.html">#233</a> + </td> + <td>notchman</td> + <td>95 byte</td> + <td>2024-03-09 11:36:27</td> + <td>失敗</td> + </tr> + <tr> + <td> + 286 + </td> + <td> + <a href="43/index.html">#43</a> + </td> + <td>rinchoku</td> + <td>98 byte</td> + <td>2024-03-07 22:59:16</td> + <td>失敗</td> + </tr> + <tr> + <td> + 287 + </td> + <td> + <a href="115/index.html">#115</a> + </td> + <td>hirosuke-pi</td> + <td>98 byte</td> + <td>2024-03-08 13:58:26</td> + <td>失敗</td> + </tr> + <tr> + <td> + 288 + </td> + <td> + <a href="107/index.html">#107</a> + </td> + <td>chatii</td> + <td>99 byte</td> + <td>2024-03-08 11:56:18</td> + <td>失敗</td> + </tr> + <tr> + <td> + 289 + </td> + <td> + <a href="267/index.html">#267</a> + </td> + <td>don</td> + <td>101 byte</td> + <td>2024-03-09 14:11:20</td> + <td>失敗</td> + </tr> + <tr> + <td> + 290 + </td> + <td> + <a href="156/index.html">#156</a> + </td> + <td>o2zdip</td> + <td>104 byte</td> + <td>2024-03-08 18:20:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 291 + </td> + <td> + <a href="158/index.html">#158</a> + </td> + <td>o2zdip</td> + <td>109 byte</td> + <td>2024-03-08 18:21:05</td> + <td>失敗</td> + </tr> + <tr> + <td> + 292 + </td> + <td> + <a href="266/index.html">#266</a> + </td> + <td>don</td> + <td>110 byte</td> + <td>2024-03-09 14:10:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 293 + </td> + <td> + <a href="209/index.html">#209</a> + </td> + <td>k-kuwata</td> + <td>111 byte</td> + <td>2024-03-09 08:29:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 294 + </td> + <td> + <a href="36/index.html">#36</a> + </td> + <td>rinchoku</td> + <td>112 byte</td> + <td>2024-03-07 22:46:41</td> + <td>失敗</td> + </tr> + <tr> + <td> + 295 + </td> + <td> + <a href="189/index.html">#189</a> + </td> + <td>akinoriakatsuka</td> + <td>113 byte</td> + <td>2024-03-09 01:10:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 296 + </td> + <td> + <a href="157/index.html">#157</a> + </td> + <td>o2zdip</td> + <td>114 byte</td> + <td>2024-03-08 18:20:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 297 + </td> + <td> + <a href="14/index.html">#14</a> + </td> + <td>Natsuki</td> + <td>143 byte</td> + <td>2024-03-07 15:06:36</td> + <td>失敗</td> + </tr> + <tr> + <td> + 298 + </td> + <td> + <a href="15/index.html">#15</a> + </td> + <td>Natsuki</td> + <td>143 byte</td> + <td>2024-03-07 15:10:51</td> + <td>失敗</td> + </tr> + <tr> + <td> + 299 + </td> + <td> + <a href="37/index.html">#37</a> + </td> + <td>rinchoku</td> + <td>143 byte</td> + <td>2024-03-07 22:51:09</td> + <td>失敗</td> + </tr> + <tr> + <td> + 300 + </td> + <td> + <a href="16/index.html">#16</a> + </td> + <td>Natsuki</td> + <td>144 byte</td> + <td>2024-03-07 15:11:53</td> + <td>失敗</td> + </tr> + <tr> + <td> + 301 + </td> + <td> + <a href="17/index.html">#17</a> + </td> + <td>Natsuki</td> + <td>144 byte</td> + <td>2024-03-07 15:12:58</td> + <td>失敗</td> + </tr> + <tr> + <td> + 302 + </td> + <td> + <a href="18/index.html">#18</a> + </td> + <td>Natsuki</td> + <td>144 byte</td> + <td>2024-03-07 16:18:35</td> + <td>失敗</td> + </tr> + <tr> + <td> + 303 + </td> + <td> + <a href="81/index.html">#81</a> + </td> + <td>chatii</td> + <td>144 byte</td> + <td>2024-03-08 09:11:07</td> + <td>失敗</td> + </tr> + <tr> + <td> + 304 + </td> + <td> + <a href="122/index.html">#122</a> + </td> + <td>you110</td> + <td>145 byte</td> + <td>2024-03-08 16:50:44</td> + <td>失敗</td> + </tr> + <tr> + <td> + 305 + </td> + <td> + <a href="121/index.html">#121</a> + </td> + <td>you110</td> + <td>146 byte</td> + <td>2024-03-08 16:48:39</td> + <td>失敗</td> + </tr> + <tr> + <td> + 306 + </td> + <td> + <a href="30/index.html">#30</a> + </td> + <td>gennei</td> + <td>149 byte</td> + <td>2024-03-07 22:25:31</td> + <td>失敗</td> + </tr> + <tr> + <td> + 307 + </td> + <td> + <a href="127/index.html">#127</a> + </td> + <td>notchman</td> + <td>153 byte</td> + <td>2024-03-08 17:25:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 308 + </td> + <td> + <a href="141/index.html">#141</a> + </td> + <td>m3m0r7</td> + <td>159 byte</td> + <td>2024-03-08 18:09:30</td> + <td>失敗</td> + </tr> + <tr> + <td> + 309 + </td> + <td> + <a href="7/index.html">#7</a> + </td> + <td>muno92 (staff)</td> + <td>209 byte</td> + <td>2024-03-06 08:44:28</td> + <td>失敗</td> + </tr> + <tr> + <td> + 310 + </td> + <td> + <a href="8/index.html">#8</a> + </td> + <td>muno92 (staff)</td> + <td>209 byte</td> + <td>2024-03-06 12:31:34</td> + <td>失敗</td> + </tr> + <tr> + <td> + 311 + </td> + <td> + <a href="314/index.html">#314</a> + </td> + <td>zonepotage</td> + <td>584 byte</td> + <td>2024-03-09 16:50:17</td> + <td>失敗</td> + </tr> + <tr> + <td> + 312 + </td> + <td> + <a href="313/index.html">#313</a> + </td> + <td>zonepotage</td> + <td>587 byte</td> + <td>2024-03-09 16:48:49</td> + <td>失敗</td> + </tr> + <tr> + <td> + 313 + </td> + <td> + <a href="5/index.html">#5</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>2108 byte</td> + <td>2024-03-06 08:27:46</td> + <td>失敗</td> + </tr> + </tbody> + </table> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/archive/q/fizzbuzz/index.html b/archive/q/fizzbuzz/index.html new file mode 100644 index 0000000..f5637f2 --- /dev/null +++ b/archive/q/fizzbuzz/index.html @@ -0,0 +1,461 @@ +<!DOCTYPE html> +<html> + <head> + <meta name="viewport" content="width=device-width, initial-scale=1"> + <title>問題 #1 | Albatross.PHP</title> + <link rel="stylesheet" href="../../assets/index.css"> + <link rel="icon" type="image/svg+xml" href="../../assets/favicon.svg"> + <script type="module" src="../../assets/index.js"></script> + </head> + <body> + <header class="container"> + <nav class="navbar"> + <a class="navbar-brand" href="../../index.html">Albatross.PHP</a> + </nav> + </header> + <main class="container mt-5"> + <h1 class="mb-4">問題 #1</h1> + <nav> + <ol class="breadcrumb"> + <li class="breadcrumb-item"><a href="../../index.html">問題一覧</a></li> + <li class="breadcrumb-item active">FizzBuzz</li> + </ol> + </nav> + + <h2>FizzBuzz</h2> + <p> + いわゆる「FizzBuzz」を実装してください。
+1から100までの数字について、その数が3の倍数なら「Fizz」、5の倍数なら「Buzz」、15の倍数なら「FizzBuzz」、それ以外ならその数そのものを出力してください。それぞれの出力は改行で区切ってください。 + </p> + <h3>実装例</h3> + <pre><code class="hljs language-php">for ($i = 1; $i <= 100; $i++) {
+ echo match ([$i % 3 === 0, $i % 5 === 0]) {
+ [true, true] => "FizzBuzz",
+ [true, false] => "Fizz",
+ [false, true] => "Buzz",
+ [false, false] => $i,
+ }, PHP_EOL;
+}</code></pre> + <h2>ランキング</h2> + <table class="table table-striped table-bordered"> + <thead> + <tr> + <th>ランク</th> + <th>ID</th> + <th>作者</th> + <th>サイズ</th> + <th>投稿日時</th> + </tr> + </thead> + <tbody> + <tr> + <td>1</td> + <td> + <a href="a/298/index.html">#298</a> + </td> + <td>notchman</td> + <td>60 byte</td> + <td>2024-03-09 15:10:47</td> + </tr> + <tr> + <td>2</td> + <td> + <a href="a/13/index.html">#13</a> + </td> + <td>nsfisis (staff)</td> + <td>62 byte</td> + <td>2024-03-07 15:02:40</td> + </tr> + <tr> + <td>3</td> + <td> + <a href="a/74/index.html">#74</a> + </td> + <td>basi</td> + <td>62 byte</td> + <td>2024-03-08 02:49:49</td> + </tr> + <tr> + <td>4</td> + <td> + <a href="a/272/index.html">#272</a> + </td> + <td>masnmt</td> + <td>62 byte</td> + <td>2024-03-09 14:30:58</td> + </tr> + <tr> + <td>5</td> + <td> + <a href="a/79/index.html">#79</a> + </td> + <td>tadsan (staff)</td> + <td>63 byte</td> + <td>2024-03-08 03:32:29</td> + </tr> + <tr> + <td>6</td> + <td> + <a href="a/204/index.html">#204</a> + </td> + <td>keitamax</td> + <td>63 byte</td> + <td>2024-03-09 02:08:43</td> + </tr> + <tr> + <td>7</td> + <td> + <a href="a/119/index.html">#119</a> + </td> + <td>hanhan1978</td> + <td>65 byte</td> + <td>2024-03-08 15:10:37</td> + </tr> + <tr> + <td>8</td> + <td> + <a href="a/169/index.html">#169</a> + </td> + <td>hirahira</td> + <td>65 byte</td> + <td>2024-03-08 18:59:05</td> + </tr> + <tr> + <td>9</td> + <td> + <a href="a/44/index.html">#44</a> + </td> + <td>yamamoto-hiroya</td> + <td>66 byte</td> + <td>2024-03-07 23:00:07</td> + </tr> + <tr> + <td>10</td> + <td> + <a href="a/253/index.html">#253</a> + </td> + <td>yoshitaka-u1f44d-gz</td> + <td>66 byte</td> + <td>2024-03-09 12:28:09</td> + </tr> + <tr> + <td>11</td> + <td> + <a href="a/291/index.html">#291</a> + </td> + <td>shogogg</td> + <td>66 byte</td> + <td>2024-03-09 14:58:17</td> + </tr> + <tr> + <td>12</td> + <td> + <a href="a/307/index.html">#307</a> + </td> + <td>shunsock</td> + <td>66 byte</td> + <td>2024-03-09 16:14:45</td> + </tr> + <tr> + <td>13</td> + <td> + <a href="a/92/index.html">#92</a> + </td> + <td>oogFranz</td> + <td>68 byte</td> + <td>2024-03-08 11:00:22</td> + </tr> + <tr> + <td>14</td> + <td> + <a href="a/219/index.html">#219</a> + </td> + <td>chatii</td> + <td>68 byte</td> + <td>2024-03-09 09:10:17</td> + </tr> + <tr> + <td>15</td> + <td> + <a href="a/135/index.html">#135</a> + </td> + <td>m3m0r7</td> + <td>69 byte</td> + <td>2024-03-08 17:56:30</td> + </tr> + <tr> + <td>16</td> + <td> + <a href="a/48/index.html">#48</a> + </td> + <td>takaram</td> + <td>72 byte</td> + <td>2024-03-08 00:08:54</td> + </tr> + <tr> + <td>17</td> + <td> + <a href="a/201/index.html">#201</a> + </td> + <td>akinoriakatsuka</td> + <td>72 byte</td> + <td>2024-03-09 01:56:02</td> + </tr> + <tr> + <td>18</td> + <td> + <a href="a/260/index.html">#260</a> + </td> + <td>uzulla</td> + <td>73 byte</td> + <td>2024-03-09 13:56:35</td> + </tr> + <tr> + <td>19</td> + <td> + <a href="a/87/index.html">#87</a> + </td> + <td>ticknical</td> + <td>75 byte</td> + <td>2024-03-08 09:37:22</td> + </tr> + <tr> + <td>20</td> + <td> + <a href="a/142/index.html">#142</a> + </td> + <td>tsuchikazu</td> + <td>75 byte</td> + <td>2024-03-08 18:10:22</td> + </tr> + <tr> + <td>21</td> + <td> + <a href="a/224/index.html">#224</a> + </td> + <td>tsbkw</td> + <td>76 byte</td> + <td>2024-03-09 10:53:53</td> + </tr> + <tr> + <td>22</td> + <td> + <a href="a/180/index.html">#180</a> + </td> + <td>hibiki-cube</td> + <td>77 byte</td> + <td>2024-03-08 22:35:56</td> + </tr> + <tr> + <td>23</td> + <td> + <a href="a/228/index.html">#228</a> + </td> + <td>ishikawam</td> + <td>77 byte</td> + <td>2024-03-09 11:15:10</td> + </tr> + <tr> + <td>24</td> + <td> + <a href="a/125/index.html">#125</a> + </td> + <td>happylifetaka</td> + <td>79 byte</td> + <td>2024-03-08 17:19:13</td> + </tr> + <tr> + <td>25</td> + <td> + <a href="a/168/index.html">#168</a> + </td> + <td>arinc0</td> + <td>81 byte</td> + <td>2024-03-08 18:53:55</td> + </tr> + <tr> + <td>26</td> + <td> + <a href="a/297/index.html">#297</a> + </td> + <td>pyama86</td> + <td>84 byte</td> + <td>2024-03-09 15:05:57</td> + </tr> + <tr> + <td>27</td> + <td> + <a href="a/311/index.html">#311</a> + </td> + <td>kunikiya</td> + <td>87 byte</td> + <td>2024-03-09 16:42:11</td> + </tr> + <tr> + <td>28</td> + <td> + <a href="a/25/index.html">#25</a> + </td> + <td>moeyashi</td> + <td>91 byte</td> + <td>2024-03-07 18:02:22</td> + </tr> + <tr> + <td>29</td> + <td> + <a href="a/116/index.html">#116</a> + </td> + <td>matsuoatsushi</td> + <td>91 byte</td> + <td>2024-03-08 14:02:24</td> + </tr> + <tr> + <td>30</td> + <td> + <a href="a/45/index.html">#45</a> + </td> + <td>rinchoku</td> + <td>93 byte</td> + <td>2024-03-07 23:01:39</td> + </tr> + <tr> + <td>31</td> + <td> + <a href="a/280/index.html">#280</a> + </td> + <td>don</td> + <td>93 byte</td> + <td>2024-03-09 14:38:43</td> + </tr> + <tr> + <td>32</td> + <td> + <a href="a/118/index.html">#118</a> + </td> + <td>okashoi</td> + <td>95 byte</td> + <td>2024-03-08 14:58:35</td> + </tr> + <tr> + <td>33</td> + <td> + <a href="a/179/index.html">#179</a> + </td> + <td>xpadev</td> + <td>96 byte</td> + <td>2024-03-08 21:04:33</td> + </tr> + <tr> + <td>34</td> + <td> + <a href="a/159/index.html">#159</a> + </td> + <td>o2zdip</td> + <td>107 byte</td> + <td>2024-03-08 18:24:25</td> + </tr> + <tr> + <td>35</td> + <td> + <a href="a/206/index.html">#206</a> + </td> + <td>azuki-penguin</td> + <td>110 byte</td> + <td>2024-03-09 02:11:56</td> + </tr> + <tr> + <td>36</td> + <td> + <a href="a/34/index.html">#34</a> + </td> + <td>gennei</td> + <td>113 byte</td> + <td>2024-03-07 22:34:58</td> + </tr> + <tr> + <td>37</td> + <td> + <a href="a/117/index.html">#117</a> + </td> + <td>hirosuke-pi</td> + <td>115 byte</td> + <td>2024-03-08 14:13:55</td> + </tr> + <tr> + <td>38</td> + <td> + <a href="a/19/index.html">#19</a> + </td> + <td>Natsuki</td> + <td>143 byte</td> + <td>2024-03-07 16:39:28</td> + </tr> + <tr> + <td>39</td> + <td> + <a href="a/124/index.html">#124</a> + </td> + <td>you110</td> + <td>163 byte</td> + <td>2024-03-08 16:58:34</td> + </tr> + <tr> + <td>40</td> + <td> + <a href="a/3/index.html">#3</a> + </td> + <td>blue-goheimochi (staff)</td> + <td>209 byte</td> + <td>2024-03-06 08:15:27</td> + </tr> + <tr> + <td>41</td> + <td> + <a href="a/6/index.html">#6</a> + </td> + <td>muno92 (staff)</td> + <td>209 byte</td> + <td>2024-03-06 08:42:11</td> + </tr> + <tr> + <td>42</td> + <td> + <a href="a/194/index.html">#194</a> + </td> + <td>hamaco</td> + <td>209 byte</td> + <td>2024-03-09 01:32:19</td> + </tr> + <tr> + <td>43</td> + <td> + <a href="a/270/index.html">#270</a> + </td> + <td>yukinissie</td> + <td>209 byte</td> + <td>2024-03-09 14:21:16</td> + </tr> + <tr> + <td>44</td> + <td> + <a href="a/303/index.html">#303</a> + </td> + <td>Nagase</td> + <td>209 byte</td> + <td>2024-03-09 15:29:28</td> + </tr> + </tbody> + </table> + <div> + <canvas id="chart" data-quiz-id="1"></canvas> + <script type="module" src="../../assets/chart.js"></script> + </div> + <p> + <a href="a/index.html">すべての回答を見る</a> + </p> + </main> + <footer class="container text-center mt-5 mb-4"> + Albatross.PHP - PHPerKaigi 2024 + </footer> + </body> +</html> diff --git a/assets/chart.js b/assets/chart.js new file mode 100644 index 0000000..9ff08e4 --- /dev/null +++ b/assets/chart.js @@ -0,0 +1,146 @@ +import { + Chart, + Colors, + LineController, + LineElement, + LinearScale, + PointElement, + TimeScale, + Tooltip, +} from 'chart.js' +import 'chartjs-adapter-date-fns'; + +Chart.register( + Colors, + LineController, + LineElement, + LinearScale, + PointElement, + TimeScale, + Tooltip, +); + +document.addEventListener('DOMContentLoaded', async () => { + const chartCanvas = document.getElementById('chart'); + const quizId = chartCanvas.dataset.quizId; + + const apiUrl = `${process.env.ALBATROSS_BASE_PATH}/api/quizzes/${quizId}/chart`; + const apiResult = await fetch(apiUrl).then(res => res.json()); + if (apiResult.error) { + return; + } + const stats = apiResult.stats; + + // Filter best scores. + for (const s of stats) { + const bestScores = []; + for (const score of s.scores) { + if (bestScores.length === 0 || bestScores[bestScores.length - 1].code_size > score.code_size) { + bestScores.push(score); + } + } + s.scores = bestScores; + } + + const scoresInChronologicalOrder = stats + .flatMap(s => s.scores.map(score => ({ ...score, user: s.user }))) + .toSorted((a, b) => a.submitted_at - b.submitted_at); + + const scoresAndRanksAtEachTime = (() => { + const result = []; + const currentScoresForUser = new Map(); + for (const { user, submitted_at, code_size } of scoresInChronologicalOrder) { + currentScoresForUser.set(user.name, { user, submitted_at, code_size }); + const ranking = currentScoresForUser + .values() + .toArray() + .toSorted( + (a, b) => a.code_size === b.code_size ? a.submitted_at - b.submitted_at : a.code_size - b.code_size, + ); + const scores = new Map(); + for (const [i, { user, code_size }] of ranking.entries()) { + scores.set(user.name, { + user, + code_size, + rank: i + 1, + }); + } + result.push({ submitted_at: submitted_at, scores }); + } + return result; + })(); + + const rankingHistory = (() => { + const result = new Map(); + for (const { submitted_at, scores } of scoresAndRanksAtEachTime) { + for (const [username, { user, code_size, rank }] of scores.entries()) { + if (!result.has(username)) { + result.set(username, []); + } + const scores = result.get(username); + scores.push({ user, code_size, rank, submitted_at }); + } + } + return result + .values() + .toArray() + .toSorted((a, b) => { + const finalRankA = a[a.length - 1].rank; + const finalRankB = b[b.length - 1].rank; + return finalRankA - finalRankB; + }); + })(); + + new Chart( + chartCanvas, + { + type: 'line', + data: { + datasets: rankingHistory.map(s => ({ + label: `${s[0].user.name}${s[0].user.is_admin ? ' (staff)' : ''}`, + data: s.map(row => ({ x: row.submitted_at * 1000, y: row.rank, code_size: row.code_size })), + })) + }, + options: { + scales: { + x: { + type: 'time', + time: { + parsing: false, + display: false, + unit: 'day', + tooltipFormat: 'yyyy-MM-dd HH:mm:ss', + displayFormats: { + day: 'yyyy-MM-dd', + }, + }, + title: { + display: true, + text: '日時', + }, + }, + y: { + title: { + display: true, + text: '順位', + }, + reverse: true, + min: 1, + offset: true, + }, + }, + plugins: { + tooltip: { + callbacks: { + label: (context) => { + const label = context.dataset.label; + const code_size = context.raw.code_size; + return `${label} (${code_size} byte)`; + }, + }, + }, + }, + }, + }, + ); +}); diff --git a/assets/favicon.svg b/assets/favicon.svg new file mode 100644 index 0000000..931fc7b --- /dev/null +++ b/assets/favicon.svg @@ -0,0 +1,21 @@ +<svg xmlns="http://www.w3.org/2000/svg" width="130" height="130" viewBox="0 0 130 130">
+ <defs>
+ <style>
+ .cls-1 {
+ fill: none;
+ }
+ .cls-2 {
+ fill: #e60082;
+ }
+ @media (prefers-color-scheme: dark) {
+ .cls-2 {
+ fill: #fff;
+ }
+ }
+ </style>
+ </defs>
+ <g transform="translate(627 -2695)">
+ <rect class="cls-1" width="130" height="130" rx="5" transform="translate(-627 2695)"/>
+ <path id="ttl_logo" class="cls-2" d="M109.44,46.755c-.044-.422-.184-1.635-.229-2.031a33.3,33.3,0,0,0-2.493-8.4C99.059,19.619,80.376,18.662,64.9,23.4A81.749,81.749,0,0,0,52.789,28.1a4.476,4.476,0,0,1-6.2-2.578C44.424,19.075,44.146,10.741,45.347,0,41.894,30.908,30.908,39.686,0,36.231c8.49.949,15.308,2.466,20.663,4.808a7.064,7.064,0,0,1,2.713,10.813q-1.432,1.849-2.762,3.781C7.53,74.662,3.576,99.531,9.39,121.736c.008-.4.02-1.02.047-1.771.194-5.34,1.6-39.572,25.766-63.228,1.965,6.352,2.186,14.475,1.029,24.842C39.686,50.67,50.669,41.894,81.578,45.347c-8.792-.983-15.791-2.576-21.228-5.062A70.955,70.955,0,0,1,72.492,36.52a37.193,37.193,0,0,1,8.647-.852,18.06,18.06,0,0,1,7.23,1.463c3.974,1.807,5.926,5.8,6.8,9.936.028.208.131.893.164,1.1.081.4.074,1.13.134,1.54.557,15.945-13.589,39.72-29.5,44.04A21.9,21.9,0,0,1,50.882,92.5a15.726,15.726,0,0,1-7.218-8.4,10.8,10.8,0,0,1-.124-7.89l-.612.876c-2.992,4.969-1.251,11.5,1.872,16.031,5.132,7.174,15.394,9.676,23.777,8.412,21.848-3.465,40.913-30.683,40.983-52.124-.029-.775-.039-1.894-.12-2.654" transform="translate(-617.883 2701.132)"/>
+ </g>
+</svg>
diff --git a/assets/index.js b/assets/index.js new file mode 100644 index 0000000..1125516 --- /dev/null +++ b/assets/index.js @@ -0,0 +1,13 @@ +import hljs from 'highlight.js/lib/core'; +import php from 'highlight.js/lib/languages/php'; +import plaintext from 'highlight.js/lib/languages/plaintext'; +import 'highlight.js/styles/github.css'; +import 'bootstrap/dist/css/bootstrap.css'; + +document.addEventListener('DOMContentLoaded', () => { + hljs.registerLanguage('php', php); + hljs.registerLanguage('plaintext', plaintext); + hljs.highlightAll(); +}); + +console.log(`#Hooray!Albatross!`); diff --git a/assets/loading.js b/assets/loading.js new file mode 100644 index 0000000..49d8b48 --- /dev/null +++ b/assets/loading.js @@ -0,0 +1,60 @@ +document.addEventListener('DOMContentLoaded', () => { + const phperTokenElem = document.getElementsByClassName('js-phper-token')[0]; + + const aggregatedStatusElem = document.getElementsByClassName('js-aggregated-execution-status')[0]; + const aggregatedStatusLoadingIndicatorElem = document.getElementsByClassName('js-aggregated-execution-status-loading-indicator')[0]; + const answerId = aggregatedStatusElem.dataset.answerId; + + const getElemsMap = cls => new Map( + Array.from(document.getElementsByClassName(cls) ?? []) + .map(e => [parseInt(e.dataset.testcaseExecutionId), e]) + ); + const statusElemsMap = getElemsMap('js-testcase-execution-status'); + const statusLoadingIndicatorElemsMap = getElemsMap('js-testcase-execution-status-loading-indicator'); + const stdoutElemsMap = getElemsMap('js-testcase-execution-stdout'); + const stderrElemsMap = getElemsMap('js-testcase-execution-stderr'); + + if (!aggregatedStatusLoadingIndicatorElem) { + return; + } + + const apiUrl = `${process.env.ALBATROSS_BASE_PATH}/api/answers/${answerId}/statuses`; + + let timerId; + timerId = setInterval(() => { + fetch(apiUrl) + .then(response => response.json()) + .then(({ aggregated_status, testcase_executions, phper_token }) => { + if (phper_token) { + phperTokenElem.innerHTML = `<div class="alert alert-success">バーディー! ${phper_token}</div>`; + } + + for (const ex of testcase_executions) { + const statusElem = statusElemsMap.get(ex.id); + const loadingIndicatorElem = statusLoadingIndicatorElemsMap.get(ex.id); + const stdoutElem = stdoutElemsMap.get(ex.id); + const stderrElem = stderrElemsMap.get(ex.id); + + const { status, stdout, stderr } = ex; + if (status.label === statusElem.textContent) { + continue; + } + statusElem.textContent = status.label; + stdoutElem.textContent = stdout; + stderrElem.textContent = stderr; + if (loadingIndicatorElem && !status.show_loading_indicator) { + loadingIndicatorElem.remove(); + } + } + + if (aggregated_status.label === aggregatedStatusElem.textContent) { + return; + } + aggregatedStatusElem.textContent = aggregated_status.label; + if (!aggregated_status.show_loading_indicator) { + aggregatedStatusLoadingIndicatorElem.remove(); + clearInterval(timerId); + } + }); + }, 5 * 1000); +}); diff --git a/compose.yaml b/compose.yaml new file mode 100644 index 0000000..d8218f0 --- /dev/null +++ b/compose.yaml @@ -0,0 +1,11 @@ +services: + nginx: + image: nginx + volumes: + - ./nginx.conf:/etc/nginx/conf.d/default.conf + - ./archive:/archive + ports: + - '127.0.0.1:8001:80' + environment: + TZ: Asia/Tokyo + restart: always diff --git a/esbuild.mjs b/esbuild.mjs new file mode 100644 index 0000000..0e93539 --- /dev/null +++ b/esbuild.mjs @@ -0,0 +1,22 @@ +import { build } from 'esbuild' + +let ALBATROSS_BASE_PATH = process.env.ALBATROSS_BASE_PATH; +if (ALBATROSS_BASE_PATH == null) { + throw new Error('$ALBATROSS_BASE_PATH is not set'); +} +// WORKAROUND: +// Unquote the value as work-around for Docker and Docker Compose. +// How Docker parses .env files is different from how Docker Compose does for some reason. +// Docker treats the value as is, while Docker Compose strips the outermost quotes. +ALBATROSS_BASE_PATH = ALBATROSS_BASE_PATH.replace(/^"(.*)"$/, '$1'); + +await build({ + entryPoints: ['assets/index.js', 'assets/chart.js', 'assets/loading.js'], + outdir: 'public/assets', + bundle: true, + minify: true, + sourcemap: true, + define: { + 'process.env.ALBATROSS_BASE_PATH': JSON.stringify(ALBATROSS_BASE_PATH), + }, +}); diff --git a/nginx.conf b/nginx.conf new file mode 100644 index 0000000..a6ff388 --- /dev/null +++ b/nginx.conf @@ -0,0 +1,10 @@ +server { + listen 80 default; + listen [::]:80; + + charset UTF-8; + + location /phperkaigi/2024/golf/ { + alias /archive/; + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..f2cb694 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,482 @@ +{ + "name": "albatross", + "version": "0.1.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "name": "albatross", + "version": "0.1.0", + "license": "MIT", + "dependencies": { + "bootstrap": "5.3.2", + "chart.js": "^4.4.1", + "chartjs-adapter-date-fns": "^3.0.0", + "date-fns": "^3.1.0", + "highlight.js": "11.8.0" + }, + "devDependencies": { + "esbuild": "0.19.4" + } + }, + "node_modules/@esbuild/android-arm": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm/-/android-arm-0.19.4.tgz", + "integrity": "sha512-uBIbiYMeSsy2U0XQoOGVVcpIktjLMEKa7ryz2RLr7L/vTnANNEsPVAh4xOv7ondGz6ac1zVb0F8Jx20rQikffQ==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-arm64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-arm64/-/android-arm64-0.19.4.tgz", + "integrity": "sha512-mRsi2vJsk4Bx/AFsNBqOH2fqedxn5L/moT58xgg51DjX1la64Z3Npicut2VbhvDFO26qjWtPMsVxCd80YTFVeg==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/android-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/android-x64/-/android-x64-0.19.4.tgz", + "integrity": "sha512-4iPufZ1TMOD3oBlGFqHXBpa3KFT46aLl6Vy7gwed0ZSYgHaZ/mihbYb4t7Z9etjkC9Al3ZYIoOaHrU60gcMy7g==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-arm64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.19.4.tgz", + "integrity": "sha512-Lviw8EzxsVQKpbS+rSt6/6zjn9ashUZ7Tbuvc2YENgRl0yZTktGlachZ9KMJUsVjZEGFVu336kl5lBgDN6PmpA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/darwin-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/darwin-x64/-/darwin-x64-0.19.4.tgz", + "integrity": "sha512-YHbSFlLgDwglFn0lAO3Zsdrife9jcQXQhgRp77YiTDja23FrC2uwnhXMNkAucthsf+Psr7sTwYEryxz6FPAVqw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-arm64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.4.tgz", + "integrity": "sha512-vz59ijyrTG22Hshaj620e5yhs2dU1WJy723ofc+KUgxVCM6zxQESmWdMuVmUzxtGqtj5heHyB44PjV/HKsEmuQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/freebsd-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/freebsd-x64/-/freebsd-x64-0.19.4.tgz", + "integrity": "sha512-3sRbQ6W5kAiVQRBWREGJNd1YE7OgzS0AmOGjDmX/qZZecq8NFlQsQH0IfXjjmD0XtUYqr64e0EKNFjMUlPL3Cw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm/-/linux-arm-0.19.4.tgz", + "integrity": "sha512-z/4ArqOo9EImzTi4b6Vq+pthLnepFzJ92BnofU1jgNlcVb+UqynVFdoXMCFreTK7FdhqAzH0vmdwW5373Hm9pg==", + "cpu": [ + "arm" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-arm64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-arm64/-/linux-arm64-0.19.4.tgz", + "integrity": "sha512-ZWmWORaPbsPwmyu7eIEATFlaqm0QGt+joRE9sKcnVUG3oBbr/KYdNE2TnkzdQwX6EDRdg/x8Q4EZQTXoClUqqA==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ia32": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ia32/-/linux-ia32-0.19.4.tgz", + "integrity": "sha512-EGc4vYM7i1GRUIMqRZNCTzJh25MHePYsnQfKDexD8uPTCm9mK56NIL04LUfX2aaJ+C9vyEp2fJ7jbqFEYgO9lQ==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-loong64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-loong64/-/linux-loong64-0.19.4.tgz", + "integrity": "sha512-WVhIKO26kmm8lPmNrUikxSpXcgd6HDog0cx12BUfA2PkmURHSgx9G6vA19lrlQOMw+UjMZ+l3PpbtzffCxFDRg==", + "cpu": [ + "loong64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-mips64el": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-mips64el/-/linux-mips64el-0.19.4.tgz", + "integrity": "sha512-keYY+Hlj5w86hNp5JJPuZNbvW4jql7c1eXdBUHIJGTeN/+0QFutU3GrS+c27L+NTmzi73yhtojHk+lr2+502Mw==", + "cpu": [ + "mips64el" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-ppc64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-ppc64/-/linux-ppc64-0.19.4.tgz", + "integrity": "sha512-tQ92n0WMXyEsCH4m32S21fND8VxNiVazUbU4IUGVXQpWiaAxOBvtOtbEt3cXIV3GEBydYsY8pyeRMJx9kn3rvw==", + "cpu": [ + "ppc64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-riscv64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-riscv64/-/linux-riscv64-0.19.4.tgz", + "integrity": "sha512-tRRBey6fG9tqGH6V75xH3lFPpj9E8BH+N+zjSUCnFOX93kEzqS0WdyJHkta/mmJHn7MBaa++9P4ARiU4ykjhig==", + "cpu": [ + "riscv64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-s390x": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-s390x/-/linux-s390x-0.19.4.tgz", + "integrity": "sha512-152aLpQqKZYhThiJ+uAM4PcuLCAOxDsCekIbnGzPKVBRUDlgaaAfaUl5NYkB1hgY6WN4sPkejxKlANgVcGl9Qg==", + "cpu": [ + "s390x" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/linux-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.19.4.tgz", + "integrity": "sha512-Mi4aNA3rz1BNFtB7aGadMD0MavmzuuXNTaYL6/uiYIs08U7YMPETpgNn5oue3ICr+inKwItOwSsJDYkrE9ekVg==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/netbsd-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/netbsd-x64/-/netbsd-x64-0.19.4.tgz", + "integrity": "sha512-9+Wxx1i5N/CYo505CTT7T+ix4lVzEdz0uCoYGxM5JDVlP2YdDC1Bdz+Khv6IbqmisT0Si928eAxbmGkcbiuM/A==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "netbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/openbsd-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/openbsd-x64/-/openbsd-x64-0.19.4.tgz", + "integrity": "sha512-MFsHleM5/rWRW9EivFssop+OulYVUoVcqkyOkjiynKBCGBj9Lihl7kh9IzrreDyXa4sNkquei5/DTP4uCk25xw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "openbsd" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/sunos-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/sunos-x64/-/sunos-x64-0.19.4.tgz", + "integrity": "sha512-6Xq8SpK46yLvrGxjp6HftkDwPP49puU4OF0hEL4dTxqCbfx09LyrbUj/D7tmIRMj5D5FCUPksBbxyQhp8tmHzw==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "sunos" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-arm64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-arm64/-/win32-arm64-0.19.4.tgz", + "integrity": "sha512-PkIl7Jq4mP6ke7QKwyg4fD4Xvn8PXisagV/+HntWoDEdmerB2LTukRZg728Yd1Fj+LuEX75t/hKXE2Ppk8Hh1w==", + "cpu": [ + "arm64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-ia32": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-ia32/-/win32-ia32-0.19.4.tgz", + "integrity": "sha512-ga676Hnvw7/ycdKB53qPusvsKdwrWzEyJ+AtItHGoARszIqvjffTwaaW3b2L6l90i7MO9i+dlAW415INuRhSGg==", + "cpu": [ + "ia32" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@esbuild/win32-x64": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/@esbuild/win32-x64/-/win32-x64-0.19.4.tgz", + "integrity": "sha512-HP0GDNla1T3ZL8Ko/SHAS2GgtjOg+VmWnnYLhuTksr++EnduYB0f3Y2LzHsUwb2iQ13JGoY6G3R8h6Du/WG6uA==", + "cpu": [ + "x64" + ], + "dev": true, + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">=12" + } + }, + "node_modules/@kurkle/color": { + "version": "0.3.2", + "resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz", + "integrity": "sha512-fuscdXJ9G1qb7W8VdHi+IwRqij3lBkosAm4ydQtEmbY58OzHXqQhvlxqEkoz0yssNVn38bcpRWgA9PP+OGoisw==" + }, + "node_modules/@popperjs/core": { + "version": "2.11.8", + "resolved": "https://registry.npmjs.org/@popperjs/core/-/core-2.11.8.tgz", + "integrity": "sha512-P1st0aksCrn9sGZhp8GMYwBnQsbvAWsZAX44oXNNvLHGqAOcoVxmjZiohstwQ7SqKnbR47akdNi+uleWD8+g6A==", + "peer": true, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/popperjs" + } + }, + "node_modules/bootstrap": { + "version": "5.3.2", + "resolved": "https://registry.npmjs.org/bootstrap/-/bootstrap-5.3.2.tgz", + "integrity": "sha512-D32nmNWiQHo94BKHLmOrdjlL05q1c8oxbtBphQFb9Z5to6eGRDCm0QgeaZ4zFBHzfg2++rqa2JkqCcxDy0sH0g==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/twbs" + }, + { + "type": "opencollective", + "url": "https://opencollective.com/bootstrap" + } + ], + "peerDependencies": { + "@popperjs/core": "^2.11.8" + } + }, + "node_modules/chart.js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/chart.js/-/chart.js-4.4.1.tgz", + "integrity": "sha512-C74QN1bxwV1v2PEujhmKjOZ7iUM4w6BWs23Md/6aOZZSlwMzeCIDGuZay++rBgChYru7/+QFeoQW0fQoP534Dg==", + "dependencies": { + "@kurkle/color": "^0.3.0" + }, + "engines": { + "pnpm": ">=7" + } + }, + "node_modules/chartjs-adapter-date-fns": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/chartjs-adapter-date-fns/-/chartjs-adapter-date-fns-3.0.0.tgz", + "integrity": "sha512-Rs3iEB3Q5pJ973J93OBTpnP7qoGwvq3nUnoMdtxO+9aoJof7UFcRbWcIDteXuYd1fgAvct/32T9qaLyLuZVwCg==", + "peerDependencies": { + "chart.js": ">=2.8.0", + "date-fns": ">=2.0.0" + } + }, + "node_modules/date-fns": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/date-fns/-/date-fns-3.1.0.tgz", + "integrity": "sha512-ZO7yefXV/wCWzd3I9haCHmfzlfA3i1a2HHO7ZXjtJrRjXt8FULKJ2Vl8wji3XYF4dQ0ZJ/tokXDZeYlFvgms9Q==", + "funding": { + "type": "github", + "url": "https://github.com/sponsors/kossnocorp" + } + }, + "node_modules/esbuild": { + "version": "0.19.4", + "resolved": "https://registry.npmjs.org/esbuild/-/esbuild-0.19.4.tgz", + "integrity": "sha512-x7jL0tbRRpv4QUyuDMjONtWFciygUxWaUM1kMX2zWxI0X2YWOt7MSA0g4UdeSiHM8fcYVzpQhKYOycZwxTdZkA==", + "dev": true, + "hasInstallScript": true, + "bin": { + "esbuild": "bin/esbuild" + }, + "engines": { + "node": ">=12" + }, + "optionalDependencies": { + "@esbuild/android-arm": "0.19.4", + "@esbuild/android-arm64": "0.19.4", + "@esbuild/android-x64": "0.19.4", + "@esbuild/darwin-arm64": "0.19.4", + "@esbuild/darwin-x64": "0.19.4", + "@esbuild/freebsd-arm64": "0.19.4", + "@esbuild/freebsd-x64": "0.19.4", + "@esbuild/linux-arm": "0.19.4", + "@esbuild/linux-arm64": "0.19.4", + "@esbuild/linux-ia32": "0.19.4", + "@esbuild/linux-loong64": "0.19.4", + "@esbuild/linux-mips64el": "0.19.4", + "@esbuild/linux-ppc64": "0.19.4", + "@esbuild/linux-riscv64": "0.19.4", + "@esbuild/linux-s390x": "0.19.4", + "@esbuild/linux-x64": "0.19.4", + "@esbuild/netbsd-x64": "0.19.4", + "@esbuild/openbsd-x64": "0.19.4", + "@esbuild/sunos-x64": "0.19.4", + "@esbuild/win32-arm64": "0.19.4", + "@esbuild/win32-ia32": "0.19.4", + "@esbuild/win32-x64": "0.19.4" + } + }, + "node_modules/highlight.js": { + "version": "11.8.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.8.0.tgz", + "integrity": "sha512-MedQhoqVdr0U6SSnWPzfiadUcDHfN/Wzq25AkXiQv9oiOO/sG0S7XkvpFIqWBl9Yq1UYyYOOVORs5UW2XlPyzg==", + "engines": { + "node": ">=12.0.0" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..5706844 --- /dev/null +++ b/package.json @@ -0,0 +1,21 @@ +{ + "name": "albatross", + "version": "0.1.0", + "main": "assets/index.js", + "type": "module", + "author": "nsfisis", + "license": "MIT", + "dependencies": { + "bootstrap": "5.3.2", + "chart.js": "^4.4.1", + "chartjs-adapter-date-fns": "^3.0.0", + "date-fns": "^3.1.0", + "highlight.js": "11.8.0" + }, + "devDependencies": { + "esbuild": "0.19.4" + }, + "scripts": { + "build": "node esbuild.mjs" + } +} |
