自定义函数之整数处理 摘要:解题思路:注意事项:参考代码:def input_(): a=list(map(int,input().split())) deal(a)def deal(x): x.sort() …… 题解列表 2021年11月12日 0 点赞 0 评论 421 浏览 评分:0.0
1481: 蓝桥杯算法提高VIP-剪刀石头布(python) 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())if a == b: print("0")elif (a == 0 and b == 2) or (a ==…… 题解列表 2021年11月12日 0 点赞 0 评论 595 浏览 评分:0.0
编写题解 1115: DNA(python) 摘要:解题思路:注意事项:参考代码:N = int(input())for i in range(N): m,n = map(int,input().split()) a = (m+1) // …… 题解列表 2021年11月12日 0 点赞 0 评论 539 浏览 评分:0.0
自定义函数之字符串反转(简单易懂,四行小代码) 摘要:解题思路:n[::-1]就是反序的意思注意事项:注意空格去掉参考代码:n=input()for i in n[::-1]: if i==' ':continue else:…… 题解列表 2021年11月10日 0 点赞 0 评论 595 浏览 评分:0.0
用字符切片来解决 摘要:解题思路:注意事项:参考代码:n = int(input())x = str(input())m = int(input())print(x[m-1:])…… 题解列表 2021年11月10日 0 点赞 0 评论 423 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(Python代码) 摘要:解题思路:用列表来解决,清晰易懂注意事项:参考代码:n = int(input())x = map(int,input().split())m = int(input())list_1 = list(…… 题解列表 2021年11月10日 0 点赞 0 评论 330 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字(python) 摘要:解题思路:注意事项:参考代码:N = int(input())flag = Falsefor i in range(10000,1000000): if i == int(str(i)[::-1…… 题解列表 2021年11月10日 0 点赞 0 评论 465 浏览 评分:0.0
字符串逆序(2行代码) 摘要:解题思路:没什么思路,当成数组,逆序输出即可。注意事项:参考代码:a = input()print(a[::-1])…… 题解列表 2021年11月10日 0 点赞 0 评论 552 浏览 评分:0.0
虽然简单,但要认真做 摘要:解题思路:注意事项:参考代码:a,b=map(int,input().split())c=0for i in range(a,b+1): if i%3==1 and i%5==3: …… 题解列表 2021年11月08日 0 点赞 0 评论 446 浏览 评分:7.3
不算简单,要认真做 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split())) b=list(map(abs,a))c=min(b)for i in range(len(a)): …… 题解列表 2021年11月08日 0 点赞 2 评论 809 浏览 评分:8.0