题解列表
[C语言]迭代法——调用函数求解
摘要:解题思路:被调函数中进行平方根的求解,在主调函数中输出,使代码更加清晰,增加可读性注意事项:注意循环的判断条件是>=不要忘了等号哦宝宝们参考代码:#include <stdio.h>float fun……
编写题解 3029: 逆波兰表达式
摘要:inver = input().split()
inver = inver[::-1]
def arithmetic(inver):
if inver:
alphabe……
括弧匹配检验,栈栈栈
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义一个字符栈,用于存储括号
stack<char> st;
in……
有点意思,结尾的puts和printf的区别
摘要:解题思路:注意事项:参考代码:#include<stdio.h>void GetReal(char a[]){ printf("please input a number:\n"); gets(a);……
找第一个只出现一次的字符(C语言)(简单)
摘要: #include
#include
int main()
{
char a[100000];
gets(a);
int y =……
无限套娃,嵌套嵌套再嵌套
摘要:解题思路:无限套娃注意事项:参考代码:#include <stdio.h>#include <stdlib.h>int main() { int n,i,j,s,sum,p; scanf("%d",&……