题解列表

筛选

输入输出练习之输出小人

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){    char c;    cin>>c;    cout……

坤坤也能看懂

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

很简单的水仙花,使我大脑旋转。

摘要:解题思路:直接按照水仙花定义求解注意事项:关键在于如何表示百位,十位,个位的数值,三位数除100再取10的余得百位,除10取10的余得十位,直接取10的余得个位。参考代码:#include <stdi……

函数+递归求解

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int sum=0;int f(int x){ int t=x;//(保存一下x的值……

三种方法解排序(C语言)

摘要:解题思路:注意事项:参考代码:方法1:使用冒泡排序#include // 冒泡排序函数 void bubbleSort(int arr[], int n) {     int temp;    ……