对话框回复「导航」获取精选文章
与非学堂
专注青少年信息技术教育,探讨少儿编程的教与学,交流技巧、分享资源。
一、题目(Seniors 16-19岁适用,Medium 中等级)
小海狸为折纸发明了一种编程语言,可以用于说明如何对齐直边进行折纸的步骤。其中有一个命令是fold:
e = fold(a, b)表示有下面第一张图中有a, b, c, d四条边的长方形纸,将纸的a边落到b边上,折成下面第二张图,产生一条新的直边e。
在第二张图的基础上,f=fold(a, e)表示将a边落到e边上,产生一条新的直边f。
在连续使用下面三条命令折纸后,原来的长方形纸片将变成什么样?(注意:图中的b是a的二倍长,并且在折纸过程中纸始终贴于桌面。)
e = fold(c, a)
f =fold(c, d)
g = fold(a, f)
二、原题
Paper Folding
(Age group: Seniors; Difficulty: medium; Category: ALG, INF)
The Beaver has developed a programming language for paper folding. This language can be used to explain how to fold any piece of paper with straight sides. One of the commands in this language is fold.
e = fold(a, b) means:
fold the piece of paper in a way that side a is lying completely on side b.
In that way you create a new side, the fold. This line is called e.
Example:
Please note, that the paper remains on the table during folding, and that the length of side b is twice the length of side a.
How does the paper rectangle (a, b, c, d) look like after the execution of these three commands?
e = fold(c, a); f = fold(c, d); g = fold(a, f)
Answer:
It's Informatics
Functions are an important concept in programming. A function call is considered to be the start of some activity. Programmers say: The function accepts some parameters (here: two sides), processes some data and returns an object (here: the fold). This is different from the concept of functions in mathematics.
该题答案请在公众号对话框中输入「0318」获取。
三、赛事介绍
Bebras国际计算性思维挑战活动
International Challenge on Informatics and Computational Thinking
Bebras是全球性的国际信息学与计算性思维主题活动,2004年由国际计算思维联盟发起,旨在培养青少年的计算性思维(Computational Thinking)。截止2021年4月,全球已有300万学生参与。
其题目有着浅显直白、简短易懂、贴近生活、生动有趣、富于启发意义、与具体编程环境无关等特点,是青少年训练、挑战计算性思维的绝佳示范。
考试分为六个年龄级别:
I group. Pre-Primary – Grade 1 and 2 (5-8 years old)
II group. Primary - Grade 3 and 4 (8-10 years old)
III group. Benjamins – Grade 5 and 6 (10-12 years old)
IV group. Cadets – Grade 7 and 8 (12-14 years old)
V group. Juniors – Grade 9 and 10 (14-16 years old)
VI group. Seniors – Grade 11 and 12(13) (16-19 years old)
官网地址:https://www.bebras.org
相关链接:
Bebras国际计算思维挑战赛解析-小学高年级~给苹果树浇水
Bebras国际计算思维挑战赛解析-Cadets级-Cloud of Castoria
Bebras挑战样题之一——小海狸的洗衣房生意
— OVER —
与非学堂
专注青少年信息技术教育,探讨少儿编程的教与学,交流技巧、分享资源。