阶乘数列(递归调用) 摘要:解题思路:注意事项:参考代码:public class Main { public static void main(String[] args) { double sum=0; for(int …… 题解列表 2022年04月12日 0 点赞 0 评论 352 浏览 评分:0.0
while循环的理解 摘要:解题思路:注意事项:参考代码:#include"stdio.h"int pow(int n) { int sum = 1; int i = 0; while (i < 3) { sum *= n; …… 题解列表 2022年04月12日 0 点赞 0 评论 320 浏览 评分:0.0
1743: 大整数排序 摘要:解题思路:把数当成字符串,用向量把他们装起来,长度长的一定比长度短的数大,长度一样就直接判断字符串谁大谁小注意事项:参考代码:#include<bits/stdc++.h> using namesp…… 题解列表 2022年04月12日 0 点赞 0 评论 361 浏览 评分:0.0
注意要在平台的在线测试中运行 摘要:解题思路:暴力解决注意事项:边界的处理参考代码:#include<stdio.h>#include<stdlib.h>typedef struct node{ int data,n; …… 题解列表 2022年04月12日 0 点赞 0 评论 334 浏览 评分:0.0
1009[编程入门]数字的处理与判断-不简洁但很明了(C语言) 摘要:解题思路:仅使用if-else判断选择的笨办法注意事项:参考代码:#include<stdio.h>int main(){ int a,b,d; int c1,c2,c3,c4,c5; …… 题解列表 2022年04月12日 0 点赞 0 评论 246 浏览 评分:0.0
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int a[1001]; int b[1001]; int i,n,m; scanf("%d",&n); fo…… 题解列表 2022年04月12日 0 点赞 0 评论 294 浏览 评分:0.0
非常普通的小白解法。。。 摘要:解题思路:注意事项:for循环内count[]内的值和i的起始值需要注意,数组从count[0]开始。所以代码内后两个for循环条件略有不同。参考代码:#include<stdio.h>int mai…… 题解列表 2022年04月13日 0 点赞 0 评论 329 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define LEAP_YEAR(y) ((y%4==0&&y%100!=0)||(y%400==0))?'L':&#…… 题解列表 2022年04月13日 0 点赞 0 评论 428 浏览 评分:0.0
(fly)1919: 蓝桥杯算法提高VIP-新建Microsoft Word文档(python) 摘要:解题思路:注意事项:参考代码:def ij(ls): if ls==[]: ls.append(1) else: for i in range(…… 题解列表 2022年04月13日 0 点赞 0 评论 471 浏览 评分:0.0
(fly)1920: 蓝桥杯算法提高VIP-上帝造题五分钟(python) 摘要:解题思路:注意事项:参考代码:n,q=map(int,input().split()) ls=list(map(int,input().split())) for i in range(q): …… 题解列表 2022年04月13日 0 点赞 0 评论 527 浏览 评分:0.0