2025年中国区决赛(专属赛前模拟)
图形化小高组(第8题) [49👣/11📃]
解法:
(1)(Blockly):

(2)(Blockly):

(3)(python):
Dev.turnLeft()for i in range(3):Dev.step(-6)Dev.step(2)Dev.turnRight()Dev.step( (-1)**i *2)Dev.turnRight(Dev.step(2)Dev.step(-6)
图形化小高组(第13题) [42👣/12📃]
路线图:
解法(Blockly):

图形化小低组(第28题) [136👣/17📃]

解法(Blockly):

图形化小低组(第20题) [61👣/16📃]
解法(Blockly):

数差推导
(1)”2 5 7 9 5” 拆解:”(2 2)、(3 3)、(4 4)、(5 5)”
(2)”3 5 6 7 5” 拆解:” (3 2) 、 (3 3) 、(3 4)、 (3 5)”
(3)”4 7 5 2” 拆解:” (4 4) 、 (3 3) 、(2 2)”
(4)”8 15 13 6” 拆解:”(8 7)、(7 7)、(6 6)”
(5)”6 13 9 4” 拆解:”(6 6)、(5 5)、(4 4)”
(6)”2 4 5 6 5” 拆解:”(2 2)、(2 3)、(2 4)、(2 5)”
2025世界机器人大赛训练题
图形化小高组(第59题) [51👣/8📃]

解法(Blockly):

2026江北新区中小学生数字素养提升实践活动 —— 算法编程(ICode)专项赛练习题库
c++小学组(第60题) [66👣/8📃]

路线图:

解法(c++):
for(int i = 0; i < 10; i++) {Spaceship.step(2);Spaceship.turnRight();Spaceship.step(2);if (i == 4 || i == 6) {Spaceship.turnRight();Spaceship.step(2);}Spaceship.turnLeft();}
c++中学组(第79题) [75👣/14📃]

路线图:

2026 ICode赛事专属训练平台
c++小学组(第57题) [66👣/8📃]

路线图:

解法(c++):
for(int i = 0; i < 5; i++) {Spaceship.step(1);Dev.step(9-i*2);Dev.turnRight();}Spaceship.turnLeft();for(int i = 0; i < 4; i++) {Spaceship.turnLeft();Spaceship.step(8-i);}
c++小学组(第14题) [28👣/16📃]

路线图:

解法(c++):
Dev.step(4);Dev.step(-2);Spaceship.step(1);Spaceship.turnLeft();Spaceship.step(3);Spaceship.turnRight();Spaceship.step(1);Dev.step(1);Dev.step(-1);Spaceship.step(1);Spaceship.turnRight();Spaceship.step(3);Spaceship.turnLeft();Spaceship.step(1);Dev.step(2);Dev.step(-4);
c++小学组(第75题) [74👣/9📃]

路线图:

解法(c++):
for(int i = 0; i < 7; i++) {Dev.step(2);Dev.turnRight();Dev.step(Item[i*2].y-9);if (!Item[i*2+1].broken()) {Dev.step(Item[i*2+1].y-Dev.y);Dev.step(Item[i*2].y-Item[i*2+1].y);}Dev.step(9-Item[i*2].y);Dev.turnLeft();}
c++小学组(第80题) [59👣/14📃]

路线图:

解法(c++):
for(int i = 0; i < 7; i++) {Spaceship.step(1);Spaceship.turnRight();Spaceship.step(1);Dev.step(1);if(i == 1) {Dev.step(1);}Dev.turnRight();Spaceship.turnLeft();Dev.step(1);if(i == 4) {Dev.step(1);}Dev.turnLeft();}
c++小学组(第120题) [111👣/16📃]

路线图:

解法(c++):
for(int j = 0; j < 8; j++) {for(int i = 0; i < 8; i++) {if (Flyer[i].x == Item[j].x) {Flyer[i].step(Item[j].y-Flyer[i].y);}}if (j == 3) {Spaceship.step(1);}if (j > 2) {Dev.turnRight();Dev.step(Item[j].x-Dev.x);Dev.turnLeft();}else {Spaceship.step(Item[j].x-Dev.x);}Dev.step(Dev.y-Item[j].y);Dev.step(Item[j].y-11);}
优化
c++小学组(第120题) [111👣/16📃]
优化解法(c++):
for(int j = 0; j < 8; j++) {for(int i = 0; i < 8; i++) {if (Flyer[i].x == Item[j].x) {Flyer[i].step(Item[j].y-Flyer[i].y);}}if (j == 3) {Spaceship.step(1);}if (j > 2) {Dev.turnRight();Dev.step(Item[j].x-Dev.x);Dev.turnLeft();}else {Spaceship.step(Item[j].x-Dev.x);}Dev.step(Dev.y-Item[j].y);Dev.step(Item[j].y-11);}
c++小学组(第116题) [58👣/17📃]
优化解法(c++):
int func(int a) {Spaceship.step(a);Dev.turnLeft();Dev.step(3);Dev.turnRight();Dev.step(2);Spaceship.step(3);for(int i = 0; i < 3; i++) {Dev.turnLeft();Dev.step(i != 2 ? -1: 2);}}func(1)Spaceship.step(2);Spaceship.turnRight();func(0)Spaceship.turnRight();func(2)
c++小学组(第112题) [176👣/17📃]
优化解法(c++):
for(int i = 0; i < 4; i++) {for(; Flyer[3-i].disappear(); wait());Dev.step(8);Dev.turnRight();Dev.step(8);Dev.wait(9);for(int l = 0; l < 4; l++) {Dev.step(-2);Dev.turnLeft();for(; Flyer[3-i].disappear(); wait());Dev.step(-2);if (l == 3) {Dev.step(-1);}Dev.turnRight();}}
c++小学组(第80题) [59👣/14📃]
优化解法(c++):
for(int i = 0; i < 7; i++) {Spaceship.step(1);Spaceship.turnRight();Spaceship.step(1);Dev.step(1);if(i == 1) {Dev.step(1);}Dev.turnRight();Spaceship.turnLeft();Dev.step(1);if(i == 4) {Dev.step(1);}Dev.turnLeft();}
南京市校园科技节ICode专项赛
Python小学组(第14题) [50👣/8📃]

路线图:

解法(Python):
a = 1for i in range(5):Dev.step(2)Dev.turnRight()Dev.step((i+1)*a)Dev.step((i+1)*a*-1)Dev.turnLeft()a = a*-1
优化
Python小学组(第16题) [162👣/13📃]
优化解法(python):
for i in range(8):Dev.step(2)Dev.turnRight()Dev.step(Item[7-i].x-9)Dev.step(Item[15-i].x-Item[7-i].x)Dev.step(9-Item[15-i].x)Dev.turnLeft()
Python小学组(第14题) [50👣/8📃]
优化解法(python):
a = 1for i in range(5):Dev.step(2)Dev.turnRight()Dev.step((i+1)*a)Dev.step((i+1)*a*-1)Dev.turnLeft()a = a*-1
