-委派任务*(穷举法) 摘要:public class Main { public static void main(String[] args) { //1代表去 0代表不去 for (int A= 0;A …… 题解列表 2022年01月20日 0 点赞 0 评论 387 浏览 评分:0.0
python-寻找三位数 摘要:解题思路:a = [123:329]进行遍历,b = a*2,c = a*3sum = str(a)+str(b)+str(c)if len(set(sum)) == 9 and '0'…… 题解列表 2022年01月20日 0 点赞 0 评论 538 浏览 评分:0.0
水仙花数判断 摘要:参考代码:#include"bits/stdc++.h" using namespace std; int a[1111]; bool check(int z){ int q=0; in…… 题解列表 2022年01月20日 0 点赞 0 评论 343 浏览 评分:0.0
python-栅格打印问题 摘要:解题思路:题目不是很难,有一个细节要注意。注意事项:行和列的值有可能会小于等于0,这个时候没有输出,一定要注意,开始我就是没想到这里。参考代码:def f(n,m): if n <= 0…… 题解列表 2022年01月20日 0 点赞 0 评论 475 浏览 评分:0.0
python-格子位置 摘要:解题思路:正常思路注意事项:本题难点在于按对角线输出时的情况①输出左对角线时,定位第一个输出的下标 while(x != 1 and y != 1): x = x - 1 …… 题解列表 2022年01月20日 0 点赞 0 评论 671 浏览 评分:0.0
1129: C语言训练-排序问题<2> 摘要:解题思路:冒泡排序,大的移到前面,小的移到后面;注意事项:循环获取输入值,存入a[10]参考代码:#include<stdio.h>#include<string.h>int a[10],i,j,m;…… 题解列表 2022年01月21日 0 点赞 0 评论 326 浏览 评分:0.0
编写题解 1011: [编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include<stdio.h> //最大公约数 * 最小公倍数 =两个数相乘; int main(){ int m,n,i=2,x,…… 题解列表 2022年01月21日 0 点赞 0 评论 355 浏览 评分:0.0
c语言方法解决,一个个条件都放在if里判断 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int profit; int bonus; scanf("%d",&profit); if…… 题解列表 2022年01月21日 0 点赞 0 评论 396 浏览 评分:0.0
1177: 三角形 摘要:解题思路:注意事项:参考代码:m=int(input()) for i in range(m): n=int(input()) lis=[] for j in rang…… 题解列表 2022年01月21日 0 点赞 0 评论 403 浏览 评分:0.0
蓝桥杯基础练习VIP-矩阵乘法(java代码) 摘要:解题思路: 主要是考矩阵怎么相乘吧,百度一下矩阵乘法就可以注意事项: 注意矩阵的零次幂就行,我第一次提交的时候就是因为没有考虑到矩阵的零次幂答案错误了参考代码:import…… 题解列表 2022年01月21日 0 点赞 0 评论 603 浏览 评分:0.0