[编程入门]阶乘求和-题解(Python花式解法) 摘要:方法很多,不局限于一种思路 **自带阶乘函数** 有现成的函数直接拿来用就好了 ```python from math import factorial print(sum(map(fa…… 题解列表 2022年04月14日 0 点赞 0 评论 731 浏览 评分:0.0
弟弟的作业(C++代码) 摘要:解题思路:输入字符串,分别用while循环从字符串中把第一个数、第二个数和算式的结果放到整数a,b,c中,k是运算符号+或-;c的循环前要先判断"="后是否为"?",是问号的话直接判错;最后根据k的值…… 题解列表 2022年04月14日 0 点赞 0 评论 385 浏览 评分:0.0
矩阵求和-C语言 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main (){ int a[3][3],i,j; int sum=0,count=0; for(i=0…… 题解列表 2022年04月15日 0 点赞 0 评论 379 浏览 评分:0.0
应该不会要这么多for循环,但不失为一种直肠子的解法 摘要:解题思路:注意事项:参考代码:n = int(input())list_m = list(map(int,input().strip().split()))m = int(input())other …… 题解列表 2022年04月15日 0 点赞 0 评论 305 浏览 评分:0.0
写了半天。。 摘要:解题思路:行元素加列元素注意事项:参考代码:#include<stdio.h>int main(){ int n; scanf("%d",&n); int i,j=n,k,cnt,nu…… 题解列表 2022年04月15日 0 点赞 0 评论 287 浏览 评分:0.0
[编程入门]数组插入处理 摘要:解题思路:如果插入的数小于a[i]而且大于a[i+1],则应该将a[i+1]后面的数依次向后移一位,并且将n给a[i+1]注意事项: 数组里面只能存放10个数参考代码:#include<stdio.h…… 题解列表 2022年04月15日 0 点赞 0 评论 362 浏览 评分:0.0
简单易懂,很自然的过程 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i,j,t,k=0; scanf("%d",&n); int a[n],b[10…… 题解列表 2022年04月15日 0 点赞 0 评论 368 浏览 评分:0.0
数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char u[6]; int i=0,len; gets(u); len=s…… 题解列表 2022年04月16日 0 点赞 0 评论 325 浏览 评分:0.0
编写题解 1023: [编程入门]选择排序 摘要:解题思路:输入直接排序注意事项:参考代码:#include<stdio.h>int main(){ int an[10]; int temp = 0; int t; for (int i = 0; i…… 题解列表 2022年04月16日 0 点赞 0 评论 277 浏览 评分:0.0
Java 代码解题代码参考 摘要:解题思路:用数组读入,逆序输出即可注意事项:注意加上空格符输出参考代码:import java.util.Scanner;public class Main { public static…… 题解列表 2022年04月16日 0 点赞 0 评论 396 浏览 评分:0.0