字符串的修改 最少操作数=长字符串长度-最大公共子串长度 摘要:#include <stdio.h> #include <string.h> int main() { char a[1000]; char b[1000]; int k=0; …… 题解列表 2022年04月06日 0 点赞 1 评论 771 浏览 评分:9.9
求逆序对个数(java 暴力解法通过) 摘要:### 注意事项 逆序对指这样的数对(xi,xj),且xi>xj,ixj,i arr[j]) { count++; } } } System.out.pri…… 题解列表 2022年04月06日 0 点赞 0 评论 573 浏览 评分:9.9
三个字符串的排序 摘要:strlen:字符串长度strcmp(a,b):字符串大小比较,如果a大于b,大于0。前面减后面strcpy(a,b):字符串拷贝,把b拷贝给a。后面赋值给前面#include <stdio.h> …… 题解列表 2022年04月06日 0 点赞 0 评论 575 浏览 评分:9.9
杨辉三角 python 摘要:解题思路:注意事项:参考代码:i,j=map(int,input().split())n=1000a=[[0]*n for i in range(n)]for c in range(n): fo…… 题解列表 2022年04月06日 0 点赞 0 评论 570 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:n = int(input())def myisprime(x): if x < 2: print("not prime") else: …… 题解列表 2022年04月06日 0 点赞 1 评论 463 浏览 评分:9.9
第一次,来个简单的。 摘要:#include<stdio.h> int main() { int x,y; scanf("%d",&x); if (x<=15) { y=2*x; } else …… 题解列表 2022年04月06日 0 点赞 0 评论 565 浏览 评分:9.9
使用动态规划进行计算k好数 摘要:解题思路:注意事项:参考代码:###使用动态规划进行计算k好数 mod_num=1000000007 K,L=map(int ,input().split()) dp=[[0]*(K+1) fo…… 题解列表 2022年04月07日 0 点赞 0 评论 618 浏览 评分:9.9
[编程入门]电报加密(简单入门) 摘要:解题思路:注意事项:参考代码:注意事项:字符串需要引号才能通过ord转换为数字形式a=str(input()) res=[] for i in a: i=ord(i)#122 …… 题解列表 2022年04月07日 0 点赞 0 评论 1073 浏览 评分:9.9
[编程入门]自定义函数之整数处理(超容易入门) 摘要:解题思路:注意事项:参考代码:第一种方式 :答案错误50冒泡排序ls=list(map(int,input().split())) for i in range(len(ls)): for…… 题解列表 2022年04月07日 0 点赞 0 评论 564 浏览 评分:9.9
编写题解 1046: [编程入门]自定义函数之数字后移(超容易理解) 摘要:解题思路:注意事项:参考代码:刚开始暴力思路:x=list(map(int,input().split())) h=(x[-2:]+x[:8]) for i in h: print(i,…… 题解列表 2022年04月07日 0 点赞 0 评论 479 浏览 评分:9.9