恺撒密码-题解(Python代码) 摘要:这题本质就是n个数的循环问题,万能公式:【a,b】间有n个数循环,求【a,b】中任意一个数x,往右移y次得到的数为((x-a)+y)%n+a,往左移y次得到的数为((x-a)-y)%n+a 应用到这…… 题解列表 2020年04月14日 0 点赞 0 评论 773 浏览 评分:9.9
幸运儿-题解(Python代码) 摘要:我是用列表做的 ```python while True: n=int(input()) lis=[] #新建列表盛放总数 for i in range(1,n+1)…… 题解列表 2020年04月14日 0 点赞 0 评论 818 浏览 评分:9.9
大小写转换-题解(Python代码) 摘要:凑字数凑字数凑字数凑字数 ```python while True: s=input() if s=="End of file": break pr…… 题解列表 2020年04月13日 1 点赞 1 评论 980 浏览 评分:4.3
整除的尾数-题解(Python代码) 摘要:```python while True: m,n=map(int,input().split()) if m==0 and n==0: break …… 题解列表 2020年04月13日 0 点赞 0 评论 858 浏览 评分:0.0
数字统计-题解(Python代码) 摘要:```python n=int(input()) lis=[0,0,0,0,0,0,0,0,0,0] for i in range(1,n+1): while i>=10: …… 题解列表 2020年04月13日 0 点赞 0 评论 678 浏览 评分:8.0
换位置-题解(Python代码) 摘要:斐波纳切数列 ```python n=int(input()) for i in range(n): lis=[0,1,1,2,4] m=int(input()) …… 题解列表 2020年04月13日 0 点赞 0 评论 761 浏览 评分:0.0
排列 (Python代码) 摘要:代码完全符合题意,但是50%错,记得前面有个排序题我用for写的也是50%错 四位数首位如果不可以为零 ```python n=int(input()) for i in range(n)…… 题解列表 2020年04月13日 0 点赞 0 评论 844 浏览 评分:0.0
数列排序-题解(Python代码) 摘要:```python n=int(input()) for i in range(n): lis=list(map(int,input().split())) a=[] …… 题解列表 2020年04月13日 0 点赞 0 评论 661 浏览 评分:0.0
字符排列问题-题解(Python代码) 摘要:排列组合问题,n个数有n!种排列组合,题目要求非重,所以还要除以每个字符出现的次数 ```python n=int(input()) s=input() lis=[] sn=1 for i…… 题解列表 2020年04月13日 0 点赞 0 评论 628 浏览 评分:9.9
[偶数求和]-题解(Python代码) 摘要:```python while True: n,m=map(int,input().split()) a=n//m sn=b=0 for i in range…… 题解列表 2020年04月13日 0 点赞 1 评论 830 浏览 评分:6.0