{"trustable":true,"prependHtml":"\u003cstyle type\u003d\"text/css\"\u003e\n #problem-body \u003e pre {\n display: block;\n padding: 9.5px;\n margin: 0 0 10px;\n font-size: 13px;\n line-height: 1.42857143;\n word-break: break-all;\n word-wrap: break-word;\n color: #333;\n background: rgba(255, 255, 255, 0.5);\n border: 1px solid #ccc;\n border-radius: 6px;\n }\n\u003c/style\u003e\n","sections":[{"title":"","value":{"format":"HTML","content":"\u003cdiv id\u003d\"problem-body\"\u003e\n\t\u003cp\u003eThe\u0026nbsp;infamous Bytelandian Bit-eating Fanatic Organisation (BBFO for short)\u0026nbsp;plans to launch an \r\n\tall-out\u0026nbsp;denial-of-service attack on\u0026nbsp;the Bytelandian McDecimal\u0027s fast food \r\n\tnetwork by blocking the entrance to every restaurant with a camel (the \r\n\tpurpose being to rid\u0026nbsp;the Organisation\u0026nbsp;of unhealthy competition, \r\n\tobviously). In a sly and perfidious move, the head cryptographer \r\n\tof\u0026nbsp;BBFO\u0026nbsp;decided to\u0026nbsp;disclose the date and time of \r\n\tthe\u0026nbsp;planned attack to the management of McDecimal\u0027s, but in encrypted form \r\n\t(ha ha). He calculated the number of seconds from midnight 1970.01.01 GMT to \r\n\tthe moment of attack, squared it, divided it by 4000000007 and sent the \r\n\tremainder by e-mail to McDecimal\u0027s. This made the original date impossible to \r\n\tdecode.\u003c/p\u003e\r\n\u003cp\u003eOr did it?\u003c/p\u003e\r\n\u003cp align\u003d\"center\"\u003e*\u0026nbsp;\u0026nbsp; *\u0026nbsp;\u0026nbsp; *\u003c/p\u003e\r\n\u003cp\u003eYou work as the head algorithmist at McDecimal\u0027s HQ and know \r\n\tnothing of what is\u0026nbsp;happening in Byteland.\u0026nbsp;Things are not going well. You \r\n\tare\u0026nbsp;playing a quiet game of\u0026nbsp;hearts against your computer\u0026nbsp;and \r\n\twondering why\u0026nbsp;on earth Management are considering making you redundant. \r\n\tSuddenly, the CEO\u0026nbsp;bursts into your office, saying:\u003c/p\u003e\r\n\u003cp\u003e- Look here, young man[lady]! I have this number\u0026nbsp;and\u0026nbsp;those \r\n\tguys\u0026nbsp;claim it is supposed to be some date. I am giving you one second to \r\n\ttell me what it all means!\u003c/p\u003e\r\n\u003cp\u003eI am afraid you have no choice. You can\u0027t ask any further \r\n\tquestions.\u003c/p\u003e\r\n\u003cp\u003eYou just have to answer, now.\u003c/p\u003e\r\n\u003ch3\u003eInput\u003c/h3\u003e\r\n\u003cp\u003eThe encrypted timestamp.\u003c/p\u003e\r\n\u003ch3\u003eOutput\u003c/h3\u003e\r\n\u003cp\u003eThe decrypted\u0026nbsp;GMT time and date of attack, somewhere \r\n\tbetween 1970 and 2030,\u0026nbsp;using standard 26 character formatting.\r\n\u003c/p\u003e\r\n\u003ch3\u003eExample\u003c/h3\u003e\r\n\u003cdiv\u003e\u003ctable class\u003d\"vjudge_sample\"\u003e\n\u003cthead\u003e\n \u003ctr\u003e\n \u003cth\u003eInput\u003c/th\u003e\n \u003cth\u003eOutput\u003c/th\u003e\n \u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n \u003ctr\u003e\n \u003ctd\u003e\u003cpre\u003e1749870067\r\n\r\n\u003c/pre\u003e\u003c/td\u003e\n \u003ctd\u003e\u003cpre\u003eSun Jun 13 16:20:39 2004\u003c/pre\u003e\u003c/td\u003e\n \u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003c/div\u003e\r\n\r\n\n\u003c/div\u003e"}}]}