1743: 大整数排序 摘要:解题思路:把数当成字符串,用向量把他们装起来,长度长的一定比长度短的数大,长度一样就直接判断字符串谁大谁小注意事项:参考代码:#include<bits/stdc++.h> using namesp…… 题解列表 2022年04月12日 0 点赞 0 评论 711 浏览 评分:0.0
注意要在平台的在线测试中运行 摘要:解题思路:暴力解决注意事项:边界的处理参考代码:#include<stdio.h>#include<stdlib.h>typedef struct node{ int data,n; …… 题解列表 2022年04月12日 0 点赞 0 评论 615 浏览 评分: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 评论 490 浏览 评分: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 评论 533 浏览 评分:0.0
非常普通的小白解法。。。 摘要:解题思路:注意事项:for循环内count[]内的值和i的起始值需要注意,数组从count[0]开始。所以代码内后两个for循环条件略有不同。参考代码:#include<stdio.h>int mai…… 题解列表 2022年04月13日 0 点赞 0 评论 581 浏览 评分: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 评论 677 浏览 评分: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 评论 751 浏览 评分: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 评论 863 浏览 评分:0.0
[编程入门]自由下落的距离计算-题解(C语言代码)【等比数列求和】 摘要:解题思路:等比数列求和注意事项:公式:a1*(1-q**n)/(1-q)参考代码:m,n = map(int,input().split()) s_1 = m/2**n sum = (m*(1-1…… 题解列表 2022年04月13日 0 点赞 0 评论 728 浏览 评分:0.0
字符逆序(C语言代码) 摘要:解题思路:先逆序在输出。注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char a[100]; char temp;…… 题解列表 2022年04月13日 0 点赞 0 评论 640 浏览 评分:0.0