比较简单的代码 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int gcd(int a,int b); int lcm(int a,int b);int main(){ int m,n;…… 题解列表 2024年11月15日 1 点赞 0 评论 612 浏览 评分:0.0
1019: [编程入门]自由下落的距离计算(简单的解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int i; double n,m,k=0,num=0; scanf("%lf %lf",&m…… 题解列表 2024年11月15日 0 点赞 0 评论 418 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void yuany(char a[]){ char b[100]; int i,j=0; for(i=0;i<100…… 题解列表 2024年11月15日 0 点赞 0 评论 459 浏览 评分:0.0
没用strcat,用的gets和puts, 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void lianj(char f1[],char f2[]){ int k,i,p; …… 题解列表 2024年11月15日 0 点赞 0 评论 545 浏览 评分:9.9
初学者的写法 摘要:解题思路: 无脑if else注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ double a,b,c,d; …… 题解列表 2024年11月15日 1 点赞 0 评论 1433 浏览 评分:9.9
1016: [编程入门]水仙花数判断(暴力解答) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main() { int b, n, i, sum; for (i = 100;…… 题解列表 2024年11月15日 0 点赞 0 评论 1335 浏览 评分:0.0
1013: [编程入门]Sn的公式求和(最简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a=2,sum=0,i,n; scanf("%d",&n); for(i=0;i<n;…… 题解列表 2024年11月14日 4 点赞 0 评论 1072 浏览 评分:0.0
大一新生用C语言编写的 摘要:解题思路:不知道为啥用scanf,printf就不行注意事项:参考代码:#include<stdio.h>#include<string.h>void fanh(char a[]);//函数的声明in…… 题解列表 2024年11月14日 1 点赞 0 评论 717 浏览 评分:0.0
最普通的解题方法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; scanf("%d",&n); sum=n*2+n*(n-1)/2*…… 题解列表 2024年11月14日 1 点赞 0 评论 478 浏览 评分:0.0
只用循环做出本题 摘要:解题思路:穷举每个情况注意事项:想好逻辑就行参考代码:#include<stdio.h>int main(){ int n; scanf("%d", &n); …… 题解列表 2024年11月14日 2 点赞 0 评论 663 浏览 评分:0.0