二级C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double x,y; scanf("%lf",&x); if(x<1) { y=x; } else if(x…… 题解列表 2022年03月07日 0 点赞 0 评论 314 浏览 评分:0.0
小白暴力法 摘要:解题思路根据规律每行长度为 1 3 7 15定义一个数组长度大于2的26次方每一行为前一行+('A'+该行行数)+前一行注意事项:参考代码:#include<bits/stdc++.h…… 题解列表 2022年03月07日 0 点赞 0 评论 243 浏览 评分:0.0
1097: 蛇行矩阵(c语言)(二维数组) 摘要:分析:解题思路:先算出第一列的数,再通过第一列的数依次算出后面的数,设间距为k,a[i][j] = a[i][j - 1] + k;注意事项:换行后的k值初始化为前一行同列的k值加一,引入变量b参考代…… 题解列表 2022年03月07日 0 点赞 1 评论 284 浏览 评分:9.9
二级C语言-公约公倍-辗转相除 摘要:解题思路:辗转相除注意事项:两种输入情况,一种 一次两个数字,一种一次一个数字,输入两次参考代码:def gcd(x, y): m = max(x, y) n = min(x, y) …… 题解列表 2022年03月07日 0 点赞 0 评论 773 浏览 评分:9.9
二级C语言-自定义函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int m);double mypow(double x,int n);int …… 题解列表 2022年03月07日 0 点赞 0 评论 290 浏览 评分:0.0
双序列型动态规划,编辑距离问题的变种 摘要:这个题可看作[编辑距离](https://www.dotcpp.com/oj/problem2141.html "编辑距离")问题的变种,可以参考我在那一篇的题解,内附了leetcode视频题解[信息…… 题解列表 2022年03月07日 0 点赞 0 评论 529 浏览 评分:9.9
栅格打印问题(思路简单) 摘要:解题思路:将每行不同的样式分为两种,在主函数中调用注意事项:考虑高度和宽度小于零的情况参考代码:#include<stdio.h>void b1(int b){ for(int i=1;i<=b…… 题解列表 2022年03月07日 0 点赞 0 评论 736 浏览 评分:9.9
二级C语言-最小绝对值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[10]; for(int i=0;i<10;i++) { scan…… 题解列表 2022年03月07日 0 点赞 0 评论 294 浏览 评分:0.0
二级C语言-分段函数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double x,y; scanf("%lf",&x); if(x<0) { …… 题解列表 2022年03月07日 0 点赞 0 评论 230 浏览 评分:0.0
运用数学规律解题 摘要:参考代码:```c++#include<iostream>using namespace std;int main() { int i, j; int a, b, n; cin >> n; while…… 题解列表 2022年03月07日 0 点赞 0 评论 259 浏览 评分:0.0