#P10400. 『STA - R5』消失的计算机
『STA - R5』消失的计算机
Problem Description
This is an output-only problem.
The judge has a positive integer (you do not know the exact value of ).
You have variables . Initially, , and .
You need to write a program to complete some tasks. Your program may use the following statements:
new x: set , and .dec x: set .assign x y: set .iftry x goto l: if , jump to statement .ifeq x y goto l: if , jump to statement .ifneq x y goto l: if , jump to statement .
For the last three statements, if the current statement is statement , then it is required that .
You may not use more than statements, and you may not use variables with indices greater than . The actual number of executed statements of your program may not exceed .
Let the value of before running the program be the input, and the value of after running the program be the output. You need to complete the following tasks:
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output .
- Input , output a positive integer such that .
Note: The subtasks are sorted by length, and this is unrelated to difficulty.
Input Format
This is an output-only problem. For each test point, the corresponding task can be found in the "Description".
Output Format
For the given tasks, you need to submit your output files 1.out to 10.out separately.
Each file should output several lines.
The first line contains a non-negative integer , representing the number of statements you use.
The next lines each contain one statement.
Hint
Scoring
For each test point, several groups of testdata will be evaluated.
If your output has any of the following issues, then you will get points for that test point:
- The output does not meet the requirement.
- The actual number of executed statements is greater than .
- There are unrecognizable or invalid statements.
- More than statements are used, or variables with indices greater than are used.
Otherwise, let the scoring baseline for the corresponding subtask be . Then your score is:
$$\mathrm{score}=\begin{cases}11&L_0>L\\\Big\lfloor\frac{10}{\exp\left(1-\frac {L_0}L\right)}\Big\rfloor&\text{otherwise.}\end{cases}$$The scoring baselines for each task are given below:
| ID | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
Constraints
It is guaranteed that .
Translated by ChatGPT 5