1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:n = int(input()) arr = [] [arr.append(list(map(str, input().split()))) for _ in ran…… 题解列表 2024年04月27日 0 点赞 0 评论 251 浏览 评分:0.0
无聊的星期六 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main() { int n,m; char sn[1111]="";…… 题解列表 2024年04月27日 0 点赞 0 评论 229 浏览 评分:0.0
七行简便 编写题解 2847: 找第一个只出现一次的字符 摘要:解题思路:if n.count(i)==1:注意事项:else: print('no')参考代码:n=input()for i in n: if n.count(i)==1:…… 题解列表 2024年04月24日 0 点赞 0 评论 620 浏览 评分:0.0
python优势-自带高精度 摘要:参考代码:while True: n = int(input()) if n == 0: break if n % 17 == 0:   题解列表 2024年04月23日 0 点赞 0 评论 287 浏览 评分:0.0
python--study||O.o 摘要:参考代码:t = int(input()) for test in range(t): T = list(input()) S = list(input()) n = …… 题解列表 2024年04月21日 0 点赞 0 评论 349 浏览 评分:0.0
猴子吃桃的问题,五行代码 摘要:解题思路:注意事项:参考代码:N = int(input())my_list = [None] * (N-1) + [1]for i in reversed(range(1,N)): # revers…… 题解列表 2024年04月21日 1 点赞 0 评论 431 浏览 评分:9.9
利用斐波那契数列求解 摘要:解题思路:观察发现,分母的值,从第三个分数开始,为前两个的和,分子也有类似的规律,如果纯在数列f(n) = f(n-1) + f(n-2),其中f(0) = 1,f(1)=2.则sum = f(1)/…… 题解列表 2024年04月21日 0 点赞 0 评论 365 浏览 评分:9.9
python--study||O.o 摘要:参考代码:s = input() res = 0 i = 0 while i < len(s) - 1: if s[i] == s[i + 1] or s[i] == '?&#…… 题解列表 2024年04月21日 0 点赞 0 评论 402 浏览 评分:0.0
python--study||O.o 摘要:参考代码:n = int(input()) a = list(map(int, input().split())) b = list(map(int, input().split())) c =…… 题解列表 2024年04月21日 0 点赞 0 评论 449 浏览 评分:0.0
转化为数组 摘要:解题思路:强制类型转换求和注意事项:无参考代码:for i in range(100,1000): my_str = str(i) sum = int(my_str[0]) ** 3 + …… 题解列表 2024年04月21日 0 点赞 0 评论 567 浏览 评分:9.9