[编程入门]自定义函数之数字后移-题解(Python代码) 摘要:解题思路:用列表来解决,清晰易懂注意事项:参考代码:n = int(input())x = map(int,input().split())m = int(input())list_1 = list(…… 题解列表 2021年11月10日 0 点赞 0 评论 206 浏览 评分:0.0
1001: [编程入门]第一个HelloWorld程序 摘要:解题思路:这题并不是很难,考察细心程度。我们可以先定义一个输出*的函数后调用。注意事项:注意一定要看清题目要求的输出,注意细节,参考代码:#include<stdio.h>void fun(){ fo…… 题解列表 2021年11月10日 0 点赞 1 评论 283 浏览 评分:8.4
用最基础的知识解决这道题 摘要:解题思路:用最基础的方法来求每一位的数字是什么,依次输出就可以了参考代码:#include<iostream>using namespace std;int main(){ int n,a,b,c,d…… 题解列表 2021年11月10日 0 点赞 0 评论 725 浏览 评分:9.9
1140不可投机取巧 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c, d; int i; for (i = 95860 ; i <= 99…… 题解列表 2021年11月10日 0 点赞 0 评论 333 浏览 评分:0.0
[编程入门]实数的打印 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main(){ float num; //定义数字,类型为 float 题解列表 2021年11月10日 0 点赞 0 评论 173 浏览 评分:0.0
[编程入门]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> void statistics(char *str, int *num_char, int *nu…… 题解列表 2021年11月10日 0 点赞 0 评论 249 浏览 评分:0.0
[编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h> int exchange(char a[],char b[]){ int i,l,j = 0…… 题解列表 2021年11月10日 0 点赞 0 评论 207 浏览 评分:0.0
[编程入门]自定义函数处理最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int fun1(int m,int n); //这要声明两个函数。也可以像下面那样写int fun2(int m,int n);…… 题解列表 2021年11月10日 0 点赞 0 评论 386 浏览 评分:0.0
[编程入门]选择排序 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS 1#include<stdio.h>#define M 10int main(){ int a[M],…… 题解列表 2021年11月10日 0 点赞 0 评论 170 浏览 评分:0.0
编程入门 输出三个数的最大值 摘要:解题思路:利用打擂台的方式把输入的其中一个数放在一个最大值max,然后一次进行比较,大的继续留在max里面,小的则被淘汰注意事项:参考代码:#include<stdio.h>int main(){ i…… 题解列表 2021年11月10日 0 点赞 1 评论 829 浏览 评分:9.9