题解列表

筛选

公共子序列

摘要:解题思路:注意事项:参考代码:def longestCommonSubsequence(X, Y):    m, n = len(X), len(Y)    dp = [[0] * (n+1) for……

python编写题解 2792: 三角形判断

摘要:解题思路:三角形的三边关系:任意两边之和大于第三边或者任意两边之差小于第三边。参考代码:a, b, c = map(int, input().split()) if a+b > c and a+c ……

python编写题解 2793: 点和正方形的关系

摘要:解题思路:求x,y的区间注意事项:判断一个给定的点是否在这个正方形内参考代码:x, y = map(int, input().split()) if x >= -1 and x <= 1 and y……

利用类型转换解Hello, world!

摘要:解题思路:利用char,把int类型转换为char类型即可注意事项:参考代码:#include<iostream>using namespace std;int main(){int a = 0;wh……

不用多余变量完成

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void dg(int n, char* arr){    if (n - strlen(arr……