三阶行列式转置输出::只改变输出不改变数组 摘要:解题思路:第一步,申明数组a[5][5],以及变量i和j随后利用二维数组录入行列式将数组的地址转入函数之中将该函数以循环的方法输出,达成目的,每次重置内部变量 j 循环一次,输入 \n 换行,即可达成…… 题解列表 2024年03月13日 0 点赞 0 评论 223 浏览 评分:9.9
汉诺塔-递归问题 摘要: #include #include using namespace std; stack s[3]; void move(int x,int y){ …… 题解列表 2024年03月13日 0 点赞 0 评论 277 浏览 评分:0.0
数组从小到大排序后,从后向前遍历,不断更新众数及重数 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年03月13日 0 点赞 0 评论 180 浏览 评分:0.0
python 计算多项式的值 摘要:解题思路:比较简单,仍用map函数注意事项:参考代码:x,a,b,c,d=map(float,input().split())print('%.7f'%(a*x*x*x+b*x*x+c…… 题解列表 2024年03月14日 0 点赞 1 评论 637 浏览 评分:5.3
1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<string.h> int main(){ char a[100]; gets(a); int l=strlen(a…… 题解列表 2024年03月14日 0 点赞 0 评论 275 浏览 评分:10.0
1196: 去掉空格--容易理解 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <string.h>void fun(char a[]){ int l=strlen(a); for(int i;…… 题解列表 2024年03月14日 0 点赞 0 评论 246 浏览 评分:0.0
小白看懂的C语言结构体 摘要:解题思路:注意事项:参考代码:#include <stdio.h>struct riqi{ int year; int manth; int day;};int rennian(int n){ int…… 题解列表 2024年03月14日 0 点赞 0 评论 194 浏览 评分:9.9
高精度加法 摘要:解题思路:将输入的两个字符串通过split("")转化为String数组,通过for循环逆序存入int类型数组中,然后遍历将二者相加组成c数组注意事项:确保数组长度一致,否则遍历的时候可能会数组越界异…… 题解列表 2024年03月14日 0 点赞 0 评论 298 浏览 评分:0.0
易理解的计算与求和 摘要:解题思路:注意事项:累计高度加到n-1;为了便于计算全部2*之后-初始高度*1;注意幂次表达用cmath的pow表示参考代码:#include<cstdio>#include<iostream>#in…… 题解列表 2024年03月14日 0 点赞 0 评论 198 浏览 评分:0.0
c++ 找规律分奇数偶数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int main() { int a[10000],n; ci…… 题解列表 2024年03月14日 0 点赞 0 评论 245 浏览 评分:0.0