当前位置:网站首页>慧通编程第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;
}
边栏推荐
- BP神经网络
- endian mode
- (树) 最近公共祖先(LCA)
- Pytest e-commerce project combat (on)
- Safety 20220712
- Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry
- Detailed explanation of TCP (3)
- els block to the right
- Database implements distributed locks
- IDEA常用快捷键与插件
猜你喜欢
Daily practice of LeetCode - 138. Copy a linked list with random pointers
Safety 20220712
postgresql 15源码浅析(5)—— pg_control
分布式系统架构需要解决的问题
Ambiguous method call.both
5. How does the SAP ABAP OData service support the $filter operation
LocalDate addition and subtraction operations and comparison size
安全20220712
A brief introduction to the CheckboxListTile component of the basic components of Flutter
识Flutter 基本组件之showTimePicker 方法
随机推荐
Safety 20220722
3.5 】 【 Cocos Creator slow operating system to stop all animations
The distance value between two arrays of LeetCode simple questions
[Swift]自定义点击APP图标弹出的快捷方式
【论文阅读】Mastering the game of Go with deep neural networks and tree search
STM32 problem collection
els 方块向左移动条件判断
TCP和UDP详解
Observer pattern
Good place to download jar packages
顺序表的实现
MultipartFile文件上传
MultipartFile file upload
SIP Protocol Standard and Implementation Mechanism
errno错误码及含义(中文)
安全20220712
Component pass value provide/inject
endian mode
$parent/$children 与 ref
Mysql 45 study notes (twenty-four) MYSQL master-slave consistency