密码——python 摘要:解题思路:注意事项:参考代码:n = int(input())for i in range(n): a = str(input()) s = 0 for i in a: …… 题解列表 2023年03月26日 0 点赞 0 评论 501 浏览 评分:0.0
列出最简真分数序列* 摘要:解题思路:注意事项:求余2与求余5要分开来,我也不太清楚为什么不能用or,望有知道的人可以解答一下,谢谢参考代码:L = [i for i in range(1,40)]for i in L: …… 题解列表 2023年03月26日 0 点赞 0 评论 483 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int arr[3][3]; for(int i = 0;i<3;i++) …… 题解列表 2023年03月26日 0 点赞 0 评论 372 浏览 评分:0.0
IP判断——python 摘要:解题思路:注意事项:参考代码:while True: try: L = list(map(str,input().split('.'))) s = 0…… 题解列表 2023年03月26日 0 点赞 0 评论 531 浏览 评分:0.0
除了数组,的其他两种解法 摘要:解题思路:一种通俗易懂易学,一种是优化后的解法 总体思路就是简单的求位数数字的数学方法,先/后%就行注意事项:细心就行,主要要把循环结构每一步的循环结构弄明白才行参考代码:数组解法入下#include…… 题解列表 2023年03月26日 0 点赞 0 评论 504 浏览 评分:0.0
1072: 汽水瓶 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<cmath> #include<algorithm> #include…… 题解列表 2023年03月26日 0 点赞 0 评论 407 浏览 评分:0.0
自定义函数 deffact(n):x=1foriinrange(1,n+1):x=x*ireturnxdefmypow(x,n):m=x**nreturnmx,n=map(eval,input().split())y=[]z=1k=0foriinrange(1, 题解列表 2023年03月26日 0 点赞 0 评论 586 浏览 评分:0.0
python不同单词个数统计 解题思路:set去重注意事项:参考代码:L=list(map(str,input().split()))L=list(set(L))print(len(L)) 题解列表 2023年03月26日 0 点赞 0 评论 540 浏览 评分:0.0
水仙花数判断 摘要:for i in range(1,9): for j in range(0,9): for k in range(0,9): if i*100+j*10+k=…… 题解列表 2023年03月26日 0 点赞 0 评论 521 浏览 评分:0.0
蓝桥杯2019年第十届省赛真题-糖果 状态压缩dp 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class 糖果 { static int[] dp…… 题解列表 2023年03月26日 0 点赞 0 评论 489 浏览 评分:0.0