字符串的循环输出以及注意换行 摘要:解题思路:注意事项:参考代码:while True: a=int(input()) b=' ' c='*' for i in range(1,a…… 题解列表 2022年04月06日 0 点赞 0 评论 662 浏览 评分:0.0
分类讨论以及循环输入 摘要:解题思路:注意事项:参考代码:while True: a=int(input()) if a<=100 and a>=90: print('A') el…… 题解列表 2022年04月06日 0 点赞 0 评论 639 浏览 评分:2.0
列表注意还原为空列表 摘要:解题思路:注意事项:参考代码:while True: a,b,c=map(int,input().split()) d=[a,b,c] xx=sorted(d) if xx[0…… 题解列表 2022年04月06日 0 点赞 0 评论 582 浏览 评分:0.0
a,b=0时跳出循环 摘要:解题思路:注意事项:参考代码:while True: a,b=map(int,input().split()) if a==0 and b==0: break prin…… 题解列表 2022年04月06日 0 点赞 0 评论 797 浏览 评分:0.0
十五行解决无废话 摘要:解题思路:利用ASC码进行字符与数字间的转换注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str;…… 题解列表 2022年04月06日 0 点赞 0 评论 481 浏览 评分:8.0
字符串的输出 摘要:解题思路:注意事项:参考代码:n=input()print(len(n))for i in n: print(i,end=' ')print()print(n[::-1])…… 题解列表 2022年04月06日 0 点赞 0 评论 442 浏览 评分:0.0
优质题解 枚举解回文日期(附带详细分析) ###注意事项枚举年份应该从哪一年开始?它的问题是输入日期之后下一个回文日期和下一个ABABBABA型的回文日期-方案一(输入年份或输入年份后一年到10000)也就是输入的日期不是回文日期且由该年组成的回文日期在该日期之后,则枚举从该年开始, 题解列表 2022年04月06日 0 点赞 1 评论 1517 浏览 评分:9.9
利用while循环的彻底性 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))while 0 in a: a.remove(0)for i in a:…… 题解列表 2022年04月06日 0 点赞 0 评论 618 浏览 评分:0.0
将每一分钟对应的英文对应位列表 摘要:解题思路:注意事项:参考代码:h,m=map(int,input().split())a=['zero','one','two','three&…… 题解列表 2022年04月06日 0 点赞 0 评论 496 浏览 评分:0.0
巧用upper判断 摘要:解题思路:注意事项:参考代码:a=input()b=input()c=a.upper()d=b.upper()if len(a)!=len(b): print('1')else:…… 题解列表 2022年04月06日 0 点赞 0 评论 512 浏览 评分:0.0