{"action":"created","comment":{"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments/229673344","pull_request_review_id":170224982,"id":229673344,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyOTY3MzM0NA==","diff_hunk":"@@ -0,0 +1,61 @@\n+#include <stdio.h>\n+#include <math.h>\n+#include <locale.h>\n+\n+void main() {\n+\tsetlocale(LC_ALL, \"Russian\");\n+\tdouble dsp_m, dsp, dvp_m, dvp, wood_m, wood, h, w, d;\n+\tdouble sidewm, swm, cm, dm, sm, m;\n+\tint nof;\n+\tprintf(\"Введите плотность ДСП(кг/м^3): \");\n+\tscanf(\"%lf\", &dsp_m);\n+\tif (dsp_m < 0) {\n+\t\tprintf(\" ОШИБКА \\a \\n Плотность ДСП должна быть больше 0\\n\");\n+\t\treturn;\n+\t}\n+\tprintf(\"Введите плотность ДВП(кг/м^3): \");\n+\tscanf(\"%lf\", &dvp_m);\n+\tif (dvp_m < 0) {\n+\t\tprintf(\" ОШИБКА \\a \\n Плотность ДСП должна быть больше 0\\n\");\n+\t\treturn;\n+\t}\n+\tprintf(\"Введите плотность дерева(кг/м^3): \");\n+\tscanf(\"%lf\", &wood_m);\n+\tif (wood_m < 0) {\n+\t\tprintf(\" ОШИБКА \\a \\n Плотность дерева должна быть больше 0\\n\");\n+\t\treturn;\n+\t}\n+\n+\tdsp = dsp_m / 1000000;\n+\tdvp = dvp_m / 1000000;\n+\twood = wood_m / 1000000;\n+\n+\tprintf(\"Введите высоту шкафа в сантиметрах от 180 до 220: \");\n+\tscanf(\"%lf\", &h);\n+\tif ((h < 180) || (h > 220)) {\n+\t\tprintf(\" ОШИБКА \\a \\n Введены некорректные данные\\n\");\n+\t\treturn;\n+\t}\n+\n+\tprintf(\"Введите ширину шкафа в сантиметрах от 80 до 120: \");\n+\tscanf(\"%lf\", &w);\n+\tif ((w < 80) || (w > 120)) {\n+\t\tprintf(\" ОШИБКА \\a \\n Введены некорректные данные\\n\");\n+\t\treturn;\n+\t}\n+\n+\tprintf(\"Введите глубину шкафа в сантиметрах от 50 до 90: \");\n+\tscanf(\"%lf\", &d);\n+\tif ((d < 50) || (d > 90)) {\n+\t\tprintf(\" ОШИБКА \\a \\n Введены некорректные данные\\n\");\n+\t\treturn;\n+\t}\n+\tnof = h / 40;\n+\tsidewm = dvp*h*w*0.5;\n+\tswm = 2 * dsp* h*d*1.5;\n+\tcm = 2 * dsp*w*d*1.5;\n+\tdm = wood*h*w * 1;\n+\tsm = dsp*nof*(w - 3)*d*1.5;","path":"gogov_vi/Practice/Practice1/Practice1.c","position":58,"original_position":58,"commit_id":"5ba08caa574c86a99404d6a361800853e49f4451","original_commit_id":"5ba08caa574c86a99404d6a361800853e49f4451","user":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"body":"@vlad-gogov, с полками формула сложнее `(h - 2 * 0.015) / (0.4 + 0.015) * (w - 2 * 0.015) * (d - 0.005)`, `(h - 2 * 0.015)` - высота шкафа без крышек,  `(w - 2 * 0.015)` - ширина шкафа без боковин, `(d - 0.005)` - глубина шкафа без задней стенки.","created_at":"2018-10-31T12:31:31Z","updated_at":"2018-10-31T12:31:42Z","html_url":"https://github.com/valentina-kustikova/mp1-practice/pull/68#discussion_r229673344","pull_request_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68","author_association":"OWNER","_links":{"self":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments/229673344"},"html":{"href":"https://github.com/valentina-kustikova/mp1-practice/pull/68#discussion_r229673344"},"pull_request":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68"}}},"pull_request":{"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68","id":220413768,"node_id":"MDExOlB1bGxSZXF1ZXN0MjIwNDEzNzY4","html_url":"https://github.com/valentina-kustikova/mp1-practice/pull/68","diff_url":"https://github.com/valentina-kustikova/mp1-practice/pull/68.diff","patch_url":"https://github.com/valentina-kustikova/mp1-practice/pull/68.patch","issue_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/68","number":68,"state":"open","locked":false,"title":"Гогов В.И. Практическое задание 1","user":{"login":"vlad-gogov","id":43129455,"node_id":"MDQ6VXNlcjQzMTI5NDU1","avatar_url":"https://avatars1.githubusercontent.com/u/43129455?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad-gogov","html_url":"https://github.com/vlad-gogov","followers_url":"https://api.github.com/users/vlad-gogov/followers","following_url":"https://api.github.com/users/vlad-gogov/following{/other_user}","gists_url":"https://api.github.com/users/vlad-gogov/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad-gogov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad-gogov/subscriptions","organizations_url":"https://api.github.com/users/vlad-gogov/orgs","repos_url":"https://api.github.com/users/vlad-gogov/repos","events_url":"https://api.github.com/users/vlad-gogov/events{/privacy}","received_events_url":"https://api.github.com/users/vlad-gogov/received_events","type":"User","site_admin":false},"body":"","created_at":"2018-10-04T15:07:38Z","updated_at":"2018-10-31T12:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"49c1098a21dec9183bbc48a9aae0bd6fa995050c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68/commits","review_comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68/comments","review_comment_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments{/number}","comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/68/comments","statuses_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/5ba08caa574c86a99404d6a361800853e49f4451","head":{"label":"vlad-gogov:Practice1","ref":"Practice1","sha":"5ba08caa574c86a99404d6a361800853e49f4451","user":{"login":"vlad-gogov","id":43129455,"node_id":"MDQ6VXNlcjQzMTI5NDU1","avatar_url":"https://avatars1.githubusercontent.com/u/43129455?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad-gogov","html_url":"https://github.com/vlad-gogov","followers_url":"https://api.github.com/users/vlad-gogov/followers","following_url":"https://api.github.com/users/vlad-gogov/following{/other_user}","gists_url":"https://api.github.com/users/vlad-gogov/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad-gogov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad-gogov/subscriptions","organizations_url":"https://api.github.com/users/vlad-gogov/orgs","repos_url":"https://api.github.com/users/vlad-gogov/repos","events_url":"https://api.github.com/users/vlad-gogov/events{/privacy}","received_events_url":"https://api.github.com/users/vlad-gogov/received_events","type":"User","site_admin":false},"repo":{"id":148109746,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgxMDk3NDY=","name":"mp1-practice","full_name":"vlad-gogov/mp1-practice","private":false,"owner":{"login":"vlad-gogov","id":43129455,"node_id":"MDQ6VXNlcjQzMTI5NDU1","avatar_url":"https://avatars1.githubusercontent.com/u/43129455?v=4","gravatar_id":"","url":"https://api.github.com/users/vlad-gogov","html_url":"https://github.com/vlad-gogov","followers_url":"https://api.github.com/users/vlad-gogov/followers","following_url":"https://api.github.com/users/vlad-gogov/following{/other_user}","gists_url":"https://api.github.com/users/vlad-gogov/gists{/gist_id}","starred_url":"https://api.github.com/users/vlad-gogov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vlad-gogov/subscriptions","organizations_url":"https://api.github.com/users/vlad-gogov/orgs","repos_url":"https://api.github.com/users/vlad-gogov/repos","events_url":"https://api.github.com/users/vlad-gogov/events{/privacy}","received_events_url":"https://api.github.com/users/vlad-gogov/received_events","type":"User","site_admin":false},"html_url":"https://github.com/vlad-gogov/mp1-practice","description":"Репозиторий для сдачи практических заданий по курсу Методы программирования","fork":true,"url":"https://api.github.com/repos/vlad-gogov/mp1-practice","forks_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/forks","keys_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/teams","hooks_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/hooks","issue_events_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/issues/events{/number}","events_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/events","assignees_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/assignees{/user}","branches_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/branches{/branch}","tags_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/tags","blobs_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/languages","stargazers_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/stargazers","contributors_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/contributors","subscribers_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/subscribers","subscription_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/subscription","commits_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/contents/{+path}","compare_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/merges","archive_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/downloads","issues_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/issues{/number}","pulls_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/labels{/name}","releases_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/releases{/id}","deployments_url":"https://api.github.com/repos/vlad-gogov/mp1-practice/deployments","created_at":"2018-09-10T06:34:30Z","updated_at":"2018-10-21T05:40:41Z","pushed_at":"2018-10-29T15:08:09Z","git_url":"git://github.com/vlad-gogov/mp1-practice.git","ssh_url":"git@github.com:vlad-gogov/mp1-practice.git","clone_url":"https://github.com/vlad-gogov/mp1-practice.git","svn_url":"https://github.com/vlad-gogov/mp1-practice","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"valentina-kustikova:master","ref":"master","sha":"2f3e3ef4b157c11197d185330e8270b56e46610c","user":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"repo":{"id":148051583,"node_id":"MDEwOlJlcG9zaXRvcnkxNDgwNTE1ODM=","name":"mp1-practice","full_name":"valentina-kustikova/mp1-practice","private":false,"owner":{"login":"valentina-kustikova","id":6958019,"node_id":"MDQ6VXNlcjY5NTgwMTk=","avatar_url":"https://avatars0.githubusercontent.com/u/6958019?v=4","gravatar_id":"","url":"https://api.github.com/users/valentina-kustikova","html_url":"https://github.com/valentina-kustikova","followers_url":"https://api.github.com/users/valentina-kustikova/followers","following_url":"https://api.github.com/users/valentina-kustikova/following{/other_user}","gists_url":"https://api.github.com/users/valentina-kustikova/gists{/gist_id}","starred_url":"https://api.github.com/users/valentina-kustikova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/valentina-kustikova/subscriptions","organizations_url":"https://api.github.com/users/valentina-kustikova/orgs","repos_url":"https://api.github.com/users/valentina-kustikova/repos","events_url":"https://api.github.com/users/valentina-kustikova/events{/privacy}","received_events_url":"https://api.github.com/users/valentina-kustikova/received_events","type":"User","site_admin":false},"html_url":"https://github.com/valentina-kustikova/mp1-practice","description":"Репозиторий для сдачи практических заданий по курсу Методы программирования","fork":false,"url":"https://api.github.com/repos/valentina-kustikova/mp1-practice","forks_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/forks","keys_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/keys{/key_id}","collaborators_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/teams","hooks_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/hooks","issue_events_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/events{/number}","events_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/events","assignees_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/assignees{/user}","branches_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/branches{/branch}","tags_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/tags","blobs_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/refs{/sha}","trees_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/trees{/sha}","statuses_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/{sha}","languages_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/languages","stargazers_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/stargazers","contributors_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/contributors","subscribers_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/subscribers","subscription_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/subscription","commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/commits{/sha}","git_commits_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/git/commits{/sha}","comments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/comments{/number}","issue_comment_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/comments{/number}","contents_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/contents/{+path}","compare_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/compare/{base}...{head}","merges_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/merges","archive_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/downloads","issues_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues{/number}","pulls_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls{/number}","milestones_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/milestones{/number}","notifications_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/labels{/name}","releases_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/releases{/id}","deployments_url":"https://api.github.com/repos/valentina-kustikova/mp1-practice/deployments","created_at":"2018-09-09T17:58:57Z","updated_at":"2018-10-31T09:55:11Z","pushed_at":"2018-10-31T09:54:52Z","git_url":"git://github.com/valentina-kustikova/mp1-practice.git","ssh_url":"git@github.com:valentina-kustikova/mp1-practice.git","clone_url":"https://github.com/valentina-kustikova/mp1-practice.git","svn_url":"https://github.com/valentina-kustikova/mp1-practice","homepage":null,"size":708,"stargazers_count":1,"watchers_count":1,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":39,"mirror_url":null,"archived":false,"open_issues_count":107,"license":null,"forks":39,"open_issues":107,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68"},"html":{"href":"https://github.com/valentina-kustikova/mp1-practice/pull/68"},"issue":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/68"},"comments":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/issues/68/comments"},"review_comments":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68/comments"},"review_comment":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/pulls/68/commits"},"statuses":{"href":"https://api.github.com/repos/valentina-kustikova/mp1-practice/statuses/5ba08caa574c86a99404d6a361800853e49f4451"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"valentina-kustikova"}}