<body><script type="text/javascript"> function setAttributeOnload(object, attribute, val) { if(window.addEventListener) { window.addEventListener('load', function(){ object[attribute] = val; }, false); } else { window.attachEvent('onload', function(){ object[attribute] = val; }); } } </script> <div id="navbar-iframe-container"></div> <script type="text/javascript" src="https://apis.google.com/js/platform.js"></script> <script type="text/javascript"> gapi.load("gapi.iframes:gapi.iframes.style.bubble", function() { if (gapi.iframes && gapi.iframes.getContext) { gapi.iframes.getContext().openChild({ url: 'https://www.blogger.com/navbar.g?targetBlogID\x3d11927830\x26blogName\x3dLazy+Desis+are+still+lazy!\x26publishMode\x3dPUBLISH_MODE_BLOGSPOT\x26navbarType\x3dBLACK\x26layoutType\x3dCLASSIC\x26searchRoot\x3dhttps://lazydesi.blogspot.com/search\x26blogLocale\x3den_US\x26v\x3d2\x26homepageUrl\x3dhttp://lazydesi.blogspot.com/\x26vt\x3d-840655987791712217', where: document.getElementById("navbar-iframe-container"), id: "navbar-iframe", messageHandlersFilter: gapi.iframes.CROSS_ORIGIN_IFRAMES_FILTER, messageHandlers: { 'blogger-ping': function() {} } }); } }); </script>
blah

Laziness is nothing more than the habit of resting before you get tired. - Jules Renard 

Friday, June 10, 2005

Norwegian Informatics Olympiad

One day, little Toby decided to visit RIM (Research Institute of Mathematics). As he knocked on one of the doors, he found a scatterbrained mathematician who was mumbling for himself something like: "100110 is 1*(-2)^5 + 0*(-2)^4 + 0*(-2)^3 + 1*(-2)^2 + 1*(-2)^1 + 0*(-2)^0, i.e. -30". Suddenly the mathematician noticed Toby, got very scared, ran away, and locked himself in the hydrant. read on

Interesting small programming challenges like the one above and their solutions are available at the Norwegian Informatics Olympiad website.

[Via Jan's diary]


Post a Comment

© Ramki 2005 - Powered by Blogger Templates