鸡兔同笼问题保留输出结果为整数 摘要:解题思路:思路简单不说了注意事项:int型相除会保留整数位,舍去小数位主要问题是整数型相除保留整数输出问题;用取余保证余数为0就解决了对于增加的c,d,e,f....加循环就是了,基本都是保证最后的未…… 题解列表 2023年04月04日 0 点赞 0 评论 197 浏览 评分:0.0
模拟一下就好了 摘要:解题思路:注意事项:参考代码:m=input()n=int(input())s=list(m)for _ in range(n): cnt=1 t='' for i …… 题解列表 2023年04月04日 0 点赞 0 评论 166 浏览 评分:0.0
排队打水问题 摘要:解题思路:注意事项:参考代码:n,r = map(int,input().split())L = list(map(int,input().split()))L.sort()s = sum([i fo…… 题解列表 2023年04月04日 0 点赞 0 评论 191 浏览 评分:0.0
自由下落的距离计算 摘要: ```c #include #define N 100 int main() { float m,n; scanf("%f %f",&m,&n); float…… 题解列表 2023年04月04日 0 点赞 0 评论 148 浏览 评分:0.0
蓝桥杯算法提高VIP-数字黑洞 摘要:解题思路:注意事项:参考代码:n = input()s = 0while n != '6174': a = ''.join(sorted(n)[::-1]) …… 题解列表 2023年04月04日 0 点赞 0 评论 165 浏览 评分:0.0
数组插入处理 摘要:思路: 遍历当前的序列,找到第一个比待插入元素大的元素,且该数组元素的位置为i,然后将i后面的元素全都后移,把待插元素放入i中 ```c #include int main()…… 题解列表 2023年04月04日 0 点赞 0 评论 176 浏览 评分:0.0
题解 1097: 蛇行矩阵 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main() { int a[100][100]; //二维数组用来存数字 int N,b,k=1,m=1;…… 题解列表 2023年04月04日 0 点赞 0 评论 179 浏览 评分:0.0
自定义函数求一元二次方程 摘要: ```c #include #include int main() { float a,b,c; scanf("%f%f%f",&a,&b,&c); …… 题解列表 2023年04月04日 0 点赞 0 评论 192 浏览 评分:0.0
蓝桥杯算法训练VIP-集合运算 摘要:解题思路:注意事项:参考代码:n = int(input())L1 = list(map(int,input().split()))L1.sort()m = int(input())L2 = list…… 题解列表 2023年04月04日 0 点赞 0 评论 155 浏览 评分:0.0
蓝桥杯算法训练VIP-黑色星期五 摘要:解题思路:注意事项:参考代码:from datetime import*n = int(input())s = 0for i in range(1,13): a = date(n,i,13) …… 题解列表 2023年04月04日 0 点赞 0 评论 224 浏览 评分:0.0