{"action":"created","comment":{"url":"https://api.github.com/repos/ginbear/atcoder/pulls/comments/64411492","id":64411492,"diff_hunk":"@@ -0,0 +1,29 @@\n+s = STDIN.gets\n+t = STDIN.gets.to_i\n+ \n+raise 'error' unless s.length >= 1 || s.length <= 1_000_000\n+raise 'error' unless t == 1 || t == 2\n+ \n+class B\n+  attr_reader :s, :t\n+  def self.result(s, t)\n+    ans = 0\n+    x = s.count(\"R\") - s.count(\"L\") \n+    y = s.count(\"U\") - s.count(\"D\") \n+    z = s.count(\"?\")\n+    ans = x.abs + y.abs\n+    if t == 1","path":"035/b.rb","position":9,"original_position":15,"commit_id":"4a7b7c2b07e639e617c8535870e3db6525c439ed","original_commit_id":"13ea57b5fdd02f540b6ca8d2f973ebaa1d9942c9","user":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"body":"コメントあざます！わかりやすさ大事。t もですけど z も誤解を生みますね...\r\n","created_at":"2016-05-24T15:14:57Z","updated_at":"2016-05-24T15:14:57Z","html_url":"https://github.com/ginbear/atcoder/pull/1#discussion_r64411492","pull_request_url":"https://api.github.com/repos/ginbear/atcoder/pulls/1","_links":{"self":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/comments/64411492"},"html":{"href":"https://github.com/ginbear/atcoder/pull/1#discussion_r64411492"},"pull_request":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/1"}}},"pull_request":{"url":"https://api.github.com/repos/ginbear/atcoder/pulls/1","id":71048428,"html_url":"https://github.com/ginbear/atcoder/pull/1","diff_url":"https://github.com/ginbear/atcoder/pull/1.diff","patch_url":"https://github.com/ginbear/atcoder/pull/1.patch","issue_url":"https://api.github.com/repos/ginbear/atcoder/issues/1","number":1,"state":"open","locked":false,"title":"Add 035","user":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-05-23T11:54:36Z","updated_at":"2016-05-24T15:14:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9effef9227ff2d86be688abe9038904844b58e4f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ginbear/atcoder/pulls/1/commits","review_comments_url":"https://api.github.com/repos/ginbear/atcoder/pulls/1/comments","review_comment_url":"https://api.github.com/repos/ginbear/atcoder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ginbear/atcoder/issues/1/comments","statuses_url":"https://api.github.com/repos/ginbear/atcoder/statuses/4a7b7c2b07e639e617c8535870e3db6525c439ed","head":{"label":"ginbear:add-035","ref":"add-035","sha":"4a7b7c2b07e639e617c8535870e3db6525c439ed","user":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"repo":{"id":59478176,"name":"atcoder","full_name":"ginbear/atcoder","owner":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ginbear/atcoder","description":"http://atcoder.jp/","fork":false,"url":"https://api.github.com/repos/ginbear/atcoder","forks_url":"https://api.github.com/repos/ginbear/atcoder/forks","keys_url":"https://api.github.com/repos/ginbear/atcoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ginbear/atcoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ginbear/atcoder/teams","hooks_url":"https://api.github.com/repos/ginbear/atcoder/hooks","issue_events_url":"https://api.github.com/repos/ginbear/atcoder/issues/events{/number}","events_url":"https://api.github.com/repos/ginbear/atcoder/events","assignees_url":"https://api.github.com/repos/ginbear/atcoder/assignees{/user}","branches_url":"https://api.github.com/repos/ginbear/atcoder/branches{/branch}","tags_url":"https://api.github.com/repos/ginbear/atcoder/tags","blobs_url":"https://api.github.com/repos/ginbear/atcoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ginbear/atcoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ginbear/atcoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ginbear/atcoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ginbear/atcoder/statuses/{sha}","languages_url":"https://api.github.com/repos/ginbear/atcoder/languages","stargazers_url":"https://api.github.com/repos/ginbear/atcoder/stargazers","contributors_url":"https://api.github.com/repos/ginbear/atcoder/contributors","subscribers_url":"https://api.github.com/repos/ginbear/atcoder/subscribers","subscription_url":"https://api.github.com/repos/ginbear/atcoder/subscription","commits_url":"https://api.github.com/repos/ginbear/atcoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ginbear/atcoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ginbear/atcoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ginbear/atcoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ginbear/atcoder/contents/{+path}","compare_url":"https://api.github.com/repos/ginbear/atcoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ginbear/atcoder/merges","archive_url":"https://api.github.com/repos/ginbear/atcoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ginbear/atcoder/downloads","issues_url":"https://api.github.com/repos/ginbear/atcoder/issues{/number}","pulls_url":"https://api.github.com/repos/ginbear/atcoder/pulls{/number}","milestones_url":"https://api.github.com/repos/ginbear/atcoder/milestones{/number}","notifications_url":"https://api.github.com/repos/ginbear/atcoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ginbear/atcoder/labels{/name}","releases_url":"https://api.github.com/repos/ginbear/atcoder/releases{/id}","deployments_url":"https://api.github.com/repos/ginbear/atcoder/deployments","created_at":"2016-05-23T11:46:22Z","updated_at":"2016-05-23T11:46:22Z","pushed_at":"2016-05-24T14:51:51Z","git_url":"git://github.com/ginbear/atcoder.git","ssh_url":"git@github.com:ginbear/atcoder.git","clone_url":"https://github.com/ginbear/atcoder.git","svn_url":"https://github.com/ginbear/atcoder","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"ginbear:master","ref":"master","sha":"fbe9fbb0d3fa2d80424260188b9eada3ac394a1b","user":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"repo":{"id":59478176,"name":"atcoder","full_name":"ginbear/atcoder","owner":{"login":"ginbear","id":3601231,"avatar_url":"https://avatars.githubusercontent.com/u/3601231?v=3","gravatar_id":"","url":"https://api.github.com/users/ginbear","html_url":"https://github.com/ginbear","followers_url":"https://api.github.com/users/ginbear/followers","following_url":"https://api.github.com/users/ginbear/following{/other_user}","gists_url":"https://api.github.com/users/ginbear/gists{/gist_id}","starred_url":"https://api.github.com/users/ginbear/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ginbear/subscriptions","organizations_url":"https://api.github.com/users/ginbear/orgs","repos_url":"https://api.github.com/users/ginbear/repos","events_url":"https://api.github.com/users/ginbear/events{/privacy}","received_events_url":"https://api.github.com/users/ginbear/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ginbear/atcoder","description":"http://atcoder.jp/","fork":false,"url":"https://api.github.com/repos/ginbear/atcoder","forks_url":"https://api.github.com/repos/ginbear/atcoder/forks","keys_url":"https://api.github.com/repos/ginbear/atcoder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ginbear/atcoder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ginbear/atcoder/teams","hooks_url":"https://api.github.com/repos/ginbear/atcoder/hooks","issue_events_url":"https://api.github.com/repos/ginbear/atcoder/issues/events{/number}","events_url":"https://api.github.com/repos/ginbear/atcoder/events","assignees_url":"https://api.github.com/repos/ginbear/atcoder/assignees{/user}","branches_url":"https://api.github.com/repos/ginbear/atcoder/branches{/branch}","tags_url":"https://api.github.com/repos/ginbear/atcoder/tags","blobs_url":"https://api.github.com/repos/ginbear/atcoder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ginbear/atcoder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ginbear/atcoder/git/refs{/sha}","trees_url":"https://api.github.com/repos/ginbear/atcoder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ginbear/atcoder/statuses/{sha}","languages_url":"https://api.github.com/repos/ginbear/atcoder/languages","stargazers_url":"https://api.github.com/repos/ginbear/atcoder/stargazers","contributors_url":"https://api.github.com/repos/ginbear/atcoder/contributors","subscribers_url":"https://api.github.com/repos/ginbear/atcoder/subscribers","subscription_url":"https://api.github.com/repos/ginbear/atcoder/subscription","commits_url":"https://api.github.com/repos/ginbear/atcoder/commits{/sha}","git_commits_url":"https://api.github.com/repos/ginbear/atcoder/git/commits{/sha}","comments_url":"https://api.github.com/repos/ginbear/atcoder/comments{/number}","issue_comment_url":"https://api.github.com/repos/ginbear/atcoder/issues/comments{/number}","contents_url":"https://api.github.com/repos/ginbear/atcoder/contents/{+path}","compare_url":"https://api.github.com/repos/ginbear/atcoder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ginbear/atcoder/merges","archive_url":"https://api.github.com/repos/ginbear/atcoder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ginbear/atcoder/downloads","issues_url":"https://api.github.com/repos/ginbear/atcoder/issues{/number}","pulls_url":"https://api.github.com/repos/ginbear/atcoder/pulls{/number}","milestones_url":"https://api.github.com/repos/ginbear/atcoder/milestones{/number}","notifications_url":"https://api.github.com/repos/ginbear/atcoder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ginbear/atcoder/labels{/name}","releases_url":"https://api.github.com/repos/ginbear/atcoder/releases{/id}","deployments_url":"https://api.github.com/repos/ginbear/atcoder/deployments","created_at":"2016-05-23T11:46:22Z","updated_at":"2016-05-23T11:46:22Z","pushed_at":"2016-05-24T14:51:51Z","git_url":"git://github.com/ginbear/atcoder.git","ssh_url":"git@github.com:ginbear/atcoder.git","clone_url":"https://github.com/ginbear/atcoder.git","svn_url":"https://github.com/ginbear/atcoder","homepage":null,"size":3,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/1"},"html":{"href":"https://github.com/ginbear/atcoder/pull/1"},"issue":{"href":"https://api.github.com/repos/ginbear/atcoder/issues/1"},"comments":{"href":"https://api.github.com/repos/ginbear/atcoder/issues/1/comments"},"review_comments":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/1/comments"},"review_comment":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ginbear/atcoder/pulls/1/commits"},"statuses":{"href":"https://api.github.com/repos/ginbear/atcoder/statuses/4a7b7c2b07e639e617c8535870e3db6525c439ed"}}}}
{"actor":{"display_login":"ginbear"}}