C
C
B
B
B a=a%(a+b)
B
B
C
A
A
B
C
C
B
C
D
C
C
C
A. import turtle
C
B
B
D
C
A
对
错
错
对
对
对
对
对
错
错
# 读取输入
total_seconds = int(input())
# 计算小时、分钟和秒
hours = total_seconds // 3600
remaining_seconds = total_seconds % 3600
minutes = remaining_seconds // 60
seconds = remaining_seconds % 60
# 输出结果
print(hours, minutes, seconds)
import turtle
# 初始化turtle
t = turtle.Turtle()
# 设置画笔速度为1
t.speed(1)
# 设置线条颜色为黑色
t.pencolor("black")
# 画第一个三角形(左上,黄色)
t.fillcolor("yellow")
t.begin_fill()
t.forward(180) # 画第一条边
t.left(90)
t.forward(180) # 画第二条边
t.left(135)
t.forward(180 * (2 ** 0.5)) # 画斜边
t.end_fill()
# 重置位置和方向
t.penup()
t.goto(0, 0)
t.pendown()
t.setheading(90) # 设置画笔方向向右
# 画第二个三角形(右下,红色)
t.fillcolor("red")
t.begin_fill()
t.forward(180) # 画第一条边
t.right(90)
t.forward(180) # 画第二条边
t.right(135)
t.forward(180 * (2 ** 0.5)) # 画斜边
t.end_fill()
# 隐藏并停止画笔
t.hideturtle()
# 停止程序
turtle.done()