当前位置:网站首页>Huitong programming level 5 - Magic School Lesson 7
Huitong programming level 5 - Magic School Lesson 7
2022-07-22 15:12:00 【Middle school student Xinjing】
Regular octagon
int main() {
int n = 8;
for (int i = 0; i < n; i ++) {
p.fd(50);
p.rt(360.0 / 8);
}
return 0;
}
Octagonal flowers
int main() {
int n = 8;
p.c(3);
for (int i = 0; i < n; i ++) {
for (int j = 0; j < 3; j ++) {
p.fd(50).lt(360.0 / 3);
}
p.fd(50);
p.rt(360.0 / n);
}
return 0;
}
Hollow cross
int main() {
p.c(14);
for (int i = 0; i < 4; i ++) {
for (int j = 0; j < 3; j ++) {
p.fd(50).rt(90);
}
p.rt(180);
}
return 0;
}
边栏推荐
猜你喜欢
分布式链路追踪-skywalking实战
网络层协议 -------- IP
《PyTorch深度學習實踐》-1-Overview
How to solve the "last mile of delivery" of community group purchase
JVM (一) --------- JVM 简介
How to prolong the working life of slip ring
1. Openpyxl open workbook
PMP备考指南之相关事项介绍
[attack and defense world web] difficulty 2-star 6-point introductory question (Part 1): webshell, command_ execution、xff_ referer、php_ rce、Web_ php_ include、NewsCenter
硅谷课堂笔记(下)
随机推荐
2022-07-15 mysql/stone子查询内存拷贝分析及优化
Y73. Chapter IV Prometheus big factory monitoring system and actual combat -- blackbox exporter installation and grafana installation (IV)
2022-07-18 subquery - optimize the processing of the join query optimizer in the exists scenario
pmp考试如何复习
再见Attention:建模用户长期兴趣的新范式
NAT技术
Goodbye attention: a new paradigm for modeling users' long-term interests
AOSP ~ camera - rk hal3 (II)
腾讯云部署DevOps
109. Ordered linked list transformation binary search tree ●●
Leetcode 202. happy number (2022.07.21)
AI首席架构师11-“3D+AI”在智慧体育的应用与拓展
Hcia-r & s self use notes (16) DR and BDR, OSPF metrics, OSPF configuration, OSPF comprehensive experiment (authentication + default route release)
滑环工作寿命如何延长
你可知道“开源女王”是谁吗?--她面临被解雇的威胁,仍然坚持开源了某个著名项目
2022-07-18 子查詢-優化exists場景的join查詢優化器的處理
2022-07-20 MySQL hashjoin description
让安全动起来 | 甭管什么行业网络架构,这六招拿下靶标
Excel文件解析
某东分析样本