Up-upTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 1485 Accepted Submission(s): 420Problem DescriptionThe Up-up of a number a by a positive integer b, denoted by a↑↑b, is recursively
Light UpTime Limit: 1000MS Memory Limit: 65536KTotal Submissions: 737 Accepted: 285DescriptionLight Up is a puzzle set in a rectangular board divided in smaller squares. Some squares in the board are ``empty'' (white squares the figure below), some
D. Psychos in a Linetime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputThere are n psychos standing in a line. Each psycho is assigned a unique integer from 1 to n. At each step every psycho who has
Collect More JewelsTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 3545 Accepted Submission(s): 703Problem DescriptionIt is written in the Book of The Lady: After the Creation, the cruel god
EntropyTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 2962 Accepted Submission(s): 1121Problem DescriptionAn entropy encoder is a data encoding method that achieves lossless data compression by
Finding NemoTime Limit: 2000MS Memory Limit: 30000KTotal Submissions: 6767 Accepted: 1546DescriptionNemo is a naughty boy. One day he went into the deep sea all by himself. Unfortunately, he became lost and couldn't find his way home. Therefore, he
Girls and BoysTime Limit: 20000/10000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 5528 Accepted Submission(s): 2466Problem Descriptionthe second year of the university somebody started a study on the romantic
Alice and BobTime Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1796 Accepted Submission(s): 641Problem DescriptionAlice and Bob's game never ends. Today, they introduce a new game. In this
B. Continued Fractionstime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputA continued fraction of height n is a fraction of form . You are given two rational numbers, one is represented as and the
B. Strings of Powertime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputVolodya likes listening to heavy metal and (occasionally) reading. No wonder Volodya is especially interested in texts
題目連結:http://poj.org/problem?id=1768題目意思:給你n種命令,最多32個寄存器,問可能的最少的執行命令次數,使程式終止。解題思路:對於不能直接和間接影響JZ中的寄存器的寄存器的狀態可以是任意,因為他們每一步都是確定的,最終命令執行的次數與初始狀態無關。所以先找出直接和間接影響JZ中的寄存器的寄存器,由於命令最多隻有16個,所以除去STOP和JZ,最多隻有14個命令,影響的寄存器最多隻有16個。比如命令 AND a b