STAGE 4 · Lv.3/3 B04-03|数组:下标・最大位置・计数
⏱️ 0s
①先看问什么 → ②找输出变量 → ③找改变它的代码 → ④3秒识别 → ⑤最小草稿 → ⑥只追踪必要部分
A ← [15, 3, 8, 13, 1]t ← 3count ← 0for i ← 1 to 5 if A[i] >= t count ← count + 1 endifendfor先自己做。需要时再播放动画;考试时目标是逐渐不用它。
A ← [15, 3, 8, 13, 1]t ← 3count ← 0for i ← 1 to 5 if A[i] >= t count ← count + 1 endifendfor