• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>

            ArcTan

            dfs
            隨筆 - 16, 文章 - 117, 評(píng)論 - 6, 引用 - 0
            數(shù)據(jù)加載中……

            CF:April Fools Day Contest(20120401)

            171A - Mysterious numbers - 1

            The easiest way to make the problem statement unusual is to omit it. This is an extremely convenient approach — you don’t have to maintain the statement in two languages or to worry that it might turn out to be ambiguous or too long or too scary. 690 people solved this problem, so evidently we can omit statements even in regular rounds :-)

            As for the problem itself, it required to sum the first number and the reverse of the second number.

            171B - A star

            They say it’s better to see once than to hear ten times or to read a hundred times. In this problem we decided to check this and to replace the traditional textual statement with a single image. Same as in the previous problem, it did well — at least 645 participants recognized star numbers (sequence http://oeis.org/A003154 in OEIS), the numbers of balls needed to form a six-pointed start of certain size. After this one had only to code the formula — Sn = 6n(n−1) + 1.

            171D - Broken checker

            What does one do if the statement is unknown and the only source of information about the problem is the checker? Right — you just try all possible functions which convert 5 input values into 3 output values and see which of them fits :-)

            171F - ucyhf

            This problem finally has a statement! The trick is, it’s encoded. We decided to be kind to you and to use the simplest cipher possible — Caesar cipher (each letter is shifted the same number of positions in the alphabet). By a long stretch of imagination one could break the cipher by hand — observe frequent letters and short words, deduce possible values of shift and verify it against the rest of the message. A lazier one could Goog

            le for a tool like this one and get the decoded version semi-automatically.

            After cracking the statement the rest was almost easy — you had to find a prime whose reverse is a prime different from the original one (sequence http://oeis.org/A006567). 11184-th such number equals 999983, so one could do a brute-force check of all numbers in row.

            171E - UNKNOWN LANGUAGE

            A special contest written by me and no special programming language? Impossible! I pulled myself up and made only 25% of all problems esoteric — that’s two. There really should be three but the third interpreter refused to cooperate. Maybe next time…

            What can one do if all he knows about the language is its compiler? Just run any code and see what the compiler says. In this case the compiler said “DO YOU EXPECT ME TO FIGURE THIS OUT?”, and Google should tell you immediately that the language in question is INTERCAL. The problem simplifies to figure out the dialect used and how to output “INTERCAL” in it.

            In Codeforces round #96 I gave a problem 133C - Turing Tape which explained the mechanism of string output in INTERCAL and asked to write a program which converted a string into an array of numbers which would print this string. Combine this knowledge with Hello, World! example and you get the program you need. Actually, that’s what I did to write the reference solution.

            PLEASE DO ,1 <- #8 DO ,1 SUB #1 <- #110 PLEASE DO ,1 SUB #2 <- #32 DO ,1 SUB #3 <- #72 DO ,1 SUB #4 <- #136 DO ,1 SUB #5 <- #88 DO ,1 SUB #6 <- #136 DO ,1 SUB #7 <- #64 DO ,1 SUB #8 <- #80 PLEASE READ OUT ,1 PLEASE GIVE UP

            171C - A Piece of Cake

            The second esoteric problem had a Chef program as the statement. You had only to figure out what it does and do it in any regular language. It turns out that this program reads N followed by N numbers $a_1, a_2, …, a_N$ and calculated the sum i * ai.

            171G - Mysterious numbers - 2

            This one was much harder to guess but much easier to code. First two numbers were the start of a Fibonacci-like sequence, and the third one was the index of the required number in this sequence.



            第一次做CF,看來(lái)是沒有選好時(shí)間啊,呵呵,April Fools Day,把我娛樂(lè)愚了。
            群主說(shuō)這是個(gè)智慧的比賽,我承認(rèn),自己智商不行不行~~~~
            A:
            B:
            C:
            D:
            G:

            E和F表示不會(huì)啊,再研究研究吧。弱爆了~~~~

            群主確實(shí)很厲害呀,看來(lái)今年又果斷會(huì)被虐了。

            想象力不行呀,

            posted on 2012-04-02 11:27 wangs 閱讀(283) 評(píng)論(0)  編輯 收藏 引用 所屬分類: ACM-字符串ACM-模擬

            久久久无码精品亚洲日韩按摩 | 99久久国产免费福利| 久久精品国产99久久久古代| 一级A毛片免费观看久久精品| 一本久久综合亚洲鲁鲁五月天亚洲欧美一区二区| 女同久久| 欧美va久久久噜噜噜久久| 91精品国产色综合久久| 亚洲欧美精品伊人久久| 亚洲午夜福利精品久久| 国内精品久久久久影院日本| 狠狠色丁香婷婷综合久久来来去| 色综合久久久久综合99| 精品久久人妻av中文字幕| 久久精品国产只有精品66| 亚洲午夜久久久久久久久电影网 | 久久伊人精品一区二区三区| 伊人久久大香线蕉综合5g| 国内精品久久久人妻中文字幕| 久久久久久一区国产精品| 久久夜色精品国产噜噜麻豆| 久久久久久久久久久免费精品| 亚洲国产精品无码久久SM| 久久精品夜色噜噜亚洲A∨| 91久久精品91久久性色| 亚洲精品NV久久久久久久久久| 青青草国产精品久久| 乱亲女H秽乱长久久久| 热久久视久久精品18| 久久免费大片| 久久精品无码一区二区app| 国产精品久久亚洲不卡动漫| 久久人做人爽一区二区三区| 香蕉99久久国产综合精品宅男自| 亚洲一区中文字幕久久| 精品国产一区二区三区久久久狼| 久久AV高潮AV无码AV| 久久久这里有精品| 久久人做人爽一区二区三区| 久久无码AV中文出轨人妻| 无码任你躁久久久久久|