当前位置:网站首页>慧通编程第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;
}
边栏推荐
猜你喜欢

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

$attrs/$listeners

识Flutter 基本组件之showTimePicker 方法

No qualifying bean of type 问题

C# remote debugging

数据库实现分布式锁

LocalDate加减操作及比较大小

安全20220712

Based on the local, linking the world | Schneider Electric "Industrial SI Alliance" joins hands with partners to go to the future industry

STM32 problem collection
随机推荐
(树) 最近公共祖先(LCA)
"DeepJIT: An End-To-End Deep Learning Framework for Just-In-Time Defect Prediction" paper notes
Component pass value provide/inject
[C language] General method of expression evaluation
WebSocket Session为null
Unity2D 自定义Scriptable Tiles的理解与使用(四)——开始着手构建一个基于Tile类的自定义tile(下)
C# remote debugging
els 方块向右移
Pytest e-commerce project combat (on)
[C language] General method for finding the sum of the greatest common factor and the least common multiple of two integers m and n, the classical solution
Redis 统计用户新增和留存
Point Cloud DBSCAN Clustering (MATLAB, not built-in function)
Redis实现分布式锁
LeetCode每日一练 —— OR36 链表的回文结构
Atomic operation CAS
安全20220722
What skills do I need to learn to move from manual testing to automated testing?
Redis implements distributed locks
原子操作 CAS
Safety 20220722