[编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double Sn=0,an=0,n,i,t,a=2.0,b=1.0;//a为分子,b为分母,an为单项和…… 题解列表 2021年11月10日 0 点赞 0 评论 362 浏览 评分:0.0
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#define M 10int main(){ int a[M],…… 题解列表 2021年11月10日 0 点赞 0 评论 316 浏览 评分:0.0
[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int m,int n); //这要声明两个函数。也可以像下面那样写int fun2(int m,int n);…… 题解列表 2021年11月10日 0 点赞 0 评论 543 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int exchange(char a[],char b[]){ int i,l,j = 0…… 题解列表 2021年11月10日 0 点赞 0 评论 349 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> void statistics(char *str, int *num_char, int *nu…… 题解列表 2021年11月10日 0 点赞 0 评论 375 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ float num; //定义数字,类型为 float 题解列表 2021年11月10日 0 点赞 0 评论 304 浏览 评分:0.0
1140不可投机取巧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c, d; int i; for (i = 95860 ; i <= 99…… 题解列表 2021年11月10日 0 点赞 0 评论 501 浏览 评分:0.0
[编程入门]自定义函数之数字后移-题解(Python代码) 摘要:解题思路:用列表来解决,清晰易懂注意事项:参考代码:n = int(input())x = map(int,input().split())m = int(input())list_1 = list(…… 题解列表 2021年11月10日 0 点赞 0 评论 311 浏览 评分:0.0
1149管我scanf(“”“”,N)漏了个&,我去 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int N,sum=0,i;scanf("%d",&N); for (i=1;i<=N;i++) { if…… 题解列表 2021年11月10日 0 点赞 0 评论 723 浏览 评分:0.0
用字符切片来解决 摘要:解题思路:注意事项:参考代码:n = int(input())x = str(input())m = int(input())print(x[m-1:])…… 题解列表 2021年11月10日 0 点赞 0 评论 396 浏览 评分:0.0