题解列表

筛选

比较简单的代码

摘要:解题思路:注意事项:参考代码:#include<stdio.h>   int gcd(int a,int b);   int lcm(int a,int b);int main(){ int m,n;……

自定义函数之字符提取

摘要:解题思路:注意事项:参考代码:#include<stdio.h>void yuany(char a[]){    char b[100];    int i,j=0;    for(i=0;i<100……

没用strcat,用的gets和puts,

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void lianj(char f1[],char f2[]){    int k,i,p;    ……

初学者的写法

摘要:解题思路: 无脑if else注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){    double a,b,c,d;  ……

大一新生用C语言编写的

摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in……

最普通的解题方法

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

只用循环做出本题

摘要:解题思路:穷举每个情况注意事项:想好逻辑就行参考代码:#include<stdio.h>int main(){        int n;        scanf("%d", &n);       ……