题解列表

筛选

行编辑程序

摘要:解题思路:注意事项:参考代码:def line_editor(input_str):    stack = []    output = ''    for char in input……

收费--java语言

摘要:解题思路:注意事项:使用double数据类型参考代码:import java.util.Scanner; public class Main { public static void mai……

模拟计算器--java语言

摘要:解题思路:注意事项:输入字符的写法非nextChar() 正确写法为:next().charAt(0)参考代码:import java.util.Scanner; public class Ma……

整数平均值(报错)

摘要:解题思路:注意事项在这个代码运行时,报错error ld returned 1 exit status这个问题其实我代码本身没有问题,是因为我上一个代码运行结果未关闭造成的报错。error ld re……

n阶Hanoi塔问题

摘要:解题思路:注意事项:参考代码:def hanoi(n, a, b, c, count):    if n > 0:        count = hanoi(n-1, a, c, b, count) ……

三个数比较大小

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int *bigger(int *a, int *b){    if(*a >= *b)    {        return a;  ……

分段函数求值

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a;    while(~scanf("%d", &a))    {        if(a < ……

括弧匹配检验

摘要:解题思路:注意事项:参考代码:def is_matching(expression):    stack = []    mapping = {&#39;)&#39;: &#39;(&#39;, &#……

自定义函数之字符串拷贝

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char str1[100],str2[100]; int m, n,i,j; scanf("%d", &n);……