蓝桥杯2014年第五届真题-兰顿蚂蚁(python) 摘要:解题思路:把蚂蚁的行动、动作当作对象,创建关于mayi()的的对象,并对蚂蚁行动关于黑格、白格等转向设置函数point(self),在主函数中对行走后原位置黑白格取反注意事项:此代码中,每个格子的参数…… 题解列表 2024年04月20日 0 点赞 0 评论 222 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:s=int(input()) '''print('%.2f'%sum(i+ for i in range(s)))'&#…… 题解列表 2024年04月20日 0 点赞 0 评论 158 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:a,b,c=map(int,input().split()) print('%.2f' % (sum(i for i in range(1,a+1))+…… 题解列表 2024年04月20日 0 点赞 0 评论 187 浏览 评分:0.0
python--study||O.o 摘要:参考代码:import sys def make(x): res = bin(x) res = res[2:] while len(res) < 5: …… 题解列表 2024年04月20日 0 点赞 0 评论 236 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:number = int(input()) sim = 2 total = sum([sim + i * 3 for i in range(number)]) pr…… 题解列表 2024年04月20日 0 点赞 0 评论 438 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n = int(input()) res = [[0] * n for _ in range(n)] num = 1 #将需要构造的矩形分为左上三角形和右下三角形两个部分 #所有待写…… 题解列表 2024年04月20日 0 点赞 0 评论 269 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:ci=0 for x in range(100,999): x=str(x) if int(x)==sum(((int(x[i])**3) for …… 题解列表 2024年04月20日 0 点赞 0 评论 495 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:x=input() if int(x)==sum(((int(x[i])**3) for i in range(3))): print(1) else: …… 题解列表 2024年04月20日 0 点赞 0 评论 225 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:st=list(map(int,input().split())) print(''.join(str('%-8d' % i) for …… 题解列表 2024年04月20日 0 点赞 0 评论 503 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:import sys for str in sys.stdin: str=list(map(int,str.split())) max=0 …… 题解列表 2024年04月20日 0 点赞 0 评论 284 浏览 评分:0.0