Title: New puzzle: Find a number with a number of 4s and 7s that has only 4s and 7s · Issue #9 · microsoft/PythonProgrammingPuzzles · GitHub
Open Graph Title: New puzzle: Find a number with a number of 4s and 7s that has only 4s and 7s · Issue #9 · microsoft/PythonProgrammingPuzzles
X Title: New puzzle: Find a number with a number of 4s and 7s that has only 4s and 7s · Issue #9 · microsoft/PythonProgrammingPuzzles
Description: def sat(d: int): """ Find a number bigger than n whose decimal representation has k 4's and 7's where k's decimal representation consists only of 4's and 7's Inspired by [Codeforces Problem 110 A](https://codeforces.com/problemset/proble...
Open Graph Description: def sat(d: int): """ Find a number bigger than n whose decimal representation has k 4's and 7's where k's decimal representation consists only of 4's and 7's Inspired by [Codeforces Problem 110 A](...
X Description: def sat(d: int): """ Find a number bigger than n whose decimal representation has k 4's and 7's where k's decimal representation consists only of 4's and 7's Insp...
Opengraph URL: https://github.com/microsoft/PythonProgrammingPuzzles/issues/9
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"New puzzle: Find a number with a number of 4s and 7s that has only 4s and 7s","articleBody":"```python\r\ndef sat(d: int):\r\n \"\"\"\r\n Find a number bigger than n whose decimal representation has k 4's and 7's where k's decimal representation\r\n consists only of 4's and 7's\r\n\r\n Inspired by [Codeforces Problem 110 A](https://codeforces.com/problemset/problem/110/A)\r\n \"\"\"\r\n return d \u003e 123456789 and set(str(str(d).count(\"4\") + str(d).count(\"7\"))) \u003c= {\"4\", \"7\"}\r\n```\r\n\r\nSolvers, post your solutions in the comments using the following formatting:\r\n````\r\n\u003cdetails\u003e\u003csummary\u003eReveal solution\u003c/summary\u003e\r\n\r\n```python\r\ndef sol():\r\n return \"world\" # replace with your solution\r\n```\r\n\u003c/details\u003e\r\n````\r\n","author":{"url":"https://github.com/akalai","@type":"Person","name":"akalai"},"datePublished":"2021-06-21T11:58:27.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/9/PythonProgrammingPuzzles/issues/9"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:bbf3fe10-8e95-75e2-1ee7-db4804b36a37 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | E330:483D2:2D4FD:3BFFE:696F29CB |
| html-safe-nonce | 9126d5990bee35cb4f4a1a7cb38118e6b43684b8dfd50df6032ef78ca3a15c96 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFMzMwOjQ4M0QyOjJENEZEOjNCRkZFOjY5NkYyOUNCIiwidmlzaXRvcl9pZCI6Ijg2NzYzOTQwMTIwMTQyMjU4NjciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 0e64319810c18fc6a096beb835cc109a55e852b30b04a0f1763610359e71fbe8 |
| hovercard-subject-tag | issue:926141216 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/PythonProgrammingPuzzles/9/issue_layout |
| twitter:image | https://opengraph.githubassets.com/4747dc8be2ba291381efeaaf5337bd6b833af9fdc6a5c362d0abc9193c2f5882/microsoft/PythonProgrammingPuzzles/issues/9 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/4747dc8be2ba291381efeaaf5337bd6b833af9fdc6a5c362d0abc9193c2f5882/microsoft/PythonProgrammingPuzzles/issues/9 |
| og:image:alt | def sat(d: int): """ Find a number bigger than n whose decimal representation has k 4's and 7's where k's decimal representation consists only of 4's and 7's Inspired by [Codeforces Problem 110 A](... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | akalai |
| hostname | github.com |
| expected-hostname | github.com |
| None | b278ad162d35332b6de714dfb005de04386c4d92df6475522bef910f491a35ee |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/PythonProgrammingPuzzles git https://github.com/microsoft/PythonProgrammingPuzzles.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 361538358 |
| octolytics-dimension-repository_nwo | microsoft/PythonProgrammingPuzzles |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 361538358 |
| octolytics-dimension-repository_network_root_nwo | microsoft/PythonProgrammingPuzzles |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 39aed5006635ab6f45e6b77d23e73b08a00272a3 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width