开发区第四小学3年级某某班郑**解决二级C语言-阶乘公式求值 摘要:解题思路和注意事项:这个数列是由1/n!(n的阶乘)组成,其中n从1到用户输入的整数s。具体来说,程序首先定义了一个名为fact的函数,该函数接受一个整数n作为参数,并返回n的阶乘。然后在main函数…… 题解列表 2024年05月03日 0 点赞 0 评论 241 浏览 评分:0.0
信息学奥赛一本通T1276 -编辑距离 摘要:解题思路:f[i][j]表示i长度的字符串变化到j长度字符串的最短距离注意事项:参考代码:#include<iostream> using namespace std; const int N =…… 题解列表 2024年05月03日 0 点赞 0 评论 217 浏览 评分:9.9
简单易懂,结构体之时间设计 摘要:解题思路:平年2月28天,闰年2月29天,平年闰年分开考虑注意事项: 无参考代码:y, m, d = map(int, input().split()) day_num = d year1 = […… 题解列表 2024年05月04日 2 点赞 0 评论 249 浏览 评分:9.9
超简洁代码,结构体之成绩记录 摘要:解题思路:注意事项:参考代码:n = int(input()) # 定义一个空二维列表,用以存放输入数据 my_str = [[]] * n # 输入指定n组数据 for i in range…… 题解列表 2024年05月04日 0 点赞 0 评论 301 浏览 评分:9.9
1099: 校门外的树 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>typedef long long ll;const int N=1e7;using namespace std;int …… 题解列表 2024年05月04日 1 点赞 0 评论 210 浏览 评分:10.0
1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 167 浏览 评分:0.0
题解 1024: [编程入门]矩阵对角线求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 179 浏览 评分:0.0
题解 2878: 计算矩阵边缘元素之和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const ll N=1e3;ll a[…… 题解列表 2024年05月04日 0 点赞 0 评论 121 浏览 评分:0.0
鬼知道我写了多少遍 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int N=1e3;ll a…… 题解列表 2024年05月04日 0 点赞 0 评论 158 浏览 评分:0.0
开发区第4小学32班郑某某解决用筛法求之N内的素数 摘要:解题思路:1. 定义了一个名为is_prime的函数,用于判断一个整数是否为质数。该函数接受一个整数p作为参数,返回一个布尔值。 2. 在main函数中,首先声明了两个整数变量N和i。然后通过scan…… 题解列表 2024年05月04日 0 点赞 0 评论 237 浏览 评分:0.0