鸡兔同笼问题 摘要:解题思路:j=2a+4b x=a+b两个式子联立可得b=j/2-x a=x-b注意事项:参考代码:#include<stdio.h>int main(){ …… 题解列表 2022年03月02日 0 点赞 0 评论 595 浏览 评分:0.0
Minesweeper 化繁为简(摒弃多层判断) 摘要:解题思路:本质上其实就是扫雷游戏,摒弃原有多层判断(四角、边缘、内部)。 换一种思路:既然是计算周围九宫格的雷数,就应该想到只要遍历对应元素周围(行差<=1 && 列差<=1…… 题解列表 2022年03月02日 0 点赞 0 评论 737 浏览 评分:0.0
编写题解 1025: [编程入门]数组插入处理--解题 解题思路:既然他已经给排好顺序,那我们给他放入数组中,我们只需要用temp来记录在数组中某个比当前数大的位置即可,在输出时,用temp间隔开,先输出tenp位置前的数字,再输出temp位置后的数字。注意事项:参考代码:#include#includeusingna 题解列表 2022年03月02日 0 点赞 0 评论 679 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出--解题 摘要:解题思路:数组逆序输出注意事项:参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ int str[…… 题解列表 2022年03月02日 0 点赞 0 评论 598 浏览 评分:0.0
编写题解 1026: [编程入门]数字逆序输出--string库gets函数 摘要:解题思路:注意事项:原来的字符串最后一个是空格记得从倒数第二位开始输出的。参考代码:#include<stdio.h>#include<iostream>using namespace std;int…… 题解列表 2022年03月02日 0 点赞 0 评论 660 浏览 评分:0.0
编写题解 1030: [编程入门]二维数组的转置--解题 摘要:解题思路:注意事项:输出记得对准格式,空格和换行参考代码:#include<stdio.h>#include<iostream>using namespace std;int main (){ …… 题解列表 2022年03月02日 0 点赞 0 评论 508 浏览 评分:0.0
编写题解 1031: [编程入门]自定义函数之字符串反转--解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>#include<iostream>using namespace std;char change(…… 题解列表 2022年03月02日 0 点赞 0 评论 520 浏览 评分:0.0
1487: 蓝桥杯算法提高VIP-不同单词个数统计 摘要:解题思路:注意事项:参考代码:import java.util.HashSet;import java.util.Scanner;public class Main { public stati…… 题解列表 2022年03月02日 0 点赞 0 评论 745 浏览 评分:0.0
python-连接乘积 摘要:解题思路:注意事项:参考代码:def f(): R = set() for i in range(1,10000): temp = '&a 题解列表 2022年03月02日 0 点赞 0 评论 587 浏览 评分:0.0
python-选择排序 摘要:解题思路:注意事项:参考代码:def f(A,now): global n if now == n: ret 题解列表 2022年03月02日 0 点赞 0 评论 675 浏览 评分:0.0