题解列表

筛选

代码放这里了不解释了

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    double m,n,sum=0;    scanf("%lf %lf",&m,&n);    sum+=……

字符替换(指针)

摘要:解题思路:注意事项:参考代码:            #include <stdio.h>#include<string.h>int main(){     char s[100];     char……

....................

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int n;    scanf("%d",&n);    for(int i=2;i<n;i++)    ……

冒泡排序。。

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[10];    for(int i=0;i<10;i++)    {        scanf……

陶陶摘苹果(C语言解析)

摘要:解题思路:通过将10个苹果的高度存放入一个数组,使其数据分别与陶陶所能过够到的最大高度(加上凳子高度)进行比较,从而得出其所能摘到的苹果数。注意事项:①注意sum的初始化!②注意在给数组的元素输入数据……

2866: 过滤多余的空格

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=10200;char s[N];int main(){ wh……

1177: 三角形

摘要:解题思路:注意事项:最后一定要换行呀!!!参考代码:#include<stdio.h>int max(int x,int y){ return x>y?x:y;}int main(){ int e,n……