python fj字符串解法 简单无列表函数 摘要:N=int(input())s=""#定义一个空字符串for i in range(N): #进行循环拼接 s=s+chr(65+i)+sprint(s)…… 题解列表 2023年02月12日 0 点赞 0 评论 204 浏览 评分:9.9
python简单字符串两个解法 带解析 摘要:# 法1:N=int(input().strip())#输入题目Nfor i in range(N): A=input() #输入字符串 n=1 #记录相邻相同字符的个数 s = "…… 题解列表 2023年02月11日 0 点赞 0 评论 203 浏览 评分:0.0
2803: 整数的个数 摘要:解题思路:注意事项:参考代码:n=int(input())a=list(map(int,input().split()))print(a.count(1))print(a.count(5))print…… 题解列表 2023年02月11日 0 点赞 0 评论 338 浏览 评分:9.9
1000: [竞赛入门]简单的a+b 摘要:参考代码:while True: try: a,b=map(int,input().strip().split()) print(a+b) except: break…… 题解列表 2023年02月11日 0 点赞 0 评论 1496 浏览 评分:6.0
Python统计数字字符个数 摘要:解题思路:注意事项:参考代码:n=input()count=0for i in n: if i>='0' and i<='9': count+=1p…… 题解列表 2023年02月10日 0 点赞 0 评论 281 浏览 评分:0.0
Python解统计字符 摘要:解题思路:注意事项:参考代码:n = input()a = 0b = 0c = 0d = 0for i in n: if (i>='a' and i<='z') …… 题解列表 2023年02月10日 0 点赞 0 评论 237 浏览 评分:0.0
1128: C语言训练-排序问题<1> 三行解决 摘要:解题思路:又是水的一题注意事项:不要直接输出列表,用for循环参考代码:a=list(map(int,input().split()))for i in range(len(a)): print…… 题解列表 2023年02月10日 0 点赞 0 评论 318 浏览 评分:0.0
2772: 苹果和虫子(Python) 摘要:解题思路:注意事项:参考代码:from decimal import * Pi=3.14159 tmp = input() n,x,y = tmp.split() n = int(n) x …… 题解列表 2023年02月10日 0 点赞 0 评论 402 浏览 评分:2.0
1866: 三位数反转(Python) 摘要:解题思路:注意事项:参考代码:while True: try: n = input() m = n[::-1]   题解列表 2023年02月10日 0 点赞 2 评论 596 浏览 评分:7.3
刷题统计Pthon 摘要:解题思路:注意事项:参考代码:a,b,n=map(int,input().split())week=5*a+2*bdays=(n//week)*7n%=weekif n<=a*5: day=0 …… 题解列表 2023年02月09日 0 点赞 0 评论 247 浏览 评分:0.0