试除法分解质因数 摘要:解题思路:试除法分解质因数,思路来源y神注意事项:主要是格式问题,用一个list来保存所有的质因数,然后最后用join输出参考代码:def divide(x: int): if x < 2: …… 题解列表 2023年05月23日 0 点赞 0 评论 577 浏览 评分:0.0
蓝桥杯2014年第五届真题-分糖果 解题思路:注意事项:参考代码:head=int(input())n=map(int,input().strip().split())n=list(n)num=0jurge=len(n)defshare(list_test):foriinrange(len(list_test)):list_test[i 题解列表 2023年05月23日 1 点赞 0 评论 491 浏览 评分:0.0
2857: 加密的病历单 ```pythons=input()news=str()forcins:ifc.isupper():news+=c.lower()else:news+=c.upper()news=news[::-1]d={'x':'a','y':'b','z':'c', 题解列表 2023年05月23日 0 点赞 0 评论 554 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[101], str1[1000]; gets(str); …… 题解列表 2023年05月23日 0 点赞 0 评论 509 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>struct date{ int year; int month; int day;};int main(){ struct date …… 题解列表 2023年05月23日 0 点赞 0 评论 704 浏览 评分:0.0
1128:两行代码 摘要:解题思路:注意事项:参考代码:for x in sorted([int(x) for x in input().split()]): print(x, end=' ')…… 题解列表 2023年05月24日 0 点赞 0 评论 920 浏览 评分:0.0
1129:两行代码 摘要:解题思路:注意事项:参考代码:for x in sorted(map(int, input().split()), reverse=True): print(x, end=' …… 题解列表 2023年05月24日 0 点赞 0 评论 817 浏览 评分:0.0
1072基础解法(Python) 摘要:解题思路:简单思路注意事项:了解divmod()函数的基础用法参考代码:import sysfor line in sys.stdin : bot = int(line) if bot =…… 题解列表 2023年05月24日 0 点赞 0 评论 594 浏览 评分:0.0
1118:TOM数超简单字符数组算法 摘要:解题思路:字符数组,记得-‘0’将字符转换成数字注意事项:参考代码:#include <iostream>#include <cstdio>#include <cstring>#include <al…… 题解列表 2023年05月25日 0 点赞 0 评论 685 浏览 评分:0.0
python水仙花数判断 摘要:解题思路:直接用到pow函数注意事项:注意符号参考代码:for i in range(100,999): a=int(i%10) b=int(i/10%10) c=int(i/100…… 题解列表 2023年05月26日 0 点赞 0 评论 526 浏览 评分:0.0