CINXE.COM
code golf - Reversed Multiple Pair - Code Golf Stack Exchange
<!DOCTYPE html> <html itemscope itemtype="https://schema.org/QAPage" class="html__responsive "> <head><script type="text/javascript" src="/_static/js/bundle-playback.js?v=HxkREWBo" charset="utf-8"></script> <script type="text/javascript" src="/_static/js/wombat.js?v=txqj7nKC" charset="utf-8"></script> <script>window.RufflePlayer=window.RufflePlayer||{};window.RufflePlayer.config={"autoplay":"on","unmuteOverlay":"hidden"};</script> <script type="text/javascript" src="/_static/js/ruffle/ruffle.js"></script> <script type="text/javascript"> __wm.init("https://web.archive.org/web"); __wm.wombat("https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair","20220202015155","https://web.archive.org/","web","/_static/", "1643766715"); </script> <link rel="stylesheet" type="text/css" href="/_static/css/banner-styles.css?v=S1zqJCYt" /> <link rel="stylesheet" type="text/css" href="/_static/css/iconochive.css?v=3PDvdIFv" /> <!-- End Wayback Rewrite JS Include --> <title>code golf - Reversed Multiple Pair - Code Golf Stack Exchange</title> <link rel="shortcut icon" href="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Sites/codegolf/Img/favicon.ico?v=663a978a681d"> <link rel="apple-touch-icon" href="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Sites/codegolf/Img/apple-touch-icon.png?v=53b5e16c7d06"> <link rel="image_src" href="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Sites/codegolf/Img/apple-touch-icon.png?v=53b5e16c7d06"> <link rel="search" type="application/opensearchdescription+xml" title="Code Golf Stack Exchange" href="/web/20220202015155/https://codegolf.stackexchange.com/opensearch.xml"> <link rel="canonical" href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair"/> <meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0, minimum-scale=1.0"> <meta property="og:type" content="website"/> <meta property="og:url" content="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair"/> <meta property="og:site_name" content="Code Golf Stack Exchange"/> <meta property="og:image" itemprop="image primaryImageOfPage" content="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Sites/codegolf/Img/apple-touch-icon@2.png?v=ed60a1645c65"/> <meta name="twitter:card" content="summary"/> <meta name="twitter:domain" content="codegolf.stackexchange.com"/> <meta name="twitter:site" content="@StackCodeGolf"/> <meta name="twitter:creator" content="@StackCodeGolf"/> <meta name="twitter:title" property="og:title" itemprop="name" content="Reversed Multiple Pair"/> <meta name="twitter:description" property="og:description" itemprop="description" content="Intro Two numbers are a reversed multiple pair if they satisfy the following property: $$ a\times b = reversed( (a-1)\times b ) $$ Here, \$reversed()\$ means to reverse the digits of a number (e. g..."/> <script id="webpack-public-path" type="text/uri-list">https://cdn.sstatic.net/</script> <script src="https://web.archive.org/web/20220202015155js_/https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script> <script async src="https://web.archive.org/web/20220202015155js_/https://cdn.sstatic.net/Js/third-party/stacks/stacks.min.js?v=b0f9a80d741d"></script> <script src="https://web.archive.org/web/20220202015155js_/https://cdn.sstatic.net/Js/stub.en.js?v=3c17e2ed94ca"></script> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20220202015155cs_/https://cdn.sstatic.net/Shared/stacks.css?v=db1ad041b106"> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20220202015155cs_/https://cdn.sstatic.net/Sites/codegolf/primary.css?v=44378d895f41"> <link rel="alternate" type="application/atom+xml" title="Feed for question 'Reversed Multiple Pair'" href="/web/20220202015155/https://codegolf.stackexchange.com/feeds/question/241992"> <meta name="twitter:app:country" content="US"/> <meta name="twitter:app:name:iphone" content="Stack Exchange iOS"/> <meta name="twitter:app:id:iphone" content="871299723"/> <meta name="twitter:app:url:iphone" content="se-zaphod://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair"/> <meta name="twitter:app:name:ipad" content="Stack Exchange iOS"/> <meta name="twitter:app:id:ipad" content="871299723"/> <meta name="twitter:app:url:ipad" content="se-zaphod://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair"/> <meta name="twitter:app:name:googleplay" content="Stack Exchange Android"> <meta name="twitter:app:url:googleplay" content="https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair"> <meta name="twitter:app:id:googleplay" content="com.stackexchange.marvin"> <script> StackExchange.ready(function () { StackExchange.using("snippets", function () { StackExchange.snippets.initSnippetRenderer(); }); StackExchange.using("postValidation", function () { StackExchange.postValidation.initOnBlurAndSubmit($('#post-form'), 2, 'answer'); }); StackExchange.question.init({hasOpenBounty:true,showAnswerHelp:true,totalCommentCount:8,shownCommentCount:5,enableTables:true,questionId:241992}); styleCode(); StackExchange.realtime.subscribeToQuestion('200', '241992'); StackExchange.using("gps", function () { StackExchange.gps.trackOutboundClicks('#content', '.js-post-body'); }); }); </script> <link rel="stylesheet" type="text/css" href="https://web.archive.org/web/20220202015155cs_/https://cdn.sstatic.net/Shared/Channels/channels.css?v=47a5e0f03c81"> <script type="text/x-mathjax-config"> MathJax.Hub.Config({"HTML-CSS": { preferredFont: "TeX", availableFonts: ["STIX","TeX"], linebreaks: { automatic:true }, EqnChunk: (MathJax.Hub.Browser.isMobile ? 10 : 50) }, tex2jax: { inlineMath: [ ["\\$", "\\$"] ], displayMath: [ ["$$","$$"], ["\\[", "\\]"] ], processEscapes: true, ignoreClass: "tex2jax_ignore|dno" }, TeX: { extensions: ["begingroup.js"], noUndefined: { attributes: { mathcolor: "red", mathbackground: "#FFEEEE", mathsize: "90%" } }, Macros: { href: "{}" } }, messageStyle: "none", styles: { ".MathJax_Display, .MathJax_Preview, .MathJax_Preview > *": { "background": "inherit" } }, SEEditor: "mathjaxEditing" }); </script> <script src="https://web.archive.org/web/20220202015155js_/https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-AMS_HTML-full"></script> <script> StackExchange.ready(function () { StackExchange.realtime.init('wss://qa.sockets.stackexchange.com'); StackExchange.realtime.subscribeToReputationNotifications('200'); StackExchange.realtime.subscribeToTopBarNotifications('200'); }); </script> <script type="application/json" data-role="module-args" data-module-name="Shared/options.mod">{"options":{"locale":"en","serverTime":1643766715,"routeName":"Questions/Show","stackAuthUrl":"https://web.archive.org/web/20220202015155/https://stackauth.com","networkMetaHostname":"meta.stackexchange.com","site":{"name":"Code Golf Stack Exchange","description":"Q\u0026A for programming puzzle enthusiasts and code golfers","isNoticesTabEnabled":true,"enableNewTagCreationWarning":false,"insertSpaceAfterNameTabCompletion":false,"id":200,"cookieDomain":".stackexchange.com","childUrl":"https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com","negativeVoteScoreFloor":null,"enableSocialMediaInSharePopup":true,"protocol":"https"},"user":{"fkey":"601590c31a179f4d74a0ace5439c2dbd5d790441b676d4168e7f01961469e9b5","tid":"23174ae9-4428-77ea-3f8a-bf730cbd996f","rep":0,"isAnonymous":true,"isAnonymousNetworkWide":true},"realtime":{"newest":true,"active":true,"tagged":true,"staleDisconnectIntervalInHours":0},"events":{"postType":{"question":1},"postEditionSection":{"title":1,"body":2,"tags":3}},"story":{"minCompleteBodyLength":75,"likedTagsMaxLength":300,"dislikedTagsMaxLength":300},"jobPreferences":{"maxNumDeveloperRoles":2,"maxNumIndustries":4},"svgIconPath":"https://web.archive.org/web/20220202015155/https://cdn.sstatic.net/Img/stacks-icons","svgIconHash":"cc5b3e0efea0"}}</script> <script type="application/json" data-role="module-args" data-module-name="Shared/settings.mod">{"settings":{"userProfile":{},"userMessaging":{},"tags":{},"subscriptions":{"defaultBasicMaxTrueUpSeats":250,"defaultFreemiumMaxTrueUpSeats":50,"defaultMaxTrueUpSeats":1000},"snippets":{"renderDomain":"stacksnippets.net","snippetsEnabled":true},"site":{"allowImageUploads":true,"enableImgurHttps":true,"enableUserHovercards":true,"forceHttpsImages":true,"styleCode":true},"questions":{"enableQuestionTitleLengthLiveWarning":true,"maxTitleSize":150,"questionTitleLengthStartLiveWarningChars":50},"intercom":{"appId":"inf0secd","hostBaseUrl":"https://web.archive.org/web/20220202015155/https://stacksnippets.net"},"paths":{},"monitoring":{"clientTimingsAbsoluteTimeout":30000,"clientTimingsDebounceTimeout":1000},"mentions":{"maxNumUsersInDropdown":50},"markdown":{"enableTables":true},"legal":{"oneTrustConfigId":"cb0f3c87-b769-4e66-bbaa-377f9194216d"},"flags":{"allowRetractingCommentFlags":true,"allowRetractingFlags":true},"elections":{"opaVoteResultsBaseUrl":"https://web.archive.org/web/20220202015155/https://www.opavote.com/results/"},"comments":{},"accounts":{"currentPasswordRequiredForChangingStackIdPassword":true}}}</script> <script>StackExchange.init();</script> </partial> <script> StackExchange.using.setCacheBreakers({"js/adops.en.js":"6da43f5e0a84","js/ask.en.js":"7ff9a9068fd6","js/begin-edit-event.en.js":"dd955babf04d","js/copy-transpiled.en.js":"2361b3437bc2","js/events.en.js":"","js/explore-qlist.en.js":"2b1f34938b8b","js/full-anon.en.js":"6c78d36fe6fa","js/full.en.js":"43c67e21e433","js/highlightjs-loader.en.js":"3c37abf5cb6d","js/inline-tag-editing.en.js":"c0cbc31e5702","js/keyboard-shortcuts.en.js":"7de4e127b6af","js/markdown-it-loader.en.js":"5818ef89ff9d","js/mobile.en.js":"320aa423a438","js/moderator.en.js":"e2ca03ce6c69","js/postCollections-transpiled.en.js":"8126e59701f9","js/post-validation.en.js":"c1c93bd57a54","js/question-editor.en.js":"","js/review-v2-transpiled.en.js":"51daf6ffd985","js/revisions.en.js":"839f528889ff","js/stacks-editor.en.js":"371ca4ee4630","js/tageditor.en.js":"825c9597ce2d","js/tageditornew.en.js":"5215bc97928a","js/tagsuggestions.en.js":"1bcff7d98f97","js/unlimited-transpiled.en.js":"7ed67670b600","js/wmd.en.js":"9453e3f4fd6e","js/mathjax-editing.en.js":"2581d730d948","js/snippet-javascript-codemirror.en.js":"73fce5cc7219"}); StackExchange.using("gps", function() { StackExchange.gps.init(false); }); </script> <noscript id="noscript-css"><style>body,.top-bar{margin-top:1.9em}</style></noscript> </head> <body class="question-page unified-theme"> <div id="notify-container"></div> <div id="custom-header"></div> <header class="top-bar js-top-bar top-bar__network"> <div class="wmx12 mx-auto d-flex ai-center h100" role="menubar"> <div class="-main flex--item"> <a href="#" class="left-sidebar-toggle p0 ai-center jc-center js-left-sidebar-toggle" role="menuitem" aria-haspopup="true" aria-controls="left-sidebar" aria-expanded="false"><span class="ps-relative"></span></a> <div class="topbar-dialog leftnav-dialog js-leftnav-dialog dno"> <div class="left-sidebar js-unpinned-left-sidebar" data-can-be="left-sidebar" data-is-here-when="sm"></div> </div> <a href="#" class="-logo js-gps-track js-network-logo network-logo" data-gps-track="stack_exchange_popup.show" role="menuitem" aria-haspopup="true" aria-controls="topbar-network-logo-dialog" aria-expanded="false"> <svg aria-hidden="true" class="native mtn1 svg-icon iconLogoSEAlternativeSm" width="107" height="15" viewbox="0 0 107 15"><path d="m48.41 11.93-1.96-3.2-1.04 1.16v2.04h-1.42V2.18h1.42v6.01L48.14 5h1.72l-2.44 2.7 2.74 4.22h-1.75Zm-7.06.08c-1.59 0-3.14-.96-3.14-3.56s1.55-3.54 3.14-3.54c.97 0 1.65.27 2.31.97l-.97.93c-.44-.48-.79-.66-1.34-.66s-1 .22-1.3.62c-.31.38-.42.87-.42 1.68 0 .81.1 1.32.41 1.7.3.4.76.62 1.3.62.56 0 .9-.18 1.35-.66l.97.92c-.66.7-1.34.98-2.31.98Zm-5.66-3.15h-1.65c-.83 0-1.26.37-1.26 1s.4.99 1.3.99c.53 0 .93-.04 1.3-.4.22-.2.31-.53.31-1.03v-.56Zm.03 3.07v-.63c-.51.5-1 .71-1.87.71-.87 0-1.46-.2-1.89-.63a2.1 2.1 0 0 1-.55-1.49c0-1.16.82-2 2.42-2h1.86v-.5c0-.87-.44-1.3-1.54-1.3-.77 0-1.15.18-1.54.68l-.92-.86c.66-.77 1.35-1 2.52-1 1.93 0 2.9.8 2.9 2.38v4.64h-1.39Zm-5.9 0c-1.32 0-1.93-.93-1.93-1.93V6.18h-.8V5.1h.8V3h1.41v2.1h1.36v1.07H29.3v3.75c0 .5.25.81.78.81h.58v1.2h-.85Zm-6.33.08c-1.48 0-2.55-.34-3.49-1.28l1-.98c.72.72 1.51.94 2.52.94 1.3 0 2.04-.55 2.04-1.5 0-.42-.13-.78-.39-1.01-.25-.23-.5-.33-1.08-.41l-1.16-.17a3.4 3.4 0 0 1-1.88-.78 2.41 2.41 0 0 1-.72-1.86c0-1.7 1.25-2.86 3.3-2.86 1.3 0 2.22.33 3.07 1.1l-.96.94a2.92 2.92 0 0 0-2.15-.75c-1.16 0-1.8.65-1.8 1.52 0 .35.1.67.37.9.25.22.65.38 1.11.45l1.13.17c.91.13 1.42.35 1.84.72.54.47.8 1.17.8 2 0 1.8-1.48 2.86-3.55 2.86Z" fill="#FEFEFE"/><path d="M104.16 7.09c-.2-.42-.6-.74-1.2-.74s-.99.32-1.18.74c-.1.25-.15.44-.16.75h2.7a2 2 0 0 0-.16-.75Zm-2.54 1.96c0 .9.56 1.57 1.55 1.57.78 0 1.16-.21 1.61-.66l1.08 1.04a3.4 3.4 0 0 1-2.7 1.11c-1.68 0-3.29-.76-3.29-3.62 0-2.3 1.26-3.6 3.1-3.6 1.97 0 3.1 1.44 3.1 3.37v.79h-4.45Zm-5.48-2.57C95.1 6.48 95 7.37 95 8.3c0 .94.1 1.85 1.15 1.85 1.05 0 1.18-.91 1.18-1.85 0-.93-.13-1.82-1.18-1.82Zm-.17 8.22c-1.1 0-1.84-.21-2.58-.92l1.1-1.11c.4.38.8.54 1.4.54 1.06 0 1.43-.74 1.43-1.46v-.72c-.47.51-1 .7-1.7.7-.69 0-1.29-.23-1.68-.62-.67-.66-.73-1.57-.73-2.8 0-1.24.06-2.13.73-2.8.4-.39 1-.62 1.7-.62.75 0 1.24.2 1.73.75v-.67h1.72v6.8c0 1.7-1.21 2.93-3.12 2.93Zm-5.76-2.67V7.76c0-.96-.61-1.28-1.17-1.28-.56 0-1.18.32-1.18 1.28v4.27h-1.78V4.97h1.73v.65a2.44 2.44 0 0 1 1.78-.73c.7 0 1.28.23 1.67.62.58.57.73 1.24.73 2v4.52H90.2Zm-7.1-2.98h-1.4c-.64 0-1 .3-1 .8 0 .49.33.81 1.02.81.5 0 .8-.04 1.12-.34.2-.17.26-.46.26-.89v-.38Zm.04 2.98v-.6c-.48.47-.93.67-1.74.67-.8 0-1.4-.2-1.82-.62-.38-.4-.58-.97-.58-1.59 0-1.12.77-2.05 2.42-2.05h1.68V7.5c0-.77-.38-1.11-1.32-1.11-.68 0-1 .16-1.37.58l-1.13-1.1c.7-.75 1.38-.97 2.57-.97 1.99 0 3.02.84 3.02 2.5v4.64h-1.73Zm-6.93 0v-4.3c0-.94-.6-1.25-1.15-1.25-.56 0-1.15.32-1.15 1.24v4.31h-1.77V2.38h1.77v3.24a2.35 2.35 0 0 1 1.7-.73c1.56 0 2.38 1.08 2.38 2.57v4.57h-1.78Zm-6.96.08c-1.42 0-3.18-.76-3.18-3.62 0-2.85 1.76-3.6 3.18-3.6.98 0 1.72.3 2.34.95l-1.2 1.2c-.36-.4-.68-.56-1.14-.56-.42 0-.75.14-1.01.46-.27.33-.4.8-.4 1.55s.13 1.24.4 1.58c.26.3.59.46 1 .46.47 0 .79-.16 1.15-.56l1.2 1.18c-.62.65-1.36.96-2.34.96Zm-5.53-.08-1.3-2.11-1.3 2.11H59l2.45-3.6-2.35-3.46h2.12L62.42 7l1.21-2.02h2.13L63.4 8.43l2.46 3.6h-2.13Zm-11.75 0V2.06h6.6V3.8h-4.65v2.33h3.96v1.74h-3.96v2.42h4.65v1.74h-6.6Z" fill="#2F96E8"/><path d="M0 3c0-1.1.9-2 2-2h8a2 2 0 0 1 2 2H0Z" fill="#8FD8F7"/><path d="M12 10H0c0 1.1.9 2 2 2h5v3l3-3a2 2 0 0 0 2-2Z" fill="#155397"/><path fill="#46A2D9" d="M0 4h12v2H0z"/><path fill="#2D6DB5" d="M0 7h12v2H0z"/></svg> </a> <div class="topbar-dialog network-logo-dialog js-network-logo-dialog dno" id="topbar-network-logo-dialog" role="dialog" aria-labelledby="topbar-network-logo-dialog-title" aria-describedby="topbar-network-logo-dialog-body"> <div class="dialog-content"> <h4 class="bold" id="topbar-network-logo-dialog-title">Stack Exchange Network</h4> <p id="topbar-network-logo-dialog-body"> Stack Exchange network consists of 178 Q&A communities including <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/">Stack Overflow</a>, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers. </p> <a class="s-btn s-btn__filled" href="https://web.archive.org/web/20220202015155/https://stackexchange.com/" data-gps-track="stack_exchange_popup.click">Visit Stack Exchange</a> <button class="icon-close js-close-button s-btn s-btn__unset" aria-label="Close"><svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewbox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41Z"/></svg></button> </div> </div> </div> <form id="search" role="search" action="/web/20220202015155/https://codegolf.stackexchange.com/search" class="flex--item fl-grow1 searchbar px12 js-searchbar " autocomplete="off"> <div class="ps-relative"> <input name="q" type="text" placeholder="Search on Code Golf…" value="" autocomplete="off" maxlength="240" class="s-input s-input__search js-search-field " aria-label="Search" aria-controls="top-search" data-controller="s-popover" data-action="focus->s-popover#show" data-s-popover-placement="bottom-start"/> <svg aria-hidden="true" class="s-input-icon s-input-icon__search svg-icon iconSearch" width="18" height="18" viewbox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"/></svg> <div class="s-popover p0 wmx100 wmn4 sm:wmn-initial js-top-search-popover" id="top-search" role="menu"> <div class="s-popover--arrow"></div> <div class="js-spinner p24 d-flex ai-center jc-center d-none"> <div class="s-spinner s-spinner__sm fc-orange-400"> <div class="v-visible-sr">Loading…</div> </div> </div> <span class="v-visible-sr js-screen-reader-info"></span> <div class="js-ac-results overflow-y-auto hmx3 d-none"></div> <div class="js-search-hints" aria-describedby="Tips for searching"></div> </div> </div> </form> <ol class="overflow-x-auto ml-auto -secondary d-flex ai-center list-reset h100 user-logged-out" role="presentation"> <li class="-item searchbar-trigger"><a href="#" class="-link js-searchbar-trigger" role="button" aria-label="Search" aria-haspopup="true" aria-controls="search" title="Click to show search"><svg aria-hidden="true" class="svg-icon iconSearch" width="18" height="18" viewbox="0 0 18 18"><path d="m18 16.5-5.14-5.18h-.35a7 7 0 1 0-1.19 1.19v.35L16.5 18l1.5-1.5ZM12 7A5 5 0 1 1 2 7a5 5 0 0 1 10 0Z"/></svg></a></li> <li class="-item inbox-button-item"> <a href="#" class="-link js-inbox-button" aria-label="Inbox" title="Recent inbox messages" role="menuitem" aria-haspopup="true" aria-expanded="false" data-unread-count="0"> <svg aria-hidden="true" class="svg-icon iconInbox" width="20" height="18" viewbox="0 0 20 18"><path d="M4.63 1h10.56a2 2 0 0 1 1.94 1.35L20 10.79V15a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-4.21l2.78-8.44c.25-.8 1-1.36 1.85-1.35Zm8.28 12 2-2h2.95l-2.44-7.32a1 1 0 0 0-.95-.68H5.35a1 1 0 0 0-.95.68L1.96 11h2.95l2 2h6Z"/></svg> <span class="indicator-badge js-unread-count _important d-none">0</span> </a> </li> <li class="-item achievements-button-item"> <a href="#" class="-link js-achievements-button" data-unread-class="_highlighted-positive" aria-label="Achievements" title="Recent achievements: reputation, badges, and privileges earned" role="menuitem" aria-haspopup="true" aria-expanded="false" data-unread-count="0" data-lit-up="false"> <svg aria-hidden="true" class="svg-icon iconAchievements" width="18" height="18" viewbox="0 0 18 18"><path d="M15 2V1H3v1H0v4c0 1.6 1.4 3 3 3v1c.4 1.5 3 2.6 5 3v2H5s-1 1.5-1 2h10c0-.4-1-2-1-2h-3v-2c2-.4 4.6-1.5 5-3V9c1.6-.2 3-1.4 3-3V2h-3ZM3 7c-.5 0-1-.5-1-1V4h1v3Zm8.4 2.5L9 8 6.6 9.4l1-2.7L5 5h3l1-2.7L10 5h2.8l-2.3 1.8 1 2.7h-.1ZM16 6c0 .5-.5 1-1 1V4h1v2Z"/></svg> <span class="indicator-badge js-unread-count _positive d-none">+0</span> </a> </li> <li class="-item help-button-item"> <a href="#" class="-link js-help-button" title="Help Center and other resources" role="menuitem" aria-haspopup="true" aria-controls="topbar-help-dialog" data-ga="["top navigation","help menu click",null,null,null]"><svg aria-hidden="true" class="svg-icon iconHelp" width="18" height="18" viewbox="0 0 18 18"><path d="M9 1C4.64 1 1 4.64 1 9c0 4.36 3.64 8 8 8 4.36 0 8-3.64 8-8 0-4.36-3.64-8-8-8Zm.81 12.13c-.02.71-.55 1.15-1.24 1.13-.66-.02-1.17-.49-1.15-1.2.02-.72.56-1.18 1.22-1.16.7.03 1.2.51 1.17 1.23ZM11.77 8c-.59.66-1.78 1.09-2.05 1.97a4 4 0 0 0-.09.75c0 .05-.03.16-.18.16H7.88c-.16 0-.18-.1-.18-.15.06-1.35.66-2.2 1.83-2.88.39-.29.7-.75.7-1.24.01-1.24-1.64-1.82-2.35-.72-.21.33-.18.73-.18 1.1H5.75c0-1.97 1.03-3.26 3.03-3.26 1.75 0 3.47.87 3.47 2.83 0 .57-.2 1.05-.48 1.44Z"/></svg></a> </li> <div class="topbar-dialog help-dialog js-help-dialog dno" id="topbar-help-dialog" role="menu"> <div class="modal-content"> <ul> <li> <a href="/web/20220202015155/https://codegolf.stackexchange.com/tour" class="js-gps-track" data-gps-track="help_popup.click({ item_type:1 })" data-ga="["top navigation","tour submenu click",null,null,null]"> Tour <span class="item-summary"> Start here for a quick overview of the site </span> </a> </li> <li> <a href="/web/20220202015155/https://codegolf.stackexchange.com/help" class="js-gps-track" data-gps-track="help_popup.click({ item_type:4 })" data-ga="["top navigation","help center",null,null,null]"> Help Center <span class="item-summary"> Detailed answers to any questions you might have </span> </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/" class="js-gps-track" data-gps-track="help_popup.click({ item_type:2 })" data-ga="["top navigation","meta submenu click",null,null,null]"> Meta <span class="item-summary"> Discuss the workings and policies of this site </span> </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/company" class="js-gps-track" data-gps-track="help_popup.click({ item_type:6 })" data-ga="["top navigation","about us submenu click",null,null,null]"> About Us <span class="item-summary"> Learn more about Stack Overflow the company </span> </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackoverflowbusiness.com/?ref=topbar_help" class="js-gps-track" data-gps-track="help_popup.click({ item_type:7 })" data-ga="["top navigation","business submenu click",null,null,null]"> Business <span class="item-summary"> Learn more about hiring developers or posting ads with us </span> </a> </li> </ul> </div> </div> <li class="-item site-switcher-item"> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/" class="-link js-site-switcher-button js-gps-track" data-gps-track="site_switcher.show" aria-label="Site switcher" title="A list of all 178 Stack Exchange sites" role="menuitem" aria-haspopup="true" aria-expanded="false" data-ga="["top navigation","stack exchange click",null,null,null]"> <svg aria-hidden="true" class="svg-icon iconStackExchange" width="18" height="18" viewbox="0 0 18 18"><path d="M15 1H3a2 2 0 0 0-2 2v2h16V3a2 2 0 0 0-2-2ZM1 13c0 1.1.9 2 2 2h8v3l3-3h1a2 2 0 0 0 2-2v-2H1v2Zm16-7H1v4h16V6Z"/></svg> </a> </li> <li class="-ctas"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/users/login?ssrc=head&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair" class="login-link s-btn s-btn__filled py8 js-gps-track" rel="nofollow" data-gps-track="login.click" data-ga="["top navigation","login button click",null,null,null]">Log in</a> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/users/signup?ssrc=head&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair" class="login-link s-btn s-btn__primary py8" rel="nofollow" data-ga="["sign up","Sign Up Navigation","Header",null,null]">Sign up</a> </li> <li class="js-topbar-dialog-corral" role="presentation"> <div class="topbar-dialog siteSwitcher-dialog dno" role="menu"> <div class="header fw-wrap"> <h3 class="flex--item"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/">current community</a> </h3> <div class="flex--item fl1"> <div class="ai-center d-flex jc-end"> <button class="js-close-button s-btn s-btn__muted p0 ml8 d-none sm:d-block" type="button" aria-label="Close"> <svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewbox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41Z"/></svg> </button> </div> </div> </div> <div class="modal-content bg-powder-050 current-site-container"> <ul class="current-site "> <li class="d-flex"> <div class="fl1"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/" class="current-site-link site-link js-gps-track d-flex gs8 gsx" data-id="200" data-gps-track="site_switcher.click({ item_type:3 })"> <div class="favicon favicon-codegolf site-icon flex--item" title="Code Golf"></div> <span class="flex--item fl1"> Code Golf </span> </a> </div> <div class="related-links"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/help" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:14 })">help</a> <a href="https://web.archive.org/web/20220202015155/https://chat.stackexchange.com/?tab=site&host=codegolf.stackexchange.com" class="js-gps-track" data-gps-track="site_switcher.click({ item_type:6 })">chat</a> </div> </li> <li class="related-site d-flex"> <div class="L-shaped-icon-container"> <span class="L-shaped-icon"></span> </div> <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/" class=" site-link js-gps-track d-flex gs8 gsx" data-id="202" data-gps-track="site.switch({ target_site:202, item_type:3 }),site_switcher.click({ item_type:4 })"> <div class="favicon favicon-codegolfmeta site-icon flex--item" title="Code Golf Meta"></div> <span class="flex--item fl1"> Code Golf Meta </span> </a> </li> </ul> </div> <div class="header" id="your-communities-header"> <h3> your communities </h3> </div> <div class="modal-content" id="your-communities-section"> <div class="call-to-login"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/users/signup?ssrc=site_switcher&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:10 })">Sign up</a> or <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/users/login?ssrc=site_switcher&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair" class="login-link js-gps-track" data-gps-track="site_switcher.click({ item_type:11 })">log in</a> to customize your list. </div> </div> <div class="header"> <h3><a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites">more stack exchange communities</a> </h3> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.blog/" class="float-right">company blog</a> </div> <div class="modal-content"> <div class="child-content"></div> </div> </div> </li> </ol> </div> </header> <script> StackExchange.ready(function () { StackExchange.topbar.init(); }); StackExchange.scrollPadding.setPaddingTop(50, 10); </script> <div class="py24 bg-black-750 fc-black-200 sm:pt24 sm:pb24 ps-relative js-dismissable-hero"> <div class="px12 d-flex ai-center jc-center mx-auto wmx12 sm:fd-column"> <div class="flex--item wmx3 fs-body2 mr64 md:mr32 sm:mr0 sm:ta-center sm:mr0 sm:ta-center"> <p>Code Golf Stack Exchange is a question and answer site for programming puzzle enthusiasts and code golfers. It only takes a minute to sign up.</p> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/signup?ssrc=hero&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair" class="s-btn s-btn__primary">Sign up to join this community</a> </div> <div class="d-flex fd-column ai-center wmn3 sm:wmn-initial sm:mt32 hero-background"> <div class="d-flex ai-center mb24 sm:mb16"> <div class="flex--item mr16"> <img width="31" src="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Img/hero/anonymousHeroQuestions.svg?v=748bfb046b78"> </div> <div class="flex--item"> Anybody can ask a question </div> </div> <div class="d-flex ai-center mb24 sm:mb16"> <div class="flex--item mr16"> <img width="35" src="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Img/hero/anonymousHeroAnswers.svg?v=d5348b00eddc"> </div> <div class="flex--item"> Anybody can answer </div> </div> <div class="d-flex ai-center"> <div class="flex--item mr16"> <img width="24" src="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Img/hero/anonymousHeroUpvote.svg?v=af2bb70d5d1b"> </div> <div class="flex--item wmx2"> The best answers are voted up and rise to the top </div> </div> </div> <div class="flex--item as-start md:ps-absolute t8 r8"> <button class="s-btn s-btn__muted p8 js-dismiss"> <svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewbox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41Z"/></svg> </button> </div> </div> </div> <script> StackExchange.ready(function () { StackExchange.Hero.init("nso", "a"); var location = 0; if ($("body").hasClass("questions-page")) { location = 1; } else if ($("body").hasClass("question-page")) { location = 1; } else if ($("body").hasClass("faq-page")) { location = 5; } else if ($("body").hasClass("home-page")) { location = 3; } $('.js-cta-button').click(function () { StackExchange.using("gps", function () { StackExchange.gps.track("hero.action", { hero_action_type: 'cta', location: location }, true); }); }); // TODO: we should review the class names and whatnot in use here. Older heroes use id selectors, the newer // sticky question hero on SO has a .js-dismiss class instead, but it's apparently not used anywhere... // It's not great. Ideally we'd have a set of classes in the partials above that would correspond to // the behaviours we want here in a more clear way. // sticky question-page hero at the bottom of the page on SO $('.js-dismiss').on('click', function () { StackExchange.using("gps", function () { StackExchange.gps.track("hero.action", { hero_action_type: "close", location: location }, true); }); StackExchange.Hero.dismiss(); $(".js-dismissable-hero").fadeOut("fast"); }); }); </script> <header class="site-header"> <div class="site-header--container"> <a class="site-header--link d-flex ai-center fs-headline1 fw-bold" href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/"> <img class="h-auto wmx100" src="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Sites/codegolf/Img/logo.svg?v=e3bab5b2d95a" alt="Code Golf"> </a> </div> </header> <div class="container"> <div id="left-sidebar" data-is-here-when="md lg" class="left-sidebar js-pinned-left-sidebar ps-relative"> <div class="left-sidebar--sticky-container js-sticky-leftnav"> <nav role="navigation"> <ol class="nav-links"> <li class="ps-relative"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/" class="pl8 js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:8})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Home </div> </div> </a> </li> <li> <ol class="nav-links"> <li class="fs-fine tt-uppercase ml8 mt16 mb4 fc-light">Public</li> <li class="ps-relative youarehere"> <a id="nav-questions" href="/web/20220202015155/https://codegolf.stackexchange.com/questions" class="pl8 js-gps-track nav-links--link -link__with-icon" data-gps-track="top_nav.click({is_current:true, location:2, destination:1})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <svg aria-hidden="true" class="svg-icon iconGlobe" width="18" height="18" viewbox="0 0 18 18"><path d="M9 1C4.64 1 1 4.64 1 9c0 4.36 3.64 8 8 8 4.36 0 8-3.64 8-8 0-4.36-3.64-8-8-8ZM8 15.32a6.46 6.46 0 0 1-4.3-2.74 6.46 6.46 0 0 1-.93-5.01L7 11.68v.8c0 .88.12 1.32 1 1.32v1.52Zm5.72-2c-.2-.66-1-1.32-1.72-1.32h-1v-2c0-.44-.56-1-1-1H6V7h1c.44 0 1-.56 1-1V5h2c.88 0 1.4-.72 1.4-1.6v-.33a6.45 6.45 0 0 1 3.83 4.51 6.45 6.45 0 0 1-1.51 5.73v.01Z"/></svg> <span class="-link--channel-name">Questions</span> </a> </li> <li class="ps-relative"> <a id="nav-tags" href="/web/20220202015155/https://codegolf.stackexchange.com/tags" class=" js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:2})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Tags </div> </div> </a> </li> <li class="ps-relative"> <a id="nav-users" href="/web/20220202015155/https://codegolf.stackexchange.com/users" class=" js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:3})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Users </div> </div> </a> </li> <li class="ps-relative"> <a id="nav-unanswered" href="/web/20220202015155/https://codegolf.stackexchange.com/unanswered" class=" js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:5})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Unanswered </div> </div> </a> </li> <li class="fs-fine tt-uppercase ml8 mt16 mb4 fc-light">Find a Job</li> <li class="ps-relative"> <a id="nav-jobs" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/jobs?so_medium=codegolf&so_source=SiteNav" class=" js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:6})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Jobs </div> </div> </a> </li> <li class="ps-relative"> <a id="nav-companies" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/jobs/companies?so_medium=codegolf&so_source=SiteNav" class=" js-gps-track nav-links--link" data-gps-track="top_nav.click({is_current:false, location:2, destination:12})" aria-controls="" data-controller="" data-s-popover-placement="right" data-s-popover-auto-show="true" data-s-popover-hide-on-outside-click="never"> <div class="d-flex ai-center"> <div class="flex--item truncate"> Companies </div> </div> </a> </li> </ol> </li> <li> <ol class="nav-links"> <div class="js-freemium-cta ps-relative"> <div class="fs-fine tt-uppercase ml8 mt16 mb8 fc-light">Teams</div> <div class="bt bl bb bc-black-075 p12 pb6 fc-black-600 blr-sm overflow-hidden"> <strong class="fc-black-750 mb6">Stack Overflow for Teams</strong> – Collaborate and share knowledge with a private group. <img class="wmx100 mx-auto my8 h-auto d-block" width="139" height="114" src="https://web.archive.org/web/20220202015155im_/https://cdn.sstatic.net/Img/teams/teams-illo-free-sidebar-promo.svg?v=47faa659a05e" alt=""> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/teams/create/free?utm_source=so-owned&utm_medium=side-bar&utm_campaign=campaign-38&utm_content=cta" class="w100 s-btn s-btn__primary s-btn__xs js-gps-track" data-gps-track="teams.create.left-sidenav.click({ Action: 6 })" data-ga="["teams left navigation - anonymous","left nav free cta","stackoverflow.com/teams/create/free",null,null]">Create a free Team</a> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/teams" class="w100 s-btn s-btn__muted s-btn__xs js-gps-track" data-gps-track="teams.create.left-sidenav.click({ Action: 5 })" data-ga="["teams left navigation - anonymous","left nav free cta","stackoverflow.com/teams",null,null]">What is Teams?</a> </div> </div> <li class="d-flex ai-center jc-space-between ml8 mt24 mb4 js-create-team-cta d-none"> <div class="flex--item tt-uppercase fs-fine fc-light">Teams</div> <div class="flex--item"> <a href="javascript:void(0)" class="s-link p12 fc-black-500 h:fc-black-800 js-gps-track" role="button" aria-controls="popover-teams-create-cta" data-controller="s-popover" data-action="s-popover#toggle" data-s-popover-placement="bottom-start" data-s-popover-toggle-class="is-selected" data-gps-track="teams.create.left-sidenav.click({ Action: ShowInfo })" data-ga="["teams left navigation - anonymous","left nav show teams info",null,null,null]"> <svg aria-hidden="true" class="svg-icon iconInfoSm" width="14" height="14" viewbox="0 0 14 14"><path d="M7 1a6 6 0 1 1 0 12A6 6 0 0 1 7 1Zm1 10V6H6v5h2Zm0-6V3H6v2h2Z"/></svg> </a> </div> </li> <li class="ps-relative js-create-team-cta d-none"> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/teams/create/free?utm_source=so-owned&utm_medium=side-bar&utm_campaign=campaign-38&utm_content=cta" class="pl8 js-gps-track nav-links--link" title="Stack Overflow for Teams is a private, secure spot for your organization's questions and answers." data-gps-track="teams.create.left-sidenav.click({ Action: FreemiumTeamsCreateClick })" data-ga="["teams left navigation - anonymous","left nav team click","stackoverflow.com/teams/create/free",null,null]"> <div class="d-flex ai-center"> <div class="flex--item s-avatar va-middle bg-orange-400"> <div class="s-avatar--letter mtn1"> <svg aria-hidden="true" class="svg-icon iconBriefcaseSm" width="14" height="14" viewbox="0 0 14 14"><path d="M4 3a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v1h.5c.83 0 1.5.67 1.5 1.5v5c0 .83-.67 1.5-1.5 1.5h-7A1.5 1.5 0 0 1 2 10.5v-5C2 4.67 2.67 4 3.5 4H4V3Zm5 1V3H5v1h4Z"/></svg> </div> <svg aria-hidden="true" class="native s-avatar--badge svg-icon iconShieldXSm" width="9" height="10" viewbox="0 0 9 10"><path d="M0 1.84 4.5 0 9 1.84v3.17C9 7.53 6.3 10 4.5 10 2.7 10 0 7.53 0 5.01V1.84Z" fill="var(--white)"/><path d="M1 2.5 4.5 1 8 2.5v2.51C8 7.34 5.34 9 4.5 9 3.65 9 1 7.34 1 5.01V2.5Zm2.98 3.02L3.2 7h2.6l-.78-1.48a.4.4 0 0 1 .15-.38c.34-.24.73-.7.73-1.14 0-.71-.5-1.23-1.41-1.23-.92 0-1.39.52-1.39 1.23 0 .44.4.9.73 1.14.12.08.18.23.15.38Z" fill="var(--black-500)"/></svg> </div> <div class="flex--item pl6"> Create free Team </div> </div> </a> </li> </ol> </li> </ol> </nav> </div> <div class="s-popover" id="popover-teams-create-cta" role="menu" aria-hidden="true"> <div class="s-popover--arrow"></div> <div class="ps-relative overflow-hidden"> <p class="mb2"><strong>Teams</strong></p> <p class="mb12 fs-caption fc-black-400">Q&A for work</p> <p class="mb12 fs-caption fc-medium">Connect and share knowledge within a single location that is structured and easy to search.</p> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/teams" class="js-gps-track s-btn s-btn__primary s-btn__xs" data-gps-track="teams.create.left-sidenav.click({ Action: CtaClick })" data-ga="["teams left navigation - anonymous","left nav cta","stackoverflow.com/teams",null,null]"> Learn more </a> </div> <div class="ps-absolute t8 r8"> <svg aria-hidden="true" class="fc-orange-500 svg-spot spotPeople" width="48" height="48" viewbox="0 0 48 48"><path d="M13.5 28a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9ZM7 30a1 1 0 0 1 1-1h11a1 1 0 0 1 1 1v5h11v-5a1 1 0 0 1 1-1h12a1 1 0 0 1 1 1v10a2 2 0 0 1-2 2H33v5a1 1 0 0 1-1 1H20a1 1 0 0 1-1-1v-5H8a1 1 0 0 1-1-1V30Zm25-6.5a4.5 4.5 0 1 0 9 0 4.5 4.5 0 0 0-9 0ZM24.5 34a4.5 4.5 0 1 0 0-9 4.5 4.5 0 0 0 0 9Z" opacity=".2"/><path d="M16.4 26.08A6 6 0 1 0 7.53 26C5.64 26.06 4 27.52 4 29.45V40a1 1 0 0 0 1 1h9a1 1 0 1 0 0-2h-4v-7a1 1 0 1 0-2 0v7H6v-9.55c0-.73.67-1.45 1.64-1.45H16a1 1 0 0 0 .4-1.92ZM12 18a4 4 0 1 1 0 8 4 4 0 0 1 0-8Zm16.47 14a6 6 0 1 0-8.94 0A3.6 3.6 0 0 0 16 35.5V46a1 1 0 0 0 1 1h14a1 1 0 0 0 1-1V35.5c0-1.94-1.64-3.42-3.53-3.5ZM20 28a4 4 0 1 1 8 0 4 4 0 0 1-8 0Zm-.3 6h8.6c1 0 1.7.75 1.7 1.5V45h-2v-7a1 1 0 1 0-2 0v7h-4v-7a1 1 0 1 0-2 0v7h-2v-9.5c0-.75.7-1.5 1.7-1.5ZM42 22c0 1.54-.58 2.94-1.53 4A3.5 3.5 0 0 1 44 29.45V40a1 1 0 0 1-1 1h-9a1 1 0 1 1 0-2h4v-7a1 1 0 1 1 2 0v7h2v-9.55A1.5 1.5 0 0 0 40.48 28H32a1 1 0 0 1-.4-1.92A6 6 0 1 1 42 22Zm-2 0a4 4 0 1 0-8 0 4 4 0 0 0 8 0Z"/><g opacity=".35"><path d="M17 10a1 1 0 011-1h12a1 1 0 110 2H18a1 1 0 01-1-1Zm1-5a1 1 0 100 2h12a1 1 0 100-2H18ZM14 1a1 1 0 00-1 1v12a1 1 0 001 1h5.09l4.2 4.2a1 1 0 001.46-.04l3.7-4.16H34a1 1 0 001-1V2a1 1 0 00-1-1H14Zm1 12V3h18v10h-5a1 1 0 00-.75.34l-3.3 3.7-3.74-3.75a1 1 0 00-.71-.29H15Z"/></g></svg> </div> </div> </div> <div id="content" class="snippet-hidden"> <div itemprop="mainEntity" itemscope itemtype="https://schema.org/Question"> <link itemprop="image" href="https://cdn.sstatic.net/Sites/codegolf/Img/apple-touch-icon.png?v=53b5e16c7d06"> <div class="inner-content clearfix"> <div id="question-header" class="d-flex sm:fd-column"> <h1 itemprop="name" class="fs-headline1 ow-break-word mb8 flex--item fl1"><a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair" class="question-hyperlink">Reversed Multiple Pair</a></h1> <div class="ml12 aside-cta flex--item print:d-none sm:ml0 sm:mb12 sm:order-first sm:as-end"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/ask" class="ws-nowrap s-btn s-btn__primary"> Ask Question </a> </div> </div> <div class="d-flex fw-wrap pb8 mb16 bb bc-black-075"> <div class="flex--item ws-nowrap mr16 mb8" title="2022-01-29 20:35:23Z"> <span class="fc-light mr2">Asked</span> <time itemprop="dateCreated" datetime="2022-01-29T20:35:23">3 days ago</time> </div> <div class="flex--item ws-nowrap mr16 mb8"> <span class="fc-light mr2">Active</span> <a href="?lastactivity" class="s-link s-link__inherit" title="2022-02-01 23:30:13Z">today</a> </div> <div class="flex--item ws-nowrap mb8" title="Viewed 878 times"> <span class="fc-light mr2">Viewed</span> 878 times </div> </div> <div id="mainbar" role="main" aria-label="question and answers"> <div class="question" data-questionid="241992" data-position-on-page="0" data-score="17" id="question"> <style> </style> <div class="js-zone-container zone-container-main"> <div id="dfp-tlb" class="everyonelovesstackoverflow everyoneloves__top-leaderboard everyoneloves__leaderboard"></div> <div class="js-report-ad-button-container " style="width: 728px"></div> </div> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="241992"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This question shows research effort; it is useful and clear" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="17"> 17 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This question does not show any research effort; it is unclear or not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <button class="js-bookmark-btn s-btn s-btn__unset c-pointer py4 js-gps-track" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Bookmark this question." aria-pressed="false" aria-label="Bookmark (3)" data-selected-classes="fc-yellow-600" data-gps-track="post.click({ item: 1, priv: 0, post_type: 1 })"> <svg aria-hidden="true" class="svg-icon iconBookmark" width="18" height="18" viewbox="0 0 18 18"><path d="M6 1a2 2 0 0 0-2 2v14l5-4 5 4V3a2 2 0 0 0-2-2H6Zm3.9 3.83h2.9l-2.35 1.7.9 2.77L9 7.59l-2.35 1.7.9-2.76-2.35-1.7h2.9L9 2.06l.9 2.77Z"/></svg> <div class="js-bookmark-count mt4" data-value="3">3</div> </button> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241992/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="postcell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <div> <aside class="s-notice s-notice__info post-notice js-post-notice mb16 js-bounty-notification" role="status"> <div class="d-flex fd-column fw-nowrap"> <div class="d-flex fw-nowrap"> <div class="flex--item mr8"> <svg aria-hidden="true" class="svg-icon iconClock" width="18" height="18" viewbox="0 0 18 18"><path d="M9 17c-4.36 0-8-3.64-8-8 0-4.36 3.64-8 8-8 4.36 0 8 3.64 8 8 0 4.36-3.64 8-8 8Zm0-2c3.27 0 6-2.73 6-6s-2.73-6-6-6-6 2.73-6 6 2.73 6 6 6ZM8 5h1.01L9 9.36l3.22 2.1-.6.93L8 10V5Z"/></svg> </div> <div class="flex--item wmn0 fl1 lh-lg"> <div class="flex--item fl1 lh-lg"> <b>The <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/help/bounty">bounty</a> expires <span title="2022-02-08 17:10:56Z">in 7 days</span></b>. Answers to this question are eligible for a <span class="s-badge__bounty d-inline px4 py2 ba bc-transparent bar-sm fs-caption va-middle">+50</span> reputation bounty. <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/16766/dlosc">DLosc</a> wants to <b>reward an existing answer</b>: <blockquote> <div>For <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/a/242142/16766">Razetime's second tinylisp answer</a> while tinylisp is <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/q/24402/16766">Language of the Month</a>.</div> </blockquote> </div> </div> </div> </div> </aside> </div> <h1>Intro</h1> <p>Two numbers are a <em>reversed multiple pair</em> if they satisfy the following property:</p> <p><span class="math-container">$$ a\times b = reversed( (a-1)\times b ) $$</span></p> <p>Here, <span class="math-container">\$reversed()\$</span> means to reverse the digits of a number (e. g <code>123</code> becomes <code>321</code>.)</p> <h1>Example</h1> <p><span class="math-container">$$ a=6, b=9, 6\times9=54,5\times9=45 $$</span></p> <p>As you can see, <span class="math-container">\$45\$</span> is the reversed version of <span class="math-container">\$54\$</span>.</p> <h1>Task</h1> <p>Given two integers, <span class="math-container">\$a\$</span> and <span class="math-container">\$b\$</span>, output if these two numbers is a reversed multiple pair.</p> <h1>Test Cases</h1> <pre><code>6 9 => True 4 5 => False 3 2178 => True 34 2079 => True 7 8 => False 600 100 => False 46 1089 => True 817 503 => False 6 9009 => True 321 81 => False 10 1089 => False </code></pre> <p>Shortest code wins!</p> </div> <div class="mt24 mb12"> <div class="post-taglist d-flex gs4 gsy fd-column"> <div class="d-flex ps-relative fw-wrap"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/code-golf" class="post-tag" title="show questions tagged 'code-golf'" rel="tag">code-golf</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/math" class="post-tag" title="show questions tagged 'math'" rel="tag">math</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/number" class="post-tag" title="show questions tagged 'number'" rel="tag">number</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/decision-problem" class="post-tag" title="show questions tagged 'decision-problem'" rel="tag">decision-problem</a> </div> </div> </div> <div class="mb0 "> <div class="mt16 d-flex gs8 gsy fw-wrap jc-end ai-start pt4 mb16"> <div class="flex--item mr16 fl1 w96"> <div class="js-post-menu pt2" data-post-id="241992"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/241992" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this question" data-gps-track="post.click({ item: 2, priv: 0, post_type: 1 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this question" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="question" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="1" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241992/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 1 })" title="">Improve this question</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-241992" class="s-btn s-btn__link js-follow-post js-follow-question js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 1 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this question to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item"> <div class="user-info user-hover"> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241992/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 1 })">edited <span title="2022-01-30 19:41:33Z" class="relativetime">2 days ago</span></a> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/66833/caird-coinheringaahing"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/nuL7k.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/66833/caird-coinheringaahing">caird coinheringaahing</a> <div class="-flair"> <span class="reputation-score" title="reputation score 46,391" dir="ltr">46.4k</span><span title="9 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 gold badges</span><span title="96 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">96</span></span><span class="v-visible-sr">96 silver badges</span><span title="313 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">313</span></span><span class="v-visible-sr">313 bronze badges</span> </div> </div> </div> </div> <div class="post-signature owner flex--item"> <div class="user-info user-hover"> <div class="user-action-time"> asked <span title="2022-01-29 20:35:23Z" class="relativetime">Jan 29 at 20:35</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/105116/bgil-midol"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/NRwfk.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/105116/bgil-midol">Bgil Midol</a><span class="d-none" itemprop="name">Bgil Midol</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">1,665</span><span title="3 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 silver badges</span><span title="23 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">23</span></span><span class="v-visible-sr">23 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount">8</span> <div class="post-layout--right js-post-comments-component"> <div id="comments-241992" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="241992" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="3" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-545394" class="comment js-comment " data-comment-id="545394" data-comment-owner-id="97916" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">Suggest test case: <code>321 81 => False</code>. An answer checking <code>b</code> for divisibility with 9 will pass all existing test cases but not this one.</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/97916/chunes" title="6,030 reputation" class="comment-user">chunes</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-29 21:43:38Z, License: CC BY-SA 4.0" class="relativetime-clean">Jan 29 at 21:43</span></span> <span title="this comment was edited 1 time"> <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </span> </div> </div> </li> <li id="comment-545424" class="comment js-comment " data-comment-id="545424" data-comment-owner-id="44718" data-comment-score="2"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">2</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">Is <code>10 1089</code> truthy or falsy? Currently, different answers don't agree on this testcase.</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/44718/tsh" title="26,720 reputation" class="comment-user">tsh</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 02:55:30Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> <span title="this comment was edited 2 times"> <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </span> </div> </div> </li> <li id="comment-545439" class="comment js-comment " data-comment-id="545439" data-comment-owner-id="44718" data-comment-score="2"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">2</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">May I assume inputs are positive? Or what is expected output for <code>-5 9</code>?</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/44718/tsh" title="26,720 reputation" class="comment-user">tsh</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 06:53:15Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> <li id="comment-545462" class="comment js-comment " data-comment-id="545462" data-comment-owner-id="44718" data-comment-score="1"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">1</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">Shouldn’t 10 1089 be false?</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/44718/tsh" title="26,720 reputation" class="comment-user">tsh</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 13:03:06Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> <li id="comment-545466" class="comment js-comment " data-comment-id="545466" data-comment-owner-id="44718" data-comment-score="3"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">3</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">reverse(9*1089)=reverse(9801)=1089≠10890=10*1089</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/44718/tsh" title="26,720 reputation" class="comment-user">tsh</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 14:22:02Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> <span title="this comment was edited 1 time"> <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </span> </div> </div> </li> </ul> </div> <div id="comments-link-241992" data-rep="50" data-anon="true"> <a class="js-add-link comments-link dno" title="Use comments to ask for more information or suggest improvements. Avoid answering questions in comments." href="#" role="button"></a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link " title="Expand to show all comments on this post" href="#" onclick="" role="button">Show <b>3</b> more comments</a> </div> </div> </div> </div> <div id="answers"> <a name="tab-top"></a> <div id="answers-header"> <div class="answers-subheader d-flex ai-center mb8"> <div class="flex--item fl1"> <h2 class="mb0" data-answercount="26"> 26 Answers <span style="display:none;" itemprop="answerCount">26</span> </h2> </div> <div class="flex--item"> <div class=" d-flex s-btn-group js-filter-btn"> <a class="flex--item s-btn s-btn__muted s-btn__outlined" href="/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair?answertab=active#tab-top" data-nav-xhref="" title="Answers with the latest activity first" data-value="active" data-shortcut="A"> Active</a> <a class="flex--item s-btn s-btn__muted s-btn__outlined" href="/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair?answertab=oldest#tab-top" data-nav-xhref="" title="Answers in the order they were provided" data-value="oldest" data-shortcut="O"> Oldest</a> <a class="youarehere is-selected flex--item s-btn s-btn__muted s-btn__outlined" href="/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/reversed-multiple-pair?answertab=votes#tab-top" data-nav-xhref="" title="Answers with the highest score first" data-value="votes" data-shortcut="V"> Score</a> </div> </div> </div> </div> <a name="242009"></a> <div id="answer-242009" class="answer js-answer" data-answerid="242009" data-score="9" data-position-on-page="1" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242009"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="9"> 9 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242009/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/JCumin/Brachylog" rel="noreferrer">Brachylog</a>, 8 bytes</h1> <pre><code>-₁ʰ×↔~×? </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##SypKTM6ozMlPN/r/X/dRU@OpDYenP2qbUnd4uv3//9EmZjqGBhaWsf8B" rel="noreferrer" title="Brachylog – Try It Online">Try it online!</a></p> <h3>Explanation</h3> <pre><code> Input = [A, B] -₁ʰ Compute [A-1, B] × Compute (A-1) × B ↔ Reverse digits ~×? It can be unmultiplied into [A,B] </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T00:16:28"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242009"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242009" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242009/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242009" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 00:16:28Z" class="relativetime">Jan 30 at 0:16</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/41723/fatalize"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/zTCss.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/41723/fatalize">Fatalize</a><span class="d-none" itemprop="name">Fatalize</span> <div class="-flair"> <span class="reputation-score" title="reputation score 34,784" dir="ltr">34.8k</span><span title="4 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 gold badges</span><span title="57 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">57</span></span><span class="v-visible-sr">57 silver badges</span><span title="144 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">144</span></span><span class="v-visible-sr">144 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242009" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242009" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242009" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <div class="js-zone-container zone-container-main"> <div id="dfp-mlb" class="everyonelovesstackoverflow everyoneloves__mid-leaderboard everyoneloves__leaderboard"></div> <div class="js-report-ad-button-container " style="width: 728px"></div> </div> <a name="241994"></a> <div id="answer-241994" class="answer js-answer" data-answerid="241994" data-score="6" data-position-on-page="2" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="241994"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="6"> 6 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241994/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/DennisMitchell/jellylanguage" rel="noreferrer">Jelly</a>, 9 bytes</h1> <pre><code>,’$×DU⁼¥/ </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://jht.hyper-neutrino.xyz/tio#WyIiLCIs4oCZJMOXRFXigbzCpS8iLCIiLCIiLFsiMzQiLCIyMDc5Il1d" rel="noreferrer">Try It Online!</a></p> <pre><code>,’$×DU⁼¥/ Main Link; dyad accepting a, b ,’$ pair: [a, a - 1] × multiply: [ab, (a - 1)b] D to digit list / reduce between the two: U is the reverse of the former ⁼ equal to the latter? </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T20:45:09"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="241994"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/241994" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241994/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-241994" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 20:45:09Z" class="relativetime">Jan 29 at 20:45</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/68942/hyper-neutrino"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/f6663ff2d61581b26bd021b3ce6b6376?s=64&d=identicon&r=PG" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/68942/hyper-neutrino">hyper-neutrino</a><span class="mod-flair mtn2" title="Moderator">♦</span><span class="d-none" itemprop="name">hyper-neutrino</span> <div class="-flair"> <span class="reputation-score" title="reputation score 41,012" dir="ltr">41k</span><span title="5 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">5</span></span><span class="v-visible-sr">5 gold badges</span><span title="61 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">61</span></span><span class="v-visible-sr">61 silver badges</span><span title="212 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">212</span></span><span class="v-visible-sr">212 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-241994" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="241994" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-241994" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242001"></a> <div id="answer-242001" class="answer js-answer" data-answerid="242001" data-score="6" data-position-on-page="3" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242001"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="6"> 6 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242001/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://docs.python.org/3/" rel="noreferrer">Python 3</a>, 37 bytes</h1> <pre class="lang-python prettyprint-override"><code>lambda a,b:str(a*b)==str(~-a*b)[::-1] </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##TYzNCsIwEITveYrFUyKxpP@1kB59Am/qIaUtBtImJFHoxVevDUjrYZeZnW/WzP6pp3QZ@H1RYmw7AYK2tfMWi2NLOA/qcwr6Vten@LHI0Wjrwc0ODdqCAjkFEznfyalGIKnmKnJGSY8PvDkQFD7y4ygM7t9CUfkLCaEIjJWTxytAh7AJDQjWhCwFnIE3cLWvHmWQB30RyvUohSQuqy1LM0hYubMlVDtbMAbxOtshK1Zf7XQVl5Cz9K8BZ8a2/As" rel="noreferrer" title="Python 3 – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T22:01:38"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242001"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242001" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242001/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242001" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 22:01:38Z" class="relativetime">Jan 29 at 22:01</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/84290/anttip"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://lh5.googleusercontent.com/-L34anIVoAMk/AAAAAAAAAAI/AAAAAAAAAAA/AGDgw-hAqQMZZJR-Gs38DamT1gUp2SVZ9A/mo/photo.jpg?sz=64" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/84290/anttip">AnttiP</a><span class="d-none" itemprop="name">AnttiP</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">2,827</span><span title="5 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">5</span></span><span class="v-visible-sr">5 silver badges</span><span title="29 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">29</span></span><span class="v-visible-sr">29 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242001" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242001" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242001" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <div class="js-zone-container zone-container-main"> <div id="dfp-smlb" class="everyonelovesstackoverflow everyoneloves__mid-second-leaderboard everyoneloves__leaderboard"></div> <div class="js-report-ad-button-container " style="width: 728px"></div> </div> <a name="241998"></a> <div id="answer-241998" class="answer js-answer" data-answerid="241998" data-score="5" data-position-on-page="4" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="241998"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="5"> 5 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241998/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://factorcode.org/" rel="nofollow noreferrer">Factor</a>, <sup><s>47</s></sup> 39 bytes</h1> <pre><code>[ over * dup present reverse dec> - = ] </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##TU9NC4JAEL3vr3jnIFk/0rXIa3TpEp2iw6ITRanb7hqE@Ntt@0AdGHgfw8y8s8xtrfvDfrvbLCGNqXODG@mK7iilvUBpMlRZGHo0VOVkvrKnpDakP661L6WvbmLFWMvgqkWKGN0fLxANOPATgXCkPEkRjrZAMmCfc8SuRy5SRJO1PITwx/mU8@nVMPCd7WjH@iPqp/t1hqJRQx5NTjOEgvIMc6xx6s@//FkpFbz@DQ" rel="nofollow noreferrer" title="Factor – Try It Online">Try it online!</a></p> <p>Saved 8 bytes thanks to @ovs' <a href="https://web.archive.org/web/20220202015155/https://codegolf.stackexchange.com/a/242000/97916">observations</a>.</p> <h2>Explanation</h2> <p>Takes input as <code>b a</code>.</p> <pre><code> ! 9 6 over ! 9 6 9 * ! 9 54 dup ! 9 54 54 present ! 9 54 "54" reverse ! 9 54 "45" dec> ! 9 54 45 - ! 9 9 = ! t </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T21:34:07"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="241998"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/241998" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241998/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-241998" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241998/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-30 01:34:45Z" class="relativetime">Jan 30 at 1:34</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 21:34:07Z" class="relativetime">Jan 29 at 21:34</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/97916/chunes"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/B0og9.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/97916/chunes">chunes</a><span class="d-none" itemprop="name">chunes</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">6,030</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="6 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">6</span></span><span class="v-visible-sr">6 silver badges</span><span title="26 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">26</span></span><span class="v-visible-sr">26 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-241998" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="241998" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-241998" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242012"></a> <div id="answer-242012" class="answer js-answer" data-answerid="242012" data-score="5" data-position-on-page="5" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242012"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="5"> 5 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242012/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/DennisMitchell/jelly" rel="noreferrer">Jelly</a>, 6 <a href="https://web.archive.org/web/20220202015155/https://github.com/DennisMitchell/jelly/wiki/Code-page" rel="noreferrer">bytes</a></h1> <pre><code>’×ṚḌ⁼× </code></pre> <p>A dyadic Link accepting <span class="math-container">\$a\$</span> and <span class="math-container">\$b\$</span> that yields <code>1</code> if <span class="math-container">\$a\times b = \text{reversed}( (a - 1)\times b )\$</span>, <code>0</code> if not.</p> <p><strong><a href="https://web.archive.org/web/20220202015155/https://tio.run/##ASAA3/9qZWxsef//4oCZw5fhuZrhuIzigbzDl////zb/OTAwOQ" rel="noreferrer" title="Jelly – Try It Online">Try it online!</a></strong> Or see the <a href="https://web.archive.org/web/20220202015155/https://tio.run/##y0rNyan8//9Rw8zD0x/unPVwR8@jxj2Hp/8/vFz/UdOa//@jo810FCxjdRSiTXQUTEG0sY6CkaG5BZgJFDMyMAdLm@sogMXMDAx0FAwNDMBazEBMC7C8hSFQhamBMVgN0EgDA7CwsZEhUKNhbCwA" rel="noreferrer" title="Jelly – Try It Online">test-suite</a>.</p> <h3>How?</h3> <pre><code>’×ṚḌ⁼× - Link: a, b ’ - a-1 × - (a-1) times b Ṛ - reverse the digits of (a-1)×b Ḍ - convert back to an integer × - a×b ⁼ - equal? </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T01:37:10"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242012"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242012" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242012/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242012" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242012/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-30 02:10:32Z" class="relativetime">2 days ago</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-30 01:37:10Z" class="relativetime">Jan 30 at 1:37</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/53748/jonathan-allan"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/fIyIX.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/53748/jonathan-allan">Jonathan Allan</a><span class="d-none" itemprop="name">Jonathan Allan</span> <div class="-flair"> <span class="reputation-score" title="reputation score 87,801" dir="ltr">87.8k</span><span title="7 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">7</span></span><span class="v-visible-sr">7 gold badges</span><span title="58 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">58</span></span><span class="v-visible-sr">58 silver badges</span><span title="242 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">242</span></span><span class="v-visible-sr">242 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount">3</span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242012" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="242012" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-545433" class="comment js-comment " data-comment-id="545433" data-comment-owner-id="109916" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">how do you code in jelly?</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/109916/dialfrost" title="871 reputation" class="comment-user">DialFrost</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 04:05:34Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> <li id="comment-545435" class="comment js-comment " data-comment-id="545435" data-comment-owner-id="103854" data-comment-score="2"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">2</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">@DialFrost the same way you code in other languages:P</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/103854/pygamer0" title="845 reputation" class="comment-user">PyGamer0</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 04:43:08Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> <li id="comment-545464" class="comment js-comment " data-comment-id="545464" data-comment-owner-id="53748" data-comment-score="1"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">1</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">@DialFrost see the <a href="https://web.archive.org/web/20220202015155/https://github.com/DennisMitchell/jellylanguage/wiki/Tutorial" rel="nofollow noreferrer">tutorial</a> to get started.</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/53748/jonathan-allan" title="87,801 reputation" class="comment-user">Jonathan Allan</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 13:19:07Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> </ul> </div> <div id="comments-link-242012" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242014"></a> <div id="answer-242014" class="answer js-answer" data-answerid="242014" data-score="5" data-position-on-page="6" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242014"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="5"> 5 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242014/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1>Python 2, 31 bytes</h1> <pre><code>lambda a,b:`a*b`==`a*b-b`[::-1] </code></pre> <p>Using the logic that <span class="math-container">$$ ab = \operatorname{rev}( (a-1)b ) \iff ab = \operatorname{rev}(ab-b) $$</span> -2 thx to @dingledooper</p> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##TUxLDoIwEN33FBNWYAop/09Sl57AnZrQBohNCiW0Ljh9pUbBxcyb95k3r@appsQO9G4lG3nHgGHetOzEW0odhLy9NU0YP6wYZ7UY0KtGg1pAgpgcibTpxNQgEFhRGelZCuN7QM/gBci1UfEVf3QyPguwA75J8/IRMMeD2wFWgS2gdgXX5dWjDHJ3X5jUPUohictq99IMElIe2RKqI1sQAvE2u5AVG6@OdBWXkJP07wNqQnb/DQ" rel="nofollow noreferrer">Try it online!</a></p> <h2>Other solutions:</h2> <h3>Python 2, 31 bytes</h3> <pre><code>lambda a,b:`a*b`[::-1]==`a*b-b` </code></pre> <p>Using the logic that <span class="math-container">$$ \operatorname{rev}(ab) = (a-1)b \iff \operatorname{rev}(ab) = ab-b $$</span> -2 thx to @dingledooper</p> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##TYzLDoIwEEX3/YoJKzCFlPcjqUu/wJ2a0AaITQoltC74@kqNgot5nDt37ryap5oSO9C7lWzkHQOGedOyE29vTRPGD0odhLy1YpzVYkCvGg1qAQlichBp04mpQSCwojLSsxTG94CewQuQS6PiK/5wMj4LsBt8k@blI2COB9cDrAJbQO0CrsurRxnkbr8wqXuUQhKX1X5LM0hIeXhLqA5vQQjEW@1CVmxcHe4qLiEn6d8H1ITs9zc" rel="nofollow noreferrer">Try it online!</a></p> <h3>Python 2, 34 bytes</h3> <pre><code>lambda a,b:a*b-int(`a*b`[::-1])==b </code></pre> <p>Using the logic that <span class="math-container">$$ ab - \operatorname{rev}(ab) =b $$</span></p> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##TUxLDsIgEN1ziokrMdjQj/0luPQE7tREiG0koaUBXPT0CEZbFzPzfvOm2T31mPmeXb3ig3hw4ES0fCf2cnTbewD3S9vu0xtmTHg5TNo4sLNFvTagQI6RJNY95NgikEQzldhJSbfdADvCBqNYyORX/NHQzTGJRwRpMh@BCNLHjYnGvoQmFpzNq0MFHCI@cWU7lEOWVvXi5QVktFqzFdRrtqQU0jCLUJSB12u6Tis40PzvAxpKF/8N" rel="nofollow noreferrer">Try it online!</a></p> <p>^Credits to @ovs for the equations!</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T02:50:11"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242014"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242014" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242014/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242014" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242014/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-31 02:49:11Z" class="relativetime">yesterday</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 02:50:11Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/109916/dialfrost"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://lh3.googleusercontent.com/a-/AOh14GgkvqOkqaYgZ4uyyOH5DAoR6X3BoOq-89TvuOY9DA=k-s64" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/109916/dialfrost">DialFrost</a><span class="d-none" itemprop="name">DialFrost</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">871</span><span title="1 silver badge" aria-hidden="true"><span class="badge2"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 silver badge</span><span title="21 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">21</span></span><span class="v-visible-sr">21 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount">2</span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242014" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="242014" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-545429" class="comment js-comment " data-comment-id="545429" data-comment-owner-id="88546" data-comment-score="3"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> <span title="number of 'useful comment' votes received" class="cool">3</span> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy"><code>(a-1)*b</code> -> <code>a*b-b</code></span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/88546/dingledooper" title="15,735 reputation" class="comment-user">dingledooper</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 03:47:31Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> </div> </div> </li> <li id="comment-545432" class="comment js-comment " data-comment-id="545432" data-comment-owner-id="109916" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">thx @dingledooper! im so dumb i didnt see that</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/109916/dialfrost" title="871 reputation" class="comment-user">DialFrost</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-30 03:55:13Z, License: CC BY-SA 4.0" class="relativetime-clean">2 days ago</span></span> <span title="this comment was edited 1 time"> <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </span> </div> </div> </li> </ul> </div> <div id="comments-link-242014" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="241993"></a> <div id="answer-241993" class="answer js-answer" data-answerid="241993" data-score="4" data-position-on-page="7" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="241993"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="4"> 4 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241993/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/Vyxal/Vyxal" rel="nofollow noreferrer">Vyxal</a>, 7 bytes</h1> <pre><code>:‹"*÷Ṙ= </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://vyxal.pythonanywhere.com/#WyIiLCIiLCI64oC5XCIqw7fhuZg9IiwiIiwiNlxuOSJd" rel="nofollow noreferrer">Try it Online!</a></p> <pre><code> " # Pair the first input with :‹ # Itself decremented * # Multiply both by the second input ÷ # Push both to the stack Ṙ= # Is one reversed equal to the other? </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T20:41:10"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="241993"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/241993" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/241993/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-241993" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-29 20:41:10Z" class="relativetime">Jan 29 at 20:41</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/100664/emanresu-a"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/NE9LE.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/100664/emanresu-a">emanresu A</a><span class="d-none" itemprop="name">emanresu A</span> <div class="-flair"> <span class="reputation-score" title="reputation score 22,820" dir="ltr">22.8k</span><span title="3 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 gold badges</span><span title="35 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">35</span></span><span class="v-visible-sr">35 silver badges</span><span title="125 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">125</span></span><span class="v-visible-sr">125 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-241993" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="241993" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-241993" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242003"></a> <div id="answer-242003" class="answer js-answer" data-answerid="242003" data-score="4" data-position-on-page="8" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242003"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="4"> 4 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242003/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/somebody1234/Charcoal" rel="nofollow noreferrer">Charcoal</a>, 13 bytes</h1> <pre><code>NθNη⁼×θη⮌×⊖θη </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##S85ILErOT8z5/98zr6C0xK80Nym1SKNQ05oLmZ8B5AcUZeaVaLgWlibmFGuEZOamFmsU6ihkaOooBKWWpRYVp0IFXVKTi1JzU/NKUlOA5oBUAIH1///GJgpGBuaW/3XLcgA" rel="nofollow noreferrer" title="Charcoal – Try It Online">Try it online!</a> Link is to verbose version of code. Outputs a Charcoal boolean, i.e. <code>-</code> for a reversed pair, nothing if not. Explanation:</p> <pre><code>Nθ First input as a number Nη Second input as a number θ First input × Multiplied by η Second input ⁼ Equals θ First input ⊖ Decremented × Multiplied by η Second input ⮌ Reversed Implicitly print </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T22:12:16"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242003"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242003" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242003/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242003" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-29 22:12:16Z" class="relativetime">Jan 29 at 22:12</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/4538cb9de4914a875d13da50c7c406ad?s=64&d=identicon&r=PG&f=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil">Neil</a><span class="d-none" itemprop="name">Neil</span> <div class="-flair"> <span class="reputation-score" title="reputation score 135,703" dir="ltr">136k</span><span title="10 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">10</span></span><span class="v-visible-sr">10 gold badges</span><span title="59 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">59</span></span><span class="v-visible-sr">59 silver badges</span><span title="243 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">243</span></span><span class="v-visible-sr">243 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242003" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242003" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242003" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242007"></a> <div id="answer-242007" class="answer js-answer" data-answerid="242007" data-score="4" data-position-on-page="9" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242007"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="4"> 4 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242007/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/http://pari.math.u-bordeaux.fr/" rel="nofollow noreferrer">Pari/GP</a>, 40 bytes</h1> <pre><code>f(a,b)=d=digits;d(a*b)==Vecrev(d(a--*b)) </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##HYzbCoMwDIZfJXjVjhRSndox3GPsRrzIPFGQUZwM9vRdzFW@/5TEe3RrynkxjC/bTd0U13h87pPhi@juOY/7/DUinRPDZk5p@xkG94C0x/chWJyigJG3zSwIbC1C3zcIt0HgilCft0IofRsUxSup1bhFUK8hQvBEOmlODJoHL42aKu3ISyK1q9LL0A@DzX8" rel="nofollow noreferrer" title="Pari/GP – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T23:48:46"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242007"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242007" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242007/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242007" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 23:48:46Z" class="relativetime">Jan 29 at 23:48</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/9288/alephalpha"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/0695797b6063143ff79efe5a98a74361?s=64&d=identicon&r=PG" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/9288/alephalpha">alephalpha</a><span class="d-none" itemprop="name">alephalpha</span> <div class="-flair"> <span class="reputation-score" title="reputation score 29,687" dir="ltr">29.7k</span><span title="5 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">5</span></span><span class="v-visible-sr">5 gold badges</span><span title="40 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">40</span></span><span class="v-visible-sr">40 silver badges</span><span title="114 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">114</span></span><span class="v-visible-sr">114 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242007" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242007" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242007" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242008"></a> <div id="answer-242008" class="answer js-answer" data-answerid="242008" data-score="4" data-position-on-page="10" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242008"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="4"> 4 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242008/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1>JavaScript (ES6), 41 bytes</h1> <p>Expects <code>(a)(b)</code>. Returns a Boolean value.</p> <pre class="lang-javascript prettyprint-override"><code>a=>b=>[...a*b+''].reverse().join``==a*b-b </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##fZBNDoIwEEb3noIdHQ2l5bcsytITuDMmFCwGQqhpletja0yMBpjFbOblfTPTi0mYRnf3RzCqq5xbPgte1rw8Y4zFvj74/gVrOUltJALcq26sKs7tJKjnRo1GDRIP6oZalAEqADxXYeid9FPufoEEUPoFjmIw/0QMKKI5c9CyIraOiOQuZxnIAbHtjIwQQNQ2WCOSzAFsPYRRG5OSeF3hfkFIsXFIRO2m9AO8FfML" rel="nofollow noreferrer" title="JavaScript (Node.js) – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T23:56:53"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242008"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242008" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242008/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242008" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 23:56:53Z" class="relativetime">Jan 29 at 23:56</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/58563/arnauld"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/HifFH.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/58563/arnauld">Arnauld</a><span class="d-none" itemprop="name">Arnauld</span> <div class="-flair"> <span class="reputation-score" title="reputation score 161,890" dir="ltr">162k</span><span title="15 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">15</span></span><span class="v-visible-sr">15 gold badges</span><span title="159 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">159</span></span><span class="v-visible-sr">159 silver badges</span><span title="575 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">575</span></span><span class="v-visible-sr">575 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242008" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242008" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242008" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242142"></a> <div id="answer-242142" class="answer js-answer" data-answerid="242142" data-score="4" data-position-on-page="11" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242142"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="4"> 4 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242142/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/dloscutoff/Esolangs/tree/master/tinylisp" rel="nofollow noreferrer">tinylisp</a>, 76 bytes</h1> <pre><code>(load library (d f(q((a b)(e(to-base 10(*(- a 1)b))(reverse(to-base 10(* a b </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##VYtBCoMwFET3nmKWPwXhx2iix0kwQiDUNkrB06fB301X85g3c6bnldPxqpXy7lfkFIovV0crNnoTeQRFkc69D/6I0EwP6uGhVVCKSvzEcvzrJkOlDRaL6lqOmO40GLSbBUcM7EQ7SGeZ253lYhvO4mftMLGRDRZmqc2gm7pR829dvw" rel="nofollow noreferrer" title="tinylisp – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-02-01T06:23:42"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242142"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242142" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242142/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242142" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242142/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-02-01 06:51:08Z" class="relativetime">19 hours ago</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-02-01 06:23:42Z" class="relativetime">19 hours ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/80214/razetime"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/ZMbLM.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/80214/razetime">Razetime</a><span class="d-none" itemprop="name">Razetime</span> <div class="-flair"> <span class="reputation-score" title="reputation score 24,009" dir="ltr">24k</span><span title="3 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 gold badges</span><span title="17 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">17</span></span><span class="v-visible-sr">17 silver badges</span><span title="68 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">68</span></span><span class="v-visible-sr">68 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242142" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242142" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242142" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242002"></a> <div id="answer-242002" class="answer js-answer" data-answerid="242002" data-score="3" data-position-on-page="12" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242002"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="3"> 3 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242002/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/m-ender/retina/wiki/The-Language/a950ad7d925ec9316e3e2fb2cf5d49fd15d23e3d" rel="nofollow noreferrer">Retina 0.8.2</a>, 55 bytes</h1> <pre><code>\d+ $* 1, , 1(?=.*,(1+)) $1 , ,$` 1+ $.& +`(.),\1 , ^,$ </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##FYu7CgIxFAX78x1Rks0h3Jvs5lGIpT@xSAQtbCwW/z/GamCYOV7f9@cxTvbWx/70MAuUINReL2GhVe8cjE5D06EzCGf4boPj/rd3mjEyG1ZuSIxaKtLKKKWhsCKLUEWw5onaULVwk4S5iDSkqKz6Aw" rel="nofollow noreferrer" title="Retina 0.8.2 – Try It Online">Try it online!</a> Link includes test cases. Explanation:</p> <pre><code>\d+ $* </code></pre> <p>Convert to unary.</p> <pre><code>1, , </code></pre> <p>Decrement <code>a</code>.</p> <pre><code>1(?=.*,(1+)) $1 </code></pre> <p>Multiply <code>a-1</code> by <code>b</code>.</p> <pre><code>, ,$` </code></pre> <p>Add that to <code>b</code> giving <code>(a-1)b,ab</code>.</p> <pre><code>1+ $.& </code></pre> <p>Convert to decimal.</p> <pre><code>+`(.),\1 , ^,$ </code></pre> <p>Test whether the results are mirror images of each other.</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T22:08:50"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242002"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242002" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242002/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242002" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-29 22:08:50Z" class="relativetime">Jan 29 at 22:08</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/4538cb9de4914a875d13da50c7c406ad?s=64&d=identicon&r=PG&f=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil">Neil</a><span class="d-none" itemprop="name">Neil</span> <div class="-flair"> <span class="reputation-score" title="reputation score 135,703" dir="ltr">136k</span><span title="10 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">10</span></span><span class="v-visible-sr">10 gold badges</span><span title="59 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">59</span></span><span class="v-visible-sr">59 silver badges</span><span title="243 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">243</span></span><span class="v-visible-sr">243 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242002" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242002" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242002" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242005"></a> <div id="answer-242005" class="answer js-answer" data-answerid="242005" data-score="3" data-position-on-page="13" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242005"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="3"> 3 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242005/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/http://www.red-lang.org/" rel="nofollow noreferrer">Red</a>, <sup><s>47</s></sup> 45 bytes</h1> <pre><code>func[a b][(to""a * b)= reverse to""a - 1 * b] </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##JYxLCsIwAET3PcWjKxWEpGmbRPASbkMW/STopi2xev0YdWAYePAmhTnfwux8FS85vpbJDYzeHfa1rgdOjMcrKbxDegb@7Iz8cp/jmsIw3fkZuB5LS4eikdqgWhqhLRpDLwSytO3LGIuRmk4oiiKERTWyIO8qSrb0WHYi5bTy@QM" rel="nofollow noreferrer" title="Red – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-29T23:15:42"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242005"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242005" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242005/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242005" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-29 23:15:42Z" class="relativetime">Jan 29 at 23:15</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/97916/chunes"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/B0og9.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/97916/chunes">chunes</a><span class="d-none" itemprop="name">chunes</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">6,030</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="6 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">6</span></span><span class="v-visible-sr">6 silver badges</span><span title="26 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">26</span></span><span class="v-visible-sr">26 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242005" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242005" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242005" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242029"></a> <div id="answer-242029" class="answer js-answer" data-answerid="242029" data-score="3" data-position-on-page="14" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242029"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="3"> 3 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242029/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://dyalog.com/" rel="nofollow noreferrer">APL (Dyalog Unicode)</a>, 9 bytes</h1> <p>Anonymous tacit infix function, taking <span class="math-container">\$a\$</span> as left argument and <span class="math-container">\$b\$</span> as right argument.</p> <pre class="lang-apl prettyprint-override"><code>×≡∘⌽⍥⍕×-⊢ </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##SyzI0U2pTMzJT9dNrShJzUtJTfn///D0R50LH3XMeNSz91Hv0ke9Uw9P133Uteh/2qO2CY96@x51NT/qXfOod8uh9caP2iY@6psaHOQMJEM8PIP/mymkKVgqPOqdqxBSVJrKZQLkmoK5bok5xalcxkC@kaG5BUKFMUiJkYE5kiZzoIgFkiYzAwOgiCGQRIiZmIGFLJC0WRiCNJoaGCNrBTnHwABJlbGRIch4Q4QiAA" rel="nofollow noreferrer" title="APL (Dyalog Extended) – Try It Online">Try it online!</a> (Uses Extended because TIO hasn't updated to 18.0)</p> <p><code>×</code> [Does] the product</p> <p><code>≡∘</code> match the…</p> <p> <code>⌽⍥</code> reversed, when both are…</p> <p> <code>⍕</code> stringified</p> <p><code>×</code> product</p> <p><code>-</code> minus</p> <p><code>⊢</code> the right argument[?]</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T10:19:24"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242029"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242029" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242029/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242029" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 10:19:24Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/43319/ad%c3%a1m"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/Rp4VR.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/43319/ad%c3%a1m">Adám</a><span class="d-none" itemprop="name">Adám</span> <div class="-flair"> <span class="reputation-score" title="reputation score 26,344" dir="ltr">26.3k</span><span title="2 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">2</span></span><span class="v-visible-sr">2 gold badges</span><span title="107 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">107</span></span><span class="v-visible-sr">107 silver badges</span><span title="274 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">274</span></span><span class="v-visible-sr">274 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242029" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242029" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242029" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242033"></a> <div id="answer-242033" class="answer js-answer" data-answerid="242033" data-score="2" data-position-on-page="15" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242033"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="2"> 2 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242033/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://gcc.gnu.org/" rel="nofollow noreferrer">C (gcc)</a>, 55 bytes</h1> <pre class="lang-c prettyprint-override"><code>c;r;f(a,b){for(r=0,c=~-a*b;c;c/=10)r+=9*r+c%10;r-=a*b;} </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##bVHZboMwEHzPV2yRkDiMYifNgVz3pepXNFEFxqSoLYlspKJG9NNL11xKoiKzeGd2BhjL6CBl20quee4lJPXP@VF7WlAixU@UBCmXXM4Fo74ORRzoULqMch0JSzVtUVbwmRSl58N5BnhZoFKmMq/Jyx4EnNcE7gksceFjQ2BNKSKIbpntEF@wht9o014bE1gRWLDNFivdYIsbZg0Y3VqSom9MqSUuTVR9UrJSWe/CCFhFt@i4H@ogksfSVCDfEh1gVfJd6V7r7Ornxa6On/BeOQQu@6UzqDEx8Ox7izJTNcooH7YPYIpvdcy98Yv8@QAEE8IhDLtpvzPrYxz/JEG3Mc5uaM@v@HTi0395g/ydPVhI/WtGITPldCs9aRzJPcfNCLgZRI@2umZXYgTWi4AhU1BGCLUf3JtZ0/7K/CM5mDb6@gM" rel="nofollow noreferrer" title="C (gcc) – Try It Online">Try it online!</a></p> <p>Inputs two integers <span class="math-container">\$a\$</span> and <span class="math-container">\$b\$</span>.<br/> Returns a falsy value if these two numbers are a reversed multiple pair or a truthy value otherwise.</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T11:14:30"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242033"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242033" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242033/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242033" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-30 11:14:30Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/9481/noodle9"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/5418f577abfa7c529dd026723462b440?s=64&d=identicon&r=PG" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/9481/noodle9">Noodle9</a><span class="d-none" itemprop="name">Noodle9</span> <div class="-flair"> <span class="reputation-score" title="reputation score 16,901" dir="ltr">16.9k</span><span title="2 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">2</span></span><span class="v-visible-sr">2 gold badges</span><span title="16 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">16</span></span><span class="v-visible-sr">16 silver badges</span><span title="39 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">39</span></span><span class="v-visible-sr">39 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242033" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242033" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242033" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242049"></a> <div id="answer-242049" class="answer js-answer" data-answerid="242049" data-score="2" data-position-on-page="16" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242049"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="2"> 2 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242049/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://www.ruby-lang.org/" rel="nofollow noreferrer">Ruby</a>, 33 bytes</h1> <pre class="lang-ruby prettyprint-override"><code>->a,b{"#{a*=b}"==(a-b).digits*''} </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##KypNqvyfZvtf1y5RJ6laSbk6Ucs2qVbJ1lYjUTdJUy8lMz2zpFhLXb32f4FCWrSZjmUsF4hhrmMBYZgZGOgYGhhAOCZmQLaFZex/AA" rel="nofollow noreferrer" title="Ruby – Try It Online">Try it online!</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T20:03:33"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242049"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242049" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242049/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242049" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 20:03:33Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/18535/g-b"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/LWJVp.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/18535/g-b">G B</a><span class="d-none" itemprop="name">G B</span> <div class="-flair"> <span class="reputation-score" title="reputation score 16,700" dir="ltr">16.7k</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="17 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">17</span></span><span class="v-visible-sr">17 silver badges</span><span title="45 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">45</span></span><span class="v-visible-sr">45 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242049" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242049" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242049" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242028"></a> <div id="answer-242028" class="answer js-answer" data-answerid="242028" data-score="1" data-position-on-page="17" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242028"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242028/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1>BQN, <s>33</s> 22 Bytes</h1> <p><s>This seems too long.</s></p> <p>A little better.</p> <pre><code>{(𝕨×𝕩)=•BQN⌽•Fmt𝕩×𝕨-1} </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://mlochbaum.github.io/BQN/try.html#code=RuKGkHso8J2VqMOX8J2VqSk94oCiQlFO4oy94oCiRm108J2VqcOX8J2VqC0xfQo2IEYgOQ==" rel="nofollow noreferrer">Try it!</a></p> <p><em>¯11 bytes thanks to @Razetime</em></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T09:55:31"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242028"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242028" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242028/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242028" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242028/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-30 10:04:49Z" class="relativetime">2 days ago</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 09:55:31Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/103854/pygamer0"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/ZrGmG.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/103854/pygamer0">PyGamer0</a><span class="d-none" itemprop="name">PyGamer0</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">845</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="5 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">5</span></span><span class="v-visible-sr">5 silver badges</span><span title="23 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">23</span></span><span class="v-visible-sr">23 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242028" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242028" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242028" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242025"></a> <div id="answer-242025" class="answer js-answer" data-answerid="242025" data-score="1" data-position-on-page="18" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242025"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242025/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1>APL+WIN, <s>22</s> 20 bytes</h1> <p>Prompts for a then b. Minus 2 bytes using rearrangement logic</p> <pre><code>(⍎⌽⍕n-b)=n←(b←⎕)×a←⎕ </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##JYuxDcIwEEX7m8JlUlg628R2CgZAAjGDE2SEZAWkVCwAFCSiiZiGik28iLkTje/pv@dwSfJwDel8lH0K43jqS56X3TbfXgaINnsiBflxj6XK05yfnzwtg@zq9UCm6uihrP6@w58KpVAiWGghwkpAQ8cI0Mp5Jlo0OnZOAC8WUYBC5NoyeZZekW7QcCCgReTRaEV/1A8" rel="nofollow noreferrer" title="APL (Dyalog Classic) – Try It Online">Try it online! Thanks to Dyalog Classic</a></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T09:25:00"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242025"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242025" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242025/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242025" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242025/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-30 10:14:47Z" class="relativetime">2 days ago</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 09:25:00Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/6949/graham"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/ee1f7de870726aeada0144162101a1ae?s=64&d=identicon&r=PG" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/6949/graham">Graham</a><span class="d-none" itemprop="name">Graham</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">4,516</span><span title="11 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">11</span></span><span class="v-visible-sr">11 silver badges</span><span title="9 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">9</span></span><span class="v-visible-sr">9 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242025" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242025" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242025" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242032"></a> <div id="answer-242032" class="answer js-answer" data-answerid="242032" data-score="1" data-position-on-page="19" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242032"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242032/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/m-ender/retina/wiki/The-Language" rel="nofollow noreferrer">Retina</a>, 41 bytes</h1> <pre><code>L$`.+, *$'*_,$($^$.(*$'*))*_$'* ^(_+),\1$ </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##FcsxDgIhEEbh/j/HGIGdbGaAheEENh7BLGthYWNh9v6I1ZdXvO/rfH@eOi7udow7HevCCHQNncnRTqv7h/ehT7C7vnh@KI1RuCHzhsRRqyFljlIbKhuKCKsIcplYg2nlTRLmItKQorLpDw" rel="nofollow noreferrer" title="Retina – Try It Online">Try it online!</a> Link includes test cases. Explanation: Based on @ovs' 05AB1E answer.</p> <pre><code>L$`.+, </code></pre> <p>Match <code>a</code> as <code>$&</code> (Retina ignores the trailing comma when performing arithmetic) and <code>b</code> as <code>$'</code> and replace the whole input with the result.</p> <pre><code>*$'*_,$($^$.(*$'*))*_$'* </code></pre> <p>Calculate <code>a*b</code> and also <code>rev(a*b)+b</code> in unary.</p> <pre><code>^(_+),\1$ </code></pre> <p>See whether they are the same.</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T11:04:07"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242032"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242032" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242032/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242032" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-30 11:04:07Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/4538cb9de4914a875d13da50c7c406ad?s=64&d=identicon&r=PG&f=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/17602/neil">Neil</a><span class="d-none" itemprop="name">Neil</span> <div class="-flair"> <span class="reputation-score" title="reputation score 135,703" dir="ltr">136k</span><span title="10 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">10</span></span><span class="v-visible-sr">10 gold badges</span><span title="59 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">59</span></span><span class="v-visible-sr">59 silver badges</span><span title="243 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">243</span></span><span class="v-visible-sr">243 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242032" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242032" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242032" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242045"></a> <div id="answer-242045" class="answer js-answer" data-answerid="242045" data-score="1" data-position-on-page="20" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242045"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242045/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/FMNSSun/Burlesque" rel="nofollow noreferrer">Burlesque</a>, 14 bytes</h1> <pre><code>Jpdjp^-..*<-== </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##JYoxCoAwEAT7vGJrQblLYhLBfMDOD1iINmIRlWAhvj0eWCzDzu6cz329jryWZ0hXGdKypalumqqvYyw5be@9j8Whg7JooQw0@yC00OTFekhzRGCJsk4YRAf2aMnIhI5IhNGMwFBM/@MD" rel="nofollow noreferrer" title="Burlesque – Try It Online">Try it online!</a></p> <p>Takes input as array of pairs {a b}</p> <pre><code>J # Duplicate pd # Product of array j # Swap p^ # Push elements to stack (b, a) -. # Decrement .* # Product <- # Reverse digits == # Equal </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T19:19:51"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242045"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242045" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242045/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242045" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-30 19:19:51Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/91386/deathincarnate"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/27fe2f16a81dae3425f3f2b105d469b8?s=64&d=identicon&r=PG&f=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/91386/deathincarnate">DeathIncarnate</a><span class="d-none" itemprop="name">DeathIncarnate</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">1,560</span><span title="3 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">3</span></span><span class="v-visible-sr">3 silver badges</span><span title="8 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">8</span></span><span class="v-visible-sr">8 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242045" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242045" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242045" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242103"></a> <div id="answer-242103" class="answer js-answer" data-answerid="242103" data-score="1" data-position-on-page="21" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242103"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242103/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://www.haskell.org/" rel="nofollow noreferrer">Haskell</a>, <s>43</s> 33 bytes</h1> <pre class="lang-hs prettyprint-override"><code>a?b=a*b==read(reverse$show$a*b-b) </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##XY7NCsIwEITvfYo95KCCsNu/pIfQZ9nQQIu1laTo48dEPKwev4@ZYWaON7@uKfHoLF@ctcHzdAr@6UP0Ks77S2V9ded052UDC9NewSMs2wEKoIcRBsFN5pq0kaotDrWMtaVHaIb/KcSfWFadYJ1ZTveInx0UzlBJddjICzWVJglF@H0AVXoD" rel="nofollow noreferrer" title="Haskell – Try It Online">Try it online!</a></p> <ul> <li>I haven't thought <code>reverse</code> was available in prelude, no reason to use foldl(flip(:))""String</li> </ul> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-31T16:39:03"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242103"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242103" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242103/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242103" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242103/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-31 17:17:09Z" class="relativetime">yesterday</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> answered <span title="2022-01-31 16:39:03Z" class="relativetime">yesterday</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/84844/aztecco"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://www.gravatar.com/avatar/36917c22a526c68f7bf3d3ea69a5c643?s=64&d=identicon&r=PG&f=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/84844/aztecco">AZTECCO</a><span class="d-none" itemprop="name">AZTECCO</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">7,940</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="11 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">11</span></span><span class="v-visible-sr">11 silver badges</span><span title="46 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">46</span></span><span class="v-visible-sr">46 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242103" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242103" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242103" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242140"></a> <div id="answer-242140" class="answer js-answer" data-answerid="242140" data-score="1" data-position-on-page="22" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242140"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="1"> 1 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242140/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://geogebra.org/" rel="nofollow noreferrer">GeoGebra</a>, <s>86</s> 77 bytes</h1> <pre><code>a=6 b=9 s=Text(ab-b) o=FromBase(Sum(Zip(Take(s,c,c),c,Length(s)…1)),10)==ab </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://www.geogebra.org/calculator/m3g8bgb6" rel="nofollow noreferrer">Try It On GeoGebra!</a></p> <p>Input is <code>a</code> and <code>b</code>, output is <code>o</code> as <code>true</code> if <code>a</code> and <code>b</code> are a reversed multiple pair, <code>false</code> otherwise.</p> <p>The example input shown in the code is <code>a=6</code> and <code>b=9</code>, but you can change these values to whatever you want.</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-02-01T05:41:15"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242140"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242140" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242140/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242140" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242140/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-02-01 07:07:03Z" class="relativetime">18 hours ago</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-02-01 05:41:15Z" class="relativetime">20 hours ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/96039/aiden-chow"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://lh3.googleusercontent.com/-j6HBVvObKqE/AAAAAAAAAAI/AAAAAAAAADU/3gJkgFzaAz0/photo.jpg?sz=64" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/96039/aiden-chow">Aiden Chow</a><span class="d-none" itemprop="name">Aiden Chow</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">1,465</span><span title="1 silver badge" aria-hidden="true"><span class="badge2"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 silver badge</span><span title="16 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">16</span></span><span class="v-visible-sr">16 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242140" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242140" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242140" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242039"></a> <div id="answer-242039" class="answer js-answer" data-answerid="242039" data-score="0" data-position-on-page="23" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242039"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="0"> 0 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242039/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://php.net/" rel="nofollow noreferrer">PHP</a>, 79 bytes</h1> <pre class="lang-php prettyprint-override"><code>$a=trim(fgets(STDIN));$b=trim(fgets(STDIN));echo $a*$b==(int)strrev($b*($a-1)); </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##K8go@G9jXwAkVRJtS4oyczXS0lNLijWCQ1w8/TQ1rVWSsImmJmfkK6gkagFlbTUy80o0i0uKilLLNFSStDRUEnUNgUr@/zfjsgQA" rel="nofollow noreferrer" title="PHP – Try It Online">Try it online!</a></p> <p>With the help of Github Copilot</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-30T14:51:37"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242039"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242039" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242039/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242039" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-30 14:51:37Z" class="relativetime">2 days ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/106959/fmbalbuena"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/NbBEN.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/106959/fmbalbuena">Fmbalbuena</a><span class="d-none" itemprop="name">Fmbalbuena</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">2,023</span><span title="1 gold badge" aria-hidden="true"><span class="badge1"></span><span class="badgecount">1</span></span><span class="v-visible-sr">1 gold badge</span><span title="4 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">4</span></span><span class="v-visible-sr">4 silver badges</span><span title="36 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">36</span></span><span class="v-visible-sr">36 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount">1</span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242039" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="242039" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-545618" class="comment js-comment " data-comment-id="545618" data-comment-owner-id="14732" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">Instead of all of this, you can just do <code>fn($a,$b)=>$a*$b==+strrev($b*($a-1));</code>. This creates an anonymous function and does the casting to a number in fewer bytes. This syntax was introduced in PHP 8.0. You can see it working for yourself here: <a href="https://web.archive.org/web/20220202015155/http://sandbox.onlinephpfunctions.com/code/d26cb3ea5513512044fd100d5cc62e306e8e6e23" rel="nofollow noreferrer">sandbox.onlinephpfunctions.com/code/…</a></span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/14732/ismael-miguel" title="7,355 reputation" class="comment-user">Ismael Miguel</a> </div> <span class="comment-date" dir="ltr"><span title="2022-01-31 17:41:14Z, License: CC BY-SA 4.0" class="relativetime-clean">yesterday</span></span> </div> </div> </li> </ul> </div> <div id="comments-link-242039" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242088"></a> <div id="answer-242088" class="answer js-answer" data-answerid="242088" data-score="0" data-position-on-page="24" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242088"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="0"> 0 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242088/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/https://github.com/maxbergmark/mathgolf/blob/master/math_golf.txt" rel="nofollow noreferrer">MathGolf</a>, 7 <a href="https://web.archive.org/web/20220202015155/https://github.com/maxbergmark/mathgolf/blob/master/code_page.py" rel="nofollow noreferrer">bytes</a></h1> <pre><code>`(*x¬*= </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##HYqpEYAwEEX9r2IlE/U350bQCxhAwGAQFEUVNBYyyHcc87Wt5760Ng3ufh83tpalIojXYghRPEtFzKK0ip7IjpJQxJDJ7gnTIokBwauYQvnfHw" rel="nofollow noreferrer">Try it online.</a></p> <p><strong>Explanation:</strong></p> <pre class="lang-python prettyprint-override"><code>` # Duplicate the top two items, using the implicit inputs # STACK: b,a,b,a ( # Decrease the top item # STACK: b,a,b,a-1 * # Multiply the top two together # STACK: b,a,b*(a-1) x # Reverse the top integer # STACK: b,a,reverse(b*(a-1)) ¬ # Reverse rotate the stack: # STACK: reverse(b*a(-1)),b,a * # Multiply the top two again # STACK: reverse(b*a(-1)),b*a = # Check if the two are equal # STACK: reverse(b*a(-1))==b*a # (after which the entire stack joined together is output implicitly) </code></pre> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-31T12:55:21"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242088"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242088" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242088/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242088" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info "> <div class="user-action-time"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242088/revisions" title="show all edits to this post" class="js-gps-track" data-gps-track="post.click({ item: 4, priv: 0, post_type: 2 })">edited <span title="2022-01-31 13:12:57Z" class="relativetime">yesterday</span></a> </div> <div class="user-gravatar32"> </div> <div class="user-details"> <div class="-flair"> </div> </div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-31 12:55:21Z" class="relativetime">yesterday</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/52210/kevin-cruijssen"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/MefSP.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/52210/kevin-cruijssen">Kevin Cruijssen</a><span class="d-none" itemprop="name">Kevin Cruijssen</span> <div class="-flair"> <span class="reputation-score" title="reputation score 96,404" dir="ltr">96.4k</span><span title="8 gold badges" aria-hidden="true"><span class="badge1"></span><span class="badgecount">8</span></span><span class="v-visible-sr">8 gold badges</span><span title="126 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">126</span></span><span class="v-visible-sr">126 silver badges</span><span title="324 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">324</span></span><span class="v-visible-sr">324 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242088" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242088" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242088" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242101"></a> <div id="answer-242101" class="answer js-answer" data-answerid="242101" data-score="0" data-position-on-page="25" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242101"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="0"> 0 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242101/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1>T-SQL, 31 bytes</h1> <p>Using bitwise operators</p> <pre class="lang-sql prettyprint-override"><code>PRINT-1/~(@*@b^reverse(@b*~-@)) </code></pre> <p><strong><a href="https://web.archive.org/web/20220202015155/https://dbfiddle.uk/?rdbms=sqlserver_2019&fiddle=9fc7f0105c4dda09629b30cabc563aba" rel="nofollow noreferrer">Try it online</a></strong></p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-01-31T15:47:33"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242101"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242101" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242101/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242101" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-01-31 15:47:33Z" class="relativetime">yesterday</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/53044/t-clausen-dk"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/e0Qyw.jpg?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/53044/t-clausen-dk">t-clausen.dk</a><span class="d-none" itemprop="name">t-clausen.dk</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">3,504</span><span title="8 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">8</span></span><span class="v-visible-sr">8 silver badges</span><span title="15 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">15</span></span><span class="v-visible-sr">15 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount"></span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242101" class="comments js-comments-container bt bc-black-075 mt12 dno" data-post-id="242101" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> </ul> </div> <div id="comments-link-242101" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="242195"></a> <div id="answer-242195" class="answer js-answer" data-answerid="242195" data-score="0" data-position-on-page="26" data-highest-scored="0" data-question-has-accepted-highest-score="0" itemprop="suggestedAnswer" itemscope itemtype="https://schema.org/Answer"> <div class="post-layout"> <div class="votecell post-layout--left"> <div class="js-voting-container d-flex jc-center fd-column ai-stretch gs4 fc-black-200" data-post-id="242195"> <button class="js-vote-up-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is useful" aria-pressed="false" aria-label="Up vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowUpLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 25h32L18 9 2 25Z"/></svg> </button> <div class="js-vote-count flex--item d-flex fd-column ai-center fc-black-500 fs-title" itemprop="upvoteCount" data-value="0"> 0 </div> <button class="js-vote-down-btn flex--item s-btn s-btn__unset c-pointer " data-controller="s-tooltip" data-s-tooltip-placement="right" title="This answer is not useful" aria-pressed="false" aria-label="Down vote" data-selected-classes="fc-theme-primary" data-unselected-classes=""> <svg aria-hidden="true" class="svg-icon iconArrowDownLg" width="36" height="36" viewbox="0 0 36 36"><path d="M2 11h32L18 27 2 11Z"/></svg> </button> <div class="js-accepted-answer-indicator flex--item fc-green-500 py6 mtn8 d-none" data-s-tooltip-placement="right" title="Loading when this answer was accepted…" tabindex="0" role="note" aria-label="Accepted"> <div class="ta-center"> <svg aria-hidden="true" class="svg-icon iconCheckmarkLg" width="36" height="36" viewbox="0 0 36 36"><path d="m6 14 8 8L30 6v8L14 30l-8-8v-8Z"/></svg> </div> </div> <a class="js-post-issue flex--item s-btn s-btn__unset c-pointer py6 mx-auto" href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242195/timeline" data-shortcut="T" data-ks-title="timeline" data-controller="s-tooltip" data-s-tooltip-placement="right" title="Show activity on this post." aria-label="Timeline"><svg aria-hidden="true" class="mln2 mr0 svg-icon iconHistory" width="19" height="18" viewbox="0 0 19 18"><path d="M3 9a8 8 0 1 1 3.73 6.77L8.2 14.3A6 6 0 1 0 5 9l3.01-.01-4 4-4-4h3L3 9Zm7-4h1.01L11 9.36l3.22 2.1-.6.93L10 10V5Z"/></svg></a> </div> </div> <div class="answercell post-layout--right"> <span class="d-none">\$\begingroup\$</span> <div class="s-prose js-post-body" itemprop="text"> <h1><a href="https://web.archive.org/web/20220202015155/http://julialang.org/" rel="nofollow noreferrer">Julia 1.0</a>, 56 bytes</h1> <pre class="lang-julia prettyprint-override"><code>(a,b,d=digits,s=string)->s(d(a*b))==s(reverse(d(a*b-b))) </code></pre> <p><a href="https://web.archive.org/web/20220202015155/https://tio.run/##Tc5JCsMwDAXQfU@hpV0UkDJn4dKrJGSoS2nASofbuy6lQUs9/v/o@rj5nt9xdtH0OODoRr/4TVCcbMHfF5udxIymPw7WOicmTM8pyPSjLKGNZ7msL5hNjdDZw/8qESoL@1kg5Ny0WlIip6ZT1CDoRE2EwESKyvorrS61nGoVFbqYPiHSoSLntM1KmPal@AE" rel="nofollow noreferrer" title="Julia 1.0 – Try It Online">Try it online!</a></p> <p>Pretty straightforward answer, with nothing particularly clever to it (unfortunately).</p> </div> <div class="mt24"> <div class="d-flex fw-wrap ai-start jc-end gs8 gsy"> <time itemprop="dateCreated" datetime="2022-02-01T23:30:13"></time> <div class="flex--item mr16" style="flex: 1 1 100px;"> <div class="js-post-menu pt2" data-post-id="242195"> <div class="d-flex gs8 s-anchors s-anchors__muted fw-wrap"> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/a/242195" rel="nofollow" itemprop="url" class="js-share-link js-gps-track" title="Short permalink to this answer" data-gps-track="post.click({ item: 2, priv: 0, post_type: 2 })" data-controller="se-share-sheet" data-se-share-sheet-title="Share a link to this answer" data-se-share-sheet-subtitle="" data-se-share-sheet-post-type="answer" data-se-share-sheet-social="facebook twitter " data-se-share-sheet-location="2" data-se-share-sheet-license-url="https%3a%2f%2fcreativecommons.org%2flicenses%2fby-sa%2f4.0%2f" data-se-share-sheet-license-name="CC BY-SA 4.0" data-s-popover-placement="bottom-start">Share</a> </div> <div class="flex--item"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/posts/242195/edit" class="js-suggest-edit-post js-gps-track" data-gps-track="post.click({ item: 6, priv: 0, post_type: 2 })" title="">Improve this answer</a> </div> <div class="flex--item"> <button type="button" id="btnFollowPost-242195" class="s-btn s-btn__link js-follow-post js-follow-answer js-gps-track" data-gps-track="post.click({ item: 14, priv: 0, post_type: 2 })" data-controller="s-tooltip " data-s-tooltip-placement="bottom" data-s-popover-placement="bottom" aria-controls="" title="Follow this answer to receive notifications"> Follow </button> </div> </div> <div class="js-menu-popup-container"></div> </div> </div> <div class="post-signature flex--item fl0"> <div class="user-info user-hover"> <div class="user-action-time"> answered <span title="2022-02-01 23:30:13Z" class="relativetime">2 hours ago</span> </div> <div class="user-gravatar32"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/8774/sundar-remember-monica"><div class="gravatar-wrapper-32"><img src="https://web.archive.org/web/20220202015155im_/https://i.stack.imgur.com/RZLo7.png?s=64&g=1" alt="" width="32" height="32" class="bar-sm"></div></a> </div> <div class="user-details" itemprop="author" itemscope itemtype="http://schema.org/Person"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/8774/sundar-remember-monica">sundar - Remember Monica</a><span class="d-none" itemprop="name">sundar - Remember Monica</span> <div class="-flair"> <span class="reputation-score" title="reputation score " dir="ltr">5,482</span><span title="15 silver badges" aria-hidden="true"><span class="badge2"></span><span class="badgecount">15</span></span><span class="v-visible-sr">15 silver badges</span><span title="29 bronze badges" aria-hidden="true"><span class="badge3"></span><span class="badgecount">29</span></span><span class="v-visible-sr">29 bronze badges</span> </div> </div> </div> </div> </div> </div> <span class="d-none">\$\endgroup\$</span> </div> <span class="d-none" itemprop="commentCount">2</span> <div class="post-layout--right js-post-comments-component"> <div id="comments-242195" class="comments js-comments-container bt bc-black-075 mt12 " data-post-id="242195" data-min-length="15"> <ul class="comments-list js-comments-list" data-remaining-comments-count="0" data-canpost="false" data-cansee="true" data-comments-unavailable="false" data-addlink-disabled="true"> <li id="comment-545757" class="comment js-comment " data-comment-id="545757" data-comment-owner-id="88546" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">33 bytes: <code>a+b="$(a*b)"==reverse("$(a*b-b)")</code>.</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/88546/dingledooper" title="15,735 reputation" class="comment-user">dingledooper</a> </div> <span class="comment-date" dir="ltr"><span title="2022-02-01 23:38:54Z, License: CC BY-SA 4.0" class="relativetime-clean">2 hours ago</span></span> </div> </div> </li> <li id="comment-545758" class="comment js-comment " data-comment-id="545758" data-comment-owner-id="8774" data-comment-score="0"> <div class="js-comment-actions comment-actions"> <div class="comment-score js-comment-edit-hide"> </div> </div> <div class="comment-text js-comment-text-and-form"> <div class="comment-body js-comment-edit-hide"> <span class="d-none">\$\begingroup\$</span> <span class="comment-copy">@dingledooper I always forget about the operator trick 🤦 That seems different enough to merit a separate answer!</span> <span class="d-none">\$\endgroup\$</span> <div class="d-inline-flex ai-center"> – <a href="/web/20220202015155/https://codegolf.stackexchange.com/users/8774/sundar-remember-monica" title="5,482 reputation" class="comment-user">sundar - Remember Monica</a> </div> <span class="comment-date" dir="ltr"><span title="2022-02-01 23:43:50Z, License: CC BY-SA 4.0" class="relativetime-clean">2 hours ago</span></span> <span title="this comment was edited 1 time"> <svg aria-hidden="true" class="va-text-bottom o50 svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </span> </div> </div> </li> </ul> </div> <div id="comments-link-242195" data-rep="50" data-anon="true"> <a class="js-add-link comments-link disabled-link" title="Use comments to ask for more information or suggest improvements. Avoid comments like “+1” or “thanks”." href="#" role="button">Add a comment</a> <span class="js-link-separator dno"> | </span> <a class="js-show-link comments-link dno" title="Expand to show all comments on this post" href="#" onclick="" role="button"></a> </div> </div> </div> </div> <a name="new-answer"></a> <form id="post-form" action="/web/20220202015155/https://codegolf.stackexchange.com/questions/241992/answer/submit" method="post" class="js-add-answer-component post-form"> <input type="hidden" id="post-id" value="241992"/> <input type="hidden" id="qualityBanWarningShown" name="qualityBanWarningShown" value="false"/> <input type="hidden" name="referrer" value=""/> <h2 class="space"> Your Answer </h2> <script> StackExchange.ifUsing("editor", function () { StackExchange.using("externalEditor", function () { StackExchange.using("snippets", function () { StackExchange.snippets.init(); }); }); }, "code-snippets"); </script> <script> StackExchange.ready(function() { var channelOptions = { tags: "".split(" "), id: "200" }; initTagRenderer("".split(" "), "".split(" "), channelOptions); StackExchange.using("externalEditor", function() { // Have to fire editor after snippets, if snippets enabled if (StackExchange.settings.snippets.snippetsEnabled) { StackExchange.using("snippets", function() { createEditor(); }); } else { createEditor(); } }); function createEditor() { StackExchange.prepareEditor({ useStacksEditor: false, heartbeatType: 'answer', autoActivateHeartbeat: false, convertImagesToLinks: false, noModals: true, showLowRepImageUploadWarning: true, reputationToPostImages: null, bindNavPrevention: true, postfix: "", imageUploader: { brandingHtml: "Powered by \u003ca href=\"https://imgur.com/\"\u003e\u003csvg class=\"svg-icon\" width=\"50\" height=\"18\" viewBox=\"0 0 50 18\" fill=\"none\" xmlns=\"http://www.w3.org/2000/svg\"\u003e\u003cpath d=\"M46.1709 9.17788C46.1709 8.26454 46.2665 7.94324 47.1084 7.58816C47.4091 7.46349 47.7169 7.36433 48.0099 7.26993C48.9099 6.97997 49.672 6.73443 49.672 5.93063C49.672 5.22043 48.9832 4.61182 48.1414 4.61182C47.4335 4.61182 46.7256 4.91628 46.0943 5.50789C45.7307 4.9328 45.2525 4.66231 44.6595 4.66231C43.6264 4.66231 43.1481 5.28821 43.1481 6.59048V11.9512C43.1481 13.2535 43.6264 13.8962 44.6595 13.8962C45.6924 13.8962 46.1709 13.2535 46.1709 11.9512V9.17788Z\"/\u003e\u003cpath d=\"M32.492 10.1419C32.492 12.6954 34.1182 14.0484 37.0451 14.0484C39.9723 14.0484 41.5985 12.6954 41.5985 10.1419V6.59049C41.5985 5.28821 41.1394 4.66232 40.1061 4.66232C39.0732 4.66232 38.5948 5.28821 38.5948 6.59049V9.60062C38.5948 10.8521 38.2696 11.5455 37.0451 11.5455C35.8209 11.5455 35.4954 10.8521 35.4954 9.60062V6.59049C35.4954 5.28821 35.0173 4.66232 34.0034 4.66232C32.9703 4.66232 32.492 5.28821 32.492 6.59049V10.1419Z\" /\u003e\u003cpath fill-rule=\"evenodd\" clip-rule=\"evenodd\" d=\"M25.6622 17.6335C27.8049 17.6335 29.3739 16.9402 30.2537 15.6379C30.8468 14.7755 30.9615 13.5579 30.9615 11.9512V6.59049C30.9615 5.28821 30.4833 4.66231 29.4502 4.66231C28.9913 4.66231 28.4555 4.94978 28.1109 5.50789C27.499 4.86533 26.7335 4.56087 25.7005 4.56087C23.1369 4.56087 21.0134 6.57349 21.0134 9.27932C21.0134 11.9852 23.003 13.913 25.3754 13.913C26.5612 13.913 27.4607 13.4902 28.1109 12.6616C28.1109 12.7229 28.1161 12.7799 28.121 12.8346C28.1256 12.8854 28.1301 12.9342 28.1301 12.983C28.1301 14.4373 27.2502 15.2321 25.777 15.2321C24.8349 15.2321 24.1352 14.9821 23.5661 14.7787C23.176 14.6393 22.8472 14.5218 22.5437 14.5218C21.7977 14.5218 21.2429 15.0123 21.2429 15.6887C21.2429 16.7375 22.9072 17.6335 25.6622 17.6335ZM24.1317 9.27932C24.1317 7.94324 24.9928 7.09766 26.1024 7.09766C27.2119 7.09766 28.0918 7.94324 28.0918 9.27932C28.0918 10.6321 27.2311 11.5116 26.1024 11.5116C24.9737 11.5116 24.1317 10.6491 24.1317 9.27932Z\"/\u003e\u003cpath d=\"M16.8045 11.9512C16.8045 13.2535 17.2637 13.8962 18.2965 13.8962C19.3298 13.8962 19.8079 13.2535 19.8079 11.9512V8.12928C19.8079 5.82936 18.4879 4.62866 16.4027 4.62866C15.1594 4.62866 14.279 4.98375 13.3609 5.88013C12.653 5.05154 11.6581 4.62866 10.3573 4.62866C9.34336 4.62866 8.57809 4.89931 7.9466 5.5079C7.58314 4.9328 7.10506 4.66232 6.51203 4.66232C5.47873 4.66232 5.00066 5.28821 5.00066 6.59049V11.9512C5.00066 13.2535 5.47873 13.8962 6.51203 13.8962C7.54479 13.8962 8.0232 13.2535 8.0232 11.9512V8.90741C8.0232 7.58817 8.44431 6.91179 9.53458 6.91179C10.5104 6.91179 10.893 7.58817 10.893 8.94108V11.9512C10.893 13.2535 11.3711 13.8962 12.4044 13.8962C13.4375 13.8962 13.9157 13.2535 13.9157 11.9512V8.90741C13.9157 7.58817 14.3365 6.91179 15.4269 6.91179C16.4027 6.91179 16.8045 7.58817 16.8045 8.94108V11.9512Z\"/\u003e\u003cpath d=\"M3.31675 6.59049C3.31675 5.28821 2.83866 4.66232 1.82471 4.66232C0.791758 4.66232 0.313354 5.28821 0.313354 6.59049V11.9512C0.313354 13.2535 0.791758 13.8962 1.82471 13.8962C2.85798 13.8962 3.31675 13.2535 3.31675 11.9512V6.59049Z\" /\u003e\u003cpath d=\"M1.87209 0.400291C0.843612 0.400291 0 1.1159 0 1.98861C0 2.87869 0.822846 3.57676 1.87209 3.57676C2.90056 3.57676 3.7234 2.87869 3.7234 1.98861C3.7234 1.1159 2.90056 0.400291 1.87209 0.400291Z\" fill=\"#1BB76E\"/\u003e\u003c/svg\u003e\u003c/a\u003e", contentPolicyHtml: "User contributions licensed under \u003ca href=\"https://stackoverflow.com/help/licensing\"\u003ecc by-sa\u003c/a\u003e \u003ca href=\"https://stackoverflow.com/legal/content-policy\"\u003e(content policy)\u003c/a\u003e", allowUrls: true }, onDemand: true, discardSelector: ".discard-answer" ,immediatelyShowMarkdownHelp:true,enableTables:true,enableSnippets:true }); } }); </script> <div id="post-editor" class="post-editor js-post-editor"> <div class="ps-relative"> <div class="wmd-container mb8"> <div id="wmd-button-bar" class="wmd-button-bar btr-sm"></div> <div class="js-stacks-validation"> <div class="ps-relative"> <textarea id="wmd-input" name="post-text" class="wmd-input s-input bar0 js-post-body-field" data-post-type-id="2" cols="92" rows="15" tabindex="101" data-min-length=""></textarea> </div> <div class="s-input-message mt4 d-none js-stacks-validation-message"></div> </div> </div> </div> <aside class="d-flex ai-start jc-space-between js-answer-help s-notice s-notice__warning pb0 pr4 pt4 mb8 d-none" role="status" aria-hidden="true"> <div class="flex--item pt8"> <p><b>If this is an answer to a challenge…</b></p> <ul> <li><p><strong>…Be sure to follow the challenge specification</strong>. However, please refrain from exploiting obvious loopholes. Answers abusing any of the <a href="https://web.archive.org/web/20220202015155/http://meta.codegolf.stackexchange.com/questions/1061/loopholes-that-are-forbidden-by-default">standard loopholes</a> are considered invalid. If you think a specification is unclear or underspecified, comment on the question instead.</p></li> <li><p><strong>…Try to optimize your score.</strong> For instance, answers to <a href="https://web.archive.org/web/20220202015155/http://codegolf.stackexchange.com/questions/tagged/code-golf" class="post-tag" title="show questions tagged 'code-golf'" rel="tag">code-golf</a> challenges should attempt to be as short as possible. You can always include a readable version of the code in addition to the competitive one. <em>Explanations of your answer make it more interesting to read and are very much encouraged.</em></p></li> <li><p><strong>…Include a short header</strong> which indicates the language(s) of your code and its score, <em>as defined by the challenge</em>.</p></li> </ul> <p><b>More generally…</b></p> <ul> <li><p>…Please make sure to answer the question and provide sufficient detail.</p></li> <li><p>…Avoid asking for help, clarification or responding to other answers (use comments instead).</p></li> </ul> </div> <button class="flex--item js-answer-help-close-btn s-btn s-btn__muted fc-dark"> <svg aria-hidden="true" class="svg-icon iconClear" width="18" height="18" viewbox="0 0 18 18"><path d="M15 4.41 13.59 3 9 7.59 4.41 3 3 4.41 7.59 9 3 13.59 4.41 15 9 10.41 13.59 15 15 13.59 10.41 9 15 4.41Z"/></svg> </button> </aside> <div> <div id="draft-saved" class="fc-success h24" style="display:none;">Draft saved</div> <div id="draft-discarded" class="fc-error h24" style="display:none;">Draft discarded</div> </div> <div id="wmd-preview" class="s-prose mb16 wmd-preview js-wmd-preview"></div> <div></div> <div class="edit-block"> <input id="fkey" name="fkey" type="hidden" value="601590c31a179f4d74a0ace5439c2dbd5d790441b676d4168e7f01961469e9b5"> <input id="author" name="author" type="text"> </div> </div> <div class="ps-relative"> <div class="form-item dno new-post-login p0 my16"> <div class="d-flex gs16 md:fd-column new-login-form"> <div class="d-flex fd-column w50 md:w-auto gsy gs8 jc-space-between new-login-left"> <h3 class="flex--item fs-title">Sign up or <a id="login-link" href="/web/20220202015155/https://codegolf.stackexchange.com/users/login?ssrc=question_page&returnurl=https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair%23new-answer">log in</a></h3> <script> StackExchange.ready(function () { StackExchange.helpers.onClickDraftSave('#login-link'); }); </script> <div class="flex--item s-btn s-btn__muted s-btn__outlined s-btn__icon google-login" data-ga="["sign up","Sign Up Started - Google","New Post",null,null]"> <svg aria-hidden="true" class="native svg-icon iconGoogle" width="18" height="18" viewbox="0 0 18 18"><path d="M16.51 8H8.98v3h4.3c-.18 1-.74 1.48-1.6 2.04v2.01h2.6a7.8 7.8 0 0 0 2.38-5.88c0-.57-.05-.66-.15-1.18Z" fill="#4285F4"/><path d="M8.98 17c2.16 0 3.97-.72 5.3-1.94l-2.6-2a4.8 4.8 0 0 1-7.18-2.54H1.83v2.07A8 8 0 0 0 8.98 17Z" fill="#34A853"/><path d="M4.5 10.52a4.8 4.8 0 0 1 0-3.04V5.41H1.83a8 8 0 0 0 0 7.18l2.67-2.07Z" fill="#FBBC05"/><path d="M8.98 4.18c1.17 0 2.23.4 3.06 1.2l2.3-2.3A8 8 0 0 0 1.83 5.4L4.5 7.49a4.77 4.77 0 0 1 4.48-3.3Z" fill="#EA4335"/></svg> Sign up using Google </div> <div class="flex--item s-btn s-btn__muted s-btn__icon facebook-login" data-ga="["sign up","Sign Up Started - Facebook","New Post",null,null]"> <svg aria-hidden="true" class="svg-icon iconFacebook" width="18" height="18" viewbox="0 0 18 18"><path d="M3 1a2 2 0 0 0-2 2v12c0 1.1.9 2 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2H3Zm6.55 16v-6.2H7.46V8.4h2.09V6.61c0-2.07 1.26-3.2 3.1-3.2.88 0 1.64.07 1.87.1v2.16h-1.29c-1 0-1.19.48-1.19 1.18V8.4h2.39l-.31 2.42h-2.08V17h-2.5Z" fill="#4167B2"/></svg> Sign up using Facebook </div> <div class="flex--item s-btn s-btn__muted s-btn__outlined s-btn__icon stackexchange-login" data-ga="["sign up","Sign Up Navigation","New Post",null,null]"> <svg aria-hidden="true" class="native svg-icon iconLogoGlyphXSm" width="18" height="18" viewbox="0 0 18 18"><path d="M14 16v-5h2v7H2v-7h2v5h10Z" fill="#BCBBBB"/><path d="m12.09.72-1.21.9 4.5 6.07 1.22-.9L12.09.71ZM5 15h8v-2H5v2Zm9.15-5.87L8.35 4.3l.96-1.16 5.8 4.83-.96 1.16Zm-7.7-1.47 6.85 3.19.63-1.37-6.85-3.2-.63 1.38Zm6.53 5L5.4 11.39l.38-1.67 7.42 1.48-.22 1.46Z" fill="#F48024"/></svg> Sign up using Email and Password </div> </div> <input type="hidden" name="use-facebook" class="use-facebook" value="false"/> <input type="hidden" name="use-google" class="use-google" value="false"/> <button type="button" class="d-none js-submit-openid">Submit</button> <div class="d-flex gsy gs8 fd-column w50 md:w-auto new-login-right form-item p0"> <h3 class="flex--item fs-title">Post as a guest</h3> <div class="flex--item"> <div class="d-flex gs4 gsy fd-column"> <label class="s-label" for="display-name">Name</label> <div class="d-flex ps-relative"> <input class="s-input" id="display-name" name="display-name" maxlength="30" type="text" value="" tabindex="105" placeholder=""/> </div> </div> </div> <div class="flex--item"> <div class="d-flex gs4 gsy fd-column"> <div class="flex--item"> <div class="d-flex gs2 gsy fd-column"> <label class="flex--item s-label" for="m-address">Email</label> <p class="flex--item s-description">Required, but never shown</p> </div> </div> <div class="d-flex ps-relative"> <input class="s-input js-post-email-field" id="m-address" name="m-address" type="text" value="" size="40" tabindex="106" placeholder=""/> </div> </div> </div> </div> </div> </div> <script> StackExchange.ready( function () { StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fcodegolf.stackexchange.com%2fquestions%2f241992%2freversed-multiple-pair%23new-answer', 'question_page'); } ); </script> <noscript> <h3 class="flex--item fs-title">Post as a guest</h3> <div class="flex--item"> <div class="d-flex gs4 gsy fd-column"> <label class="s-label" for="display-name">Name</label> <div class="d-flex ps-relative"> <input class="s-input" id="display-name" name="display-name" maxlength="30" type="text" value="" tabindex="105" placeholder=""/> </div> </div> </div> <div class="flex--item"> <div class="d-flex gs4 gsy fd-column"> <div class="flex--item"> <div class="d-flex gs2 gsy fd-column"> <label class="flex--item s-label" for="m-address">Email</label> <p class="flex--item s-description">Required, but never shown</p> </div> </div> <div class="d-flex ps-relative"> <input class="s-input js-post-email-field" id="m-address" name="m-address" type="text" value="" size="40" tabindex="106" placeholder=""/> </div> </div> </div> </noscript> </div> <div class="form-submit cbt d-flex gsx gs4"> <button id="submit-button" class="flex--item s-btn s-btn__primary s-btn__icon" type="submit" tabindex="120" autocomplete="off"> Post Your Answer </button> <button class="flex--item s-btn s-btn__danger discard-answer dno"> Discard </button> <p class="privacy-policy-agreement"> By clicking “Post Your Answer”, you agree to our <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/terms-of-service/public" name="tos" target="_blank" class="-link">terms of service</a>, <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/privacy-policy" name="privacy" target="_blank" class="-link">privacy policy</a> and <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/cookie-policy" name="cookie" target="_blank" class="-link">cookie policy</a><input type="hidden" name="legalLinksShown" value="1"/> </p> </div> <div class="js-general-error general-error cbt d-none"></div> </form> <h2 class="bottom-notice" data-loc="1"> Not the answer you're looking for? Browse other questions tagged <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/code-golf" class="post-tag" title="show questions tagged 'code-golf'" rel="tag">code-golf</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/math" class="post-tag" title="show questions tagged 'math'" rel="tag">math</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/number" class="post-tag" title="show questions tagged 'number'" rel="tag">number</a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/tagged/decision-problem" class="post-tag" title="show questions tagged 'decision-problem'" rel="tag">decision-problem</a> or <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/ask">ask your own question</a>. </h2> </div> </div> <div id="sidebar" class="show-votes" role="complementary" aria-label="sidebar"> <div class="s-sidebarwidget s-sidebarwidget__yellow s-anchors s-anchors__danger mb16"> <div class="s-sidebarwidget--content d-block"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/questions/20861/welcome-to-code-golf-and-coding-challenges-stack-exchange">Welcome to Code Golf and Coding Challenges Stack Exchange!</a> This is a site for recreational programming competitions, not general programming questions. Challenges must have <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/questions/8130/why-do-we-have-objective-winning-criteria">an objective scoring criterion</a>, and it is highly recommended to first post proposed challenges in the <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/questions/2140/sandbox-for-proposed-challenges?answertab=active">Sandbox</a>. </div> </div> <div class="s-sidebarwidget s-sidebarwidget__yellow s-anchors s-anchors__grayscale mb16" data-tracker="cb=1"> <ul class="d-block p0 m0"> <div class="s-sidebarwidget--header s-sidebarwidget__small-bold-text fc-light d:fc-black-900 bb bbw1"> The Overflow Blog </div> <li class="s-sidebarwidget--item d-flex px16"> <div class="flex--item1 fl-shrink0"> <svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </div> <div class="flex--item wmn0 ow-break-word"> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.blog/2022/02/01/next-stop-cryptoland/" class="js-gps-track" data-ga="["community bulletin board","The Overflow Blog","https://stackoverflow.blog/2022/02/01/next-stop-cryptoland/",null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 0 })">Next stop, Cryptoland?</a> </div> </li> <li class="s-sidebarwidget--item d-flex px16"> <div class="flex--item1 fl-shrink0"> <svg aria-hidden="true" class="va-text-top svg-icon iconPencilSm" width="14" height="14" viewbox="0 0 14 14"><path d="m11.1 1.71 1.13 1.12c.2.2.2.51 0 .71L11.1 4.7 9.21 2.86l1.17-1.15c.2-.2.51-.2.71 0ZM2 10.12l6.37-6.43 1.88 1.88L3.88 12H2v-1.88Z"/></svg> </div> <div class="flex--item wmn0 ow-break-word"> <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.blog/2022/02/01/webinar-recap-making-the-invisible-visible-with-progressive-insurance/" class="js-gps-track" data-ga="["community bulletin board","The Overflow Blog","https://stackoverflow.blog/2022/02/01/webinar-recap-making-the-invisible-visible-with-progressive-insurance/",null,null]" data-gps-track="communitybulletin.click({ priority: 1, position: 1 })">Webinar recap: Making the Invisible, Visible with Progressive Insurance</a> </div> </li> <div class="s-sidebarwidget--header s-sidebarwidget__small-bold-text fc-light d:fc-black-900 bb bbw1"> Featured on Meta </div> <li class="s-sidebarwidget--item d-flex px16"> <div class="flex--item1 fl-shrink0"> <div class="favicon favicon-stackexchangemeta" title="Meta Stack Exchange"></div> </div> <div class="flex--item wmn0 ow-break-word"> <a href="https://web.archive.org/web/20220202015155/https://meta.stackexchange.com/questions/375064/we-ve-made-changes-to-our-terms-of-service-privacy-policy-january-2022" class="js-gps-track" data-ga="["community bulletin board","Featured on Meta","https://meta.stackexchange.com/questions/375064/we-ve-made-changes-to-our-terms-of-service-privacy-policy-january-2022",null,null]" data-gps-track="communitybulletin.click({ priority: 3, position: 2 })">We’ve made changes to our Terms of Service & Privacy Policy - January 2022</a> </div> </li> <li class="s-sidebarwidget--item d-flex px16"> <div class="flex--item1 fl-shrink0"> <div class="favicon favicon-stackexchangemeta" title="Meta Stack Exchange"></div> </div> <div class="flex--item wmn0 ow-break-word"> <a href="https://web.archive.org/web/20220202015155/https://meta.stackexchange.com/questions/375081/new-post-summary-designs-on-site-home-pages-and-greatest-hits-now-everywhere-el" class="js-gps-track" title="New post summary designs on site home pages and greatest hits now; everywhere else eventually" data-ga="["community bulletin board","Featured on Meta","https://meta.stackexchange.com/questions/375081/new-post-summary-designs-on-site-home-pages-and-greatest-hits-now-everywhere-el",null,null]" data-gps-track="communitybulletin.click({ priority: 3, position: 3 })">New post summary designs on site home pages and greatest hits now; everywhere...</a> </div> </li> <li class="s-sidebarwidget--item d-flex px16"> <div class="flex--item1 fl-shrink0"> <div class="favicon favicon-codegolfmeta" title="Code Golf Meta Stack Exchange"></div> </div> <div class="flex--item wmn0 ow-break-word"> <a href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/questions/24313/best-of-cgcc-2021-now-accepting-nominations" class="js-gps-track" data-ga="["community bulletin board","Featured on Meta","https://codegolf.meta.stackexchange.com/questions/24313/best-of-cgcc-2021-now-accepting-nominations",null,null]" data-gps-track="communitybulletin.click({ priority: 6, position: 4 })">Best of CGCC 2021 - Now Accepting Nominations!</a> </div> </li> </ul> </div> <div class="js-zone-container zone-container-sidebar"> <div id="dfp-tsb" class="everyonelovesstackoverflow everyoneloves__top-sidebar"></div> <div class="js-report-ad-button-container " style="width: 300px"></div> </div> <div class="module sidebar-related"> <h4 id="h-related">Related</h4> <div class="related js-gps-related-questions" data-tracker="rq=1"> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/69770" title="Question score (upvotes - downvotes)"> <div class="answer-votes answered-accepted default">41</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/69770/cheating-a-multiple-choice-test" class="question-hyperlink">Cheating a multiple choice test</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/95531" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">10</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/95531/super-folding-numbers" class="question-hyperlink">Super Folding Numbers</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/117401" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">23</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/117401/reverse-and-add-degeneracy" class="question-hyperlink">Reverse and add degeneracy</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/151130" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">35</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/151130/easy-to-multiply-numbers" class="question-hyperlink">Easy-to-multiply numbers</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/185606" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">19</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/185606/divisor-rich-and-poor-numbers" class="question-hyperlink">Divisor Rich and Poor Numbers</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/191301" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">20</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/191301/whats-this-constructed-numbers-starter" class="question-hyperlink">What's this constructed number's starter?</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/196370" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">31</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/196370/how-close-are-we-really" class="question-hyperlink">How close are we, really?</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/205396" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">22</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/205396/bubbler-numbers" class="question-hyperlink">Bubbler numbers</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/211292" title="Question score (upvotes - downvotes)"> <div class="answer-votes answered-accepted default">20</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/211292/sporeball-numbers" class="question-hyperlink">sporeball numbers</a> </div> <div class="spacer"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/q/237291" title="Question score (upvotes - downvotes)"> <div class="answer-votes default">25</div> </a> <a href="/web/20220202015155/https://codegolf.stackexchange.com/questions/237291/infinite-ordinals-from-a-well-ordering" class="question-hyperlink">Infinite ordinals from a well-ordering</a> </div> </div> </div> <div id="hot-network-questions" class="module tex2jax_ignore"> <h4> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/questions?tab=hot" class="js-gps-track s-link s-link__inherit" data-gps-track="posts_hot_network.click({ item_type:1, location:11 })"> Hot Network Questions </a> </h4> <ul> <li> <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://academia.stackexchange.com/questions/181824/should-i-phone-a-professor-if-they-havent-replied-to-my-email" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })"> Should I phone a professor if they haven't replied to my email? </a> </li> <li> <div class="favicon favicon-music" title="Music: Practice & Theory Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://music.stackexchange.com/questions/121056/in-4-part-writing-how-can-two-notes-share-the-same-pitch-but-different-time-valu" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:240 }); posts_hot_network.click({ item_type:2, location:11 })"> In 4 part writing how can two notes share the same pitch but different time values? </a> </li> <li> <div class="favicon favicon-movies" title="Movies & TV Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://movies.stackexchange.com/questions/116851/in-which-military-branch-did-ted-striker-serve" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:367 }); posts_hot_network.click({ item_type:2, location:11 })"> In which military branch did Ted Striker serve? </a> </li> <li> <div class="favicon favicon-scifi" title="Science Fiction & Fantasy Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://scifi.stackexchange.com/questions/259991/old-site-with-the-religious-affiliations-of-most-science-fiction-writers" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })"> Old site with the religious affiliations of most science fiction writers </a> </li> <li> <div class="favicon favicon-cooking" title="Seasoned Advice"></div><a href="https://web.archive.org/web/20220202015155/https://cooking.stackexchange.com/questions/119706/cracked-oven-proof-dish-trying-to-understand-the-physics-of-what-went-wrong" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:49 }); posts_hot_network.click({ item_type:2, location:11 })"> Cracked oven proof dish - trying to understand the physics of what went wrong </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-law" title="Law Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://law.stackexchange.com/questions/77490/can-the-vice-president-vote-themselves-into-positions-of-power" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:617 }); posts_hot_network.click({ item_type:2, location:11 })"> Can the Vice President vote themselves into positions of power? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-workplace" title="The Workplace Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://workplace.stackexchange.com/questions/182458/what-to-do-when-coworkers-are-assigned-to-projects-they-are-not-competent-to-car" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:423 }); posts_hot_network.click({ item_type:2, location:11 })"> What to do when coworkers are assigned to projects they are not competent to carry out? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-dba" title="Database Administrators Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://dba.stackexchange.com/questions/306861/is-it-possible-to-use-read-uncommitted-isolation-level-on-read-only-availability" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:182 }); posts_hot_network.click({ item_type:2, location:11 })"> Is it possible to use Read Uncommitted isolation level on read-only Availability Group secondary? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-softwarerecs" title="Software Recommendations Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://softwarerecs.stackexchange.com/questions/82065/any-apps-sites-to-vectorize-images-for-free" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:536 }); posts_hot_network.click({ item_type:2, location:11 })"> Any apps/sites to vectorize images for free? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-physics" title="Physics Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://physics.stackexchange.com/questions/692017/time-dilation-effects-at-the-center-of-a-binary-black-hole-system" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:151 }); posts_hot_network.click({ item_type:2, location:11 })"> Time dilation effects at the center of a binary black hole system </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-blender" title="Blender Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://blender.stackexchange.com/questions/252348/creating-wavy-pipe-lip" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:502 }); posts_hot_network.click({ item_type:2, location:11 })"> Creating wavy pipe lip </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-mathematica" title="Mathematica Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://mathematica.stackexchange.com/questions/262931/what-are-the-best-resources-for-paclet-development" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:387 }); posts_hot_network.click({ item_type:2, location:11 })"> What are the best resources for paclet development? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-electronics" title="Electrical Engineering Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://electronics.stackexchange.com/questions/606530/rounding-a-square-waves-corners" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:135 }); posts_hot_network.click({ item_type:2, location:11 })"> "Rounding" a square wave's corners? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-opensource" title="Open Source Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://opensource.stackexchange.com/questions/12618/can-i-keep-images-and-other-non-code-assets-copyrighted-in-a-gpl-codebase" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:619 }); posts_hot_network.click({ item_type:2, location:11 })"> Can I keep images and other non-code assets copyrighted in a GPL codebase? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-3dprinting" title="3D Printing Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://3dprinting.stackexchange.com/questions/18837/60-watt-heater-into-40-watt-heatblock" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:640 }); posts_hot_network.click({ item_type:2, location:11 })"> 60 watt heater into 40 watt heatblock </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-security" title="Information Security Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://security.stackexchange.com/questions/259255/what-is-the-frequency-of-open-security-bugs-in-an-operating-system-with-increasi" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:162 }); posts_hot_network.click({ item_type:2, location:11 })"> What is the frequency of open security bugs in an operating system with increasing age? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-retrocomputing" title="Retrocomputing Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://retrocomputing.stackexchange.com/questions/23802/when-did-assembly-source-code-begin-to-be-written-in-lowercase" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:648 }); posts_hot_network.click({ item_type:2, location:11 })"> When did assembly source code begin to be written in lowercase? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="https://web.archive.org/web/20220202015155/https://mathoverflow.net/questions/415159/r-module-hom-a-direct-summand-of-z-module-hom" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })"> R-module hom a direct summand of Z-module hom? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-academia" title="Academia Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://academia.stackexchange.com/questions/181856/im-publishing-a-paper-without-an-affiliation-and-cannot-afford-article-processi" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:415 }); posts_hot_network.click({ item_type:2, location:11 })"> I'm publishing a paper without an affiliation and cannot afford article processing charges. Suggestions? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-travel" title="Travel Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://travel.stackexchange.com/questions/171976/united-airlines-cancelled-my-flight-less-than-24-hours-after-i-booked-it-what" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:273 }); posts_hot_network.click({ item_type:2, location:11 })"> United Airlines cancelled my flight less than 24 hours after I booked it - what are my options? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="https://web.archive.org/web/20220202015155/https://mathoverflow.net/questions/415120/a-fibration-equivalent-to-having-a-terminal-object" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })"> A fibration equivalent to having a terminal object </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-money" title="Personal Finance & Money Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://money.stackexchange.com/questions/148986/can-i-deduct-business-travel-expenses-if-the-trip-was-personal-but-i-worked-dur" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:93 }); posts_hot_network.click({ item_type:2, location:11 })"> Can I deduct business Travel Expenses if the trip was personal, but I worked during the trip? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-mathoverflow" title="MathOverflow"></div><a href="https://web.archive.org/web/20220202015155/https://mathoverflow.net/questions/415007/anti-delta-function" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:504 }); posts_hot_network.click({ item_type:2, location:11 })"> Anti-delta function? </a> </li> <li class="dno js-hidden"> <div class="favicon favicon-scifi" title="Science Fiction & Fantasy Stack Exchange"></div><a href="https://web.archive.org/web/20220202015155/https://scifi.stackexchange.com/questions/260005/has-there-ever-been-an-instance-of-a-starship-needing-to-eject-its-nacelles-in" class="js-gps-track question-hyperlink mb0" data-gps-track="site.switch({ item_type:11, target_site:186 }); posts_hot_network.click({ item_type:2, location:11 })"> Has there ever been an instance of a starship needing to eject its nacelles in "Star Trek?" </a> </li> </ul> <a href="#" class="show-more js-show-more js-gps-track" data-gps-track="posts_hot_network.click({ item_type:3, location:11 })"> more hot questions </a> </div> <div id="feed-link" class="js-feed-link"> <a href="/web/20220202015155/https://codegolf.stackexchange.com/feeds/question/241992" title="Feed of this question and its answers"> <svg aria-hidden="true" class="fc-orange-400 svg-icon iconRss" width="18" height="18" viewbox="0 0 18 18"><path d="M1 3c0-1.1.9-2 2-2h12c1.09 0 2 .91 2 2v12c0 1.09-.91 2-2 2H3c-1.09 0-2-.91-2-2V3Zm14.5 12C15.5 8.1 9.9 2.5 3 2.5V5a10 10 0 0 1 10 10h2.5Zm-5 0A7.5 7.5 0 0 0 3 7.5V10a5 5 0 0 1 5 5h2.5Zm-5 0A2.5 2.5 0 0 0 3 12.5V15h2.5Z"/></svg> Question feed </a> </div> <aside class="s-modal js-feed-link-modal" tabindex="-1" role="dialog" aria-labelledby="feed-modal-title" aria-describedby="feed-modal-description" aria-hidden="true"> <div class="s-modal--dialog js-modal-dialog wmx4" role="document" data-controller="se-draggable"> <h1 class="s-modal--header fw-bold js-first-tabbable" id="feed-modal-title" data-se-draggable-target="handle" tabindex="0"> Subscribe to RSS </h1> <div class="d-flex gs4 gsy fd-column"> <div class="flex--item"> <label class="d-block s-label c-default" for="feed-url"> Question feed <p class="s-description mt2" id="feed-modal-description">To subscribe to this RSS feed, copy and paste this URL into your RSS reader.</p> </label> </div> <div class="d-flex ps-relative"> <input class="s-input" type="text" name="feed-url" id="feed-url" readonly="readonly" value="https://codegolf.stackexchange.com/feeds/question/241992"/> <svg aria-hidden="true" class="s-input-icon fc-orange-400 svg-icon iconRss" width="18" height="18" viewbox="0 0 18 18"><path d="M1 3c0-1.1.9-2 2-2h12c1.09 0 2 .91 2 2v12c0 1.09-.91 2-2 2H3c-1.09 0-2-.91-2-2V3Zm14.5 12C15.5 8.1 9.9 2.5 3 2.5V5a10 10 0 0 1 10 10h2.5Zm-5 0A7.5 7.5 0 0 0 3 7.5V10a5 5 0 0 1 5 5h2.5Zm-5 0A2.5 2.5 0 0 0 3 12.5V15h2.5Z"/></svg> </div> </div> <a class="s-modal--close s-btn s-btn__muted js-modal-close js-last-tabbable" href="#" aria-label="Close"> <svg aria-hidden="true" class="svg-icon iconClearSm" width="14" height="14" viewbox="0 0 14 14"><path d="M12 3.41 10.59 2 7 5.59 3.41 2 2 3.41 5.59 7 2 10.59 3.41 12 7 8.41 10.59 12 12 10.59 8.41 7 12 3.41Z"/></svg> </a> </div> </aside> </div> </div> <script>StackExchange.ready(function(){$.get('/posts/241992/ivc/9193');});</script> <noscript><div><img src="/web/20220202015155im_/https://codegolf.stackexchange.com/posts/241992/ivc/9193" class="dno" alt="" width="0" height="0"></div></noscript><div style="display:none" id="js-codeblock-lang"></div></div> </div> </div> <script>;(()=>{"use strict";function j(a){return"string"==typeof a?document.getElementById(a):a}function k(a){return!!(a=j(a))&&"none"===getComputedStyle(a).display}function e(a){return!k(a)}function n(a){return!!a}function i(a){return /^\s*$/.test(j(a).innerHTML)}function a(a){var b=a.style;b.height=b.maxHeight=b.minHeight="auto",b.display="none"}function c(a){var b=a.style;b.height=b.maxHeight=b.minHeight="auto",b.display="none",[].forEach.call(a.children,c)}function l(a){var b=a.style;b.height=b.maxHeight=b.minHeight="auto",b.removeProperty("display")}function q(a,b){var c;return function(){return a&&(c=a.call(b||this,arguments),a=null),c}}function o(a){var b=document.createElement("script");b.src=a,document.body.appendChild(b)}function r(a,b){return a.push=function(a){return b(),delete this.push,this.push(a)},a}function x(){return"undefined"!=typeof googletag&&!!googletag.apiReady}function m(){var a;x()||(window.googletag={cmd:(a=g,r([],a))})}function b(a){var b=a.split("_")[0],c=u.ids[b],d=u.slots[c];return"function"==typeof d&&(d=d(b)),{path:"/248424177/"+h+"/"+c+"/"+p,sizes:d,zone:c}}function d(f){try{Array.isArray(clc.dfp.slotsRenderedEvents)||(clc.dfp.slotsRenderedEvents=[]),clc.dfp.slotsRenderedEvents.push(f);var g=f.slot.getSlotElementId(),e=[];g||e.push("id=0");var h=document.getElementById(g);if(g&&!h?e.push("el=0"):h.hasAttribute("data-clc-stalled")&&e.push("st=1"),0!==e.length)return void v(e.join("&"));var j=b(g),k=(j.path,j.sizes,j.zone);if(clc.collapse&&clc.collapse[k]&&f.isEmpty)return h.id,c(h),void h.setAttribute("data-clc-ready","true");if(h.id,f.lineItemId,-1!==z.dh.indexOf(f.lineItemId))c(h);else if(f.lineItemId){h.setAttribute("data-clc-prefilled","true");var m=h.parentElement;if(m.classList.contains("js-zone-container")){switch(a(m),h.id,m.querySelectorAll(".js-report-ad-button-container")[0].style.height="24px",g){case"dfp-tlb":case"dfp-tag":m.classList.add("mb8");break;case"dfp-mlb":case"dfp-smlb":case"dfp-bmlb":m.classList.add("my8");break;case"dfp-isb":m.classList.add("mt24");break;case"dfp-m-aq":m.classList.add("my12"),m.classList.add("mx-auto");}l(m),l(h)}else l(h);"dfp-msb"==g&&c(document.getElementById("hireme"))}h.setAttribute("data-clc-ready","true")}catch(a){var n=document.querySelector("#dfp-tsb, #dfp-isb, #clc-tsb");n&&n.setAttribute("data-clc-ready","true"),v("e=1")}}function s(d,f){"dfp-isb"===d&&f.setTargeting("Sidebar",["Inline"]),"dfp-tsb"===d&&f.setTargeting("Sidebar",["Right"]);var e=b(d),g=e.path,h=e.sizes;e.zone,JSON.stringify(h);var a=googletag.defineSlot(g,h,d);a.addService(f);var c=d.split("_");if("clc-cpa"==c[0]&&c[1]){var i=c[1];a.setTargeting("talent-company-id",i)}}window.clc=window.clc||{};var z=function(a,b){for(var c in b)a[c]=b[c];return a}({"lib":"https://web.archive.org/web/20220202015155/https://cdn.sstatic.net/clc/clc.min.js?v=9fb71081b5c6","style":"https://web.archive.org/web/20220202015155/https://cdn.sstatic.net/clc/styles/clc.min.css?v=86ebc1aa2ac9","u":"https://web.archive.org/web/20220202015155/https://clc.stackoverflow.com/markup.js","wa":true,"kt":2000,"tto":true,"h":"clc.stackoverflow.com","allowed":"^(((talent\\.)?stackoverflow)|(blog\\.codinghorror)|(serverfault|askubuntu)|([^\\.]+\\.stackexchange))\\.com$","wv":true,"al":false,"dh":[5171832659],"abd":true},clc.options||{}),t=q(function(){o(z.lib)});window.clc=window.clc||{},clc.cmd=clc.cmd||[];var f=clc.cmd;Array.isArray(clc.cmd)&&(0<clc.cmd.length?t():r(clc.cmd,t));var g=q(function(){z.targeting_consent||void 0===z.targeting_consent?o("https://web.archive.org/web/20220202015155/https://securepubads.g.doubleclick.net/tag/js/gpt.js"):o("https://web.archive.org/web/20220202015155/https://pagead2.googlesyndication.com/tag/js/gpt.js")}),p=/^\/tags\//.test(location.pathname)||/^\/questions\/tagged\//.test(location.pathname)?"tag-pages":/^\/$/.test(location.pathname)||/^\/home/.test(location.pathname)?"home-page":"question-pages",h=location.hostname,u={slots:{lb:[[728,90]],mlb:[[728,90]],smlb:[[728,90]],bmlb:[[728,90]],sb:function(a){return"dfp-tsb"===a?[[300,250],[300,600]]:[[300,250]]},"tag-sponsorship":[[730,135]],"mobile-below-question":[[320,50],[300,250]],msb:[[300,250],[300,600]],"talent-conversion-tracking":[[1,1]]},ids:{"dfp-tlb":"lb","dfp-mlb":"mlb","dfp-smlb":"smlb","dfp-bmlb":"bmlb","dfp-tsb":"sb","dfp-isb":"sb","dfp-tag":"tag-sponsorship","dfp-msb":"msb","dfp-m-aq":"mobile-below-question","clc-tlb":"lb","clc-mlb":"mlb","clc-tsb":"sb","clc-cpa":"talent-conversion-tracking"}},v=function(a){new Image().src="https://"+z.h+"/stalled.gif?"+a};window.clc=window.clc||{},clc.options=z,clc.cmd=f,clc.dfp={load:function b(l){void 0===l&&(l=Object.keys(u.ids).filter(function(a){return"clc-cpa"!=a}));var o=["dfp-mlb","dfp-smlb"];if(!x())return m(),void googletag.cmd.push(function(){return b(l)});var q=function(a){var b=a.map(j).filter(n);return{eligible:b.filter(i).filter(e),ineligible:b.filter(k)}}(l),r=q.eligible,f=q.ineligible;if(r.forEach(function(b){a(b)}),f.forEach(c),0!==r.length){var g;z.abd&&((g=document.createElement("div")).className="adsbox",g.id="clc-abd",g.style.position="absolute",g.style.pointerEvents="none",g.innerHTML=" ",document.body.appendChild(g));var p=googletag.pubads().getSlots().filter(function(a){return 0<=l.indexOf(a.getSlotElementId())});googletag.destroySlots(p);var h=googletag.pubads();z.sf&&(h.setForceSafeFrame(!0),h.setSafeFrameConfig({allowOverlayExpansion:!0,allowPushExpansion:!0,sandbox:!0})),void 0!==z.targeting_consent&&(z.targeting_consent,h.setRequestNonPersonalizedAds(z.targeting_consent?0:1),z.targeting_consent||h.setPrivacySettings({limitedAds:!0})),z.ll||h.enableSingleRequest(),window.clc=window.clc||{},clc.sreEvent||(h.addEventListener("slotRenderEnded",d),clc.sreEvent=!0),function(a){var b=window.clc&&clc.dfp&&clc.dfp.targeting||{};"SystemDefault"===b.ProductVariant&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?b.ProductVariant="Dark":b.ProductVariant="Light"),Object.keys(b).forEach(function(c){b[c],a.setTargeting(c,b[c])})}(h);var t=r.filter(function(a){return!z.ll||0>o.indexOf(a.id)}),v=r.filter(function(a){return!!z.ll&&0<=o.indexOf(a.id)});t.forEach(function(a){a.id,s(a.id,h),a.setAttribute("data-dfp-zone","true")}),googletag.enableServices(),t.forEach(function(a){a.id,googletag.display(a.id)}),z.ll&&(h.enableLazyLoad({fetchMarginPercent:0,renderMarginPercent:0}),v.forEach(function(a){a.id,s(a.id,h),a.setAttribute("data-clc-prefilled","true")}),v.forEach(function(a){a.id,googletag.display(a.id)}))}}},z.al&&f.push(function(){return clc.load()}),m()})();</script><script> var clc = clc || {}; clc.collapse = { sb: !0, 'tag-sponsorship': !0, lb: !0, mlb: !0, smlb: !0, bmlb: !0, 'mobile-below-question': !0 }; clc.options = clc.options || {}; clc.options.sf = !1; clc.options.hb = !1; clc.options.ll = !0; clc.options.targeting_consent = !1; clc.options.performance_consent = !1; clc.dfp = clc.dfp || {}; clc.dfp.targeting = {Registered:['false'],NumberOfAnswers:['20-plus']}; clc.dfp.targeting.TargetingConsent = ['false']; const urlParams = new URLSearchParams(window.location.search); if (urlParams.has('dfptestads')) { const dfptestads = urlParams.get('dfptestads'); clc.dfp.targeting.DfpTestAds = dfptestads; } var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; googletag.cmd.push(function () { clc.dfp.load(); }); </script> <footer id="footer" class="site-footer js-footer" role="contentinfo"> <div class="site-footer--container"> <nav class="site-footer--nav"> <div class="site-footer--col"> <h5 class="-title"><a href="/web/20220202015155/https://codegolf.stackexchange.com/">Code Golf</a></h5> <ul class="-list js-primary-footer-links"> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 2 })" href="/web/20220202015155/https://codegolf.stackexchange.com/tour">Tour</a></li> <li><a href="/web/20220202015155/https://codegolf.stackexchange.com/help" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 3 })">Help</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 5 })" href="https://web.archive.org/web/20220202015155/https://chat.stackexchange.com/?tab=site&host=codegolf.stackexchange.com">Chat</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 13 })" href="/web/20220202015155/https://codegolf.stackexchange.com/contact">Contact</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 14 })" href="https://web.archive.org/web/20220202015155/https://codegolf.meta.stackexchange.com/">Feedback</a></li> <li><a onclick="StackExchange.switchMobile("on")" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 12 })">Mobile</a></li> </ul> </div> <div class="site-footer--col"> <h5 class="-title"><a class="js-gps-track" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/company">Company</a></h5> <ul class="-list"> <li><a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 15})">Stack Overflow</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/teams" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 29 })">For Teams</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/advertising" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 21 })">Advertise With Us</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/talent" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 20 })">Hire a Developer</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/jobs" class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 17})">Developer Jobs</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 1 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/company">About</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 27 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/company/press">Press</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 7 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal">Legal</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 8 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/privacy-policy">Privacy Policy</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 37 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/terms-of-service">Terms of Service</a></li> <li class="" id="consent-footer-link"><a class="js-gps-track -link js-cookie-settings" data-gps-track="footer.click({ location: 2, link: 38 })" href="#" data-consent-popup-loader="footer">Cookie Settings</a></li> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link: 39 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a></li> </ul> </div> <div class="site-footer--col site-footer--categories-nav"> <div> <h5 class="-title"><a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/" data-gps-track="footer.click({ location: 2, link: 30 })">Stack Exchange Network</a></h5> <ul class="-list"> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#technology" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Technology </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#culturerecreation" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Culture & recreation </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#lifearts" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Life & arts </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#science" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Science </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#professional" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Professional </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://stackexchange.com/sites#business" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Business </a> </li> <li class="mt16 md:mt0"> <a href="https://web.archive.org/web/20220202015155/https://api.stackexchange.com/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> API </a> </li> <li> <a href="https://web.archive.org/web/20220202015155/https://data.stackexchange.com/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 24 })"> Data </a> </li> </ul> </div> </div> </nav> <div class="site-footer--copyright fs-fine md:mt24"> <ul class="-list -social md:mb8"> <li><a class="js-gps-track -link" data-gps-track="footer.click({ location: 2, link:4 })" href="https://web.archive.org/web/20220202015155/https://stackoverflow.blog/?blb=1">Blog</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://www.facebook.com/officialstackoverflow/" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 31 })">Facebook</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://twitter.com/stackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 32 })">Twitter</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://linkedin.com/company/stack-overflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 33 })">LinkedIn</a></li> <li><a href="https://web.archive.org/web/20220202015155/https://www.instagram.com/thestackoverflow" class="-link js-gps-track" data-gps-track="footer.click({ location: 2, link: 36 })">Instagram</a></li> </ul> <p class="md:mb0"> site design / logo © 2022 Stack Exchange Inc; user contributions licensed under <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/help/licensing">cc by-sa</a>. <span id="svnrev">rev 2022.2.1.41328</span> </p> </div> </div> </footer> <script>StackExchange.ready(function () { StackExchange.responsiveness.addSwitcher(); })</script> <noscript> <div id="noscript-warning">Code Golf Stack Exchange works best with JavaScript enabled <img src="https://web.archive.org/web/20220202015155im_/https://sb.scorecardresearch.com/p?c1=2&c2=17440561&cv=3.6.0&cj=1" alt=""> </div> </noscript> <script> (function(i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function() { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m); })(window, document, 'script', 'https://web.archive.org/web/20220202015155/https://www.google-analytics.com/analytics.js', 'ga'); StackExchange.ready(function () { StackExchange.ga.init({ autoLink: ["stackoverflow.blog","info.stackoverflowsolutions.com","stackoverflowsolutions.com"], sendTitles: true, tracker: window.ga, trackingCodes: [ 'UA-108242619-5' ], checkDimension: 'dimension42' }); StackExchange.ga.setDimension('dimension2', '|code-golf|math|number|decision-problem|'); StackExchange.ga.setDimension('dimension3', 'Questions/Show'); StackExchange.ga.setDimension('dimension7', "1643766715.2094936599"); StackExchange.ga.trackPageView(); }); </script> <div class="ff-sans ps-fixed z-nav-fixed ws4 sm:w-auto p32 sm:p16 bg-black-750 fc-white bar-lg b16 l16 r16 js-consent-banner"> <svg aria-hidden="true" class="mln4 mb24 sm:d-none svg-spot spotCookieLg" style="color: var(--theme-button-filled-background-color)" width="96" height="96" viewbox="0 0 96 96"> <path d="M35 45.5a7.5 7.5 0 11-15 0 7.5 7.5 0 0115 0zM63.5 63a7.5 7.5 0 100-15 7.5 7.5 0 000 15zm-19 19a7.5 7.5 0 100-15 7.5 7.5 0 000 15z" opacity=".2"/> <path d="M56.99 2.53a23.1 23.1 0 0114.66 6.15h.01l.01.02c.57.55.61 1.27.5 1.74v.07a10.95 10.95 0 01-3.07 4.77 9 9 0 01-6.9 2.5 10.34 10.34 0 01-9.72-10.44v-.08a10 10 0 011.03-3.74l.01-.03.02-.02c.28-.5.82-.92 1.52-.95.63-.02 1.27-.02 1.93.01zm12.04 7.83a20.1 20.1 0 00-12.2-4.83l-.92-.03c-.23.6-.38 1.25-.43 1.94a7.34 7.34 0 006.95 7.34 6 6 0 004.64-1.7c.94-.88 1.6-1.9 1.96-2.72zm15.3 8.76a6.84 6.84 0 00-5.09-.24 7.9 7.9 0 00-3.28 2.05 1.8 1.8 0 00-.3 1.95l.02.02v.02a15.16 15.16 0 008.74 7.47c.64.23 1.32.08 1.8-.33a6.63 6.63 0 001.63-1.97l.01-.03.01-.03c1.67-3.5-.12-7.32-3.54-8.91zm-5.5 3.28c.36-.25.82-.5 1.35-.67.92-.3 1.92-.35 2.89.1 2.14 1 2.92 3.14 2.11 4.88-.12.21-.26.41-.43.6l-.26-.1a12.29 12.29 0 01-5.66-4.81zM32 24a2 2 0 11-4 0 2 2 0 014 0zm12 21a2 2 0 11-4 0 2 2 0 014 0zm36 4a2 2 0 11-4 0 2 2 0 014 0zm-7 21a2 2 0 11-4 0 2 2 0 014 0zM59 81a2 2 0 11-4 0 2 2 0 014 0zM22 63a2 2 0 11-4 0 2 2 0 014 0zm27 7a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM33 41a9 9 0 11-18 0 9 9 0 0118 0zm-15 0a6 6 0 1012 0 6 6 0 00-12 0zm50 11a9 9 0 11-18 0 9 9 0 0118 0zm-3 0a6 6 0 10-12 0 6 6 0 0012 0zM44.08 4.24c.31.48.33 1.09.05 1.58a17.46 17.46 0 00-2.36 8.8c0 9.55 7.58 17.24 16.85 17.24 2.97 0 5.75-.78 8.16-2.15a1.5 1.5 0 012.1.66 12.08 12.08 0 0011 6.74 12.4 12.4 0 007.85-2.75 1.5 1.5 0 012.38.74A45.76 45.76 0 0192 48.16c0 24.77-19.67 44.9-44 44.9S4 72.93 4 48.16C4 25.23 20.84 6.28 42.64 3.58a1.5 1.5 0 011.44.66zM40.22 7C21.32 10.71 7 27.7 7 48.16c0 23.17 18.39 41.9 41 41.9s41-18.73 41-41.9c0-3.52-.42-6.93-1.22-10.2a15.5 15.5 0 01-7.9 2.15c-5.5 0-10.36-2.83-12.97-7.1a19.46 19.46 0 01-8.28 1.85c-11 0-19.86-9.1-19.86-20.24 0-2.7.52-5.26 1.45-7.62zM92 91a2 2 0 100-4 2 2 0 000 4zM7 8.5a2.5 2.5 0 11-5 0 2.5 2.5 0 015 0zM82.5 90a1.5 1.5 0 100-3 1.5 1.5 0 000 3zm9.5-7.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM13.5 8a1.5 1.5 0 100-3 1.5 1.5 0 000 3zM80 14.5a1.5 1.5 0 11-3 0 1.5 1.5 0 013 0zM53.5 20a1.5 1.5 0 100-3 1.5 1.5 0 000 3z"/> </svg> <p class="fs-body2 fw-bold mb4"> Your privacy </p> <p class="mb16 s-anchors s-anchors__inherit s-anchors__underlined"> By clicking “Accept all cookies”, you agree Stack Exchange can store cookies on your device and disclose information in accordance with our <a href="https://web.archive.org/web/20220202015155/https://stackoverflow.com/legal/cookie-policy">Cookie Policy</a>. </p> <div class="d-flex gs8 ai-stretch fd-column sm:fd-row"> <button class="flex--item s-btn s-btn__primary js-accept-cookies js-consent-banner-hide"> Accept all cookies </button> <button class="flex--item s-btn s-btn__filled js-cookie-settings" data-consent-popup-loader="banner"> Customize settings </button> </div> </div> <div id="onetrust-consent-sdk" class="d-none"></div> <div id="onetrust-banner-sdk" data-controller="s-modal"></div> <div id="ot-pc-content" class="d-none"></div> <div id="onetrust-style" class="d-none"> </div> <div class="d-none js-consent-banner-version" data-consent-banner-version="baseline"></div> </body> </html> <!-- FILE ARCHIVED ON 01:51:55 Feb 02, 2022 AND RETRIEVED FROM THE INTERNET ARCHIVE ON 08:01:46 Dec 02, 2024. JAVASCRIPT APPENDED BY WAYBACK MACHINE, COPYRIGHT INTERNET ARCHIVE. ALL OTHER CONTENT MAY ALSO BE PROTECTED BY COPYRIGHT (17 U.S.C. SECTION 108(a)(3)). --> <!-- playback timings (ms): captures_list: 0.865 exclusion.robots: 0.059 exclusion.robots.policy: 0.043 esindex: 0.016 cdx.remote: 7.268 LoadShardBlock: 180.242 (3) PetaboxLoader3.datanode: 137.455 (4) PetaboxLoader3.resolve: 3208.406 (2) load_resource: 3243.183 -->