极其简单,走过路过别错过 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,i,cnm=-2;\\方便后面的输出 scanf("%d",&n); int a[100000],b…… 题解列表 2023年12月05日 0 点赞 0 评论 203 浏览 评分:0.0
Yu:2816统计满足条件的4位数个数 摘要:#### 解题思路: 在会如何得到每一位数的情况下再思考此题。 如何得到每一位数的模板如下: ```c++ while(n){ // 当n变为0时循环结束 cout > …… 题解列表 2023年12月05日 0 点赞 0 评论 172 浏览 评分:0.0
编写题解 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年12月05日 0 点赞 0 评论 158 浏览 评分:0.0
不与最大数相同的数字之和 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int a[101];int main(){ int n,t=-1e9;//t ÓÃ…… 题解列表 2023年12月05日 0 点赞 0 评论 206 浏览 评分:0.0
一个for循环阶乘求和 摘要:解题思路:用a1表示阶乘的结果,再相加即可注意事项:a1和Sn的数据类型是long long int 参考代码:#include<bits/stdc++.h>using namespace std;i…… 题解列表 2023年12月06日 0 点赞 0 评论 145 浏览 评分:0.0
编写题解 2778: 判断数正负 摘要:解题思路:注意事项:范围可不写:去掉 import java.util.*;和 if( Math.pow(-10,9) < n && n <= Math.pow(10,9)){} 即可参考代码:im…… 题解列表 2023年12月06日 0 点赞 0 评论 410 浏览 评分:0.0
C语言考试练习题_一元二次方程--java语言 摘要:解题思路:①导入Scanner②输入a,b,c③输出x1,x2④保留两位输出注意事项:①导入②开方计算时使用sqrt(若没有提前导入Math,则需要在运行时写上:Math.sqrt())参考代码:im…… 题解列表 2023年12月06日 0 点赞 0 评论 140 浏览 评分:0.0
堆栈的使用 摘要:解题思路:注意事项:参考代码:def stack_operation(commands): stack = [] output = [] for command in command…… 题解列表 2023年12月06日 0 点赞 0 评论 228 浏览 评分:0.0
行编辑程序 摘要:解题思路:注意事项:参考代码:def line_editor(input_str): stack = [] output = '' for char in input…… 题解列表 2023年12月06日 0 点赞 0 评论 188 浏览 评分:0.0
收费--java语言 摘要:解题思路:注意事项:使用double数据类型参考代码:import java.util.Scanner; public class Main { public static void mai…… 题解列表 2023年12月06日 0 点赞 0 评论 194 浏览 评分:0.0