{"action":"created","comment":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41476753","id":41476753,"diff_hunk":"@@ -1,4 +1,93 @@\n-var hours = process.argv[2];\n-var minutes = process.argv[3];\n+var hours = parseInt(process.argv[2],10);\n+var minutes = parseInt(process.argv[3],10);\n+var romanTime;\n+var romanTimeASCLLScreen='';\n+var heightASCLL=8;\n \n-// Немного замечательного кода и магии\n+if(hours<25 && hours>-1 && minutes<60 && minutes>-1){\n+\tromanTime=timeToRoman(romanTime);\n+\tconsole.log(romanTime);\n+\t\tfor(var i=0;i< heightASCLL;i++){\n+\t\t\tfor(var j=0;j<romanTime.length;j++){\n+\t\t\t\tromanTimeASCLLScreen+=timeRomanToASCLL(romanTime[j])[i];\n+\t\t\t}\n+\t\t\tromanTimeASCLLScreen+='\\n';\n+\t}\n+\tconsole.log(romanTimeASCLLScreen);\n+}else {\n+\tconsole.log(\"Время указано не верно\");}\n+\n+function timeToRoman(romanTime){\n+\tromanTime=[''];\n+\tromanTime=arabicNumberToRoman(hours);\n+\tromanTime+=':'+arabicNumberToRoman(minutes);\n+\treturn romanTime;\n+}\n+function arabicNumberToRoman(number){\n+\tvar units = ['','I','II','III','IV','V','VI','VII','VIII','IX'];\n+\tvar dozens = ['','X','XX','XXX','XL','L'];\n+\tif(dozens[parseInt(number/10),10]==0 && units[number%10]==0){\n+\t\treturn '-';\n+\t}\n+\treturn romanTime=dozens[parseInt(number/10,10)]+units[number%10];","path":"roman-time.js","position":35,"original_position":35,"commit_id":"e4383378557cae0d11a716b439d1e4c16fed2a95","original_commit_id":"e4383378557cae0d11a716b439d1e4c16fed2a95","user":{"login":"mangin","id":7918881,"avatar_url":"https://avatars.githubusercontent.com/u/7918881?v=3","gravatar_id":"","url":"https://api.github.com/users/mangin","html_url":"https://github.com/mangin","followers_url":"https://api.github.com/users/mangin/followers","following_url":"https://api.github.com/users/mangin/following{/other_user}","gists_url":"https://api.github.com/users/mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangin/subscriptions","organizations_url":"https://api.github.com/users/mangin/orgs","repos_url":"https://api.github.com/users/mangin/repos","events_url":"https://api.github.com/users/mangin/events{/privacy}","received_events_url":"https://api.github.com/users/mangin/received_events","type":"User","site_admin":false},"body":"а это зачем ?! romanTIme=dozen","created_at":"2015-10-08T05:11:55Z","updated_at":"2015-10-08T05:11:55Z","html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/48#discussion_r41476753","pull_request_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48","_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/comments/41476753"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/48#discussion_r41476753"},"pull_request":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48"}}},"pull_request":{"url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48","id":46733152,"html_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/48","diff_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/48.diff","patch_url":"https://github.com/urfu-2015/javascript-tasks-1/pull/48.patch","issue_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/48","number":48,"state":"open","locked":false,"title":"Боярская Анастасия","user":{"login":"Nastya01195","id":14939186,"avatar_url":"https://avatars.githubusercontent.com/u/14939186?v=3","gravatar_id":"","url":"https://api.github.com/users/Nastya01195","html_url":"https://github.com/Nastya01195","followers_url":"https://api.github.com/users/Nastya01195/followers","following_url":"https://api.github.com/users/Nastya01195/following{/other_user}","gists_url":"https://api.github.com/users/Nastya01195/gists{/gist_id}","starred_url":"https://api.github.com/users/Nastya01195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nastya01195/subscriptions","organizations_url":"https://api.github.com/users/Nastya01195/orgs","repos_url":"https://api.github.com/users/Nastya01195/repos","events_url":"https://api.github.com/users/Nastya01195/events{/privacy}","received_events_url":"https://api.github.com/users/Nastya01195/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-04T21:00:41Z","updated_at":"2015-10-08T05:11:55Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c23d4ebdd71c959724d66e7c88efc71e878cf90e","assignee":{"login":"mangin","id":7918881,"avatar_url":"https://avatars.githubusercontent.com/u/7918881?v=3","gravatar_id":"","url":"https://api.github.com/users/mangin","html_url":"https://github.com/mangin","followers_url":"https://api.github.com/users/mangin/followers","following_url":"https://api.github.com/users/mangin/following{/other_user}","gists_url":"https://api.github.com/users/mangin/gists{/gist_id}","starred_url":"https://api.github.com/users/mangin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mangin/subscriptions","organizations_url":"https://api.github.com/users/mangin/orgs","repos_url":"https://api.github.com/users/mangin/repos","events_url":"https://api.github.com/users/mangin/events{/privacy}","received_events_url":"https://api.github.com/users/mangin/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48/commits","review_comments_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48/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/48/comments","statuses_url":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/e4383378557cae0d11a716b439d1e4c16fed2a95","head":{"label":"Nastya01195:master","ref":"master","sha":"e4383378557cae0d11a716b439d1e4c16fed2a95","user":{"login":"Nastya01195","id":14939186,"avatar_url":"https://avatars.githubusercontent.com/u/14939186?v=3","gravatar_id":"","url":"https://api.github.com/users/Nastya01195","html_url":"https://github.com/Nastya01195","followers_url":"https://api.github.com/users/Nastya01195/followers","following_url":"https://api.github.com/users/Nastya01195/following{/other_user}","gists_url":"https://api.github.com/users/Nastya01195/gists{/gist_id}","starred_url":"https://api.github.com/users/Nastya01195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nastya01195/subscriptions","organizations_url":"https://api.github.com/users/Nastya01195/orgs","repos_url":"https://api.github.com/users/Nastya01195/repos","events_url":"https://api.github.com/users/Nastya01195/events{/privacy}","received_events_url":"https://api.github.com/users/Nastya01195/received_events","type":"User","site_admin":false},"repo":{"id":43547310,"name":"javascript-tasks-1","full_name":"Nastya01195/javascript-tasks-1","owner":{"login":"Nastya01195","id":14939186,"avatar_url":"https://avatars.githubusercontent.com/u/14939186?v=3","gravatar_id":"","url":"https://api.github.com/users/Nastya01195","html_url":"https://github.com/Nastya01195","followers_url":"https://api.github.com/users/Nastya01195/followers","following_url":"https://api.github.com/users/Nastya01195/following{/other_user}","gists_url":"https://api.github.com/users/Nastya01195/gists{/gist_id}","starred_url":"https://api.github.com/users/Nastya01195/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Nastya01195/subscriptions","organizations_url":"https://api.github.com/users/Nastya01195/orgs","repos_url":"https://api.github.com/users/Nastya01195/repos","events_url":"https://api.github.com/users/Nastya01195/events{/privacy}","received_events_url":"https://api.github.com/users/Nastya01195/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Nastya01195/javascript-tasks-1","description":"Задача к лекции «Введение в Javascript»","fork":true,"url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1","forks_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/forks","keys_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/teams","hooks_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/hooks","issue_events_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/issues/events{/number}","events_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/events","assignees_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/assignees{/user}","branches_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/branches{/branch}","tags_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/tags","blobs_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/git/refs{/sha}","trees_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/statuses/{sha}","languages_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/languages","stargazers_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/stargazers","contributors_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/contributors","subscribers_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/subscribers","subscription_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/subscription","commits_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/commits{/sha}","git_commits_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/git/commits{/sha}","comments_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/comments{/number}","issue_comment_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/issues/comments{/number}","contents_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/contents/{+path}","compare_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/merges","archive_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/downloads","issues_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/issues{/number}","pulls_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/pulls{/number}","milestones_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/milestones{/number}","notifications_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/labels{/name}","releases_url":"https://api.github.com/repos/Nastya01195/javascript-tasks-1/releases{/id}","created_at":"2015-10-02T10:31:12Z","updated_at":"2015-10-02T10:31:13Z","pushed_at":"2015-10-07T13:58:56Z","git_url":"git://github.com/Nastya01195/javascript-tasks-1.git","ssh_url":"git@github.com:Nastya01195/javascript-tasks-1.git","clone_url":"https://github.com/Nastya01195/javascript-tasks-1.git","svn_url":"https://github.com/Nastya01195/javascript-tasks-1","homepage":null,"size":118,"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-06T15:28:31Z","pushed_at":"2015-10-08T04:49:18Z","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":1728,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":112,"mirror_url":null,"open_issues_count":65,"forks":112,"open_issues":65,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48"},"html":{"href":"https://github.com/urfu-2015/javascript-tasks-1/pull/48"},"issue":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/48"},"comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/issues/48/comments"},"review_comments":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/pulls/48/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/48/commits"},"statuses":{"href":"https://api.github.com/repos/urfu-2015/javascript-tasks-1/statuses/e4383378557cae0d11a716b439d1e4c16fed2a95"}}}}