{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/42856352","id":42856352,"diff_hunk":"@@ -1,4 +1,208 @@\n-var hours = process.argv[2];\n-var minutes = process.argv[3];\n-\n-// Немного замечательного кода и магии\n+'use strict';\n+var ascii_roman10 = new Array(10)\n+var ROWS_ASKII_PRINT = 14\n+var ascii_del = [\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"    8888    \",\n+                \"    8888    \",\n+                \"            \",\n+                \"    8888    \",\n+                \"    8888    \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \"\n+];\n+var ascii_roman0 = [\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"  888888888 \",\n+                \"  888888888 \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \",\n+                \"            \"\n+];\n+var ascii_roman1 = [\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \",\n+                \" 888 \"\n+];\n+var ascii_roman5 = [\n+                \" 8888              8888 \",\n+                \"  888              888  \",\n+                \"  8888            888   \",\n+                \"   8888          8888   \",\n+                \"    888          888    \",\n+                \"    8888        888     \",\n+                \"     888        888     \",\n+                \"      888      888      \",\n+                \"      8888    8888      \",\n+                \"       888    888       \",\n+                \"        888  888        \",\n+                \"        888  888        \",\n+                \"         888888         \",\n+                \"         88888          \",\n+                \"          8888          \"\n+];\n+var ascii_roman10 = [\n+                \"  8888            8888  \",\n+                \"   88888         8888   \",\n+                \"     8888       8888    \",\n+                \"      8888    8888      \",\n+                \"       8888  8888       \",\n+                \"        88888888        \",\n+                \"         888888         \",\n+                \"          88888         \",\n+                \"        88888888        \",\n+                \"       8888  8888       \",\n+                \"      8888    8888      \",\n+                \"     8888      8888     \",\n+                \"    8888        8888    \",\n+                \"  8888           88888  \",\n+                \" 8888              8888 \"\n+];\n+var ascii_roman50 = [\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888              \",\n+                \" 888888888888888  \",\n+                \" 888888888888888  \"\n+];\n+function toRoman(number)\n+{\n+    var resultRoman = \"\";\n+    var countDec = parseInt(number / 10, 10);\n+    var countRes = number % 10;\n+    if (countDec < 4){\n+        for (var i = 1;i <= countDec; i++){\n+            resultRoman += \"X\";\n+        }\n+    }\n+    else{\n+        switch (countDec){\n+            case 4:\n+                resultRoman += \"XL\";\n+                break;\n+            case 5:\n+                resultRoman += \"L\";\n+                break;\n+            case 6:\n+                resultRoman += \"LX\";\n+                break;\n+        }\n+    }\n+    if (countRes != 0)\n+        switch (countRes){\n+            case 0:\n+                resultRoman += \"-\";\n+                break;\n+            case 1:\n+                resultRoman += \"I\";\n+                break;\n+            case 2:\n+                resultRoman += \"II\";\n+                break;\n+            case 3:\n+                resultRoman += \"III\";","path":"roman-time.js","position":145,"original_position":145,"commit_id":"22ecc3393dc92cf642e9ff71edc34af0d65a230d","original_commit_id":"22ecc3393dc92cf642e9ff71edc34af0d65a230d","user":{"login":"bratva","id":1937870,"avatar_url":"https://avatars.githubusercontent.com/u/1937870?v=3","gravatar_id":"","url":"https://api.github.com/users/bratva","html_url":"https://github.com/bratva","followers_url":"https://api.github.com/users/bratva/followers","following_url":"https://api.github.com/users/bratva/following{/other_user}","gists_url":"https://api.github.com/users/bratva/gists{/gist_id}","starred_url":"https://api.github.com/users/bratva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bratva/subscriptions","organizations_url":"https://api.github.com/users/bratva/orgs","repos_url":"https://api.github.com/users/bratva/repos","events_url":"https://api.github.com/users/bratva/events{/privacy}","received_events_url":"https://api.github.com/users/bratva/received_events","type":"User","site_admin":false},"body":"Плохо, что ты все единицы прописал от 1 до 9. Ведь здесь много дублирования.","created_at":"2015-10-23T11:46:29Z","updated_at":"2015-10-23T11:46:29Z","html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/42#discussion_r42856352","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/42856352"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/42#discussion_r42856352"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42","id":46728272,"html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/42","diff_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/42.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/42.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/42","number":42,"state":"open","locked":false,"title":"Исаков Федор","user":{"login":"FrodoTheTrue","id":9107905,"avatar_url":"https://avatars.githubusercontent.com/u/9107905?v=3","gravatar_id":"","url":"https://api.github.com/users/FrodoTheTrue","html_url":"https://github.com/FrodoTheTrue","followers_url":"https://api.github.com/users/FrodoTheTrue/followers","following_url":"https://api.github.com/users/FrodoTheTrue/following{/other_user}","gists_url":"https://api.github.com/users/FrodoTheTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/FrodoTheTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrodoTheTrue/subscriptions","organizations_url":"https://api.github.com/users/FrodoTheTrue/orgs","repos_url":"https://api.github.com/users/FrodoTheTrue/repos","events_url":"https://api.github.com/users/FrodoTheTrue/events{/privacy}","received_events_url":"https://api.github.com/users/FrodoTheTrue/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-04T16:51:50Z","updated_at":"2015-10-23T11:46:29Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bdf384c8673266549e20414895b50708095af477","assignee":{"login":"bratva","id":1937870,"avatar_url":"https://avatars.githubusercontent.com/u/1937870?v=3","gravatar_id":"","url":"https://api.github.com/users/bratva","html_url":"https://github.com/bratva","followers_url":"https://api.github.com/users/bratva/followers","following_url":"https://api.github.com/users/bratva/following{/other_user}","gists_url":"https://api.github.com/users/bratva/gists{/gist_id}","starred_url":"https://api.github.com/users/bratva/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bratva/subscriptions","organizations_url":"https://api.github.com/users/bratva/orgs","repos_url":"https://api.github.com/users/bratva/repos","events_url":"https://api.github.com/users/bratva/events{/privacy}","received_events_url":"https://api.github.com/users/bratva/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42/comments","review_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/42/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/22ecc3393dc92cf642e9ff71edc34af0d65a230d","head":{"label":"FrodoTheTrue:master","ref":"master","sha":"22ecc3393dc92cf642e9ff71edc34af0d65a230d","user":{"login":"FrodoTheTrue","id":9107905,"avatar_url":"https://avatars.githubusercontent.com/u/9107905?v=3","gravatar_id":"","url":"https://api.github.com/users/FrodoTheTrue","html_url":"https://github.com/FrodoTheTrue","followers_url":"https://api.github.com/users/FrodoTheTrue/followers","following_url":"https://api.github.com/users/FrodoTheTrue/following{/other_user}","gists_url":"https://api.github.com/users/FrodoTheTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/FrodoTheTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrodoTheTrue/subscriptions","organizations_url":"https://api.github.com/users/FrodoTheTrue/orgs","repos_url":"https://api.github.com/users/FrodoTheTrue/repos","events_url":"https://api.github.com/users/FrodoTheTrue/events{/privacy}","received_events_url":"https://api.github.com/users/FrodoTheTrue/received_events","type":"User","site_admin":false},"repo":{"id":43632467,"name":"javascript-tasks-1","full_name":"FrodoTheTrue/javascript-tasks-1","owner":{"login":"FrodoTheTrue","id":9107905,"avatar_url":"https://avatars.githubusercontent.com/u/9107905?v=3","gravatar_id":"","url":"https://api.github.com/users/FrodoTheTrue","html_url":"https://github.com/FrodoTheTrue","followers_url":"https://api.github.com/users/FrodoTheTrue/followers","following_url":"https://api.github.com/users/FrodoTheTrue/following{/other_user}","gists_url":"https://api.github.com/users/FrodoTheTrue/gists{/gist_id}","starred_url":"https://api.github.com/users/FrodoTheTrue/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FrodoTheTrue/subscriptions","organizations_url":"https://api.github.com/users/FrodoTheTrue/orgs","repos_url":"https://api.github.com/users/FrodoTheTrue/repos","events_url":"https://api.github.com/users/FrodoTheTrue/events{/privacy}","received_events_url":"https://api.github.com/users/FrodoTheTrue/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/FrodoTheTrue/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":true,"url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1","forks_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/FrodoTheTrue/javascript-tasks-1/releases{/id}","created_at":"2015-10-04T10:18:20Z","updated_at":"2015-10-04T10:18:21Z","pushed_at":"2015-10-23T09:21:42Z","git_url":"git://github.com/FrodoTheTrue/javascript-tasks-1.git","ssh_url":"git@github.com:FrodoTheTrue/javascript-tasks-1.git","clone_url":"https://github.com/FrodoTheTrue/javascript-tasks-1.git","svn_url":"https://github.com/FrodoTheTrue/javascript-tasks-1","homepage":null,"size":87,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"urfu-2015:master","ref":"master","sha":"9f95181b7277c6920aac2370301d07fc7cbc4080","user":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"repo":{"id":43342589,"name":"javascript-tasks-1","full_name":"urfu-2015/javascript-tasks-1","owner":{"login":"urfu-2015","id":14800971,"avatar_url":"https://avatars.githubusercontent.com/u/14800971?v=3","gravatar_id":"","url":"https://api.github.com/users/urfu-2015","html_url":"https://github.com/urfu-2015","followers_url":"https://api.github.com/users/urfu-2015/followers","following_url":"https://api.github.com/users/urfu-2015/following{/other_user}","gists_url":"https://api.github.com/users/urfu-2015/gists{/gist_id}","starred_url":"https://api.github.com/users/urfu-2015/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/urfu-2015/subscriptions","organizations_url":"https://api.github.com/users/urfu-2015/orgs","repos_url":"https://api.github.com/users/urfu-2015/repos","events_url":"https://api.github.com/users/urfu-2015/events{/privacy}","received_events_url":"https://api.github.com/users/urfu-2015/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/urfu-2015/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript» – «XXL»","fork":false,"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1","forks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/releases{/id}","created_at":"2015-09-29T03:28:09Z","updated_at":"2015-10-16T19:01:26Z","pushed_at":"2015-10-23T09:21:42Z","git_url":"git://github.com/urfu-2015/javascript-tasks-1.git","ssh_url":"git@github.com:urfu-2015/javascript-tasks-1.git","clone_url":"https://github.com/urfu-2015/javascript-tasks-1.git","svn_url":"https://github.com/urfu-2015/javascript-tasks-1","homepage":"","size":1920,"stargazers_count":5,"watchers_count":5,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":119,"mirror_url":null,"open_issues_count":31,"forks":119,"open_issues":31,"watchers":5,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/42"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/42"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/42/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42/comments"},"review_comment":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/42/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/22ecc3393dc92cf642e9ff71edc34af0d65a230d"}}}}