{"id":87,"date":"2011-01-23T19:50:19","date_gmt":"2011-01-23T11:50:19","guid":{"rendered":"http:\/\/gergely.imreh.net\/blog\/?p=87"},"modified":"2011-01-24T18:27:10","modified_gmt":"2011-01-24T10:27:10","slug":"hacker-cup-round-1-redux","status":"publish","type":"post","link":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/","title":{"rendered":"Hacker Cup Round 1 Redux"},"content":{"rendered":"<p>Last night&#8217;s\u00a0<a title=\"Hacker Cup Round 1 homepage\" href=\"http:\/\/www.facebook.com\/hackercup\/problems.php\/?round=123802894356576\" target=\"_blank\">Hacker Cup round<\/a>, which was a second try of the first round after last week&#8217;s disaster, didn&#8217;t go quite as well for me as I hoped. Probably not that much for the others either, as even if 1000 people will advance, less than that have submitted code. \u00a0Can be disappointment due to last week&#8217;s failure, I too was\u00a0hesitating\u00a0to take part, but also because the problems were I think at least one level up. Which is not a problem, just observation.<\/p>\n<figure id=\"attachment_125\" aria-describedby=\"caption-attachment-125\" style=\"width: 300px\" class=\"wp-caption aligncenter\"><a href=\"http:\/\/www.flickr.com\/photos\/jailman\/5074693190\/\"><img loading=\"lazy\" decoding=\"async\" class=\"size-medium wp-image-125 \" title=\"White Keyboard and Coffee\" src=\"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg\" alt=\"by jailman @ Flickr\" width=\"300\" height=\"199\" \/><\/a><figcaption id=\"caption-attachment-125\" class=\"wp-caption-text\">White Keyboard and Coffee by jailman @ flickr<\/figcaption><\/figure>\n<p>Got my coffee at 1am, set in to mood and started off right on time at 2am. \u00a0In the next 3 hours\u00a0I finished one of the problems, and got halfway with another one, which is below par, but what can I do. Need to learn more. One thing that I&#8217;ve noticed is if one just searched the web with the right keywords, Problem 1 and 3 could be handed over on a silver plate, more or less&#8230; Which is kind of random for a programming competition. \u00a0Did they want people who can find the right solutions or maybe someone who knows the solution for all of these problems alread? The first one begs the question whether there will be \u00a0Wikipedia access in the final. The second one begs the question: who can be such a person? And if neither &#8211; why choose such problems that cannot possible be solved in the allotted time without prior knowledge or external input?<\/p>\n<p>Well, I wonder what would be the right keywords for Problem 2, which I could not solve yet.<\/p>\n<p>I&#8217;m also bothered, that it seems that the input file one had to download for Problem 3 does not conform to the input specs. Why? Especially when if you download the file, the system gives you 6 minutes to submit. This is rather underhanded&#8230;.<\/p>\n<p>I will certainly try to check out the other two sub-rounds as well, even if they are 5am next Wednesday and next Sunday local time. Not doing this for the glory but for the education anyway. :)<\/p>\n<h1>Notes on solutions<\/h1>\n<p><strong>Warning: Spoilers ahead. Don&#8217;t read if you want to solve them yourself.<\/strong><\/p>\n<p>Almost all my code for this can be found in <a title=\"source code of my submissions to the Hacker Cup\" href=\"https:\/\/github.com\/imrehg\/fbpuzzle\/tree\/master\/facebook\/00_hacker_cup_2011\" target=\"_blank\">this Github repo<\/a>, together with other rounds&#8217; code.<\/p>\n<h2>1) Wine Tasting<\/h2>\n<p>This one is more mathematics than anything. Let&#8217;s have G glasses of wine and minimum C guesses to be right.\u00a0For i = C to \u00a0G calculate the number of : how many ways one can have good guesses, multiplied by how many ways none of the remaining guesses are right. Sum these numbers up, and that&#8217;s your result.<\/p>\n<p>I was thinking for a long time how to calculate the number of ways none of the guesses are right (i.e. the number of permutations where non of the elements are at their original place). Finally I found there&#8217;s a name for that: <a title=\"Wikipedia page for Derangement\" href=\"http:\/\/en.wikipedia.org\/wiki\/Derangement\" target=\"_blank\">derangement<\/a>. And it is not at all simple, so I guess I wouldn&#8217;t have figured it out myself.<\/p>\n<p>In the end, what we have to return is:<br \/>\n$$\\mathrm{result} = \\sum_{i = C}^{G}{G \\choose i} (G &#8211; i)! \\sum_{j = 0}^{(G-i)} \\frac{(-1)^{j}}{j!}$$<\/p>\n<p>Now that it actually makes sence, it turned out this very expression has a name too: <a title=\"Recontres numbers on Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Rencontres_numbers\" target=\"_blank\">recontres numbers<\/a>.<\/p>\n<p><strong datetime=\"2011-01-24T10:24:38+00:00\">Update: fixed my program and now should be correct.<\/strong><\/p>\n<p><del datetime=\"2011-01-24T10:24:38+00:00\">This can be a very large number due to the factorials, so got to use the right types. In my python code I had to use 64bit numbers, but it&#8217;s rather ad-hoc, just choose the ones not to break. I do have to revisit this again and fix the types. \u00a0(And don&#8217;t forget the modulus).<\/del><\/p>\n<p><del datetime=\"2011-01-24T10:24:38+00:00\">Also, I used <a title=\"SciPy homepage\" href=\"http:\/\/scipy.org\" target=\"_blank\">SciPy<\/a> to get the results, but only needed the factorial. If I quickly write a fast factorial subroutine then SciPy is not needed &#8211; another thing to fix in my code.<\/del><\/p>\n<p>It turned out that my code has failed, so basically this round is 0 out of 3. Nevertheless, wanted to see what was wrong, so I rewrote most of the math code. After messing around for a while, it turns out that all my problems came from<\/p>\n<pre lang=\"python\">from __future__ import division<\/pre>\n<p>which is basically the newer, py3k-style integer division code. If I excluded that, suddenly everything was fine. I really have to remember this, because I used this include in practically every math-related code I wrote lately.\u00a0Besides this change, I kept the other upgrades: fast factorial and <a title=\"Binomial coefficient on Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Binomial_coefficient\" target=\"_blank\">choose<\/a>.\u00a0My output for the given input file has md5sum of\u00a0<code>d17dfc9e9fef637f771da3d693d7920b<\/code><\/p>\n<h2>2) Diversity Number<\/h2>\n<p>This one I failed on, and seems very few people actually succeeded in general (less than 60 people in the whole round). I start to understand bits and pieces of the possible solution, but I have nothing complete yet. \u00a0I wonder if there&#8217;s such an insight into this one as in the previous problem with the derangement.<\/p>\n<p>Anyway, one thing I know: if there&#8217;s a list A, sorted, with length n and index starting at 0, then the diversity number is<br \/>\n$$\\mathrm{diversity} = \\prod_{i=0}^{n-1} \\left(A_{i} &#8211; i\\right)$$<br \/>\nor in Python<\/p>\n<pre lang=\"python\">prod = lambda array: reduce(lambda x, y: x*y, array)\r\ndiverse = lambda array: prod([array[i]-i for i in xrange(len(array))]) if len(array) > 0 else 0<\/pre>\n<p>Now just have to figure out, what to do, not to enumerate all the $$2^{100} &gt; 10^{30}$$ subsequences in the worse case scenario. :-?<\/p>\n<p><em>(I&#8217;ll update this when I&#8217;ve found the solution).<\/em><\/p>\n<h2>3) Turn on the Lights<\/h2>\n<p>This one is pretty much straight out of the game <a title=\"Lights Out on Wikipedia\" href=\"http:\/\/en.wikipedia.org\/wiki\/Lights_Out_(game)\" target=\"_blank\">Lights Out<\/a>, with the only twist that one has to turn on all the lights instead of turning off. This I found only well after the round ended but this makes the puzzle a bit of a <em>duh<\/em> for me, nevertheless it is worth doing, since there are some optimization choices that are not trivial.<\/p>\n<p>The method I used to get the solution, which follows most of the steps as outlined on the above link. Let&#8217;s call the button in row i and column j as [i, j]<span>.<\/span><\/p>\n<ol>\n<li>While importing the input, turn ever &#8220;on&#8221; into &#8220;off&#8221; to get the right setting for this problem.<\/li>\n<li>Turn off every light down to the bottom row. This is done by pressing button at [i, j] if [i-1, j] is on. Save all the buttons that are pressed.<\/li>\n<li>Check the state of last row at that point and keep it as a &#8220;target&#8221;.<\/li>\n<li>Starting from a blank puzzle (all lights off), turn on a single line in the first row and propagate it down just like in step 2. Save the last row. Do this for all of the lights in the first row, which will create the &#8220;base vectors&#8221; of the solutions we seek.<\/li>\n<li>We have to find the combination of those base vectors that equals to the above &#8220;target&#8221;. This can be done (i suppose) with a Gaussian elimination kind of method, but that&#8217;s just too much to implement for this little puzzle. According to the specs, the maximum number of colums is 18, thus there are $$2^{18}=262144$$ sett different configurations of lights at max. \u00a0That is not too bad, if there&#8217;s a fast comparison method, one can do a brute force search. That&#8217;s what I did. Also, I made use of binary expression of the light settings, e.g. switching lights can be done with XOR-ing the light pattern and the switch pattern.<\/li>\n<li>If found a match in the previous step then do the swicthing in the first line according to that result and do the propagation again. The final result should be an all-off board. Save all the button presses again.<\/li>\n<li>Check the pressed buttons. Since pressing a button twice is equal to not pressing it at all, if a button is pressed N times it is equivalent to N mod 2. Sum up all those presses, and that should be less than (rows * columns).<\/li>\n<\/ol>\n<p>This is probably not the quickest method due to the brute force search, but it should be good enough for a programming competition where the speed of programming is more important the the speed of the program.<\/p>\n<p>I do have <strong>one big complaint<\/strong> that I mentioned int the intro: the test file downloaded from Facebook did not follow the input specifications. In the specs every puzzle is a single line, the rows of the puzzle separated by whitespace. In the downloaded file for every puzzle every row is a <em>new<\/em> line.<\/p>\n<p>The md5sum of my solution for the downloaded input file is\u00a0<code>1e38422048a6aa9aeb007955d8b66f46<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Last night&#8217;s\u00a0Hacker Cup round, which was a second try of the first round after last week&#8217;s disaster, didn&#8217;t go quite as well for me as I hoped. Probably not that much for the others either, as even if 1000 people will advance, less than that have submitted code. \u00a0Can be disappointment due to last week&#8217;s [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[8],"tags":[13,14],"class_list":["post-87","post","type-post","status-publish","format-standard","hentry","category-prog","tag-facebook","tag-hackercup"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Hacker Cup Round 1 Redux - ClickedyClick<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/\" \/>\n<meta property=\"og:locale\" content=\"en_GB\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Hacker Cup Round 1 Redux - ClickedyClick\" \/>\n<meta property=\"og:description\" content=\"Last night&#8217;s\u00a0Hacker Cup round, which was a second try of the first round after last week&#8217;s disaster, didn&#8217;t go quite as well for me as I hoped. Probably not that much for the others either, as even if 1000 people will advance, less than that have submitted code. \u00a0Can be disappointment due to last week&#8217;s [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/\" \/>\n<meta property=\"og:site_name\" content=\"ClickedyClick\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/gergely.imreh\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/gergely.imreh\" \/>\n<meta property=\"article:published_time\" content=\"2011-01-23T11:50:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2011-01-24T10:27:10+00:00\" \/>\n<meta property=\"og:image\" content=\"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg\" \/>\n<meta name=\"author\" content=\"Gergely Imreh\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@imrehg\" \/>\n<meta name=\"twitter:site\" content=\"@imrehg\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Gergely Imreh\" \/>\n\t<meta name=\"twitter:label2\" content=\"Estimated reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"7 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/\"},\"author\":{\"name\":\"Gergely Imreh\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#\\\/schema\\\/person\\\/42391e2ae52c8ed76b37be509a5707b0\"},\"headline\":\"Hacker Cup Round 1 Redux\",\"datePublished\":\"2011-01-23T11:50:19+00:00\",\"dateModified\":\"2011-01-24T10:27:10+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/\"},\"wordCount\":1412,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#\\\/schema\\\/person\\\/42391e2ae52c8ed76b37be509a5707b0\"},\"image\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/gergely.imreh.net\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/5074693190_16e4d75ae5_o-300x199.jpg\",\"keywords\":[\"facebook\",\"hackercup\"],\"articleSection\":[\"Programming\"],\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/\",\"url\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/\",\"name\":\"Hacker Cup Round 1 Redux - ClickedyClick\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#primaryimage\"},\"thumbnailUrl\":\"http:\\\/\\\/gergely.imreh.net\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/5074693190_16e4d75ae5_o-300x199.jpg\",\"datePublished\":\"2011-01-23T11:50:19+00:00\",\"dateModified\":\"2011-01-24T10:27:10+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#breadcrumb\"},\"inLanguage\":\"en-GB\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#primaryimage\",\"url\":\"http:\\\/\\\/gergely.imreh.net\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/5074693190_16e4d75ae5_o-300x199.jpg\",\"contentUrl\":\"http:\\\/\\\/gergely.imreh.net\\\/blog\\\/wp-content\\\/uploads\\\/2011\\\/01\\\/5074693190_16e4d75ae5_o-300x199.jpg\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/2011\\\/01\\\/hacker-cup-round-1-redux\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Hacker Cup Round 1 Redux\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/\",\"name\":\"ClickedyClick\",\"description\":\"Life in real, complex and digital.\",\"publisher\":{\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#\\\/schema\\\/person\\\/42391e2ae52c8ed76b37be509a5707b0\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-GB\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/#\\\/schema\\\/person\\\/42391e2ae52c8ed76b37be509a5707b0\",\"name\":\"Gergely Imreh\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-GB\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g\",\"caption\":\"Gergely Imreh\"},\"logo\":{\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g\"},\"description\":\"Physicist, hacker. Enjoys avant-guarde literature probably a bit too much. Open source advocate and contributor, both for software and hardware. Follow these posts on the Fediverse by @gergely@gergely.imreh.net\",\"sameAs\":[\"https:\\\/\\\/gergely.imreh.net\\\/\",\"https:\\\/\\\/www.facebook.com\\\/gergely.imreh\",\"https:\\\/\\\/www.instagram.com\\\/imrehg\\\/\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/gergelyimreh\\\/\",\"https:\\\/\\\/www.youtube.com\\\/@GergelyImreh\"],\"url\":\"https:\\\/\\\/gergely.imreh.net\\\/blog\\\/author\\\/gergely\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Hacker Cup Round 1 Redux - ClickedyClick","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/","og_locale":"en_GB","og_type":"article","og_title":"Hacker Cup Round 1 Redux - ClickedyClick","og_description":"Last night&#8217;s\u00a0Hacker Cup round, which was a second try of the first round after last week&#8217;s disaster, didn&#8217;t go quite as well for me as I hoped. Probably not that much for the others either, as even if 1000 people will advance, less than that have submitted code. \u00a0Can be disappointment due to last week&#8217;s [&hellip;]","og_url":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/","og_site_name":"ClickedyClick","article_publisher":"https:\/\/www.facebook.com\/gergely.imreh","article_author":"https:\/\/www.facebook.com\/gergely.imreh","article_published_time":"2011-01-23T11:50:19+00:00","article_modified_time":"2011-01-24T10:27:10+00:00","og_image":[{"url":"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg","type":"","width":"","height":""}],"author":"Gergely Imreh","twitter_card":"summary_large_image","twitter_creator":"@imrehg","twitter_site":"@imrehg","twitter_misc":{"Written by":"Gergely Imreh","Estimated reading time":"7 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#article","isPartOf":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/"},"author":{"name":"Gergely Imreh","@id":"https:\/\/gergely.imreh.net\/blog\/#\/schema\/person\/42391e2ae52c8ed76b37be509a5707b0"},"headline":"Hacker Cup Round 1 Redux","datePublished":"2011-01-23T11:50:19+00:00","dateModified":"2011-01-24T10:27:10+00:00","mainEntityOfPage":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/"},"wordCount":1412,"commentCount":0,"publisher":{"@id":"https:\/\/gergely.imreh.net\/blog\/#\/schema\/person\/42391e2ae52c8ed76b37be509a5707b0"},"image":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#primaryimage"},"thumbnailUrl":"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg","keywords":["facebook","hackercup"],"articleSection":["Programming"],"inLanguage":"en-GB","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/","url":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/","name":"Hacker Cup Round 1 Redux - ClickedyClick","isPartOf":{"@id":"https:\/\/gergely.imreh.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#primaryimage"},"image":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#primaryimage"},"thumbnailUrl":"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg","datePublished":"2011-01-23T11:50:19+00:00","dateModified":"2011-01-24T10:27:10+00:00","breadcrumb":{"@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#breadcrumb"},"inLanguage":"en-GB","potentialAction":[{"@type":"ReadAction","target":["https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/"]}]},{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#primaryimage","url":"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg","contentUrl":"http:\/\/gergely.imreh.net\/blog\/wp-content\/uploads\/2011\/01\/5074693190_16e4d75ae5_o-300x199.jpg"},{"@type":"BreadcrumbList","@id":"https:\/\/gergely.imreh.net\/blog\/2011\/01\/hacker-cup-round-1-redux\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/gergely.imreh.net\/blog\/"},{"@type":"ListItem","position":2,"name":"Hacker Cup Round 1 Redux"}]},{"@type":"WebSite","@id":"https:\/\/gergely.imreh.net\/blog\/#website","url":"https:\/\/gergely.imreh.net\/blog\/","name":"ClickedyClick","description":"Life in real, complex and digital.","publisher":{"@id":"https:\/\/gergely.imreh.net\/blog\/#\/schema\/person\/42391e2ae52c8ed76b37be509a5707b0"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/gergely.imreh.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-GB"},{"@type":["Person","Organization"],"@id":"https:\/\/gergely.imreh.net\/blog\/#\/schema\/person\/42391e2ae52c8ed76b37be509a5707b0","name":"Gergely Imreh","image":{"@type":"ImageObject","inLanguage":"en-GB","@id":"https:\/\/secure.gravatar.com\/avatar\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g","caption":"Gergely Imreh"},"logo":{"@id":"https:\/\/secure.gravatar.com\/avatar\/1d5be311c5d616a3f4c7dfbc6b736ec817d2508b8c420ec29edb950d33fb4946?s=96&d=retro&r=g"},"description":"Physicist, hacker. Enjoys avant-guarde literature probably a bit too much. Open source advocate and contributor, both for software and hardware. Follow these posts on the Fediverse by @gergely@gergely.imreh.net","sameAs":["https:\/\/gergely.imreh.net\/","https:\/\/www.facebook.com\/gergely.imreh","https:\/\/www.instagram.com\/imrehg\/","https:\/\/www.linkedin.com\/in\/gergelyimreh\/","https:\/\/www.youtube.com\/@GergelyImreh"],"url":"https:\/\/gergely.imreh.net\/blog\/author\/gergely\/"}]}},"_links":{"self":[{"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/posts\/87","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/comments?post=87"}],"version-history":[{"count":49,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions"}],"predecessor-version":[{"id":129,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/posts\/87\/revisions\/129"}],"wp:attachment":[{"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/media?parent=87"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/categories?post=87"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/gergely.imreh.net\/blog\/wp-json\/wp\/v2\/tags?post=87"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}