模拟计算器--java语言 摘要:解题思路:注意事项:输入字符的写法非nextChar() 正确写法为:next().charAt(0)参考代码:import java.util.Scanner; public class Ma…… 题解列表 2023年12月06日 0 点赞 0 评论 128 浏览 评分:0.0
整数平均值(报错) 摘要:解题思路:注意事项在这个代码运行时,报错error ld returned 1 exit status这个问题其实我代码本身没有问题,是因为我上一个代码运行结果未关闭造成的报错。error ld re…… 题解列表 2023年12月06日 0 点赞 0 评论 139 浏览 评分:0.0
2902:输出最高分数的学生姓名 python实现(极简方法) 摘要:解题思路:本来想保存最大值,然后找对应的名字,后面发现找到最大值的时候可以直接用student保存学生的名字,最后直接输出该名字即可。注意事项:没有用到字典。参考代码:n = int(input())…… 题解列表 2023年12月06日 1 点赞 0 评论 248 浏览 评分:0.0
n阶Hanoi塔问题 摘要:解题思路:注意事项:参考代码:def hanoi(n, a, b, c, count): if n > 0: count = hanoi(n-1, a, c, b, count) …… 题解列表 2023年12月06日 0 点赞 0 评论 204 浏览 评分:0.0
三个数比较大小 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *bigger(int *a, int *b){ if(*a >= *b) { return a; …… 题解列表 2023年12月06日 0 点赞 0 评论 124 浏览 评分:0.0
分段函数求值 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a; while(~scanf("%d", &a)) { if(a < …… 题解列表 2023年12月06日 0 点赞 0 评论 253 浏览 评分:0.0
括弧匹配检验 摘要:解题思路:注意事项:参考代码:def is_matching(expression): stack = [] mapping = {')': '(', &#…… 题解列表 2023年12月06日 0 点赞 0 评论 334 浏览 评分:0.0
自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str1[100],str2[100]; int m, n,i,j; scanf("%d", &n);…… 题解列表 2023年12月06日 0 点赞 0 评论 293 浏览 评分:0.0
乖孩子的直接思路 摘要:解题思路:在//后面就是思路注意事项:参考代码:#include <stdio.h>int main(){int a[5][5];int i,j,t,r,s;for(i=0;i<5;i++)for(j…… 题解列表 2023年12月07日 0 点赞 0 评论 190 浏览 评分:0.0
筛选N以内的素数 摘要:解题思路:注意事项:参考代码:def is_prime(num): if num < 2: return False for i in range(2, int(num **…… 题解列表 2023年12月07日 0 点赞 0 评论 147 浏览 评分:0.0