{"id":26856899,"url":"https://github.com/leodeveloper/paint-shop","last_synced_at":"2025-03-31T00:29:58.410Z","repository":{"id":211418011,"uuid":"112403391","full_name":"leodeveloper/Paint-Shop","owner":"leodeveloper","description":"Paint Shop code challenge","archived":false,"fork":false,"pushed_at":"2017-11-29T13:31:49.000Z","size":276,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2023-12-08T11:41:03.270Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leodeveloper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2017-11-28T23:57:49.000Z","updated_at":"2023-12-08T11:41:05.892Z","dependencies_parsed_at":"2023-12-08T11:51:09.864Z","dependency_job_id":null,"html_url":"https://github.com/leodeveloper/Paint-Shop","commit_stats":null,"previous_names":["leodeveloper/paint-shop"],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2FPaint-Shop","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2FPaint-Shop/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2FPaint-Shop/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leodeveloper%2FPaint-Shop/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leodeveloper","download_url":"https://codeload.github.com/leodeveloper/Paint-Shop/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246399822,"owners_count":20770907,"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":[],"created_at":"2025-03-31T00:29:57.910Z","updated_at":"2025-03-31T00:29:58.379Z","avatar_url":"https://github.com/leodeveloper.png","language":"C#","readme":" Paint Shop code challenge\n\nby Muhammad Suleman\n\n** Specification:\n\nYou run a paint shop, and there are a few different colors of paint you can prepare. Each color can be either \"gloss\" or \"matte\". You have a number of customers, and each have some colors they like, either gloss or matte.\nNo customer will like more than one color in matte. You want to mix the colors, so that:\n\nThere is just one batch for each color, and it's either gloss or matte.\nFor each customer, there is at least one color they like.\nYou make as few mattes as possible (because they are more expensive). Your program should accept an input file as a command line argument, and print a result to standard out. An example input file is:\n5 1 M 3 G 5 G 2 G 3 M 4 G 5 M\n\nThe first line specifies how many colors there are. Each subsequent line describes a customer. For example, the first customer likes color 1 in matte, color 3 in gloss and color 5 in gloss. Your program should read an input file like this, and print out either that it is impossible to satisfy all the customer, or describe, for each of the colors, whether it should be made gloss or matte. The output for the above file should be:\n\nG G G G M\n\n...because all customers can be made happy by every paint being prepared as gloss except number 5. An example of a file with no solution is:\n\n1 1 G 1 M\n\nYour program should print\n\nNo solution exists\n\nA slightly richer example is:\n\n5 2 M 5 G 1 G 5 G 1 G 4 M 3 G 5 G 3 G 5 G 1 G 3 G 2 M 5 G 1 G 2 M 5 G 4 M 5 G 4 M\n\n...which should print:\n\nG M G M G\n\nOne more example. The input:\n\n2 1 G 2 M 1 M\n\n...should produce\n\nM M\n\n\n** Running\nGo release folder in the command propmt\nExample run in command line: drive:\\Release\u003ePaintShop testfile.txt\nthere are four other testfile available inside the release folder.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeveloper%2Fpaint-shop","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleodeveloper%2Fpaint-shop","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleodeveloper%2Fpaint-shop/lists"}