#P1597. 语句解析
语句解析
Description
A PASCAL code string of length not exceeding , containing only the three variables a, b, c and only assignment statements. The right-hand side of an assignment can only be a single-digit number or a variable. Each assignment statement has the format "[variable] := [variable or single-digit integer];". Unassigned variables have value . Output the values of a, b, c.
Input Format
A string of PASCAL code that conforms to the above constraints, using only variables a, b, c and only assignment statements, where the right-hand side is either a single-digit integer or a variable. Unassigned variables have value .
Output Format
Output the final values of a, b, c.
a:=3;b:=4;c:=5;
3 4 5
Hint
The length of the input PASCAL code does not exceed .
Translated by ChatGPT 5
京公网安备 11011102002149号