1155基础解法(Python) 摘要:解题思路:随手写的,没有优化注意事项:重点在于如何实现字典序,然后要保证答案格式正确即可参考代码:import mathdic = {}count = 1func = lambda x : math.…… 题解列表 2024年01月18日 0 点赞 0 评论 139 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a, b, c,d,e,arr[100000],l=-1,w=-1; int temp1 = 0, t…… 题解列表 2019年03月01日 0 点赞 0 评论 411 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路:结合了几个题解可以参考注意事项:参考代码:#include<stdio.h>#include <math.h>int fun(int);int main(){ int i,n,num,…… 题解列表 2019年02月28日 1 点赞 0 评论 532 浏览 评分:0.0
C语言训练-阶乘和数* 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>#include<math.h>using namespace std;int main(){ for(int i=…… 题解列表 2022年11月24日 0 点赞 0 评论 168 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路: 按各个位计算阶乘和,满足条件的数,根据首位数字,存放到对应的2位数组。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ …… 题解列表 2019年02月12日 0 点赞 0 评论 472 浏览 评分:0.0
阶乘和数数数 摘要: 1:先判断哪些正整数符合要求,把符合的转成字符串放在数组里保存起来 2:对字符串进行排序 ```c #include #include #include #define N …… 题解列表 2023年04月02日 0 点赞 0 评论 369 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码)最简单,最容易理解 摘要:解题思路:分成两部分,更容易理解,采用两个函数,更直观。注意事项:比较有技巧的是输出是的顺序,所以在循环时就改变了顺序。参考代码:#include<stdio.h>#include<math.h>in…… 题解列表 2019年01月15日 2 点赞 0 评论 739 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路:注意事项:用do while循环,个位取值不用除以10先运行参考代码:#include<stdio.h> int fact (int k) { if(k==1||k==0) r…… 题解列表 2018年11月16日 2 点赞 0 评论 687 浏览 评分:0.0
C语言训练-阶乘和数* (C语言代码) 摘要:解题思路:写的和屎一样,注意事项:0的阶乘是1参考代码:#include<stdio.h>int main(){ int i,j,k,b,a[10]={0},sum=0,*p,c[5]={0},f=0…… 题解列表 2018年03月14日 0 点赞 0 评论 1012 浏览 评分:0.0
C语言训练-阶乘和数* (Java代码) 摘要:解题思路:注意事项:参考代码:public class A1155 { public static void main(String args[]) { int n = 0; for (int i…… 题解列表 2018年03月14日 0 点赞 0 评论 818 浏览 评分:0.0