{"id":20773251,"url":"https://github.com/serpent7776/msquare","last_synced_at":"2026-03-17T05:58:35.614Z","repository":{"id":151492555,"uuid":"64085760","full_name":"serpent7776/msquare","owner":"serpent7776","description":null,"archived":false,"fork":false,"pushed_at":"2016-09-05T21:03:22.000Z","size":6,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-18T07:31:34.241Z","etag":null,"topics":["awk","fun","rectangle"],"latest_commit_sha":null,"homepage":null,"language":"Awk","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/serpent7776.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2016-07-24T21:09:04.000Z","updated_at":"2016-07-24T21:16:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"54a06ec9-e452-4a34-a967-e3abeea9a673","html_url":"https://github.com/serpent7776/msquare","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpent7776%2Fmsquare","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpent7776%2Fmsquare/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpent7776%2Fmsquare/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serpent7776%2Fmsquare/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serpent7776","download_url":"https://codeload.github.com/serpent7776/msquare/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243112185,"owners_count":20238180,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["awk","fun","rectangle"],"created_at":"2024-11-17T12:25:04.326Z","updated_at":"2025-12-25T05:32:24.397Z","avatar_url":"https://github.com/serpent7776.png","language":"Awk","funding_links":[],"categories":[],"sub_categories":[],"readme":"msquare\n=======\n\nSmall awk script solving following puzzle:\n\nInput is a rectangle of numbers. First row and first column specify target sum\nof corresponding column/row.  The task is to remove some values from rectangle\nso that sums of rows/column match with values given in first column/row. Values\nat first row/column cannot be modified.\n\n    #  4 10 6    -- these values specifies sums of corresponding columns\n    2  1 2  3\n    10 4 5  6\n    8  7 8  9\n\n    |\n    \\- these values specifies sums of corresponding rows\n\nSimple input data is given in simple.data file:\n\n    #  4 10 6\n    2  1 2  3\n    10 4 5  6\n    8  7 8  9\n\nFeeding above file to msquare.awk with `cat simple.data | awk -f msquare.awk`\nwill produce:\n\n    # 4 10 6\n    2 _ 2 _\n    10 4 _ 6\n    8 _ 8 _\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpent7776%2Fmsquare","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserpent7776%2Fmsquare","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserpent7776%2Fmsquare/lists"}