冶炼金属 20行代码 摘要:解题思路:注意max和min+1就OK注意事项:参考代码:#includeusing namespace std;int main(){ int a,b,x,y,n; cin>>n; int…… 题解列表 2024年01月27日 0 点赞 0 评论 710 浏览 评分:9.9
Sn的公式求和(c++解决办法) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n; cin>>n; int sn=0; …… 题解列表 2024年01月27日 0 点赞 0 评论 190 浏览 评分:9.9
阶乘求和(C++解决办法) 摘要:解题思路:注意事项:第一种:数值溢出的情况,第二:循环递归的思路参考代码:#include<iostream>using namespace std;int main(){ int n; …… 题解列表 2024年01月27日 1 点赞 0 评论 280 浏览 评分:9.9
1151: C语言训练-计算一个整数N的阶乘 摘要:###[题目传送门](https://www.dotcpp.com/oj/problem1151.html) ------------ ###思路 用一个循环把sum从一乘到n,最后输出…… 题解列表 2024年01月27日 0 点赞 0 评论 307 浏览 评分:9.9
复数加减法Java写法 摘要:解题思路:注意事项:参考代码:import java.util.*;public class Main { public static void main(String[] args) …… 题解列表 2024年01月28日 0 点赞 0 评论 424 浏览 评分:9.9
简单明了,一看就懂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h> using namespace std; int main(){ int N,M; long x; wh…… 题解列表 2024年01月28日 0 点赞 0 评论 288 浏览 评分:9.9
【编程入门】C语言新手小白求阶乘之和(利用递归进行求解) 摘要:解题思路:1. 理解阶乘定义: 阶乘是所有正整数从1乘到n的乘积,表示为n!。特别地,0!定义为1。2. 编写阶乘函数: 创建一个函数来计算一个给定正整数的阶乘。这个函数可以使用递归或迭代来实…… 题解列表 2024年01月28日 0 点赞 0 评论 297 浏览 评分:9.9
二级C语言-寻找矩阵最值-题解(Python代码)-简易版 摘要: n=int(input()) lis=[list(map(int,input().split())) for i in range(n)] #创建一个大小为n的二维列表 x…… 题解列表 2024年01月28日 0 点赞 0 评论 211 浏览 评分:9.9
编写题解 1002: [编程入门]三个数最大值 摘要:解题思路:可以使用if判断或者循环+if判断的方式去写注意事项:参考代码:public class Day01 { public static void main(String args[]) { …… 题解列表 2024年01月29日 0 点赞 0 评论 357 浏览 评分:9.9
比较简单的操作 摘要:解题思路:注意事项:记得每次输出后要换行参考代码:#include <stdio.h>#include <stdlib.h>#include <string.h>struct str{ int …… 题解列表 2024年01月29日 0 点赞 0 评论 174 浏览 评分:9.9