|시간 제한||메모리 제한||제출||정답||맞은 사람||정답 비율|
|1 초||128 MB||0||0||0||0.000%|
An obscure computer science professor wants to become famous devel- oping a new programming language YACL (“Yet Another Constant Lan- guage”). This language is very simple; it only has four constructs:
A program in this language is a sequence of these constructs, one on each line, executed sequentially. The professor wants to keep the programs in this language simple, small, and fast. To achieve his goal, he adds the following constraints:
You were hired by the professor to write several sample programs, so that he can use them at various conferences to demonstrate his powerful new language. The professor will give you a few constants, and your task is to write programs to generate these constants, obeying the constraints above.
The input file may contain several instances of the problem. Each instance of the problem is just one line containing the numeric constant to be generated. All numbers are non-zero integers between −32768 and 32767. A line containing the integer zero terminates the input file.
For each instance of the problem, your program should print one line saying “Constant n”, where n is the constant for that instance, followed by the most efficient program to generate that constant, one instruction per line. Insert a blank line between each instance.
3 -5 1 7 0
Constant 3 C+1 DBL INCR Constant -5 C-1 DBL DBL INCR DBL INCR Constant 1 C+1 Constant 7 C+1 DBL INCR DBL INCR