题解列表

筛选

编写题解 1317: 最长公共子序列lcs

解题思路:注意事项:参考代码:a,b=input().strip().split()n=len(a)m=len(b)d=[[0]*(m+1)for_inrange(n+1)]foriinrange(1,n+1):forjinrange(1,m+1):ifa[i-1]==b[j-1]:d[i][j]=d

汽水瓶:n/2

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int i=-1,j,n[100];    do{        scanf("%d",&n[++i]);……

2840: 向量点积计算 3个for

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n);    int i,j,arr[n],brr[n],su……

循环入门练习2

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>#include <string.h>int main(){ int i, e=0; for (i ……

分享一下我的错误,以及,详细解释我的代码这么写的原因

解题思路:首先,题目的要求是持续输入,其次,我们需要分离百分位,十分位,个位数,进行重新组合【这里方法真的很多】注意事项:1.要能持续输入输出;2.输入100,要能输出001;3.注意输出方式和占位符号要相互匹配;4.注意输出之后要换行(因为题目说,

利润计算c语言求解

摘要:解题思路:利用递归思想参考代码:#include <stdio.h> int func(int n); int main() {     int n, result;     scan……

判断是否为两位数之入门

摘要:解题思路:注意事项:参考代码:while True:    try:        n=int(input())        print("1") if 0.1<= n/100 <1 else pr……