# REPEAT 程序 附件 prog.txt 中是一个用某种语言写的程序。附件在本文的末尾。 其中 REPEAT k 表示一个次数为 k 的循环。循环控制的范围由缩进表达,从次行开始连续的缩进比该行多的(前面的空白更长的)为循环包含的内容。 ![](https://img-blog.csdnimg.cn/20210320200704647.png?x-oss-process=image/watermark,type_ZmFuZ3poZW5naGVpdGk,shadow_10,text_aHR0cHM6Ly9ibG9nLmNzZG4ubmV0L3FxXzM0MDEzMjQ3,size_16,color_FFFFFF,t_70) 该片段中从 A = A + 4 所在的行到 A = A + 8 所在的行都在第一行的循环两次中。 REPEAT 6: 所在的行到 A = A + 7 所在的行都在 REPEAT 5: 循环中。 A = A + 5 实际总共的循环次数是 2 × 5 × 6 = 60 次。 请问该程序执行完毕之后,A 的值是多少? 题目给出的 prog.txt 文件: ``` A = 0 REPEAT 2: A = A + 4 REPEAT 5: REPEAT 6: A = A + 5 A = A + 7 REPEAT 6: A = A + 7 REPEAT 4: A = A + 2 A = A + 7 A = A + 2 REPEAT 7: REPEAT 4: A = A + 8 A = A + 7 A = A + 4 A = A + 5 A = A + 8 REPEAT 8: A = A + 5 REPEAT 1: A = A + 2 REPEAT 7: A = A + 5 A = A + 5 REPEAT 2: REPEAT 3: A = A + 1 A = A + 1 REPEAT 5: A = A + 1 REPEAT 9: REPEAT 6: A = A + 5 A = A + 1 REPEAT 6: A = A + 2 A = A + 8 A = A + 3 REPEAT 2: A = A + 5 REPEAT 3: A = A + 9 REPEAT 1: A = A + 4 REPEAT 2: A = A + 9 REPEAT 1: A = A + 6 A = A + 6 A = A + 4 REPEAT 3: A = A + 7 A = A + 1 REPEAT 2: A = A + 3 REPEAT 5: A = A + 2 A = A + 5 A = A + 2 A = A + 4 A = A + 3 REPEAT 4: A = A + 4 A = A + 3 A = A + 7 REPEAT 5: REPEAT 4: A = A + 5 A = A + 7 REPEAT 5: A = A + 3 REPEAT 3: A = A + 3 A = A + 1 A = A + 8 A = A + 2 REPEAT 9: A = A + 5 REPEAT 1: A = A + 5 A = A + 2 A = A + 8 A = A + 6 REPEAT 3: REPEAT 4: A = A + 9 REPEAT 5: A = A + 2 A = A + 1 REPEAT 9: A = A + 9 A = A + 2 REPEAT 1: A = A + 6 A = A + 8 REPEAT 2: A = A + 9 A = A + 4 A = A + 7 REPEAT 2: REPEAT 7: A = A + 3 A = A + 5 REPEAT 3: A = A + 5 A = A + 3 A = A + 6 A = A + 4 REPEAT 9: A = A + 2 A = A + 8 A = A + 2 A = A + 3 REPEAT 2: REPEAT 8: A = A + 5 A = A + 1 A = A + 6 A = A + 1 A = A + 2 REPEAT 6: REPEAT 1: A = A + 3 REPEAT 1: A = A + 2 REPEAT 4: A = A + 7 A = A + 1 A = A + 8 REPEAT 6: A = A + 5 REPEAT 6: A = A + 3 REPEAT 2: A = A + 2 A = A + 9 A = A + 7 REPEAT 9: A = A + 8 REPEAT 9: A = A + 8 A = A + 9 A = A + 3 A = A + 2 REPEAT 6: A = A + 3 REPEAT 9: A = A + 1 A = A + 9 A = A + 5 REPEAT 2: A = A + 4 A = A + 9 A = A + 8 REPEAT 5: A = A + 6 A = A + 9 A = A + 1 REPEAT 1: A = A + 4 A = A + 2 REPEAT 9: REPEAT 3: A = A + 4 REPEAT 7: A = A + 8 A = A + 3 REPEAT 5: A = A + 9 REPEAT 8: A = A + 9 A = A + 8 REPEAT 4: A = A + 7 A = A + 7 A = A + 3 A = A + 5 REPEAT 6: A = A + 7 REPEAT 7: A = A + 2 A = A + 2 A = A + 1 REPEAT 8: REPEAT 1: REPEAT 4: A = A + 6 A = A + 6 A = A + 2 REPEAT 5: A = A + 4 A = A + 8 A = A + 4 REPEAT 1: A = A + 5 REPEAT 7: A = A + 8 REPEAT 6: A = A + 4 A = A + 4 A = A + 8 REPEAT 4: A = A + 2 REPEAT 2: A = A + 4 REPEAT 2: A = A + 3 REPEAT 1: A = A + 2 A = A + 8 REPEAT 2: A = A + 7 REPEAT 8: A = A + 6 A = A + 1 A = A + 7 REPEAT 8: A = A + 2 REPEAT 8: REPEAT 6: A = A + 1 A = A + 6 REPEAT 2: A = A + 4 A = A + 1 A = A + 7 A = A + 4 REPEAT 4: REPEAT 9: A = A + 2 REPEAT 1: A = A + 2 A = A + 5 REPEAT 8: REPEAT 6: A = A + 3 REPEAT 4: A = A + 1 A = A + 6 A = A + 1 REPEAT 7: A = A + 7 REPEAT 7: A = A + 3 A = A + 9 A = A + 1 A = A + 9 REPEAT 3: A = A + 5 A = A + 5 A = A + 6 A = A + 2 REPEAT 1: A = A + 4 REPEAT 2: A = A + 7 REPEAT 1: A = A + 7 REPEAT 4: A = A + 7 A = A + 2 REPEAT 5: A = A + 9 A = A + 1 A = A + 9 A = A + 5 A = A + 9 REPEAT 5: A = A + 5 REPEAT 1: A = A + 6 REPEAT 2: A = A + 3 A = A + 2 A = A + 6 A = A + 8 A = A + 8 A = A + 7 A = A + 5 A = A + 5 REPEAT 2: A = A + 1 A = A + 7 A = A + 3 REPEAT 2: A = A + 7 A = A + 1 A = A + 4 REPEAT 1: REPEAT 7: REPEAT 2: A = A + 3 A = A + 5 A = A + 2 A = A + 6 A = A + 1 A = A + 2 A = A + 4 A = A + 9 REPEAT 1: A = A + 8 REPEAT 8: REPEAT 4: REPEAT 8: A = A + 4 REPEAT 3: A = A + 1 A = A + 8 REPEAT 7: A = A + 8 REPEAT 7: A = A + 7 A = A + 7 REPEAT 7: A = A + 6 REPEAT 5: A = A + 9 A = A + 3 REPEAT 4: A = A + 5 A = A + 5 A = A + 4 REPEAT 9: REPEAT 3: A = A + 4 A = A + 3 A = A + 6 REPEAT 1: A = A + 3 A = A + 3 A = A + 6 REPEAT 6: A = A + 7 A = A + 7 A = A + 5 A = A + 5 A = A + 1 A = A + 2 A = A + 6 A = A + 6 REPEAT 9: A = A + 6 REPEAT 1: REPEAT 2: A = A + 4 A = A + 7 REPEAT 3: A = A + 6 REPEAT 5: A = A + 3 A = A + 6 REPEAT 9: A = A + 3 A = A + 6 REPEAT 5: A = A + 8 A = A + 8 REPEAT 3: A = A + 7 A = A + 9 A = A + 8 A = A + 3 A = A + 3 A = A + 9 REPEAT 6: A = A + 9 A = A + 1 REPEAT 4: REPEAT 1: A = A + 7 REPEAT 9: A = A + 2 A = A + 9 A = A + 1 A = A + 2 A = A + 8 A = A + 7 A = A + 9 A = A + 6 REPEAT 4: REPEAT 2: A = A + 3 REPEAT 3: A = A + 4 A = A + 4 REPEAT 6: A = A + 6 A = A + 1 A = A + 5 A = A + 8 REPEAT 2: A = A + 6 REPEAT 1: REPEAT 2: A = A + 2 REPEAT 3: A = A + 1 REPEAT 1: A = A + 8 A = A + 7 A = A + 4 A = A + 2 A = A + 8 A = A + 4 REPEAT 5: REPEAT 6: A = A + 8 REPEAT 9: A = A + 5 A = A + 5 REPEAT 5: A = A + 5 REPEAT 3: REPEAT 5: A = A + 4 REPEAT 4: A = A + 6 A = A + 3 REPEAT 7: A = A + 3 A = A + 3 A = A + 1 A = A + 7 A = A + 7 A = A + 6 A = A + 5 A = A + 5 A = A + 6 REPEAT 1: A = A + 9 A = A + 3 REPEAT 1: REPEAT 1: A = A + 1 REPEAT 8: A = A + 5 REPEAT 8: A = A + 6 REPEAT 4: A = A + 9 A = A + 4 REPEAT 2: A = A + 3 A = A + 7 REPEAT 5: A = A + 7 A = A + 5 A = A + 8 A = A + 7 A = A + 8 A = A + 5 REPEAT 2: A = A + 5 A = A + 7 A = A + 8 A = A + 5 A = A + 9 REPEAT 2: REPEAT 6: A = A + 9 A = A + 1 A = A + 8 A = A + 7 A = A + 1 A = A + 5 REPEAT 3: A = A + 3 A = A + 9 A = A + 7 REPEAT 3: A = A + 9 A = A + 1 REPEAT 6: A = A + 1 REPEAT 9: REPEAT 7: A = A + 3 REPEAT 5: A = A + 5 A = A + 8 A = A + 8 A = A + 1 A = A + 2 REPEAT 4: A = A + 6 REPEAT 3: A = A + 3 A = A + 7 REPEAT 8: REPEAT 1: A = A + 7 A = A + 8 A = A + 3 A = A + 1 A = A + 2 A = A + 4 A = A + 7 REPEAT 1: REPEAT 1: REPEAT 1: A = A + 4 A = A + 6 REPEAT 1: A = A + 3 A = A + 9 A = A + 6 REPEAT 9: A = A + 1 A = A + 6 REPEAT 5: A = A + 3 A = A + 9 A = A + 5 A = A + 5 A = A + 7 A = A + 2 REPEAT 2: A = A + 7 A = A + 7 REPEAT 7: REPEAT 4: A = A + 6 A = A + 8 REPEAT 6: A = A + 6 REPEAT 2: A = A + 1 A = A + 7 A = A + 6 A = A + 7 REPEAT 4: REPEAT 7: A = A + 1 REPEAT 2: A = A + 2 A = A + 5 A = A + 8 A = A + 2 A = A + 1 A = A + 4 REPEAT 8: A = A + 5 A = A + 6 REPEAT 7: REPEAT 6: REPEAT 9: A = A + 7 A = A + 8 REPEAT 4: A = A + 6 A = A + 4 A = A + 3 A = A + 6 REPEAT 9: A = A + 3 REPEAT 9: A = A + 2 A = A + 7 A = A + 5 A = A + 2 REPEAT 7: REPEAT 8: REPEAT 6: A = A + 4 A = A + 9 A = A + 5 A = A + 3 A = A + 9 REPEAT 4: REPEAT 1: A = A + 6 A = A + 8 REPEAT 1: A = A + 6 A = A + 4 A = A + 6 REPEAT 3: A = A + 7 REPEAT 3: A = A + 4 A = A + 4 A = A + 2 A = A + 3 A = A + 7 REPEAT 5: A = A + 6 A = A + 5 REPEAT 1: REPEAT 8: A = A + 5 REPEAT 3: A = A + 6 REPEAT 9: A = A + 4 A = A + 3 REPEAT 6: REPEAT 2: A = A + 1 A = A + 5 A = A + 2 A = A + 2 A = A + 7 REPEAT 4: A = A + 7 A = A + 9 A = A + 2 REPEAT 8: A = A + 9 REPEAT 9: REPEAT 2: A = A + 3 A = A + 2 A = A + 1 A = A + 5 REPEAT 9: A = A + 1 A = A + 3 A = A + 9 REPEAT 7: A = A + 2 REPEAT 5: A = A + 9 A = A + 3 REPEAT 2: A = A + 4 REPEAT 8: A = A + 9 REPEAT 5: A = A + 5 A = A + 4 A = A + 2 A = A + 4 REPEAT 6: A = A + 2 REPEAT 5: A = A + 7 A = A + 7 A = A + 8 A = A + 3 REPEAT 8: A = A + 2 A = A + 5 REPEAT 1: A = A + 8 A = A + 5 A = A + 1 A = A + 1 A = A + 5 REPEAT 2: A = A + 6 REPEAT 6: A = A + 9 A = A + 2 A = A + 5 REPEAT 4: A = A + 7 A = A + 1 REPEAT 6: A = A + 8 A = A + 4 REPEAT 3: REPEAT 2: A = A + 1 A = A + 5 REPEAT 2: A = A + 7 REPEAT 9: A = A + 6 A = A + 8 A = A + 9 A = A + 5 REPEAT 9: REPEAT 3: A = A + 7 A = A + 7 A = A + 9 A = A + 7 REPEAT 5: A = A + 7 A = A + 2 A = A + 1 A = A + 8 A = A + 3 A = A + 5 A = A + 1 REPEAT 8: A = A + 4 A = A + 2 A = A + 2 A = A + 8 REPEAT 4: REPEAT 4: A = A + 8 REPEAT 7: A = A + 5 A = A + 2 REPEAT 2: A = A + 6 REPEAT 4: A = A + 8 A = A + 6 A = A + 1 A = A + 3 A = A + 2 A = A + 7 A = A + 4 REPEAT 8: A = A + 2 A = A + 4 REPEAT 5: REPEAT 3: REPEAT 6: A = A + 8 A = A + 1 A = A + 6 A = A + 5 A = A + 9 REPEAT 8: A = A + 7 REPEAT 6: A = A + 4 A = A + 5 REPEAT 3: A = A + 1 REPEAT 1: REPEAT 5: A = A + 6 A = A + 2 REPEAT 9: REPEAT 5: A = A + 9 A = A + 3 REPEAT 9: A = A + 9 A = A + 8 REPEAT 8: REPEAT 5: A = A + 9 A = A + 4 REPEAT 9: A = A + 3 A = A + 4 A = A + 5 REPEAT 9: REPEAT 7: A = A + 5 REPEAT 3: A = A + 7 REPEAT 9: REPEAT 6: A = A + 4 A = A + 6 REPEAT 5: REPEAT 6: A = A + 5 A = A + 3 A = A + 3 A = A + 3 A = A + 5 REPEAT 7: A = A + 5 REPEAT 2: A = A + 5 A = A + 6 REPEAT 2: A = A + 2 A = A + 5 A = A + 3 A = A + 5 A = A + 5 REPEAT 4: A = A + 2 A = A + 1 REPEAT 9: A = A + 9 A = A + 5 A = A + 6 A = A + 2 A = A + 2 A = A + 5 REPEAT 9: A = A + 5 A = A + 4 REPEAT 4: REPEAT 4: A = A + 1 A = A + 2 REPEAT 6: A = A + 9 A = A + 3 REPEAT 2: A = A + 5 A = A + 1 A = A + 1 A = A + 3 A = A + 8 REPEAT 7: A = A + 4 REPEAT 6: A = A + 9 REPEAT 5: A = A + 9 A = A + 8 A = A + 3 A = A + 9 A = A + 4 A = A + 6 REPEAT 7: A = A + 9 REPEAT 9: A = A + 4 A = A + 9 A = A + 1 A = A + 3 REPEAT 5: REPEAT 1: A = A + 4 A = A + 4 REPEAT 8: A = A + 9 A = A + 6 A = A + 2 REPEAT 3: A = A + 4 A = A + 4 REPEAT 3: A = A + 5 A = A + 2 A = A + 8 A = A + 3 A = A + 6 A = A + 4 A = A + 9 A = A + 1 A = A + 9 A = A + 5 A = A + 3 REPEAT 3: A = A + 2 A = A + 5 A = A + 8 A = A + 2 A = A + 5 REPEAT 8: REPEAT 2: A = A + 6 A = A + 7 A = A + 6 A = A + 9 A = A + 2 REPEAT 2: A = A + 3 REPEAT 8: A = A + 7 A = A + 2 A = A + 1 A = A + 4 A = A + 1 A = A + 5 A = A + 2 A = A + 1 REPEAT 1: A = A + 1 REPEAT 6: A = A + 4 A = A + 3 A = A + 3 REPEAT 5: A = A + 3 REPEAT 6: REPEAT 1: A = A + 5 A = A + 7 A = A + 7 A = A + 7 REPEAT 5: A = A + 9 A = A + 7 REPEAT 5: A = A + 9 A = A + 1 A = A + 9 A = A + 8 REPEAT 1: A = A + 2 REPEAT 5: A = A + 8 REPEAT 3: A = A + 2 A = A + 9 A = A + 6 A = A + 3 REPEAT 5: REPEAT 6: A = A + 5 A = A + 5 REPEAT 4: A = A + 5 A = A + 4 REPEAT 8: A = A + 9 A = A + 1 REPEAT 8: A = A + 8 A = A + 1 A = A + 4 REPEAT 6: A = A + 6 REPEAT 2: A = A + 3 A = A + 9 A = A + 6 A = A + 9 REPEAT 1: A = A + 4 REPEAT 3: A = A + 3 A = A + 4 A = A + 2 A = A + 8 REPEAT 2: A = A + 4 A = A + 1 REPEAT 9: A = A + 2 A = A + 9 A = A + 7 REPEAT 7: REPEAT 7: REPEAT 5: A = A + 7 REPEAT 5: A = A + 1 A = A + 1 REPEAT 5: A = A + 6 REPEAT 1: A = A + 4 REPEAT 9: A = A + 4 A = A + 1 REPEAT 6: A = A + 8 A = A + 5 REPEAT 1: A = A + 4 REPEAT 5: A = A + 8 A = A + 7 A = A + 2 REPEAT 3: A = A + 3 REPEAT 8: REPEAT 8: A = A + 4 A = A + 7 REPEAT 5: A = A + 1 REPEAT 8: A = A + 7 A = A + 8 A = A + 4 A = A + 7 A = A + 6 A = A + 9 A = A + 5 REPEAT 3: A = A + 5 REPEAT 9: A = A + 1 A = A + 7 REPEAT 1: A = A + 8 A = A + 4 REPEAT 8: REPEAT 7: A = A + 2 REPEAT 4: A = A + 6 A = A + 6 REPEAT 1: A = A + 7 A = A + 1 REPEAT 9: REPEAT 5: A = A + 6 A = A + 5 REPEAT 7: A = A + 3 A = A + 6 A = A + 8 REPEAT 2: A = A + 7 A = A + 1 A = A + 9 REPEAT 3: REPEAT 3: A = A + 5 ``` ## 答案 ```c 403 ``` ## 选项 ### A ```c 400 ``` ### B ```c 401 ``` ### C ```c 402 ```