当前位置:网站首页>慧通编程第4关 - 魔法学院第6课
慧通编程第4关 - 魔法学院第6课
2022-07-31 03:34:00 【中学生信竞】
梳子
int main(){
p.size(8).c(6);
for (int i = 1; i <= 6; i ++) {
p.fd(40).rt(90);
p.fd(40).rt(90);
p.fd(40).rt(180);
}
return 0;
}
锯齿
int main(){
for (int i = 1; i <= 7; i ++) {
p.rt(30).fd(30);
p.rt(120).fd(30);
p.lt(150);
}
return 0;
}
楼梯型
int main(){
p.c(11);
for (int i = 1; i <= 5; i ++) {
for (int j = 1; j <= 6; j ++) {
p.fd(30).rt(90);
}
p.lt(180);
}
return 0;
}
楼梯
int main(){
for (int i = 1; i <= 10; i ++) {
p.fd(20).rt(90);
p.fd(20).lt(90);
}
return 0;
}
实心矩形
int main(){
p.rr(100,80,14);
return 0;
}
2层实心矩形
int main(){
p.rr(100,80,14);
p.rr(80,50,0);
return 0;
}
6针形
int main(){
for (int i = 1; i <= 6; i ++) {
p.fd(100).bk(100).rt(60);
}
return 0;
}
彩色15针形
int main(){
pen.hide();
for (int i = 0; i < 15; i ++) {
pen.c(i);
pen.fd(100).bk(100) ;
pen.rt(360.0 / 15) ;
}
return 0;
}
4色30针形
int n = 30;
pen.size(5).hide();
for (int i = 0; i < n; i ++) {
pen.c(i % 4);
pen.fd(100).bk(100) ;
pen.rt(360.0 / n) ;
}
彩色环形
int main(){
int n = 10;
pen.size(8).hide();
for (int i = 0; i < n; i ++) {
pen.c(i);
pen.fd(50) ;
pen.rt(360.0 / n) ;
}
return 0;
}
边栏推荐
- Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
- 进程间通信
- errno错误码及含义(中文)
- 《DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction》论文笔记
- STM32 problem collection
- Ambiguous method call.both
- RESTful api接口设计规范
- The BP neural network
- Mysql 45 study notes (twenty-four) MYSQL master-slave consistency
- Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
猜你喜欢

LeetCode每日一练 —— 138. 复制带随机指针的链表

How Zotero removes auto-generated tags

type_traits元编程库学习

想从手工测试转岗自动化测试,需要学习哪些技能?

Database implements distributed locks

Daily practice of LeetCode - palindrome structure of OR36 linked list

TCP详解(一)

Detailed explanation of TCP (3)

Several common errors when using MP

从滴滴罚款后数据治理思考
随机推荐
CloudCompare&PCL 计算两个点云之间的重叠度
浅识Flutter 基本组件之CheckboxListTile组件
【CocosCreator 3.5】CocosCreator get network status
errno error code and meaning (Chinese)
WebSocket Session is null
组件传值 provide/inject
Understanding and Using Unity2D Custom Scriptable Tiles (4) - Start to build a custom tile based on the Tile class (below)
分布式系统架构需要解决的问题
IIR filter and FIR filter
3.5 】 【 Cocos Creator slow operating system to stop all animations
Annotation usage meaning
How Zotero removes auto-generated tags
日志级别 和 打印log注意
Port inspection steps - 7680 port analysis - Dosvc service
从滴滴罚款后数据治理思考
大小端模式
some of my own thoughts
一份高质量的测试用例如何养成?
【AUTOSAR-RTE】-4-Port和Interface以及Data Type
Redis实现分布式锁