二级C语言-自定义函数 摘要:解题思路:这题主要解决的是n的阶乘,还有x的n次方幂。第1个函数先用for循环解决阶乘,第2个函数再用pow函数解决X的n次幂。主函数再用一个for循环+公式,最后输出一下就行了注意事项:第1个函数的…… 题解列表 2024年03月13日 0 点赞 0 评论 376 浏览 评分:9.9
1170: 能量项链(绝对的好东西) 摘要:解题思路:循环复制2倍,然后先以1为头,取n个数量的为一块,然后以2为头,取n个数量为一块.....不断循环直至一个周期,最后求出最大的。注意事项:参考代码:#include<iostream>usi…… 题解列表 2024年03月13日 1 点赞 0 评论 350 浏览 评分:9.0
C++速度功成 摘要:解题思路:将输入的数字串当作数组,利用库函数string,直接获得数组长度,然后for循环遍历数组每一个位置上的数字,输出;法二:构建一空数组,利用for循环将输入的数字串逐个拆解,从个位数依次填入数…… 题解列表 2024年03月13日 0 点赞 0 评论 339 浏览 评分:0.0
蓝桥杯算法提高VIP-质因数2(c++) 摘要:解题思路:注意事项:注意本题重复质因数不能只算一次,如输入:81,输出:3 3 3 3 ,质因数个数为4参考代码:#include<iostream>using namespace std;void …… 题解列表 2024年03月13日 0 点赞 0 评论 311 浏览 评分:0.0
编写题解 2074: [STL训练]A+B 摘要:解题思路:将字符串转化为整数就好了。注意事项:参考代码:#include<stdio.h>#include<string.h>#include<math.h>long long as(char a[]…… 题解列表 2024年03月13日 0 点赞 0 评论 429 浏览 评分:9.9
1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int hjh(int i){ int count=2; for(int f=2;f<i;f++) { if(i%f!=0) coun…… 题解列表 2024年03月13日 0 点赞 0 评论 271 浏览 评分:9.9
最简单的解 摘要:参考代码:matrix_B = [] for _ in range(5): row = list(map(int, input().split())) matrix_B.appe…… 题解列表 2024年03月13日 1 点赞 0 评论 550 浏览 评分:9.9
1156: C语言训练-阿姆斯特朗数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int x=2; for(x=2;x<1000;x++) { int a=0,b=0,c=0; a=x/1…… 题解列表 2024年03月13日 0 点赞 0 评论 355 浏览 评分:9.9
疯狂裁缝简单解 摘要:解题思路:注意事项:参考代码:public static void main(String[] args) { int max=0;//用来记录每一次的最大值 Scanner scanner=…… 题解列表 2024年03月13日 0 点赞 0 评论 301 浏览 评分:9.9
java--study||O.o 摘要:参考代码: import java.util.Scanner; public class Main { static int n, arr[]; public static void…… 题解列表 2024年03月13日 0 点赞 0 评论 356 浏览 评分:9.9