摘要: from itertools import permutations n1 = input("") n2 = input("") n3 = input("") n4 = input("") n = n1+n2+n3+n4 sum = 1 for i in n: sum *= eval(i) if s 阅读全文
posted @ 2020-03-28 22:20 liuchun玲 阅读(134) 评论(0) 推荐(0) 编辑
摘要: n=eval(input()) for k in range(n): a=eval(input()) if a%2!=0: min=max=0 else: j=a/4 i=a%4/2 min=i+j max=a/2 print("%d %d"%(min,max)) 阅读全文
posted @ 2020-03-28 22:19 liuchun玲 阅读(89) 评论(0) 推荐(0) 编辑
摘要: import turtle class Stack: def __init__(self): self.items = [] def isEmpty(self): return len(self.items) == 0 def push(self, item): self.items.append( 阅读全文
posted @ 2020-03-28 22:17 liuchun玲 阅读(73) 评论(0) 推荐(0) 编辑
摘要: N=eval(input()) for a in range(1,N+1): for b in range(2,a): for c in range(b,a): for d in range(c,a): if(pow(a,3)==pow(b,3)+pow(c,3)+pow(d,3)): print( 阅读全文
posted @ 2020-03-25 18:30 liuchun玲 阅读(125) 评论(0) 推荐(0) 编辑
摘要: import math import time scale=14 s,m,=1,2 print("执行开始".center(scale//2, "-")) start = time.perf_counter() for i in range(scale+1): s=math.sqrt((1-math 阅读全文
posted @ 2020-03-25 15:14 liuchun玲 阅读(87) 评论(0) 推荐(0) 编辑
摘要: import turtle for i in range(8): for j in range(8): turtle.forward(37.5) if j % 2 == 0: if i % 2 ==0: turtle.begin_fill() for s in range(4): turtle.le 阅读全文
posted @ 2020-03-25 13:56 liuchun玲 阅读(182) 评论(0) 推荐(0) 编辑
摘要: import turtle import time import random rand1=random.randint(1,200) turtle.fillcolor("black") turtle.begin_fill() turtle.circle(rand1,180) turtle.end_ 阅读全文
posted @ 2020-03-25 13:53 liuchun玲 阅读(146) 评论(0) 推荐(0) 编辑
摘要: import turtle turtle.pensize(10) turtle.color("blue") turtle.penup() turtle.goto(-110, -25) turtle.pendown() turtle.circle(45) turtle.color("black") t 阅读全文
posted @ 2020-03-25 13:52 liuchun玲 阅读(179) 评论(0) 推荐(0) 编辑
摘要: import turtle as t t.pencolor("red") t.fd(200) t.seth(120) t.fd(200) t.seth(-120) t.fd(200) t.seth(0) t.fd(100) t.seth(60) t.fd(100) t.seth(180) t.fd( 阅读全文
posted @ 2020-03-25 13:49 liuchun玲 阅读(129) 评论(0) 推荐(0) 编辑
摘要: import turtle number = int(input()) turtle.screensize(600,500,'white') turtle.pensize(3) turtle.pencolor('blue') turtle.fillcolor('yellow') turtle.beg 阅读全文
posted @ 2020-03-25 13:47 liuchun玲 阅读(110) 评论(0) 推荐(0) 编辑