循环入门练习1(简单C++) 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int s=0; for(int i=…… 题解列表 2022年10月29日 0 点赞 0 评论 438 浏览 评分:9.9
暴力枚举法题解 摘要:解题思路: 本题解采用暴力解法,就是使用多层for循环来求公、母、雏鸡的个数。 原来的思路:使用3层for循环,来枚举这三种 题解列表 2022年10月29日 0 点赞 0 评论 435 浏览 评分:9.9
1093——字符逆序 摘要:参考代码:#include"stdio.h" #include"string.h" typedef char string[111]; string str; void fun(char *s…… 题解列表 2022年10月29日 0 点赞 0 评论 259 浏览 评分:0.0
1012.字符串分类统计 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ char ch; int letter,number,blank,other; letter=number=b…… 题解列表 2022年10月29日 0 点赞 0 评论 283 浏览 评分:9.9
兰顿蚂蚁python代码,正确,小白水平可读懂 摘要:解题思路:注意事项:参考代码:#兰顿蚂蚁#输入m,n=map(int,input().split())l1=[]for i in range(m):#输入矩阵 l1.append(list(ma…… 题解列表 2022年10月29日 0 点赞 0 评论 279 浏览 评分:7.0
【C】校门外的树合并重叠区间法 摘要:解题思路: 通过合并重叠区间方式计算,避免巨大数组注意事项: 总树木为长度+1 挖掘树数为初始点-末尾点+1设2个区间为a1~a2,b1~b2 判断重叠方法为b1<=a2 && b2>=a1参考代码:…… 题解列表 2022年10月29日 0 点赞 0 评论 468 浏览 评分:9.9
使用pow函数求水仙花数 摘要:#include<stdio.h> #include<math.h> int main() { int ave, gae; int k1, k2, k3; scan…… 题解列表 2022年10月29日 0 点赞 0 评论 353 浏览 评分:9.9
结构体之时间设计 摘要:解题思路:注意事项:参考代码:y,m,d = map(int,input().split())m1 = [1,3,5,7,8,10,12]m2 = [4,6,9,11]s = 0for i in ra…… 题解列表 2022年10月29日 0 点赞 1 评论 349 浏览 评分:9.9
蓝桥杯算法提高VIP-字符串比较 摘要:解题思路:比较注意事项:不是长度参考代码:#include <bits/stdc++.h>using namespace std;int main(){ios_base::sync_with_stdi…… 题解列表 2022年10月29日 0 点赞 0 评论 351 浏览 评分:9.9
蓝桥杯历届试题-蚂蚁感冒(最容易理解java) 摘要:解题思路:根据题意可知与感冒的蚂蚁接触就会感冒,我们可以不去考虑转向的问题,当感冒的蚂蚁遇到其他的蚂蚁直接穿过,直接去寻找会穿过哪些蚂蚁,当未感冒蚂蚁所处的位置在感冒蚂蚁的右边且头方向与感冒蚂蚁相反会…… 题解列表 2022年10月29日 0 点赞 0 评论 339 浏览 评分:9.9