题解列表

筛选

1049: [编程入门]结构体之时间设计

摘要:题目解读:这道题就是给我们日期,让我们通过程序计算出该日期是这一年的第几天。解题思路及代码:       首先,我们要定义用于存储年,月,日的变量。在这里有两个方法,第一种如题目名,用定义结构体的方法……

C语言--for循环

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){    int i,j,a[3][3],b=0,c=0;    for(i=0;i<3;i++)    {   ……

字符类型统计

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){    char a[100]={0};    int zimu=0,shuz……

字符串的修改(python)

摘要:解题思路:注意事项:参考代码:def min_edit_distance(A, B):    m, n = len(A), len(B)        # 创建一个二维数组来记录状态    dp = ……

编写题解 2749: Hello, World!

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    cout<<"Hello, World!";}……

reverse倒序列表

摘要:解题思路:注意事项:参考代码:n=int(input())nums=list(map(int,input().split())) nums.reverse()for i in nums:     pr……